raulmur / ORB_SLAM2

Real-Time SLAM for Monocular, Stereo and RGB-D Cameras, with Loop Detection and Relocalization Capabilities
Other
9.37k stars 4.69k forks source link

error:‘usleep’ was not declared #954

Open hiramzhang opened 3 years ago

hiramzhang commented 3 years ago

ORB_SLAM2/src/LocalMapping.cc:719:9: note: suggested alternative: ‘fseek’ usleep(3000); ^~ fseek

Daihn6 commented 3 years ago

You should add "#include" in file "system.h".

Amer-Alhamvi commented 3 years ago

If you still are having the problem, add

define usleep(x) sleep(x/1000)