Robotics StackExchange | Archived questions

rviz crash: Duration is out of dual 32-bit range

Hi

I have two computers connect via ethernet one is publishing sensor_msgs/LaserScan and the other one views the data using rviz. But rviz crashes (not always) if I try to visualize the laser scan data with the following msg.

terminate called after throwing an instance of 'std::runtime_error' what(): Duration is out of dual 32-bit range

On the publisher I am filling the header time by using ros::Time::now(). It doesn't matter which computer runns the roscore.

Asked by Markus Bader on 2018-01-15 07:29:54 UTC

Comments

Quick check: are clocks synchronised between both machines?

Asked by gvdhoorn on 2018-01-15 07:38:27 UTC

I syncronized now both computers running on the one with the roscore an ntp server and on the other an ntp client with the same result. It seams to work more often but still with crashes on some startups

Asked by Markus Bader on 2018-01-16 08:45:45 UTC

It was just something to check, not necessarily the cause of things.

Recommended tool is chrony btw (see: Timing issues, TF complaining about extrapolation into the future?.

Asked by gvdhoorn on 2018-01-16 08:47:38 UTC

Answers