raulmur / ORB_SLAM2

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

Replace PATH_TO_SEQUENCE_FOLDER with a real camera, without ROS #181

Open jiapei100 opened 7 years ago

jiapei100 commented 7 years ago

Is there a way to run ORB_SLAM2 on a real camera without using that ROS demo?

Cheers Pei

poine commented 7 years ago

It depends on your operating system and on your real camera, I guess... For example, if you are running Linux and a compatible camera, you could use v4l and opencv to grab images and feed them to orbslam2. hth Poine

On Mon, Oct 24, 2016 at 11:25 AM, JIA Pei notifications@github.com wrote:

Is there a way to run ORB_SLAM2 on a real camera without using that ROS demo?

Cheers Pei

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/raulmur/ORB_SLAM2/issues/181, or mute the thread https://github.com/notifications/unsubscribe-auth/AAGTz_qI5pDxXuasWD6XClVGkpl6Re_oks5q3HmBgaJpZM4KekaS .

AlejandroSilvestri commented 7 years ago

@poine is right, I'm doing it for a while now, capturing webcam with opencv and feeding orb-slam2 without ROS. It works pretty well, as expected. Don't forget to calibrate your webcam.

Of course, you have to modifiy some c++ code to do it, then compile.

Look for while(true) loop in main.cc.

Jephinus commented 7 years ago

Did anyone resolve this issue? I have no clue yet