ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Here are some suggestions:
ros::Time::now()
?rostopic echo --offset TOPIC_NAME/header/stamp
to examine by how much your messages are delayed w.r.t. ROS time. The delay is the sum of communication / serialization overhead + the processing time of your nodes. Note that the stamp of a header consists of seconds and nanoseconds, e.g. 0 seconds and 500000000 nanoseconds means your time offset is 0.5 secmessage_filters::Synchronizer
in your code? If yes, try increasing the queue size of the message_filters::Subscriber
that serve as an inputtf::TransformListener
and waitForTransform()
somewhere which might cause delays if the transforms are delayed? In that case, diagnose transform delays using rosrun tf tf_monitor
rgbd_launch
package does). As nodelets are a bit more difficult to debug, I would recommend this only if you are sure that serialization is the most probable cause of your issues.