VIS4ROB-lab / covins

COVINS-(G) -- A (Generic) Framework for Collaborative Visual-Inertial SLAM and Multi-Agent 3D Mapping
384 stars 63 forks source link

Stereo-Inertia #26

Closed pengllbit closed 9 months ago

pengllbit commented 2 years ago

Does this support Stereo-Inertia,or how can I use covins to run my own Stereo-Inertia camera?

ThomasZiegler commented 2 years ago

Hi Unfortunately COVINS does not support stereo. But this doesn't mean you can't run a stereo front-end in you SLAM. But when transmitting the data from your front-end to the COVINS back-end you should only transmit the keyframes of one camera.

To implement COVINS in your own setup you need to transmit the keyframes and map points/landmarks from your front-end to the COVINS server. For this you need to transfer the keyframes and map points into messages covins::MsgKeyframe and covins::MsgLandmark, respectively. You can use our ORB SLAM 3 implementation as a guide. https://github.com/VIS4ROB-lab/covins/blob/f8e6527bafffa5bba53a888b0e7ec625724baafe/orb_slam3/include/KeyFrame.h#L258-L272 https://github.com/VIS4ROB-lab/covins/blob/f8e6527bafffa5bba53a888b0e7ec625724baafe/orb_slam3/include/MapPoint.h#L103-L106

Regards Thomas

pengllbit commented 2 years ago

Thank you for your answer I have another problem. When I use my own camera_D435i to run COVINS Mono_Inertial with ROS , it always fails to initialize. I went to see ORB_SLAM3 and failed to solve this problem. Can you give some initialization suggestions.

pengllbit commented 2 years ago

Fails to initialize like this frames set to lost

ThomasZiegler commented 2 years ago

Hi, if you have another problem please open a new dedicated issue for it. Otherwise it's hard for other people, which have similar problems to find the discussion, when it's not related to the current issue title.

However, in your case it's seems that your new problem is very similar to issue #10. As stated there we adapted ORB SLAM 3 as front-end, but we didn't change anything in the initialization part. So to get COVINS with our front-end working you essentialy need to get ORB SLAM 3 running with your camera setup. So I would follow their instruction and look in their issues if some one had similar problems or otherwise open an new issue there.

yonggaogit commented 1 year ago

Fails to initialize like this frames set to lost

I encountered the same problem, did you solve it?

patriksc commented 9 months ago

Closing - original issue resolved