Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision |
installation:environment [2013/12/04 15:06] – gkazhoya | installation:environment [2013/12/17 13:39] – gkazhoya |
---|
== Catkin Part == | == Catkin Part == |
| |
''source /opt/ros/hydro/setup.bash'' | <code bash> |
| source /opt/ros/hydro/setup.bash |
''cd ~/workspace'' | cd ~/workspace |
| </code> |
| |
or ''cd ~/work'' or ''mkdir ~/workspace && cd ~/workspace'', whatever. | or ''cd ~/work'' or ''mkdir ~/workspace && cd ~/workspace'', whatever. |
| |
''mkdir -p catkin/src'' | <code bash> |
| mkdir -p catkin/src |
''cd catkin'' | cd catkin |
| catkin_make |
''catkin_make'' | </code> |
| |
You might want to call ''catkin_init_workspace'' from ''src'' before ''catkin_make'', but this is actually not needed, as ''catkin_make'' does that for you as well. | You might want to call ''catkin_init_workspace'' from ''src'' before ''catkin_make'', but this is actually not needed, as ''catkin_make'' does that for you as well. |
== Rosbuild part == | == Rosbuild part == |
| |
''source devel/setup.bash'' | <code bash> |
| source devel/setup.bash |
''mkdir ~/workspace/rosbuild'' | mkdir ~/workspace/rosbuild |
| cd ~/workspace/rosbuild |
''cd ~/workspace/rosbuild'' | rosws init . ../catkin/devel |
| </code> |
''rosws init . ../catkin/devel'' | |
| |
Make sure you use ''rosws'' here instead of ''wstool''. | Make sure you use ''rosws'' here instead of ''wstool''. |
| |
''echo -e "\n# ROS\nsource \$HOME/workspace/rosbuild/setup.bash\n" >> ~/.bashrc'' | <code bash> echo -e "\n# ROS\nsource \$HOME/workspace/rosbuild/setup.bash\n" >> ~/.bashrc</code> |
| |
The quotation marks and the 2 'bigger' signs in ''echo'' might not work if you copy paste. Do ''cat ~/.bashrc'' to check if it worked. | The quotation marks and the 2 'bigger' signs in ''echo'' might not work if you copy paste. Do ''cat ~/.bashrc'' to check if it worked. |
| |
''source ~/.bashrc'' | <code bash> source ~/.bashrc</code> |