-
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?
Conversation
…tkin locate and outside using dirname Testing: From home you could run `./SwarmBaseCode-ROS/run.sh` this will use dirname From SwarmBaseCode-ROS/src/behaviours/src you could run it as ../../../run.sh this will use catkin locate
…e repo using catkin locate and outside using dirname
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.
This looks good with a few changes; however, it may be incomplete.
- The
start_robots.shscript needs to be catkinized - as does
stop_robots.sh
| cd .. | ||
| dirPath="$(pwd)" | ||
| dirName="$(basename `pwd`)" | ||
| export dirPath="$(catkin locate)" |
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?
| export dirPath="$(catkin locate)" | |
| dirPath="$(catkin locate)" |
| @@ -1,3 +1,5 @@ | |||
| #!/bin/bash | |||
| export SWARMATHON_APP_ROOT="$(catkin locate)" | |||
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.
ditto
| export SWARMATHON_APP_ROOT="$(catkin locate)" | |
| SWARMATHON_APP_ROOT="$(catkin locate)" |
| 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)" |
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.
ditto
| export SWARMATHON_APP_ROOT="$(catkin locate)" | |
| SWARMATHON_APP_ROOT="$(catkin locate)" |
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.
@Carter90 awesome that you're working on this!
Filter out poorly detected home tags during find home corner
Proposed solution for issue #212 @wfvining
I alas do not have a Swarmie this turkey day eve, so I am unable to test.
Testing the run.sh changes:
From home you could run
./SwarmBaseCode-ROS/run.shthis will use dirnameFrom SwarmBaseCode-ROS/src/behaviours/src you could run it as ../../../run.sh this will use catkin locate
And essentially the same for both
misc/deploy.sh
misc/rover_launch_local.sh