Describe the Bug
The lidar plugin in the webots ros2 driver outputs data as sensor_msg.pointcloud2 data structure. This data structure have an array how the binary data is structured. the plugin describes the data as 3 float values (x,y,z). Unfortunately this is not according to the webots lidar point data structure WbLidarPoint[].
Steps to Reproduce
mount a Sick LMS291 lidar sensor to a vehicle
enable ros output
receive pointcloud2 data in a ros2 node and try to decode it
Expected behavior
the expected behavior is that the data in described in message.fields should match the data stored in message.data. The data described by the datastructure WbLidarPoint (https://cyberbotics.com/doc/reference/lidar?tab-language=c). It does not only contain x,y,z as floats but also the layer (int32) and the time(float32). This need to be added to the fields array.
Describe the Bug The lidar plugin in the webots ros2 driver outputs data as sensor_msg.pointcloud2 data structure. This data structure have an array how the binary data is structured. the plugin describes the data as 3 float values (x,y,z). Unfortunately this is not according to the webots lidar point data structure WbLidarPoint[].
Steps to Reproduce
Expected behavior the expected behavior is that the data in described in message.fields should match the data stored in message.data. The data described by the datastructure WbLidarPoint (https://cyberbotics.com/doc/reference/lidar?tab-language=c). It does not only contain x,y,z as floats but also the layer (int32) and the time(float32). This need to be added to the fields array.
Affected Packages List of affected packages:
System