User Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
cs:getting_started:start [2022/04/15 01:43]
Chris Nathman [Additional Dependencies]
cs:getting_started:start [2022/04/15 02:05]
Chris Nathman [Getting our Code]
Line 61: Line 61:
 ==== Getting our Code ==== ==== Getting our Code ====
 Finally, we need to setup our ROS workspace with the robosub code. Finally, we need to setup our ROS workspace with the robosub code.
-  ​mkdir -p ~/ros/src + 
-  cd ~/ros/src +Create a directory for robosub code and move into it. 
-  git clone https://​gitlab.com/​PalouseRobosub/​Software/​robosub.git + 
-  git clone https://​gitlab.com/​PalouseRobosub/​Software/​robosub_msgs.git +<code bash> 
-  git clone https://​gitlab.com/​PalouseRobosub/​Software/​robosub_simulator.git +mkdir -p ~/ros/src 
-  cd ~/ros +cd ~/ros/src 
-  colcon build+</​code>​ 
 + 
 +Clone essential robosub repositories. Note that here we clone using https. If you setup ssh keys than you should clone using ssh instead. Replace the ''<​nowiki>​https://​gitlab.com/</​nowiki>''​ parts of the links below with ''​git@gitlab.com:''​ to clone with ssh. 
 + 
 +<code bash> 
 +git clone https://​gitlab.com/​PalouseRobosub/​Software/​robosub.git 
 +git clone https://​gitlab.com/​PalouseRobosub/​Software/​robosub_msgs.git 
 +git clone https://​gitlab.com/​PalouseRobosub/​Software/​robosub_simulator.git 
 +</​code>​ 
 + 
 +Move back to the ros directory. 
 + 
 +<code bash> 
 +cd ~/ros 
 +</​code>​ 
 +  ​ 
 +Compile the code for the first time. This will take some time since it has to compile a lot of code. Future compilation should be much faster since the build system will know what it has already compiled. 
 + 
 +<code bash> 
 +colcon build 
 +</​code>​ 
   echo "​source ~/​ros/​install/​setup.bash"​ >> ~/.bashrc   echo "​source ~/​ros/​install/​setup.bash"​ >> ~/.bashrc
   echo 'alias rsmake="​(cd ~/ros && colcon build)"'​ >> ~/.bashrc   echo 'alias rsmake="​(cd ~/ros && colcon build)"'​ >> ~/.bashrc