ros-drivers / velodyne

ROS support for Velodyne 3D LIDARs
http://ros.org/wiki/velodyne
Other
646 stars 643 forks source link

how to change the orientation of the vertical setted vlp 16 #482

Closed himhan34 closed 1 year ago

himhan34 commented 1 year ago

Please complete the following information:

As the people had done in this git hub, i could operate the two lidars in the same, fixed frame. https://github.com/ros-drivers/velodyne/issues/108 unfortunately, one of my vlp-16 is horizontal and the other is vertical,

this picture is the the pointcloud from the vertical lidar, image

this is a picture from the horizontal lidar image

and when i displayed both lidars in the same rviz image

this is shown,

is there any method to change orientation of the vertical lidar.

and also my launch file is like this

DrAndyWest commented 1 year ago

To provide ROS with the orientation of a sensor, you would need to supply the specific transformation (in your case a simple rotation). The TF2 package provides this already in ROS, or you can describe the rotation as part of your robot in the URDF.

For the time being, just for testing, I would suggest using the tf2 static_transform_publisher and describing the relative position and rotation of your two lidar systems.

JWhitleyWork commented 1 year ago

Thanks for helping, @DrAndyWest! @himhan34 Please open another issue if you have further driver-related questions.