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

plot trajectory #9

Open
mostafanorouzi opened this issue Jan 2, 2022 · 3 comments
Open

plot trajectory #9

mostafanorouzi opened this issue Jan 2, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@mostafanorouzi
Copy link

Hi
In the code crowdnav in the evaluation section, there is a trajectory display of people's movements, but in your code, this section has been removed and you have also used it in your article. How can we show a trajectory?

Thanks

@Shuijing725
Copy link
Owner

Shuijing725 commented Jan 2, 2022

Hi @mostafanorouzi,

First, we added a variable in the crowd_sim environment to store the x and y positions of all agents from the beginning of an episode.
Then, when done is True, we interpolated the trajectory of each agent, and generated a new plot with the interpolated lines and the stored x-y positions.
Finally, save the plot to the computer.

Does it help?

@mostafanorouzi
Copy link
Author

Hi @mostafanorouzi,

First, we added a variable in the crowd_sim environment to store the x and y positions of all agents from the beginning of an episode. Then, when done is True, we interpolated the trajectory of each agent, and generated a new plot with the interpolated lines and the stored x-y positions. Finally, save the plot to the computer.

Does it help?

Thanks for the explanation
But I could not implement this in your code. In the previous code, it is possible to save the trajectory and video in the render function, but in your code, this part has been removed.
Is it possible to add this part to the code? ‌

@Shuijing725 Shuijing725 added the enhancement New feature or request label Jan 3, 2022
@Shuijing725
Copy link
Owner

No problem, we need to clean the code and will release this feature in a few weeks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants