Open mostafanorouzi opened 2 years ago
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?
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
isTrue
, 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?
No problem, we need to clean the code and will release this feature in a few weeks.
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