-
Notifications
You must be signed in to change notification settings - Fork 46
Use of Catkin locate to make scripts more flexible #212 #221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
6f1c7e6
f894de2
0cc658c
62a37c6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,3 +1,5 @@ | ||||||
| #!/bin/bash | ||||||
| export SWARMATHON_APP_ROOT="$(catkin locate)" | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ditto
Suggested change
|
||||||
| if [ -z "$SWARMATHON_APP_ROOT" ]; then SWARMATHON_APP_ROOT=$(dirname "$0"); fi | ||||||
| roscore & | ||||||
| ./rover_onboard_node_launch.sh localhost $1 | ||||||
| $SWARMATHON_APP_ROOT/misc/rover_onboard_node_launch.sh localhost $1 | ||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,18 +1,19 @@ | ||||||
| #!/bin/bash | ||||||
| echo "Running in $PWD" | ||||||
| previous_gazebo_model_path=${GAZEBO_MODEL_PATH} | ||||||
| previous_gazebo_plugin_path=${GAZEBO_PLUGIN_PATH} | ||||||
| export SWARMATHON_APP_ROOT="$PWD" | ||||||
| export GAZEBO_MODEL_PATH="$PWD/simulation/models" | ||||||
| export GAZEBO_PLUGIN_PATH="$PWD/build/gazebo_plugins" | ||||||
| source "$PWD/devel/setup.bash" | ||||||
| export SWARMATHON_APP_ROOT="$(catkin locate)" | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ditto
Suggested change
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Carter90 awesome that you're working on this! |
||||||
| if [ -z "$SWARMATHON_APP_ROOT" ]; then SWARMATHON_APP_ROOT=$(dirname "$0"); fi | ||||||
| echo "Running from: $PWD with repo root: $SWARMATHON_APP_ROOT" | ||||||
| export GAZEBO_MODEL_PATH="$SWARMATHON_APP_ROOT/simulation/models" | ||||||
| export GAZEBO_PLUGIN_PATH="$SWARMATHON_APP_ROOT/build/gazebo_plugins" | ||||||
| source "$SWARMATHON_APP_ROOT/devel/setup.bash" | ||||||
| echo Cleaning up ROS and Gazebo Processes | ||||||
|
|
||||||
| #Delete the rqt cache - can take 24 hours for changes in the UI | ||||||
| # to show up otherwise | ||||||
| rm ~/.config/ros.org/rqt_gui.ini | ||||||
|
|
||||||
| ./cleanup.sh | ||||||
| $SWARMATHON_APP_ROOT/cleanup.sh | ||||||
| echo Killing rosmaster | ||||||
| pkill rosmaster | ||||||
| echo Killing roscore | ||||||
|
|
@@ -28,7 +29,7 @@ echo Killing rosmaster | |||||
| pkill rosmaster | ||||||
| echo Killing roscore | ||||||
| pkill roscore | ||||||
| ./cleanup.sh | ||||||
| $SWARMATHON_APP_ROOT/cleanup.sh | ||||||
| # Restore previous environment | ||||||
| export GAZEBO_MODEL_PATH=$previous_gazebo_model_path | ||||||
| export GAZEBO_PLUGIN_PATH=$previous_gazebo_plugin_path | ||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this need to be exported to the environment?