huawei-noah / SMARTS

Scalable Multi-Agent RL Training School for Autonomous Driving
MIT License
956 stars 190 forks source link

[Help Request] Can not find lane_position from observations #2142

Closed JiyuanTHU closed 8 months ago

JiyuanTHU commented 9 months ago

High Level Description

I want to use the lane_position information for RL training. But, even if I have set the lane_position=True, explicitly, I still not get the lane_postion from the env output variables.

Version

1.4.0

Operating System

ubuntu20.04

Problems

image I want to use the lane_position information for RL training. But, even if I have set the lane_position=True, explicitly, I still not get the lane_postion from the env output variables.

Gamenot commented 9 months ago

Hello @JiyuanTHU, apologies for this oversight, the formatted observations do not yet contain lane position. You can still still currently get that information from the unformatted observations that are included in info:

info[AGENT_ID].env_obs.ego_vehicle_state.lane_position

Gamenot commented 9 months ago

2143 fixes this.