setup-stable
{: .notice--danger} This page is out of date. To set up the stable workspace, please follow the README in b-it-bots/dev-env
Setup And Install A Seperated Workspace for Stable Repositories
Motivation: move repositories which are rarely modified to a separated location to avoid building them everytime with your $ROS_WORKSPACE.
Presiquisites
Clean ROS install
python-wstoolandpython-catkin-toolsinstalled (this guide uses command from catkin_tools, i.e.catkin buildinstead ofcatkin_make)
sudo apt install python-wstool python-catkin-toolsOpen a terminal without any
setup.bashsourced, i.e.env | grep -iros should print nothing (if not useunsetor edit.bashrcfile).Clone
ros-stable-ws-setup
export WS_SETUP_PATH=/path/to/my/ws/setup # i.e. ~/ros-ws-setup
git clone gitgate@mas.b-it-center.de:mnguy12s/ros-stable-ws-setup.git $WS_SETUP_PATHNote: for zsh users, source setup.zsh instead of setup.bash for all workspaces
Install stable workspace
Run repositories.debs
repositories.debsThe easiest way to install all packages required by the @Home repositories is to execute the repositories.debs file in mas_domestic_robotics repository. This however requires some modification to the script in order to avoid conflict with the stable workspace setup:
Clone the MAS repositories first to get the
repositories.debs. Thewstoolcommand should create thesrcdirectory with threemas_*repositories.
export MAS_WORKSPACE_PATH=/path/to/mas/ws # i.e. ~/catkin_ws/indigo
mkdir -p $MAS_WORKSPACE_PATH
cd $MAS_WORKSPACE_PATH
wstool init src $WS_SETUP_PATH/cob-user/mas-domestic-robotics.rosinstallEdit the
repositories.debsunder themas_domestic_roboticsdirectory:Comment out
rosinstall .. /opt/ros/indigo repository.rosinstallline (these repositories will be installed with the stable workspace).ros-indigo-cob-externinpackagelistwill cause errors withaptinstallation (messages about overwriting some README files), so comment it out or resolve this in some other way.
cd src/mas_domestic_robotics
vim repositories.debs # or emacs, nanoExecute
repositories.debs
./repositories.debsConfigure and build stable workspace
Configure stable workspace
source /opt/ros/indigo/setup.bash # get cakin commands
export STABLE_WORKSPACE_PATH=/path/to/stable/ws # i.e. ~/catkin_ws/indigo-cob3-1-stable
mkdir -p $STABLE_WORKSPACE_PATH
cd $STABLE_WORKSPACE_PATH
wstool init src $WS_SETUP_PATH/cob-stable/indigo-cob3-1-stable-pc2.rosinstall
catkin config --init
catkin config --install --install-space /opt/ros/indigo-cob3-1-stableRun
catkin configin$STABLE_WORKSPACE_PATHto check workspace configuration. The output should have the correctExtendingandInstall Spacepaths:
Extending: [cached] /opt/ros/indigo
Workspace: $STABLE_WORKSPACE_PATH
----------------------------------------------------------------------------
Source Space: [exists] $STABLE_WORKSPACE_PATH/src
Log Space: [exists] $STABLE_WORKSPACE_PATH/logs
Build Space: [exists] $STABLE_WORKSPACE_PATH/build
Devel Space: [exists] $STABLE_WORKSPACE_PATH/devel
Install Space: [exists] /opt/ros/indigo-cob3-1-stableIf workspace configuration is okay, build stable workspace by running
catkin build
Configure and build MAS workspace
This will be your development workspace with the
mas_*repositories.
cd $MAS_WORKSPACE_PATH
source /opt/ros/indigo-cob3-1-stable/setup.bash # make MAS workspace extends
# the stable workspace
catkin config --initCheck workspace configuration by running
catkin config, the output should have the correctExtendingpath:
Extending: [cached] /opt/ros/indigo-cob3-1-stable:/opt/ros/indigo
Workspace: $MAS_WORKSPACE_PATH
--------------------------------------------------------------------------
Source Space: [exists] $MAS_WORKSPACE_PATH/src
Log Space: [exists] $MAS_WORKSPACE_PATH/logs
Build Space: [exists] $MAS_WORKSPACE_PATH/build
Devel Space: [exists] $MAS_WORKSPACE_PATH/devel
Install Space: [unused] $MAS_WORKSPACE_PATH/installLast updated
Was this helpful?