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

/scan topic inverted from expected rotational direction #340

Open
SteveMacenski opened this issue Jun 24, 2024 · 0 comments
Open

/scan topic inverted from expected rotational direction #340

SteveMacenski opened this issue Jun 24, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@SteveMacenski
Copy link

The scan topic for a beam seems to rotate in the opposite direction as expected by the right hand rule / conventions in the sensor_msgs/LaserScan message. Obviously its unreasonable to ask that the lidar rotates in the other direction (well... can we do that?) so an easy solution is to have the lidar scan frame be inverted so the scan is 'virtually' set in the correct rotational direction. This is an easy and fast solution that other lidars that spin in the so-called incompatible direction can use laser scan tools in ROS correctly.

The issue is seen when working with 2D lidar SLAMs like gmapping and SLAM Toolbox which assume REP compliance of the LaserScan data. I was able to get around this by doing a pointcloud to laser scan conversion on a rotated, colocated frame to virtually invert the direction. However, that involves processing all the lidar data and I would prefer to use the driver's scan if possible.

@SteveMacenski SteveMacenski added the bug Something isn't working label Jun 24, 2024
@Samahu Samahu self-assigned this Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants