autowarefoundation / autoware.universe

https://autowarefoundation.github.io/autoware.universe/
Apache License 2.0
1k stars 641 forks source link

distortion_corrector the pointcloud layout is not compatible with PointXYZIRCAEDT #9020

Open xmfcx opened 4 weeks ago

xmfcx commented 4 weeks ago

Checklist

Description

https://autowarefoundation.github.io/autoware-documentation/main/tutorials/ad-hoc-simulation/rosbag-replay-simulation/#steps following this, autoware cannot localize and prints errors.

Expected behavior

Tutorial works.

Actual behavior

Fails to localize and prints errors.

1727948014.0067625 [component_container-33] [ERROR 1727948014.005983387] 
[sensing.lidar.right.distortion_corrector_node]: The pointcloud layout is not compatible with PointXYZIRCAEDT.
Aborting (isInputValid() at
/home/mfc/projects/autoware/src/universe/autoware.universe/sensing/autoware_pointcloud_preprocessor/src/distortion_corrector/distortion_corrector.cpp:173)

Full log file: https://gist.github.com/xmfcx/1613d133acb87e1a71d9cf57b7fc8381

https://github.com/user-attachments/assets/845b9e53-714f-4326-a47e-b689b705e7ca

Steps to reproduce

Follow https://autowarefoundation.github.io/autoware-documentation/main/tutorials/ad-hoc-simulation/rosbag-replay-simulation/#steps with the latest autoware.

Here is my latest snapshot of problem.repos file: https://gist.github.com/xmfcx/79c4571293336ad39a9f3262ac29ef32

Versions

Ubuntu 22.04, ROS 2 humble, Autoware latest main 2024-10-03 10:10:37 UTC

Possible causes

@vividf maybe you might know, a lot of changes were being merged related to the sample_sensor_kit_launch and about autoware_pointcloud_preprocessor package.

Additional context

No response

xmfcx commented 4 weeks ago

Potential culprit:

xmfcx commented 4 weeks ago

So sorry :bow: , I had an outdated AWSIM running in the background, it was fixed when I closed the running simulator :sweat_smile:

vividf commented 3 weeks ago

@xmfcx I follow the https://autowarefoundation.github.io/AWSIM-Labs/main/GettingStarted/QuickStartDemo/ and install the latest v1.5.2, then I also get the same error.

Since you mentioned that it is fixed, I would like to ask how can I fix this. Thanks!

LitoNeo commented 6 days ago

For AWSIM, the data type of output /sensing/lidar/top/pointcloud_raw_ex is XYZIRCEADT(as the image shows), but it seems what the distortion_corrector need is XYZIRCAEDT. image

vividf commented 3 days ago

@LitoNeo Thanks, I think you are right :)

related link: https://github.com/autowarefoundation/AWSIM-Labs/issues/173