ROS2 node for the Raspberry Pi Camera Module. Works with both the V1.x and V2.x versions of the module. We recommend using the v2.x cameras as they have better auto gain, and the general image quality is better.
colcon build
source install/setup.bash
ros2 run raspicam2 raspicam2_node __params:=`ros2 pkg prefix raspicam2`/share/raspicam2/cfg/params.yaml
-
Make sure that your user is in the
video
group by runninggroups|grep video
. -
If you get an error saying:
Failed to create camera component
, make sure that the camera cable is properly seated on both ends, and that the cable is not missing any pins. If this doesn't work update your firmware withrpi-update
. -
If the publish rate of the image over the network is lower than expected, consider using a lower resolution to reduce the amount of bandwidth required.
TODO