This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
intranet:projects:robot:iis_robot_sw [2017/01/16 17:42] c703101 |
intranet:projects:robot:iis_robot_sw [2018/09/03 19:35] (current) |
||
---|---|---|---|
Line 19: | Line 19: | ||
For members using the iis infrastructure in our lab: | For members using the iis infrastructure in our lab: | ||
- | git clone --recursive git@git.uibk.ac.at:iis_software/robot_sw.git | + | git clone --recursive git@git.uibk.ac.at:iis-software/robot_sw.git |
For external users: | For external users: | ||
Line 60: | Line 60: | ||
export ROS_MASTER_URI='<your ros server ip>:11311' | export ROS_MASTER_URI='<your ros server ip>:11311' | ||
export IIS_INCLUDE_PATH='<your path>/iis_robot_sw' | export IIS_INCLUDE_PATH='<your path>/iis_robot_sw' | ||
+ | export VREP_ROOT=$IIS_INCLUDE_PATH/external_libs/vrep | ||
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:$IIS_INCLUDE_PATH/external_rosmake_ws:$IIS_INCLUDE_PATH/iis_rosmake_ws | export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:$IIS_INCLUDE_PATH/external_rosmake_ws:$IIS_INCLUDE_PATH/iis_rosmake_ws | ||
export PYTHONPATH=$PYTHONPATH:$IIS_INCLUDE_PATH/external_libs/LeapSDK/lib:$IIS_INCLUDE_PATH/external_libs/LeapSDK/libx64 | export PYTHONPATH=$PYTHONPATH:$IIS_INCLUDE_PATH/external_libs/LeapSDK/lib:$IIS_INCLUDE_PATH/external_libs/LeapSDK/libx64 | ||
Line 67: | Line 68: | ||
<code> | <code> | ||
- | ROSVERSION=indigo | + | ROSVERSION=melodic |
+ | WS_DIR=$HOME | ||
+ | DEFAULT_WS=iis_ws | ||
#ROSVERSION=kinetic | #ROSVERSION=kinetic | ||
- | #Adapt IIS_INCLUDE_PATH | + | #DEFAULT_WS=robot_sw/iis_catkin_ws |
function getmyip() { | function getmyip() { | ||
Line 89: | Line 93: | ||
export ROS_HOSTNAME=$MYIP | export ROS_HOSTNAME=$MYIP | ||
export ROS_IP=$MYIP | export ROS_IP=$MYIP | ||
- | export IIS_INCLUDE_PATH=$HOME/robot_sw | + | |
- | if [ -f $IIS_INCLUDE_PATH/iis_catkin_ws/devel/setup.bash ] ; then | + | if [ "$1" != "" ] |
- | echo "sourcing $IIS_INCLUDE_PATH/iis_catkin_ws/devel/setup.bash" | + | then |
- | source $IIS_INCLUDE_PATH/iis_catkin_ws/devel/setup.bash | + | WORKSPACE=$1 |
+ | else | ||
+ | WORKSPACE=$DEFAULT_WS | ||
fi | fi | ||
+ | |||
+ | echo "using workspace: $WORKSPACE" | ||
+ | export IIS_INCLUDE_PATH=$WS_DIR/$WORKSPACE | ||
+ | if [ -f $IIS_INCLUDE_PATH/devel/setup.bash ] ; then | ||
+ | echo "sourcing $IIS_INCLUDE_PATH/devel/setup.bash" | ||
+ | source $IIS_INCLUDE_PATH/devel/setup.bash | ||
+ | else | ||
+ | echo "No setup.bash file found on $IIS_INCLUDE_PATH/devel/setup.bash" | ||
+ | fi | ||
+ | |||
} | } | ||
Line 109: | Line 125: | ||
</code> | </code> | ||
+ | Adapt ''ROS_VERSION'', ''WS_DIR'', ''DEFAULT_WS'' to you system. ''WS_DIR'' can be used when all workspaces are stored in the same directory, e.g. ''$HOME/Repos''. The ''DEFAULT_WS'' variable specifies the default workspace to be used when no argument is specified. An argument can be specified for initializing a different workspace, e.g. ''ROS_LOCAL robot_sw/catkin_iis_ws''. | ||
===Build=== | ===Build=== |