lsd_slam icon indicating copy to clipboard operation
lsd_slam copied to clipboard

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

Open defei-coder opened this issue 6 years ago • 10 comments

Hello,can anyone help me,when i run the code:rosrun lsd_slam_core dataset_slam _files:=/home/lab/rosbuild_ws/LSD_room/images _hz:=0 _calib:=/home/lab/rosbuild_ws/LSD_room/cameraCalibration.cfg

rosrun lsd_slam_core dataset_slam _files:=/home/lab/rosbuild_ws/LSD_room/images _hz:=0 _calib:=/home/lab/rosbuild_ws/LSD_room/cameraCalibration.cfg Reading Calibration from file /home/lab/rosbuild_ws/LSD_room/cameraCalibration.cfg ... found! found ATAN camera model, building rectifier. Input resolution: 640 480 In: 0.397386 0.783197 0.417784 0.482498 0.000000 Out: 0.397386 0.783197 0.417784 0.482498 0.000000 Output resolution: 640 480 Prepped Warp matrices Started constraint search thread! Started mapping thread! Started optimization thread found 2702 image files in folder /home/lab/rosbuild_ws/LSD_room/images! terminate called after throwing an instance of 'std::runtime_error' what(): Duration is out of dual 32-bit range Aborted (core dumped)

my machine is ubuntu16.04、ROS Kinetic

defei-coder avatar Oct 03 '18 10:10 defei-coder

I have the same problem.

gispda avatar Nov 03 '18 14:11 gispda

I have resolve the problem,There is a bug in the rostime module,rate.cpp Rate::Rate(double frequency) : start_(Time::now()) , expected_cycle_time_() , actual_cycle_time_(0.0) { if (frequency!=0) expected_cycle_time_=ros::Duration(1/frequency); } And then make librostime.so, can cp the so file to /opt/ros/kinetic/lib And run okay.

gispda avatar Nov 05 '18 12:11 gispda

I solved the problem by setting images _hz:=1(not equal to zero is ok) I think the time is equal to 1/frequency ,so 1/0 is gigantic

defei-coder avatar Nov 14 '18 01:11 defei-coder

      I have resolve the problem,There is a bug in the rostime module,rate.cpp

Rate::Rate(double frequency) : start_(Time::now()) , expected_cycle_time_() , actual_cycle_time_(0.0) { if (frequency!=0) expected_cycle_time_=ros::Duration(1/frequency); } And then make librostime.so, can cp the so file to /opt/ros/kinetic/lib And run okay. I solved the problem by setting images _hz:=1(not equal to zero is ok) I think the time is equal to 1/frequency ,so 1/0 is gigantic

defei-coder avatar Nov 14 '18 01:11 defei-coder

Hi,where is the rate.cpp

defei-coder avatar Nov 15 '18 02:11 defei-coder

Hi, i am also having the same error while running "rosrun rviz rviz".

$rosrun rviz rviz [ INFO] [1542287615.441010909]: rviz version 1.12.16 [ INFO] [1542287615.446363938]: compiled against Qt version 5.5.1 [ INFO] [1542287615.446392781]: compiled against OGRE version 1.9.0 (Ghadamon) [ INFO] [1542287615.786892573]: Stereo is NOT SUPPORTED [ INFO] [1542287615.788349467]: OpenGl version: 3 (GLSL 1.3). terminate called after throwing an instance of 'std::runtime_error' what(): Duration is out of dual 32-bit range Aborted (core dumped)

Please anybody help me to solve this issue, thanks in advance...

karthikv123 avatar Nov 15 '18 13:11 karthikv123

the above issue is solved..

This is a link on how to update the Mesa 3D graphics on Ubuntu 16.04: http://ubuntuhandbook.org/index.php/2018/01/how-to-install-mesa-17-3-3-in-ubuntu-16-04-17-10/

I hope this helps because I lost days troubleshooting this as a beginner in ROS and Ubuntu myself.

karthikv123 avatar Nov 15 '18 13:11 karthikv123

the above issue is solved..

This is a link on how to update the Mesa 3D graphics on Ubuntu 16.04: http://ubuntuhandbook.org/index.php/2018/01/how-to-install-mesa-17-3-3-in-ubuntu-16-04-17-10/

I hope this helps because I lost days troubleshooting this as a beginner in ROS and Ubuntu myself.

thank you very much! solved!

Wayne-xixi avatar Nov 11 '19 17:11 Wayne-xixi

the above issue is solved..

This is a link on how to update the Mesa 3D graphics on Ubuntu 16.04: http://ubuntuhandbook.org/index.php/2018/01/how-to-install-mesa-17-3-3-in-ubuntu-16-04-17-10/

I hope this helps because I lost days troubleshooting this as a beginner in ROS and Ubuntu myself.

This Worked

PavanproJack avatar Jun 20 '20 13:06 PavanproJack

the above issue is solved..

This is a link on how to update the Mesa 3D graphics on Ubuntu 16.04: http://ubuntuhandbook.org/index.php/2018/01/how-to-install-mesa-17-3-3-in-ubuntu-16-04-17-10/

I hope this helps because I lost days troubleshooting this as a beginner in ROS and Ubuntu myself.

This worked for this exact same issue I'm facing. Thanks!

justinlim812 avatar Dec 19 '21 09:12 justinlim812