Skip to content
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

High-level command for RL agent #16

Open
weizhaoji opened this issue Mar 14, 2021 · 2 comments
Open

High-level command for RL agent #16

weizhaoji opened this issue Mar 14, 2021 · 2 comments

Comments

@weizhaoji
Copy link

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?

@bitsauce
Copy link
Owner

bitsauce commented Apr 2, 2021

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!

@xiaoqingkong
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants