ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

Example of message filter and lifecycle node

asked 2023-04-19 03:26:03 -0500

diturr gravatar image

Hi everybody,

do you know where i can find an example of the usage of message filter in a lifecycle node? The standard way "message_filters::Subscriber<sensor_msgs::msg::pointcloud2> subscription_point_cloud" does not work.

Thanks.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-04-19 04:55:29 -0500

ljaniec gravatar image

updated 2023-04-19 05:00:53 -0500

I found this issue: https://github.com/ros2/geometry2/iss... - it looks like this option is not there yet.

EDIT: I just saw that it was a MessageFilter class inside the tf2, not the ROS 2 message_filters, so it is probably incorrect. I hope there is some example how to do it correctly. Please add your code (MRE would be the best), so we could check it and maybe fix any issues.

Feature request - description

Similar to #70 and #94, the MessageFilter class needs support for lifecycle nodes.

Implementation considerations

There could be a constructor that takes the required node interfaces, perhaps in addition to rclcpp::Node and rclcpp_lifecycle::LifecycleNode.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2023-04-19 03:26:03 -0500

Seen: 1,191 times

Last updated: Apr 19 '23