Robotics StackExchange | Archived questions

Camera Nodes for ROS Melodic and Raspberry Pi

I'm trying to display the output of a camera connected to my Raspberry Pi on using rqtimageview. I have tried installing the following nodes: raspicamnode (preferred as it would allow me to use my PiCamera) and usbcam (which would allow me to use a USB camera connected to the RPi, which would also be fine).

I tried to install raspicam_node using these instructions on the GitHub page link text, however when running

rosdep install --from-paths src --ignore-src --rosdistro=melodic -y

I was met with this error:

ERROR: The following packages/stacks could not have their rosdep keys resolved to system dependencies:
raspicam_node: No definition of [camera_info_manager] for OS version [buster]

Attempting to install usb_cam in the same way resulted in the same error.

Both these nodes were made for Kinetic- would there be a way to make these work with Melodic? Or is there another node which does definitely work with Melodic (I have looked but was unable to find any)?

Thanks for any help.

Asked by terrylboro on 2020-02-12 10:03:28 UTC

Comments

Dear Terry,

Which branch did you use for the pi4/Melodic setup? There does not seem to be one specifically for Melodic.

Thanks, Mark

Asked by rgbmuc on 2020-06-19 12:04:02 UTC

Answers

hey terry,

I ran into the same problem after following these instructions for installing ros melodic on a rpi4.

the error just means you are missing the camera_info_manager package.

clone it into your local catkin_ws and compile and you should be ok.

https://github.com/ros-perception/image_common

Asked by flynneva on 2020-02-21 15:53:58 UTC

Comments

Dear flynneva, Which one do you clone? There does not seem to be a branch for melodic and the master does not compile in melodic. -Mark

Asked by rgbmuc on 2020-06-22 03:49:33 UTC

found it... the hydro-devel branch works with melodic.

-Mark

Asked by rgbmuc on 2020-06-24 06:27:16 UTC