Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 795 Bytes

README.md

File metadata and controls

30 lines (24 loc) · 795 Bytes

Compiling

Build like a normal ros2 project

cd ~/ros2_ws
colcon build --packages-up-to ros2_gstreamer

Copy plugins to /usr/lib/x86_64-linux-gnu/gstreamer-1.0/

To run

Use like any normal gstreamer plugin

gst-launch-1.0 -v v4l2src device=/dev/video6 ! video/x-raw,framerate=30/1 ! videoconvert ! rclcpp_publisher
gst-launch-1.0 -v rclcpp_subscriber ! video/x-raw,width=800,height=448,framerate=15/1,format=BGRA ! videoconvert ! xvimagesink

Subscribing to Realsense color

gst-launch-1.0 rclcpp_subscriber topic-name=/camera/color/image_raw ! videoconvert ! xvimagesink

Subscribing to a depth image and displaying it

gst-launch-1.0 rclcpp_subscriber topic-name=/camera/infra1/image_rect_raw ! videoconvert ! videobalance brightness=0.3 ! xvimagesink