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

Fix info dict key error with latest MetaDrive #16

Merged
merged 3 commits into from
May 25, 2022
Merged

Conversation

pengzhenghao
Copy link
Member

In this PR, I will fix:

  • Wrong state observation. The path to StateObservation is wrong with latest MetaDrive and we have to change the import code for this.
  • Wrong info dict. In latest MetaDrive, in the first step of a newly spawn agent the info dict contains velocity entries like: {velocity=0.0}. Therefore in the DrivingCallback, the criterion to check whether the info dict is came from a newly spawn agent if "velocity" in info become invalid since velocity is there even the agent is just born. I changed this criterion to if "step_reward" in info now!

Related to #14

pengzhenghao added 3 commits May 25, 2022 15:37
@pengzhenghao pengzhenghao merged commit 3a06a48 into main May 25, 2022
@pengzhenghao pengzhenghao deleted the fix-info-key-error branch May 25, 2022 08:09
@yihanshipu
Copy link

thanks

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

Successfully merging this pull request may close these issues.

2 participants