-
Notifications
You must be signed in to change notification settings - Fork 60
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
Localization Pose Offset Issue in lidar_localization_ros2 #44
Comments
Is my understanding correct that the z-coordinate of the ground in the point cloud map is zero, and the lidar is placed on the ground (z=0)? |
It might not be good to place the lidar horizontally in that environment. Tilting the lidar from the mapping phase might improve localization as well. |
The lidar isn't placed horizontally, I am not sure what you mean by that. I guess what I am trying to understand is what could introduce the height in the pcl_pose when my initial pose doesn't. I am a beginner in this, so I would appreciate any possible questions you might ask that can help me solve this problem. I have all my transforms right, when I don't see this height issue in the mapping, why is this occurring during localization? |
It's not positioned horizontally? It might be better to tilt it further so it can scan the ceiling. |
I understand what you mean by placing it horizontally now, yes, it is placed flat on the surface without any tilt. Thank you for the suggestion! I understand the reasoning behind tilting the LiDAR to capture more features in the z-direction, especially if there are overhead structures that could improve localization accuracy. However, in my current environment, there doesn't seem to be anything above the scanned points. Given this, could it be possible that I’m making a mistake with the code or logic in my implementation? I’d appreciate any insights you might have on potential issues or areas I should double-check. Thanks again for your help! |
Since this issue hasn't been reported before, I believe there are no problems with the code or the implementation logic; it might be the features of the environment that are the issue... It could be worth trying in other environments as well. |
Thank you for the response. I tried testing it in a different environment, and the issue still persists. I understand that there might not be an issue in the code/repo itself, my question was meant to ask if you think I am making errors in the implementation of the package itself, as I am adapting the package for my custom robot and environment. I would be happy to provide you with more information on areas that you suspect the issue could arise from. One other thing that I notice as I drive the robot around is that the localization is incorrect. The robot seems to be moving in a completely different direction by 90 degrees as seen in the video I am moving forward, but the robot is moving to the left. Screencast.from.08-12-2024.01-21-06.PM.1.mp4On further debugging, I wrote a script to check the z values in the pcd map, and this is what they look like. |
Could the issue possibly be in the following code? Sorry, I had forgotten that the following issues exist with this package. |
It seems that the tf from 'map' to 'velodyne' and from 'base_link' to 'velodyne' might not work. It might be necessary to port the function 'transform_sensor_measurement' found below. |
I have used the lidar_slam_ros2 package to map my environment using my custom robot and lidar setup and successfully saved my PCD map. However, I am experiencing an issue when using the lidar_localization_ros2 package to localize against the map. Specifically, my /pcl_pose is consistently reported to be above the ground, causing localization inaccuracies.
My initial pose set correctly in relation to the ground level in
initial_pose_x: 0.0
initial_pose_y: 0.0
initial_pose_z: 0.0
initial_pose_qx: 0.0
initial_pose_qy: 0.0
initial_pose_qz: 0.0
initial_pose_qw: 1.0
Current /pcl_pose:
header:
stamp:
sec: 1354
nanosec: 401000000
frame_id: map
pose:
pose:
position:
x: 0.0054741911590099335
y: -0.003969608340412378
z: 1.0869423151016235
I would appreciate any questions that you have to point me in the right direction.
@rsasaki0109
The text was updated successfully, but these errors were encountered: