New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No name resolution of base topic in image_transport::Subscriber #80
Comments
I have a similar issue with the image_common/image_transport/include/image_transport/simple_subscriber_plugin.h Lines 98 to 101 in f9e705a
|
I have the same issue on a multi camera system. I though I could simply remap in the launch file from a generic |
I have the same issue and still no clue how to solve it. Does anyone have a solution yet @christian-rauch ? |
The only workaround I found is to manually remap the topic: ros::NodeHandle n_priv;
image_transport::SubscriberFilter sub_image_depth;
sub_image_depth.subscribe(
it,
ros::names::remap("depth/image"), // manually remap topic from 'depth/image' to target
1,
image_transport::TransportHints("raw", ros::TransportHints(), n_priv, "depth/image_transport")
); See https://github.com/christian-rauch/depth_box_filter/blob/master/src/depth_box_filter_node.cpp for the full example. |
Thank you for the advice @christian-rauch . I am still a little confused, I have a raspberry running as an onboard computer, with a marker detection package. Can I just apply the fix in this line and then continue with the namespace remapping as is or am I basically hard-coding the names of the image topics now, without a chance to remap?
|
If you apply the remapping via Just take the ROS node at https://github.com/christian-rauch/depth_box_filter as an example. The remapping is done in the launch file and the |
Somehow, after applying the fix, see here
I still get the same issue, with the subscription going to:
What am I missing here? I recompile and source the workspace... |
Use my Otherwise, this issue is not a discussion forum. If you have further troubles with remapping topic names, please ask this specific question at https://answers.ros.org. |
Just a quick note for nodelets: you need to use
|
image_transport::Subscriber does not resolve the name of base topic although CameraSubscriber, CameraPublisher, and Publisher do. This causes an issue that a base topic remapping does not work when the transport type is not
raw
. For instance, the following settings subscribe notcamera/image_raw/compressed
butimage_in/compressed
.The text was updated successfully, but these errors were encountered: