raulmur / ORB_SLAM2

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

ROs node Mono not works for me #996

Open DaddyWesker opened 3 years ago

DaddyWesker commented 3 years ago

Hello.

Thanks for your code. Currently i am trying to launch ORB_SLAM2 Mono Ros node with sample Euroc bag. Here is what i'm doing: I've built ORB_SLAM2, I've built Examples/ROS/Orb_slam2. So, i am trying to run following commands:

  1. roscore
  2. rosrun ORB_SLAM2 Mono Vocabulary/ORBvoc.txt Examples/Stereo/EuRoC.yaml
  3. rosbag play --pause V1_01_easy.bag /cam0/image_raw:=/camera/image_raw

After 2nd command is loaded window with map and image, i'm pressing space in terminal with 3rd command and nothing changes in map and image windows. Just blank. Though, when launching stereo node as in "Running Stereo Node" in the Readme, it works fine. Probably, i am doing something wrong but don't know what exactly. Would be glad to hear any advice.

Btw, i'm using Linux Mint 20, if it is necessary. And i've built ORB_SLAM2 with opencv 4.2 (though it was not so easy).