pedsim_ros icon indicating copy to clipboard operation
pedsim_ros copied to clipboard

Robot doesn't move in Gazebo?

Open tcjcxy30 opened this issue 4 years ago • 1 comments

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?

tcjcxy30 avatar Sep 21 '20 09:09 tcjcxy30

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

jusemat avatar Oct 18 '21 19:10 jusemat