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

Unable to make it work with turtlebot and rtabmap #5

Closed
BruceCanovas opened this issue Jun 3, 2020 · 2 comments
Closed

Unable to make it work with turtlebot and rtabmap #5

BruceCanovas opened this issue Jun 3, 2020 · 2 comments

Comments

@BruceCanovas
Copy link

BruceCanovas commented Jun 3, 2020

Hi,

I am currently trying to use your navigation system with a gazebo simulated turtlebot. I use rtabmap_ros to build the point cloud map but I am facing some issues.

I managed to build your system and launch the 3 different launch files. However I had to remove "set (CMAKE_BUILD_TYPE Debug)" and put "set (CMAKE_BUILD_TYPE Release)" instead in the CMakeLists.txt file of rrt_planners, otherwise it was crashing at runtime. It seems to be related to Boost issue and may only concern my configuration.

I followed the configuration guidelines you gave, replacing odom and base_footprint frame of the turtlebot where they are needed, as well as camera_depth_optical_frame frame and odom topic, but even after that I am unable to make it work properly. I edited the file "control_tester.py" too, replacing "g.header.frame_id = 'indires_rover/odom'" by "g.header.frame_id = 'odom'". I am able to send correct goals but the planner always generates really weird trees and the robot never reaches the goal. Instead of going to the waypoint I sent, it goes back home sometimes.

Here are some screenshots of generated rrt trees when trying to go to position (2, -2, 0) in odom frame.
Capture du 2020-06-03 11-30-24

Capture du 2020-06-03 10-40-21

I would like to know if you managed to make it work successfully with rtabmap or if you have any clue about what happens in my case.

Thank you for your great work!

@noeperez
Copy link
Owner

noeperez commented Jun 3, 2020 via email

@BruceCanovas
Copy link
Author

Hi Noé,

Thank you for your answer and advices. I finally solved my issue and after a lot of debugging I found out that the strange behaviour was due to a problem in the function RRT::Steering::simple3dSteer().
The line 224 was commented leaving the "else" condition empty. After uncommenting the line or removing the "else" the code works properly. I am really glad I can use it for my project.

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