Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ORB-Slam3 for ROS2 stops after receiving 1 frame #2

Closed
sumitpaulde opened this issue Sep 8, 2022 · 9 comments
Closed

ORB-Slam3 for ROS2 stops after receiving 1 frame #2

sumitpaulde opened this issue Sep 8, 2022 · 9 comments

Comments

@sumitpaulde
Copy link

Thanks a lot for this beautiful work. I am publishing the sensor.image/Image type message from my one ROS2 node and trying to run ORB-Slam3 for the published topics. I have also edited the topic name in the monocular-slam-node.cpp. Even though I can see the stream of images as a video(continous frames) from the subscriber, the ORBSLAM3-for-ROS2 stops working as soon as it receives one frame. Any idea what I am doing wrong?
slam1
slam2

@zang09
Copy link
Owner

zang09 commented Sep 13, 2022

I guess it was problem of less feature extraction from your camera image.
I may recommended test it your build program first, on given dataset.

@sumitpaulde
Copy link
Author

This camera image works fine with the ROS1 ORB slam but not with the ORB slam for ros2. Do you have any idea what is wrong?

@zang09
Copy link
Owner

zang09 commented Sep 13, 2022

Then, i don't know what is the problem.. exactly. I need to test it on the same evironment to figure out.

@ZhaoDidididi
Copy link

ZhaoDidididi commented Sep 16, 2022

I have the same problem with stereo-inertial mode.

@ZhaoDidididi
Copy link

This camera image works fine with the ROS1 ORB slam but not with the ORB slam for ros2. Do you have any idea what is wrong?

I solved the problem by replacing the default version 4.5.5 OpenCV of Jetpack 5.0.2 with the version 4.2.0 OpenCV. For me, the problem is the version conflict of the cv-bridge. The default version of the cv-bridge in ROS2 box is version 4.2.0, so the ORB-SLAM3 source code needs to be compiled using OpenCV4.2.0.

@zang09
Copy link
Owner

zang09 commented Sep 20, 2022

Hi, @ZhaoDidididi.
It's good to here that you solved the problem.
I didn't trouble with this problem, because i tested it on OpenCV 4.2.0.
I will write this troubleshooting on Readme.md. Thank you.

@sumitpaulde
Copy link
Author

Thanks guys for your reply. I have reinstalled Opencv 4.2.0 but having new issue

/home/spaul/ros2_ws/install/orbslam3/lib/orbslam3/stereo: Symbol `_ZTVN6rclcpp19QOSEventHandlerBaseE' has different size in shared object, consider re-linking
/home/spaul/ros2_ws/install/orbslam3/lib/orbslam3/stereo: Symbol `_ZTVN6rclcpp8WaitableE' has different size in shared object, consider re-linking
/home/spaul/ros2_ws/install/orbslam3/lib/orbslam3/stereo: Symbol `_ZTVN6rclcpp12experimental28SubscriptionIntraProcessBaseE' has different size in shared object, consider re-linking
/home/spaul/ros2_ws/install/orbslam3/lib/orbslam3/stereo: symbol lookup error: /home/spaul/ros2_ws/install/orbslam3/lib/orbslam3/stereo: undefined symbol: _Z19_get_symbol_funcptrPv

This is in my laptop. Any idea what is wrong?

@XCYYYYY
Copy link

XCYYYYY commented Oct 13, 2022

This camera image works fine with the ROS1 ORB slam but not with the ORB slam for ros2. Do you have any idea what is wrong?

I solved the problem by replacing the default version 4.5.5 OpenCV of Jetpack 5.0.2 with the version 4.2.0 OpenCV. For me, the problem is the version conflict of the cv-bridge. The default version of the cv-bridge in ROS2 box is version 4.2.0, so the ORB-SLAM3 source code needs to be compiled using OpenCV4.2.0.

hello,i solved this problem by replacing opencv4.5.0 with opencv 4.2.0 when i run mono mode, but when i run the RGBD mode i still face the problem: "ORBSLAM3-for-ROS2 stops working as soon as it receives one frame", i am confused, do u have any idea?
thanks a lot!

@EndlessLoops
Copy link

EndlessLoops commented Mar 28, 2023

Compile a separate cv_bridge for ORBSLAM3_ROS2.
Refer: https://www.ncnynl.com/archives/202107/4491.html

@zang09 zang09 closed this as completed Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants