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

Revision history [back]

click to hide/show revision 1
initial version

I do not know how to make this work to be honest, so I usually have a workaround.

I do it with a message_filters::Cache.

  • Cache your /scan, if everything was smooth then a queue of (25/3) would be enough, but I would go for 100 messages at least.
  • In your /localizer_pose callback, you can retrieve the latest message from the /scan cache with getLatestTime(). You can also retrieve the latest message before a given timestamp.