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

Is there a way to center on the road instead of ego-vehicle? #613

Open
thort1 opened this issue Aug 12, 2024 · 1 comment
Open

Is there a way to center on the road instead of ego-vehicle? #613

thort1 opened this issue Aug 12, 2024 · 1 comment

Comments

@thort1
Copy link

thort1 commented Aug 12, 2024

Would anyone know how to center the rendered area on a specific section of road instead of on the ego-vehicle?

@SEUCGX
Copy link

SEUCGX commented Sep 4, 2024

common/graphics.py find window_position(self) with code like:
if self.observer_vehicle:
return self.observer_vehicle.position
elif self.env.vehicle:
return self.env.vehicle.position
else:
return np.array([0, 0])

So, you can direct use np.array([0, 0]) but not self.observer_vehicle.position

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

2 participants