tum-vision / lsd_slam

LSD-SLAM
GNU General Public License v3.0
2.58k stars 1.23k forks source link

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

Open defei-coder opened 5 years ago

defei-coder commented 5 years ago

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

gispda commented 5 years ago

I have the same problem.

gispda commented 5 years ago

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

defei-coder commented 5 years ago

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 commented 5 years ago
      I have resolve the problem,There is a bug in the rostime module,rate.cpp

Rate::Rate(double frequency) : start_(Time::now()) , expected_cycletime() , actual_cycletime(0.0) { if (frequency!=0) expected_cycletime=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 commented 5 years ago

Hi,where is the rate.cpp

karthikv123 commented 5 years ago

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 commented 5 years ago

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.

Wayne-xixi commented 4 years ago

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!

PavanproJack commented 4 years ago

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

justinlim812 commented 2 years ago

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!