BrettRD / ros-gst-bridge

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

Unable to republish ROS image topics #39

Closed sandman closed 2 years ago

sandman commented 2 years ago

Hi, I'm running ros-gst-bridge with ROS2 Foxy. When I run the gamma correction example, I don't the see the topic published by rosimagesink:

gst-launch rosimagesrc topic="image_raw" ! gamma gamma=2.0 ! rosimagesink topic="image_gamma_corrected"

Enabling Gstreamer debug logs does not show up any errors or issues. image_raw is being published.

What might be the problem here?

sandman commented 2 years ago

Found the issue - it was related to namespaces. rosimagesrc was using a namespace and rosimagesink wasn't.

BrettRD commented 2 years ago

Do you mean they have differing default namespaces?

sandman commented 2 years ago

@BrettRD Yes, the default namespace is not set. But the topic being subscribed to had a namespace. For some reason, the rosimagesink plugin wasn't publishing the topic in the default namespace. Haven't dived into the details of the plugin to understand why this is the case. Could be a DDS thing..

BrettRD commented 2 years ago

I'm pretty sure this is a documentation issue, the gstreamer properties should have been ros-topic and ros-namespace instead of just topic I've updated the readme. Can you confirm that?

sandman commented 2 years ago

Thanks, I would just add a gst-launch-1.0 so that it works out of the box for the current main version of GStreamer.

BrettRD commented 2 years ago

Good catch, thanks.