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

Robot doesn't move in Gazebo? #65

Open tcjcxy30 opened 3 years ago

tcjcxy30 commented 3 years ago

Hi: I use the pedsim_gazebo_plugin to use Gazebo simulator. However, the robot in the gazebo doesn't move while the robot in rviz moving. My settings are as follow,

  1. In file "scenario.xml" add a robot with type "0";
  2. I run the pedsim_simulator, jackal_description, and robot_control, and then run the pedsim_gazebo_plugin.
  3. The initial position of the robot in Gazebo and rviz is right.
  4. When I publish the cmd_vel to the topic "/pedbot/control/cmd_vel", the robot in rviz moves but in gazebo it not. So the laser point never change in rviz.

    How can I fix it?

jusemat commented 2 years ago

Hi: This question is from a year ago, but I want to answer in case someone has this same inconvenience. You should check the command topic of your robot driver or the namespace it must be "/pedbot/control".

I hope my answer is helpful