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

Introducing a single agent, multi-goal, four-ways intersection environment #699

Merged
merged 73 commits into from
Aug 20, 2024
Merged
Changes from 1 commit
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
d9bf4bb
better way to handle U turn in Intersection
pengzhenghao Apr 7, 2024
2c37151
INIT
pengzhenghao Apr 7, 2024
481a92e
Revert "better way to handle U turn in Intersection"
pengzhenghao Apr 7, 2024
964b50f
add doc
pengzhenghao Apr 7, 2024
1e242f2
fix bug
pengzhenghao Apr 7, 2024
6d5084e
add docs
pengzhenghao Apr 7, 2024
6bac6a3
If navigation_module is set to None, remove navigation in StateObserv…
pengzhenghao Apr 7, 2024
0149380
WIP: Implementing a navigation/goal manager
pengzhenghao Apr 7, 2024
ddbb3da
Implemented goal / navigation managers
pengzhenghao Apr 7, 2024
1e084d9
adding a U-turn intersection block
pengzhenghao Apr 8, 2024
437cd6a
add assert in node_road_network
pengzhenghao Apr 8, 2024
9ba75f9
fix potential bug
pengzhenghao Apr 8, 2024
6fc9395
Now the environment is running correctly! (but reset is broken)
pengzhenghao Apr 8, 2024
8b3702d
introduce observation
pengzhenghao Apr 8, 2024
7bbd09b
format
pengzhenghao Apr 8, 2024
4fef886
add more docs
pengzhenghao Apr 8, 2024
aaa2f6b
introduce a config to disable navigation arrows
pengzhenghao Apr 17, 2024
7d5a102
minor
pengzhenghao Apr 17, 2024
0b26dd8
use varying dynamics agent in multi-goal env
pengzhenghao Apr 17, 2024
d887fbb
support use a list of types to control PG map; allow set map=None to …
pengzhenghao Apr 17, 2024
6a9a7b7
allow change radius of the intersection; set accident_prob=1.0
pengzhenghao Apr 17, 2024
686957d
1) introduce goal-agnoistic info["obs/ego/*"], 2) rename keys in info…
pengzhenghao May 10, 2024
d40dfc2
optimize the reward structure, now:
pengzhenghao May 12, 2024
07e758f
to follow setting, use lane_num=1
pengzhenghao May 13, 2024
a486d64
format, ready to launch SB3 td3
pengzhenghao May 13, 2024
71cf393
Remove varying dynamics
pengzhenghao May 13, 2024
c8d3190
lane_num=1
pengzhenghao May 13, 2024
90c36d4
allow do more visualization
pengzhenghao May 13, 2024
0a51e0e
add default arrive_dest
pengzhenghao May 13, 2024
8f07d2f
add some comments
pengzhenghao May 13, 2024
63dfc12
now we return full observation for different goals in info["obs/goals…
pengzhenghao May 13, 2024
5ed96cc
[DANGER] allow to generate sidewalk for "negative road". Not sure the…
pengzhenghao May 13, 2024
b015c67
Add SIDEWALK to the side detector & the lane line detector.
pengzhenghao May 13, 2024
c8ff69e
use 240line for sidedetector, remove vehicle/lane detector
pengzhenghao May 13, 2024
939e4d0
fix a bug
pengzhenghao May 13, 2024
c4051b0
Fix a severe bug that messes up observation
pengzhenghao May 14, 2024
0026043
introduce a penalty for wrong way
pengzhenghao May 14, 2024
129b5ce
When draw the line to next checkpoint, also draw the line from next c…
pengzhenghao May 14, 2024
b042737
Add crash_sidewalk_penalty for MetaDrive env, default crash_sidewalk_…
pengzhenghao May 14, 2024
c6594a4
Set on_continuous_line_done=False for multigoal env
pengzhenghao May 14, 2024
3103a68
Add config "out_of_road_done" for MDEnv
pengzhenghao May 14, 2024
cb9d0a6
Remove U turn
pengzhenghao May 14, 2024
7e078f1
Set out_of_road_done=False
pengzhenghao May 14, 2024
05f15b7
Add penalty for out_of_route (this might be helpful in multigoal sett…
pengzhenghao May 14, 2024
ed211e3
Change reward scheme
pengzhenghao May 14, 2024
6551541
Change radius to 12
pengzhenghao May 14, 2024
58e64cd
remove goal_agnostic_reward
pengzhenghao May 14, 2024
384549b
add GOAL_DEPENDENT_STATE
pengzhenghao May 14, 2024
8787adb
up
pengzhenghao May 14, 2024
8d3527b
change obs
pengzhenghao May 14, 2024
09cb385
Add some randomness in map
pengzhenghao May 16, 2024
bd99d63
enable U turn
pengzhenghao May 16, 2024
f3ca7a7
WIP: Now support conventional RL env
pengzhenghao Jun 28, 2024
81a7796
fix bug
pengzhenghao Jun 28, 2024
9d51ab2
Fix a bug and use Customize Observation
pengzhenghao Jul 5, 2024
c831be5
Better handle lidars' configs
pengzhenghao Jul 5, 2024
61dfd8f
Remove those hyper diff from MetaDriveEnv
pengzhenghao Jul 6, 2024
40afd75
Merge branch 'refs/heads/main' into multigoal
pengzhenghao Jul 6, 2024
b1e8cca
fix
pengzhenghao Jul 6, 2024
5ff1fd2
Fix
pengzhenghao Jul 12, 2024
05465b3
Merge branch 'main' into multigoal
pengzhenghao Aug 7, 2024
f902dca
format
pengzhenghao Aug 8, 2024
0132113
remove a file
pengzhenghao Aug 8, 2024
0bb3e65
Add an example notebook for multigoalintersection
pengzhenghao Aug 8, 2024
9b6cbad
Setup FFpmeg in CI to support video gen in docs
pengzhenghao Aug 8, 2024
6f00133
minor
pengzhenghao Aug 8, 2024
937862b
minor
pengzhenghao Aug 8, 2024
0c14923
Add docs
pengzhenghao Aug 8, 2024
e247fc9
Fix test
pengzhenghao Aug 8, 2024
45b7ebb
format
pengzhenghao Aug 8, 2024
abd1c1d
try fix ffmpeg
pengzhenghao Aug 8, 2024
c7ed1ee
Merge branch 'main' into multigoal
pengzhenghao Aug 20, 2024
8523f0b
Fix test
pengzhenghao Aug 20, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
allow do more visualization
  • Loading branch information
pengzhenghao committed May 13, 2024
commit 90c36d4f8622d111cb77c7cb5e69e1adb9e9a886
7 changes: 4 additions & 3 deletions metadrive/envs/multigoal_intersection.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,10 +411,11 @@ def done_function(self, vehicle_id: str):
use_render=True,
manual_control=True,
vehicle_config=dict(
show_navi_mark=True, show_line_to_navi_mark=True,
show_lidar=False,
show_navi_mark=True,
show_line_to_navi_mark=True,
show_lidar=True,
show_side_detector=False,
show_lane_line_detector=True,
show_lane_line_detector=False,
),
accident_prob=1.0,
decision_repeat=5,
Expand Down
Loading