-
Notifications
You must be signed in to change notification settings - Fork 111
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 image problem #31
Comments
Hello , Is your CARLA version 0.9.6? Looking at this difference may be that your version is not compatible. |
Yes, this is a problem due to the Carla version. I've tested it on 0.9.6, it works well. However, we would like to use it on the latest version since other part of our work is already done. I've modified some incompatible api to make the environment error-free, but this lidar display is still wrong (with 0.9.13, it's basically black, you can only see some edges of the pavement). While I'm trying to figure out what changed (data order? data meaning?), I would like to know if somebody has already been through this. |
Hi, I am sorry I have not met this problem as you said that ''with 0.9.13,it's basically black...", but I've successfully test the project on 0.9.13, from 0.9.6 to 0.9.13 version, I only add "client.get_trafficmanager().set_synchronous_mode(True)" in ''carla_env.py'' with comments ''Set fixed simulation step for sychronous mode'' this line. Good luck.
|
Unfortunately, that doesn't help. The only part I've changed relating to rendering lidar data is changing to gym-carla/gym_carla/envs/carla_env.py Lines 495 to 496 in c01ae77
By "basically black", I mean I can't see the red rings like this: And I've noticed that it seems like the heading of lidar data is not right, it's facing right instead of up. |
I have the same problem here. Looking forward to solutions for this issue. |
@YanlinQi @Morphlng Hi, you may try to change this line : I've successfully test my project in this setting. |
@ZuojinTang Thanks a lot for providing this solution. It indeed works! I have been wondering why there is a "-" before location.z, but didn't try it out. Many thanks to you! |
By changing this line, the lidar image no longer seem black, yet the direction is still incorrect. The BEV and WayPoints is vertically displayed but the lidar image is horizontally displayed, a screenshot below can show this more directly. I think there is still something wrong about those |
I just tried to change the rotation of y, and it works for the rotation problem:
|
Could anyone tell me why there is such a big difference between my LiDAR images and the author's?
The text was updated successfully, but these errors were encountered: