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

Ros2 LIDAR data structure definition does not match data #422

Open
sebastianohl opened this issue Mar 26, 2022 · 2 comments
Open

Ros2 LIDAR data structure definition does not match data #422

sebastianohl opened this issue Mar 26, 2022 · 2 comments
Labels
bug Something isn't working
Milestone

Comments

@sebastianohl
Copy link
Contributor

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

  1. mount a Sick LMS291 lidar sensor to a vehicle
  2. enable ros output
  3. 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.

Affected Packages
List of affected packages:

  • webots_ros2_driver

System

  • Webots Version: R2022a
  • ROS Version: galactic
  • Operating System: Ubuntu 20.04
  • Graphics Card: vmware
@omichel
Copy link
Member

omichel commented May 25, 2022

@ad-daniel: was this issue fully addressed in #4545? If so, can we close it?

@ad-daniel
Copy link
Contributor

Not yet, only on the ROS1 side at the moment

@ygoumaz ygoumaz added the bug Something isn't working label Mar 2, 2023
@ygoumaz ygoumaz added this to the 2023.1.2 milestone Jul 26, 2023
@lukicdarkoo lukicdarkoo modified the milestones: 2023.1.2, 2025.0.1 Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

5 participants