srl-freiburg / pedsim_ros

Pedestrian simulator powered by the social force model
https://github.com/srl-freiburg/pedsim_ros
BSD 2-Clause "Simplified" License
447 stars 169 forks source link

People are not correctly assigned to a group #72

Open kurshakuz opened 3 years ago

kurshakuz commented 3 years ago

Hello everyone! For some reason, whenever I create a group in a following manner:

  <waypoint id="waypoint_id_1" r="0.3" x="2.29508399963" y="5.5906701088"/>
  <waypoint id="waypoint_id_2" r="0.3" x="-2.9281039238" y="5.60592746735"/>
  <waypoint id="waypoint_id_3" r="0.3" x="-2.78732061386" y="-1.07651662827"/>
  <waypoint id="waypoint_id_4" r="0.3" x="2.2527050972" y="-1.39512872696"/>

  <agent dx="0.5" dy="0.5" n="3" x="2.3" y="5.6" type="1">
    <addwaypoint id="waypoint_id_1"/>
    <addwaypoint id="waypoint_id_2"/>
    <addwaypoint id="waypoint_id_3"/>
    <addwaypoint id="waypoint_id_4"/>
  </agent>

people that are spawned in this location are assigned randomly to a group each time. It can be either no group, group of 2 (1 is by himself), and a group of 3. The same behavior is for different number of people ("n"), it also vary from 2 to n, and same for different "type" number. Did anyone else encounter this problem?

NamTruongTran0 commented 9 months ago

Hey kurshakuz,

did you solved it?

Thank you so much in advance :)