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 doesn't work #9

Open
Marouan-22 opened this issue Nov 6, 2022 · 4 comments
Open

map doesn't work #9

Marouan-22 opened this issue Nov 6, 2022 · 4 comments

Comments

@Marouan-22
Copy link

image

Hi,

I use rplidar A1 to scan, i do get the laser but it doesn't show anything if I set it on map? do you have any idea?

greetings!

@Kathan-k10
Copy link

same problem , any solution or other way to work on SLAM?

1 similar comment
@ch1y1z1
Copy link

ch1y1z1 commented Nov 3, 2023

same problem , any solution or other way to work on SLAM?

@anasderkaoui
Copy link

Make sure you have the right transform tree in the lidar code. The error message on the terminal indicates that the issue is likely related to the transform tree which should look like this (if you run: ros2 run tf2_tools view_frames.py):
odom -> base_link -> laser
In some cases the message might also indicate that the queue size is full, so it has to be modified in the code to be larger.

@ayanami-rei00
Copy link

I had the same problem, my solution was to change "laser" to "laser_frame" in the TF transformation, and the problem was solved.

The overall running structure is as follows:

  1. run radar and let it publish information through /scan topic
  2. publish TF coordinate transformation and open rviz
  3. start gmapping to build the map

The problem is that the queue size is not enough, but in fact, it is not successful in building TF transformation, which leads to the inability to find the relationship between the map and laser, and unable to correctly process the received data, which leads to the queue overflow, so simply expand the queue.The queue overflowed, so simply expanding the queue length cannot actually solve the problem.You can refer to my method to check if the TF tree is successfully built.

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