Skip to content
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

[ROS2 Galactic Subscriber] Cannot subscribe to 2 compressed image topic using image_transport subscriber filter #222

Open
chenjunnn opened this issue Jan 20, 2022 · 1 comment

Comments

@chenjunnn
Copy link

When I try the following code:

// hpp
image_transport::SubscriberFilter color_img_sub_filter_;
image_transport::SubscriberFilter depth_img_sub_filter_;

// cpp
color_img_sub_filter_.subscribe(
    this, "/camera/color/image_raw", "compressed", rmw_qos_profile_sensor_data);
depth_img_sub_filter_.subscribe(
    this, "/camera/aligned_depth_to_color/image_raw", "compressed", rmw_qos_profile_sensor_data);

it terminated with:

terminate called after throwing an instance of 'rclcpp::exceptions::ParameterAlreadyDeclaredException'
  what():  parameter 'mode' has already been declared
@chenjunnn chenjunnn changed the title [ROS2 Galactic] Cannot subscribe to 2 compressed image topic using image_transport subscriber filter [ROS2 Galactic Subscriber] Cannot subscribe to 2 compressed image topic using image_transport subscriber filter Jan 20, 2022
@chenjunnn
Copy link
Author

This bug is mentioned here: ros-perception/image_transport_plugins#82
If anyone meets the same problem, please check the above PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant