Skip to content

Why use agent-centric data then use wrapper to support scene-centric in roll-out? #7

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

Open
daeheepark opened this issue May 13, 2024 · 1 comment

Comments

@daeheepark
Copy link

During roll out, it uses EnvUnifiedSimulation to get observation in script/scene_editor.py

In line 259 of EnvUnifiedBuilder, it is written that "# hardcode to agent-centric and then use a wrapper to support scene-centric".
However, what is the reason behind that?

Actually, I tried to get observation from UnifiedDataset with scene-centric manner, and converted them to agent-centric with "convert_scene_data_to_agent_coordinates" method from tbsim.utils.trajdata_utils.py.
Then, the SceneDiffuserTrafficModel works, but the results look weird. (It only predicts straight trajectories)

What is the proper way to roll-out trajectories with scene-centric data from UnifiedDataset?

@daeheepark
Copy link
Author

스크린샷 2024-05-13 143235

I have wrote the predict_step function in SceneDiffuserTrafficModel as above.
The output action only contains straight trajectories as below:

스크린샷 2024-05-13 143547

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