Skip to content

Commit

Permalink
move files in control directory to appimage
Browse files Browse the repository at this point in the history
  • Loading branch information
raybjork committed Oct 2, 2024
1 parent 3d4185c commit 63635ae
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion packaging/appimages/universal-robots-x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
version: 1
script:
- rm -rf AppDir || true
- mkdir -p $TARGET_APPDIR/usr/bin $TARGET_APPDIR/usr/lib
- mkdir -p $TARGET_APPDIR/usr/bin $TARGET_APPDIR/usr/lib $TARGET_APPDIR/src/
- cp ../../build/universal-robots $TARGET_APPDIR/usr/bin/
- cp ../../build/_deps/universal_robots_client_library-build/liburcl.so $TARGET_APPDIR/usr/lib/
- mkdir -p $TARGET_APPDIR/usr/share/icons/viam/256x256/apps/
- cp ./viam-server.png $TARGET_APPDIR/usr/share/icons/viam/256x256/apps/viam-server.png
- cp -r ../../src/control $TARGET_APPDIR/src/control
- go install github.com/Otterverse/aix@latest
- cp `go env GOPATH`/bin/aix $TARGET_APPDIR/usr/bin/
- chmod 755 $TARGET_APPDIR/usr/bin/*
Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions src/ur5e_arm.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ const double TIMESTEP = 0.2; // seconds

// locations of files necessary to build module, specified as absolute paths
// TODO: figure out how to make these relative paths
const std::string URDF_FILE = "/host/src/ur5e.urdf";
const std::string SCRIPT_FILE = "/host/src/control/external_control.urscript";
const std::string OUTPUT_RECIPE = "/host/src/control/rtde_output_recipe.txt";
const std::string INPUT_RECIPE = "/host/src/control/rtde_input_recipe.txt";
const std::string URDF_FILE = std::string(std::getenv("APPDIR")) + "/src/control/ur5e.urdf";
const std::string SCRIPT_FILE = std::string(std::getenv("APPDIR")) + "/src/control/external_control.urscript";
const std::string OUTPUT_RECIPE = std::string(std::getenv("APPDIR")) + "/src/control/rtde_output_recipe.txt";
const std::string INPUT_RECIPE = std::string(std::getenv("APPDIR")) + "/src/control/rtde_input_recipe.txt";

// TODO: using this is deprecated by the URCL, we could find some way around using it
const std::string CALIBRATION_CHECKSUM = "calib_12788084448423163542";
Expand Down
1 change: 1 addition & 0 deletions urmodtester.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"cloud":{"app_address":"https://app.viam.com:443","id":"394b5b70-7554-42d0-9517-54fcff7afc16","secret":"1w86ox4mqzrf9n73hmfdjcbo84znrdfyeub2vfx6cdvzcmgq"}}
Binary file modified viam-server-stable-x86_64
Binary file not shown.

0 comments on commit 63635ae

Please sign in to comment.