This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
cs:getting_started:start [2020/09/02 18:30] Chris Nathman [Now What?] |
cs:getting_started:start [2020/09/22 01:55] Chris Nathman [Getting our Code] |
||
---|---|---|---|
Line 21: | Line 21: | ||
==== Install ROS ==== | ==== Install ROS ==== | ||
Deprecated: <del>[[cs:getting_started:indigo:|ROS Indigo (for Ubuntu 14.04 trusty or Linux Mint 17)]]</del> \\ | Deprecated: <del>[[cs:getting_started:indigo:|ROS Indigo (for Ubuntu 14.04 trusty or Linux Mint 17)]]</del> \\ | ||
- | [[cs:getting_started:kinetic:|ROS Kinetic (for Ubuntu 16.04 xenial or Linux Mint 18)]] \\ | + | Deprecated: <del>[[cs:getting_started:kinetic:|ROS Kinetic (for Ubuntu 16.04 xenial or Linux Mint 18)]]</del> \\ |
+ | ROS2 Foxy (for Ubuntu 20.04 focal or Linux Mint 20) \\ | ||
==== Getting our Code ==== | ==== Getting our Code ==== | ||
Line 37: | Line 38: | ||
</code> | </code> | ||
- | Just hit enter through all of the prompts. Don't type in a password, the entire point of this is to eliminate the need to use a password with gitlab! Now, copy the contents of ''id_rsa.pub'' and paste the contents in a new key [[git>settings/keys|here]]. To test if this worked, run: | + | Just hit enter through all of the prompts. Don't type in a password, the entire point of this is to eliminate the need to use a password with gitlab! Now, copy the contents of ''id_rsa.pub'' and paste the contents in a new key [[https://gitlab.com/profile/keys|here]]. To test if this worked, run: |
<code bash> | <code bash> | ||
Line 49: | Line 50: | ||
Finally, we need to setup our ROS workspace with the robosub code. | Finally, we need to setup our ROS workspace with the robosub code. | ||
+ | echo "source /opt/ros/foxy/setup.bash" >> ~/.bashrc | ||
source ~/.bashrc | source ~/.bashrc | ||
+ | sudo apt install python3-rosdep2 python3-colcon-common-extensions ros-foxy-gazebo-ros ros-foxy-gazebo-plugins | ||
mkdir -p ~/ros/src | mkdir -p ~/ros/src | ||
cd ~/ros/src | cd ~/ros/src | ||
- | catkin_init_workspace | ||
git clone https://gitlab.com/PalouseRobosub/Software/robosub.git | git clone https://gitlab.com/PalouseRobosub/Software/robosub.git | ||
git clone https://gitlab.com/PalouseRobosub/Software/robosub_simulator.git | git clone https://gitlab.com/PalouseRobosub/Software/robosub_simulator.git | ||
git clone https://gitlab.com/PalouseRobosub/Software/robosub_msgs.git | git clone https://gitlab.com/PalouseRobosub/Software/robosub_msgs.git | ||
+ | cd robosub | ||
+ | git checkout ros2 | ||
+ | cd ../robosub_msgs | ||
+ | git checkout ros2 | ||
+ | cd ../robosub_simulator | ||
+ | git checkout ros2 | ||
cd ~/ros | cd ~/ros | ||
- | catkin_make | + | colcon build |
- | echo "source ~/ros/devel/setup.bash" >> ~/.bashrc | + | echo "source ~/ros/install/setup.bash" >> ~/.bashrc |
source ~/.bashrc | source ~/.bashrc | ||
- | |||
- | After this initial run of ''catkin_make'', you should be able to use ''rsmake'' to compile the software. | ||
===== Now What? ===== | ===== Now What? ===== |