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

coordinationNotation not working correctly with multiScan #222

Closed
reinbja opened this issue Oct 16, 2023 · 1 comment
Closed

coordinationNotation not working correctly with multiScan #222

reinbja opened this issue Oct 16, 2023 · 1 comment

Comments

@reinbja
Copy link

reinbja commented Oct 16, 2023

If the coordinationNotation is set to 1 (polar data) no pointcloud will be visualized in rviz.

@rostest
Copy link
Collaborator

rostest commented Oct 17, 2023

Thanks for your feedback. To visualize polar pointclouds in rviz, a transform to cartesian coordinates is required. The python script attached converts polar pointclouds (generated with coordinationNotation 1) to cartesian pointclouds, which can be visualized in rviz.

Example to convert polar pointclouds on topic "/cloud_polar_unstructured_fullframe" to cartesian pointclouds on topic "/cloud_polar_to_cartesian":

python3 polar_to_cartesian_pointcloud_ros1.py --polar_topic="/cloud_polar_unstructured_fullframe" --cartesian_topic="/cloud_polar_to_cartesian"

Using this script, rviz shows the converted polar pointcloud on topic "/cloud_polar_to_cartesian".

polar_to_cartesian_pointcloud_ros1.zip

@rostest rostest closed this as completed Dec 18, 2023
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