-
Notifications
You must be signed in to change notification settings - Fork 76
Install Directly on Host (Noetic)
Woensug Choi edited this page Jul 28, 2021
·
18 revisions
sudo apt update
sudo apt install -y build-essential cppcheck curl cmake lsb-release git python3-dbg python3-pip python3-venv ruby software-properties-common wget libeigen3-dev pkg-config protobuf-compiler qtbase5-dev libgles2-mesa-dev
-
Install ROS Noetic per https://wiki.ros.org/noetic/Installation/Ubuntu. Specifically:
Install sources list, keys, ROS Noetic, initialize rosdep:
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654 sudo apt update sudo apt install ros-noetic-desktop-full sudo apt install ros-noetic-velodyne-gazebo-plugins python3-rosdep sudo rosdep init rosdep update
and set up
.bashrc
for working with ROS Noetic:source /opt/ros/noetic/setup.bash
DIST=noetic
sudo apt install ros-${DIST}-rqt-robot-plugins ros-${DIST}-effort-controllers ros-${DIST}-joy ros-${DIST}-teleop-twist-joy ros-${DIST}-teleop-twist-keyboard ros-${DIST}-teleop-tools ros-${DIST}-joy-teleop ros-${DIST}-key-teleop ros-${DIST}-geographic-info ros-${DIST}-move-base ros-${DIST}-robot-localization ros-${DIST}-robot-state-publisher ros-${DIST}-xacro ros-${DIST}-rqt ros-${DIST}-rqt-common-plugins ros-${DIST}-hector-gazebo-plugins
Note that the manipulator arm requires the ros-noetic-effort_controllers
and glider requires the ros-noetic-hector-gazebo-plugins
- If you are installing on WSL2 at Windows machine, skip this section since WSL2 with GUI requires different NVIDIA Driver (NVIDIA Driver for WSL) and CUDA (CUDA for WSL)
- If using the NVidia graphics card, install the NVidia driver instead of using Ubuntu's default video driver: https://linuxize.com/post/how-to-nvidia-drivers-on-ubuntu-20-04/
- The
nps_uw_sensors
repository requires CUDA support to compile. The simplest way to install CUDA support on Ubuntu 20 is:sudo apt update sudo apt install nvidia-cuda-toolkit
- This installs the Nvidia CUDA toolkit from the Ubuntu repository.
- If you prefer to install the latest version directly from the CUDA repository, instructions are available here: https://linuxconfig.org/how-to-install-cuda-on-ubuntu-20-04-focal-fossa-linux
- Follow instructions at this link to clone the source repositories you will work with.
cd ~/uuv_ws
catkin_make
Source new setup.bash by typing this:
source ~/uuv_ws/devel/setup.bash
Also, put source ~/uuv_ws/devel/setup.bash
in your .bashrc file.
You may test your installation by running the reference configuration
roslaunch uuv_dave uuv_dave.launch
which should generate a gazebo view similar to this:
More details are discussed at uuv_simulator_reference.