BrettRD / ros-gst-bridge

a bidirectional ros to gstreamer bridge and utilities for dynamic pipelines
Other
128 stars 30 forks source link

Problem using rosimagesrc #61

Closed bruno-darochac closed 4 months ago

bruno-darochac commented 5 months ago

Hello, I'm currently trying to test rosimagesrc.

I've done a simple pipeline as :

gst-launch-1.0 rosimagesrc ros-topic=/royale_camera_driver/depth_image_log ! rosimagesink ros-topic=/test

And if I take a look at the generated topic "/test" it have all my data get from rosimagesrc. But when I try to do anything else as for example : gst-launch-1.0 rosimagesrc ros-topic=/royale_camera_driver/depth_image_log ! queue ! videoconvert ! autovideosink

gst-launch-1.0 rosimagesrc ros-topic="/royale_camera_driver/depth_image_log" ! queue ! "video/x-raw, format=(string)GRAY8, height=(int)172, width=(int)224" ! videoconvert ! autovideosink

It fails and return me the error :

ERROR: from element /GstPipeline:pipeline0/Rosimagesrc:rosimagesrc0: Internal data stream error.
Additional debug info:
gstbasesrc.c(3055): gst_base_src_loop (): /GstPipeline:pipeline0/Rosimagesrc:rosimagesrc0:
streaming stopped, reason not-negotiated (-4)
Execution ended after 0:00:00.478504916
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

If I put instead of the autovideosink a fakesink it goes well..

Important things to know is that I'm running your plugin into a jetson nano, so I had to fully adapt rosimagesrc and sink into ROS1.

I think that I'm just miss-understanding how to use the plugin if you can help me

bruno-darochac commented 5 months ago

I've just changed for ximagesink and everything work :)