As we mentioned at the end of the Installing ROS Melodic section, in order to be able to use the camera, we first need to install its ROS package. Since the binaries are not available for ROS Melodic (only for Kinetic), we need to build the package from the source, and this is a perfect example in that you will know how to do it with any other package. Let's do this with the following steps:
- Go to your catkin workspace and download the source code:
$ cd ~/catkin_ws/src
$ git clone https://github.com/UbiquityRobotics/raspicam_node.git
- There are some dependencies to be installed for ROS. To carry out this task, we are going to create the 30-ubiquity.list file:
$ sudo -s
$ echo “yaml https://raw.githubusercontent.com/UbiquityRobotics/rosdep/master/raspberry-pi.yaml” > /etc/ros/rosdep/sources...