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

Error running rgb-d SLAM ROS2 (humble): double free or corruption (out) [ros2run]: Aborted #24

Open
RodrigofrBastos opened this issue Apr 2, 2024 · 3 comments

Comments

@RodrigofrBastos
Copy link

System Setup:

  • ROS2 Humble
  • Ubuntu 22.04
  • Simulated RGB-D camera (gazebo Ignition)

When setting everything to run ORBSLAM3, trying to run $ ros2 run orbslam3 rgbd PATH_TO_VOCABULARY PATH_TO_YAML_CONFIG_FILE and receiving the following output:

Loading ORB Vocabulary. This could take a while...
Vocabulary loaded!

Initialization of Atlas from scratch 
Creation of new map with id: 0
Creation of new map with last KF id: 0
Seq. Name: 
There are 1 cameras in the atlas
Camera 0 is pinhole
Shutdown

Saving keyframe trajectory to KeyFrameTrajectory.txt ...
double free or corruption (out)
[ros2run]: Aborted

For solving this error what is needed to do?

@RodrigofrBastos
Copy link
Author

RodrigofrBastos commented Apr 2, 2024

After searching for a while, I found a website that had that answer, basically you need to replace https://github.com/zang09/ORB_SLAM3_ROS2/blob/00c54335ccc010d74c1e24e336aa817604124947/src/rgbd/rgbd-slam-node.cpp#L11C1-L12C122
Replace with the following lines:

rgb_sub = std::make_shared<message_filters::Subscriber<ImageMsg> >(this, "/camera/rgb");
depth_sub = std::make_shared<message_filters::Subscriber<ImageMsg> >(this, "/camera/depth");

Now it should work.

@RodrigofrBastos
Copy link
Author

Someone had the same problem?

@TSoli
Copy link

TSoli commented Apr 22, 2024

Yes this fixed it for me, thanks very much!

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

2 participants