[Discourse.ros.org] [General] Raspberry Pi Camera Node

[Discourse.ros.org] [General] Raspberry Pi Camera Node

Dear ROS community,

Many of you are running Raspberry Pi's for your robots. Pi's are great on their own, but they are even better with the camera module, so we are proud to announce our ROS node for the Raspberry Pi camera module here: https://github.com/UbiquityRobotics/raspicam_node.

We have tested this node on both the 4.1 and 4.4 kernels from the Raspberry Pi Foundation, using an Ubuntu Image, but it should work with ROS on Raspbian as well. We have used both the original (5MP) and the newer (8MP) cameras with this node.

Some features of raspicam_node:
* Dynamic reconfigure support for camera parameters
* Fixed shutter_speed support for doing short or long exposures
* Premade calibration files for Camera V1 and V2
* Publishing compressed images using hardware encoder

[Discourse.ros.org] [General] Raspberry Pi Camera Node

We are using the hardware JPEG compression available in the Pi, so getting both compressed and uncompressed images is tricky. Because of this, we only publish the compressed image so that we can continue to take advantage of the hardware.

If you need raw images, for now you will have to run a separate decompression node like so
`rosrun image_transport republish compressed in:=/raspicam_node/image raw out:=/raspicam_node/image` in order to get raw images. Of course these raw images will have the same compression artifacts as the raw image.

If that is not enough for you, please open an issue on you github repo above, and we will try to support your use case.

[Discourse.ros.org] [General] Raspberry Pi Camera Node

Hi again---good news. I took another go at following the source catkin installation to my Raspberry Pi/Ubuntu-Mate/ROS Kinetic from the UbiquityRobotics/raspicam_node github.com. All installed smoothly and the V2 camera works, publishes from /raspicam_node and displays an image on the Remote PC. Not sure what my trouble was though I did do a "apt-get update and ungrade a few times in the meantime. I was not able to install the debs binary as it could not find "ros-kinetic-raspicam-node" package. Thanks for the great work and now display a colored image along with the SLAM map on the TB3 Burger.

[Discourse.ros.org] [General] Raspberry Pi Camera Node

As for why `apt-get install ros-kinetic-raspicam-node` wasn't working for you: raspicam_node is not released into the ROS buildfarm because of some non-standard dependencies (the raspberry pi libs). To get the binaries, you need to follow the instructions [here](https://packages.ubiquityrobotics.com/) to add the Ubiquity Robotics apt repo to your system. Then `sudo apt-get install ros-kinetic-raspicam-node` should work.

[Discourse.ros.org] [General] Raspberry Pi Camera Node

Hi, thanks a lot for contributing raspicam_node. Just out of curiosity what kind of publishing rates do you experience with this node running on a Raspberry Pi 3 Module. I currently have it running with a frequency of ~3.8 hz. Was wondering if this was the expected publishing rate.

[Discourse.ros.org] [General] Raspberry Pi Camera Node

Rohan, May I ask a further question now that my TB3 is running great using a Wii Teleop & Raspicam vision? While the Teleop function on a connected Android Teleop app works, I am now trying to view the Raspicam Publication "/raspicam_node/image/compressed" (as shown with a "rosnode info /raspicam_node" command) but with no image is displayed. Inquiring "rosnode info /android/camera_view" the Android app appears to use a Subscription to "/compressed_image [unknown type]" The rqt_graph display similarly shows no connection between the raspicam_node and android /android camera_view node. Is there a simple work around or necessary to advise administrator, or post the issue somewhere? Thanks Ross

All:
Please note that this thread is in the general category, so everyone on the Discourse gets emails when you post on it. As such, please refrain from requesting support on this thread. If you have questions, concerns or problems of a technical nature, please open an issue here https://github.com/UbiquityRobotics/raspicam_node and we will be better able to address you.