You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think I came across a bug yesterday (using foxy, but I gues it is in rolling too) as I just tried the way image_transport resolves the base topic manually to verify this (see below). So this should affect any ROS2 version and not only foxy.
If you inspect the following excerpt of the camerapublisher:
It uses the expand mechanism but only using the node namespace. ROS2 Nodes feature the ability to create sub-nodes with an associated sub-namespace. If you look into the official templates of create a subscriber or publisher they will use the function resolve_topic_name'), which does all this sub-namespace handling correctly.
I suggest we switch to this or as similar function or call node->get_effective_namespace()instead.
I will try to provide a merge request for the latter today.
BR, Markus
The text was updated successfully, but these errors were encountered:
Hi everyone,
I think I came across a bug yesterday (using foxy, but I gues it is in rolling too) as I just tried the way image_transport resolves the base topic manually to verify this (see below). So this should affect any ROS2 version and not only foxy.
If you inspect the following excerpt of the camerapublisher:
image_common/image_transport/src/camera_publisher.cpp
Lines 82 to 96 in 4c5053e
It uses the expand mechanism but only using the node namespace. ROS2 Nodes feature the ability to create sub-nodes with an associated sub-namespace. If you look into the official templates of create a subscriber or publisher they will use the function
resolve_topic_name'
), which does all this sub-namespace handling correctly.I suggest we switch to this or as similar function or call
node->get_effective_namespace()
instead.I will try to provide a merge request for the latter today.
BR, Markus
The text was updated successfully, but these errors were encountered: