About the 'time stamps' error in ROS
Hello,I am doing some work on ROS navigation,just at the start,and I encountered some problems.When I roslaunch the *.launch,there are a lot of erros like this:[ERROR] [1493084059.568174116]: Extrapolation Error: Lookup would require extrapolation into the future. Requested time 1493084059.049999952 but the latest data is at time 1493084059.012892115, when looking up transform from frame [odom] to frame [map]
.It seems that time differences exist during the program running.How can I fix this error or how can I set the time to be the same during the program?
What launch files are you running? Are you using a simulator or a real robot? What simulator or robot? Is your computer's clock set accurately?
not a real robot,but a small car based on arduino and raspberry Pi.the name of the launch file is
hongrobot_configuration.launch
,this may be a launch to set the nodes.Can I upload this file?If you are using hardware, then you are using a real robot. Not all robots are made by Kuka! :)
Yes, upload the launch file and the rest of your source so we can check it for problems.
Are you using running nodes on any computers other than the Raspberry Pi? If you are, then you need to make sure their clocks are synchronised.
Let's put the file aside.Sorry to forget the details:I run nodes on the raspberrypi to manipulate the arduino to controll the little car and send data of laser_scanner to a Vmware machine(Ubuntu 14.04,bridged to the physical machine) and generating maps with RVIZ.But these errors only happen on the
RaspberryPi's terminal and maps did exist on RVIZ,but not so correc、explicit.And the car can't be self-navigated.How can I sychronize the time of raspberrypi with the virtualmachine?I baidu and googled these things and doubt about the time.Should I change the codes or just run some commands in the
terminal?谢谢你的热心帮助。望回复。
remote refid st t when poll reach delay offset jitter
*ntp1.flashdance 193.11.166.20 2 u 32 64 377 396.120 -29.788 8.509
+ec2-34-198-99-1 192.53.103.108 2 u 42 64 277 278.546 -36.187 8.326