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_slam2_ros crashes when camera image topic is available #138

Open
bozobratina opened this issue Sep 13, 2022 · 5 comments
Open

orb_slam2_ros crashes when camera image topic is available #138

bozobratina opened this issue Sep 13, 2022 · 5 comments

Comments

@bozobratina
Copy link

Hi,

I've been testing this version of orb_slam2_ros but I can't get it to work somehow. I'm have tested Raul's ORB_SLAM2 in ros, and its working OK, also TUM's extension for map saving version is working OK. I've connected both of them with Pepper robot successfully.

When I start roslaunch (mono or rgbd) file everything loads OK and then waits for image topics... for mono that is /camera/image_raw
When I start rosbag play with remaped topic to /camera/image_raw the orb_slam2_ros_mono dies, code 11.
The same happens when I get camera from Pepper (mono or rgbd orb_slam2_ros).
I can see the orb subscribes to Pepper's camera topic, but then dies and unsubscribes.

I went through forum here and found that some had similar issues with code -11 but couldn't find the solution for my problem.

image2

I checked the log files and I could'n recognize the problem... I checked ros topics list, everything is in order. In RVIZ I can see image, but since orb_slam2_ros_mono dies, I get nothing, no map_points etc..

I'm running ubuntu 16.04 with kinect ros,

I would appreciate any help,

best regards.
Bozo

@barovjt
Copy link

barovjt commented Oct 17, 2022

I have the same problem. I publish the image message to /camera/image_raw. In all mono launcher (i. e. ..._r200_mono ) there is a remap from "/camera/image_raw" to "/camera/rgb/image_raw" I commented the remapping line an try to publish directly in "/camera/rgb/image_raw". So far it has got the same crash error you mention here.

My gess: the solutons is in that way, but I haven't solved it.

@GuoPingPan
Copy link

I have the same problem. I publish the image message to /camera/image_raw. In all mono launcher (i. e. ..._r200_mono ) there is a remap from "/camera/image_raw" to "/camera/rgb/image_raw" I commented the remapping line an try to publish directly in "/camera/rgb/image_raw". So far it has got the same crash error you mention here.

My gess: the solutons is in that way, but I haven't solved it.

I get the same problem! Have you fix it ?
image

@chruen
Copy link

chruen commented Nov 24, 2022

I get the same problem too QAQ. Have anyone solved the problem?

@GuoPingPan
Copy link

I seem to deal with this problem by correct the vesion of opencv:

  • go to orb_slam2_ros/CMakeLists.txt
  • uncomment find_package(OpenCV 4.0 QUIET)

But I got a new problem is that when the topic is aligned, after init new mappoint, it will never update.

@mhmd-j
Copy link

mhmd-j commented Nov 10, 2023

I solved it using find_package(OpenCV 3.0 QUIET) in the CMakeLists.txt instead of find_package(OpenCV 4.0 QUIET)

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