metadriverse / scenarionet

ScenarioNet: Scalable Traffic Scenario Management System for Autonomous Driving

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to opt out generating those blue cubes in output gifs? Is it possible to get first person view / ego view results?

Kevin6liu6 opened this issue · comments

When I was trying to generate 3D rendered gifs, I get blue cubes on the way of ego vehicle (I used mode="rgb_array"), is it possible to opt it out? Or which part of code I should look into if I want to modify the code base on my own? Also, I was to get ego view results, is it possible?
image

Just set env_config["vehicle_config"]["show_navi_mark"]=False when creating the environment with the config dict env_config.

Got it! Thank you for answering.

Also, is it possible to get ego car view renderings? Or only third person view is available?

Of course. Just put these lines into the config:


"camera_dist": 0.8,
"camera_height": 1.5,
"camera_pitch": 15,
"camera_fov": 60,
"camera_smooth": False,

You can adjust the pitch parameter to change the angle and use the dist/height to change its position.

I will try to adjust the parameters! Thank you for reply, it helps

Feel free to reopen if any question exists