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

Lidar none when cam angle change #20

Open
Victoire7 opened this issue Sep 29, 2024 · 2 comments
Open

Lidar none when cam angle change #20

Victoire7 opened this issue Sep 29, 2024 · 2 comments

Comments

@Victoire7
Copy link

When I change cam angle rot_x to -90, I got None Lidar value from message as:

client.sendMessage(SetCameraPositionAndRotation(z = -20, rot_x = -90))

Is there any way to get Lidar data for downward camera view?

@Yux1angJi
Copy link

same😭

@David0tt
Copy link
Owner

This is strange, did you find a solution in the meantime?

Did you make sure to set exportLiDAR=True and maxLidarDist=120 in the Dataset? Or in general, did you check that the height is not too large for the maxLidarDist?

Otherwise for debugging steps: when you run the unmodified presentation_VisDrone_LiDAR.py, do you get LiDAR data?

In general, obtaining the LiDAR is a bit clunky and i can not guarantee that there are no errors or strange edge cases where it does not work, note the information in this note:
The LiDAR simulation currently uses the ingame raycasting and the depth map from the graphics. For the purposes of the ingame ray casting low poly objects are used (e.g. tree tops are only balls). The cast rays are then updated with the correct depth from the graphics depth map, if it is available. Of course this depth map is only available for the objects that are in the current frame. Therefore the LiDAR is not exact for objects outside of the current frame image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants