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

Add ego car color in top down view and fix expert bug. #718

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

CarlDegio
Copy link
Contributor

What changes do you make in this PR?

Use config copy in expert to avoid origin config changing.

Now cars in semantic top-down view are draw with the same colors. But the color of ego car should be distinguished. Ego car use constant "EGO_VEHICLE" will be better.

Checklist

  • I have merged the latest main branch into current branch.
  • I have run bash scripts/format.sh before merging.
  • Please use "squash and merge" mode.

@CarlDegio
Copy link
Contributor Author

waiting for check

Comment on lines 460 to +464
elif MetaDriveType.is_vehicle(type):
ret = np.array([224, 177, 67])
# self vehicle
elif MetaDriveType.is_ego_vehicle(type):
ret = np.array([67, 177, 224])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this work if is_vehicle call before is_ego_vehicle?

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