Carla-ppo icon indicating copy to clipboard operation
Carla-ppo copied to clipboard

High-level command for RL agent

Open weizhaoji opened this issue 4 years ago • 2 comments
trafficstars

hi @bitsauce, in your model,the input state of RL agent is the vae output and measurement(steer,acc,break),but not include the high-level command,such as turn left,turn right,go straight,fllow the road.I want to add these high-level command to train RL agent,what should I do?

weizhaoji avatar Mar 14 '21 01:03 weizhaoji

Hi! Sorry for the late response.

I actually have an example of this in my repo. My repo consists of two different Carla environments:

  1. The lap environment (where the agent must follow a pre-defined lap)
  2. The route environment (where the agent must follow a high-level route, starting at a random point A and ending at a random point B)

The route environment is implemented in CarlaEnv/carla_route_env.py, and you can switch to this environment by setting USE_ROUTE_ENVIRONMENT = True in train.py (or in the .py file you want to run.) The current high-level command expected by the environment is stored in CarlaLapEnv.current_road_maneuver.

Hope this answered your question!

bitsauce avatar Apr 02 '21 17:04 bitsauce

hi @bitsauce,how about the file CarlalapEnv.current_road_maneuver? Looking forward to your reply!

xiaoqingkong avatar Jun 09 '22 13:06 xiaoqingkong