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

Map overlapping problem #681

Open
anasderkaoui opened this issue Mar 12, 2024 · 4 comments
Open

Map overlapping problem #681

anasderkaoui opened this issue Mar 12, 2024 · 4 comments

Comments

@anasderkaoui
Copy link

Hello !
-> My setup:

  • YDLIDAR G4
  • ROS 2 Humble and Foxy
  • Ubuntu 22.04 and 20.04

-> The problem:

I can successfully generate a map, but when I move the robot or when odometry data changes, I get a new scan of the map but overlapping the previous one ! (Fixed Frame is set to "map" and sometimes to "base_footprint" but still got the same behavior)
I want the map to stay put in place (static, not moving with the robot) while the robot is moving to scan the reaminning blank spaces.
I have also tried this with gmapping and got the same problem. Is there a parameter to change in order to fix that ?

Thanks in advance!

@RoboCrafty
Copy link

Could be some issue with your tf. Triple check the laser to base link tf in your urdf.

@anasderkaoui
Copy link
Author

I am not using a URDF, only tf from the drivers' packages. I checked running: ros2 run tf2_tools view_frames and I got the required tf tree: map -> odom -> base_link -> lidar_frame.
I think that if the tf was not set properly, the SLAM algorithm wouldn't even wanna start !
Also on RVIZ, when I add the TF display, I get "Status Ok" with all the Transforms mentionned above!
From some other sources, I found that this maybe due to the LiDAR moving very quickly and jerking. I think this may be the case, I still have to test that!

@RoboCrafty
Copy link

Nah I mean the tf needs to be correct. An incorrect TF can cause this as far as I know since I had a very similar issue. An Incorrect tf would also look completely normal on the tree.

@anasderkaoui
Copy link
Author

Okay, thank you. How do I know if my tf is correct then ?

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