navgation2 getRobotPose Extrapolation Error looking up robot pose
Hello everyone! Has anyone encountered with that? I run nav2 stack in one terminal and run my node in another terminal. I found something strange. When I get the robot pose in my node, it gave me the error and if I sleep my node for a few seconds the error disappeared. Another unusual thing is my node published a msg of OccupyGird type, and the static layer subscribed the topic. But when I use RCLCPP_INFO to show something, I found the timestamp of pub is later than the sub. How can I synchronize the time of the two processes? 3Q for your effort very much!
add some log here... this is the pub log:
and this is the sub log:
you can see the sub log timestamp is earlier than the pub log.