Is this a small mistake in the example of carla data convertion given? #4134
Unanswered
yalezhang2021
asked this question in
Q&A
Replies: 1 comment
-
Hi @yalezhang2021, you're right, thank you for pointing it out. I will get it fixed in the next version of the docs |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In this page https://carla.readthedocs.io/en/latest/ref_sensors/#radar-sensor there is an example of radar data's convertion.
To get a numpy [[vel, altitude, azimuth, depth],...[,,,]]:
points = np.frombuffer(radar_data.raw_data, dtype=np.dtype('f4'))
points = np.reshape(points, (len(radar_data), 4))
I think in the notation it should be: # To get a numpy [[vel, azimuth, altitude, depth],...[,,,]]:
The positions of azimuth and altitude are reversed.
Beta Was this translation helpful? Give feedback.
All reactions