Skip to content

Installation ROS Melodic (Ubuntu 18.04)

Ankit Dhall edited this page Feb 4, 2021 · 2 revisions

Make sure you have all the dependencies:

sudo apt-get install -y python-catkin-tools python-catkin-pkg python-rosdep python-wstool ros-melodic-cv-bridge ros-melodic-image-transport
sudo apt-get install -y ros-melodic-nodelet-core ros-melodic-ddynamic-reconfigure
sudo apt-get install -y ros-melodic-velodyne-pointcloud

source /opt/ros/melodic/setup.bash

# Prepare rosdep to install dependencies.
sudo rosdep init
rosdep update --include-eol-distros  # Support EOL distros.

To clone lidar_camera_calibration and install follow these steps:

# go to your catkin workspace src
cd ~/catkin_ws/src
git clone https://github.com/ankitdhall/lidar_camera_calibration.git

# move out dependencies
mv lidar_camera_calibration/dependencies/aruco_ros aruco_ros
mv lidar_camera_calibration/dependencies/aruco_mapping aruco_mapping

# checkout corresponding melodic version
cd lidar_camera_calibration
git checkout melodic

# build
cd ../..
rosdep install --from-paths src --ignore-src -r -y
catkin_make -DCATKIN_WHITELIST_PACKAGES="aruco;aruco_ros;aruco_msgs"
catkin_make -DCATKIN_WHITELIST_PACKAGES="aruco_mapping;lidar_camera_calibration"
catkin_make -DCATKIN_WHITELIST_PACKAGES=""