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

Issues with ScenarioEnv Navigation Info #810

Open
chrisgao99 opened this issue Feb 6, 2025 · 0 comments
Open

Issues with ScenarioEnv Navigation Info #810

chrisgao99 opened this issue Feb 6, 2025 · 0 comments

Comments

@chrisgao99
Copy link

Hello,

I'm trying to understand the ScenarioEnv navigation info, which is the 22 dimension array in obs["state"][19:41]. I read the metadrive/metadrive/component/navigation_module/trajectory_navigation.py and according to the implementation, navi_info should contain :

  • The relative positions of up to 10 navigation waypoints in the ego vehicle’s local coordinate system, one heading direction,one rhs direction (each with 2 dimensions).
  • The lateral position of the vehicle relative to the reference trajectory (1 dimension).
  • The heading difference between the vehicle and the trajectory (1 dimension).

However, I noticed two issues while printing navi_info at every env step:

  1. The last two dimensions (lateral position and heading error) are always 0.
  2. Each odd-even pair of navi_info dimensions are identical.

An example output of the 22 dim could be like this:
navi info: [0.5557164 0.5557164 0.5890485 0.5890485 0.6223807 0.6223807 0.6557128 0.6557128 0.68904495 0.68904495 0.7223771 0.7223771 0.7557093 0.7557093 0.7890414 0.7890414 0.82237357 0.82237357 0.50001776 0.5000794 0. 0. ]
Like the example

  • ckpt position in heading and rhs are always the same, is this normal?
  • when the road is a curve, no matter in which direction it goes, the heading and rhs value are always bigger than 0.5, so how can I tell the car should go left or right?
  • the last two dimensions are always zero, including pg map, nuscenes map, so why are we keeping the two dimension? and I think we already have heading difference and lateral in ego car info obs["state"][0:19]
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

1 participant