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

Revision history [back]

I think you can use a timer with the callback, that will store the last odometry message in the _last_odom_msg class field, and then you can just retrieve that value when the service is called.