srl-freiburg / pedsim_ros

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

Social drive robot mode not working #71

Open sasilva1998 opened 3 years ago

sasilva1998 commented 3 years ago

I am assigning the robot the following configuration with waypoints with robot_mode equal to 2 but it does not move according to the social forces model, does anyone have an idea why?

<!--robot-->
  <agent x="0" y="0" n="1" dx="0" dy="0" type="2">
    <addwaypoint id="office4"/>
    <addwaypoint id="office3"/>
  </agent>
ThaiLe79 commented 3 years ago

I am assigning the robot the following configuration with waypoints with robot_mode equal to 2 but it does not move according to the social forces model, does anyone have an idea why?

<!--robot-->
  <agent x="0" y="0" n="1" dx="0" dy="0" type="2">
    <addwaypoint id="office4"/>
    <addwaypoint id="office3"/>
  </agent>

Have you done this yet? I am also having the same problem

sasilva1998 commented 3 years ago

i haven't been able to solve it, for my purpose I just started to write my own python code to calculate the forces and control a robot I have.

ThaiLe79 commented 3 years ago

I see the topic "/pedsim_simulator/robot_position". I thought it would be possible to write a node to use the information in this topic to control the robot I have. Do you do the same?