Airsim: Access to information about the City environment using the API only

Created on 5 Feb 2018  Â·  5Comments  Â·  Source: microsoft/AirSim

In general, it is possible to retrieve the location of other cars and pedestrians on the road, if you dig in to Unreal Engine programming #232. Moreover, it is possible to retrieve the object pose using the API and the Unreal Engine #728.

Now I have a specific question about the City environment. Is it possible to retrieve information about how many cars are on the road (number and location), which trajectories they are following, how many road crossings there are in the environment and their location using the API only?

If it is not, is there a plan to add this feature?

PS: How is the trajectory for other cars on the road computed?

environment feature request

Most helpful comment

An OpenDRIVE Export of the roads, the signals and the surrounding objects would be great!

All 5 comments

Unfortunately, this information is not available right now. We are considering several options to generate this information but nothing has solidified yet. One approach is to use OpenDrive format to export this information. Other approach is to generate 2D map as image. If you have any other ideas, please feel free to chip in.

Is there a global map of the city environment ?

An OpenDRIVE Export of the roads, the signals and the surrounding objects would be great!

There are a couple new APIs that can help with this.
simListSceneObjects(regex) will give you a list of objects in the scene, so you can use a regex to find all stoplights, cars, etc. by name patterns.
simGetObjectPose(obj_name) can then be called with the object names found from simListSceneObjects().
So together, they provide a pretty straightforward way to discover sets of objects and ask for pose information about them.

simListSceneObjects only lists stationary objects. The moving cars and pedestrians in the CityEnviron environment aren't included. Presumably they're managed by the CityEnv_PedManager_26 and CityEnviron_NPCVehicleManager objects, but Airsim's API will only let you access stationary cars, and none of the pedestrians.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

machenxiang picture machenxiang  Â·  3Comments

sinanonur picture sinanonur  Â·  3Comments

git-moeen picture git-moeen  Â·  4Comments

kharyal picture kharyal  Â·  3Comments

HereIsPatrick picture HereIsPatrick  Â·  3Comments