Skip to content

ROS2 node for libcamera supported cameras (V4L2, Raspberry Pi Camera Modules)

License

Notifications You must be signed in to change notification settings

tosbaja/camera_ros

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ROS2 node for libcamera supported cameras

Dependencies

For ubuntu distros of raspi you'll need toinstall v4l2, cv2_bridge and libcamera. From our experience with raspberry pi 5 compiling libcamera from the raspberryPi respository is the only way to work with raspberry pi 5 and Raspicam v1.3 ov5647 in docker enviroment (Jammy 22.04.3). The package camera_ros can be installed with apt, but since it depends to libcamera and the version available on apt wont work with raspberry pi 5 I removed libcamera from the package.xml and created a new fork of the repo, so compiling camera_ros from here and with the raspberryPi libcamera version is the only option.

To run

ros2 run camera_ros camera_node

Parameters

Format

Video format for streaming. You may need to change this parameter for your camera.

Role

Camera role, options: raw, still, video, viewfinder.

Width

Width for the stream

Height

Height for the stream

Camera

ID of the camera

Example run command with params

ros2 run camera_ros camera_node --ros-args -p width:=1920 -p height:=1080 -p format:="UYVY"

About

ROS2 node for libcamera supported cameras (V4L2, Raspberry Pi Camera Modules)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 96.0%
  • CMake 4.0%