Robotics StackExchange | Archived questions

Problems when making the robot move in rviz

Hi,all
I made my bipedal robot walk in gazebo simulation environment reccently,and I'd like to make it also move in the rviz.
I added the following lines to the robot urdf file:
<gazebo> <plugin filename="libgazebo_ros_p3d.so" name="gazebo_ros_3d"> <alwaysOn>true</alwaysOn> <updateRate>100.0</updateRate> <bodyName>base_link</bodyName> <topicName>/ground_truth_odom</topicName> <frameName>map</frameName> </plugin> </gazebo>
Then I wrote a node which subscribes to the topic groundtruthodom and publishes odom to base_link tf as soon as it receives msgs.And I changed Fixed Frame to odom in rviz correspondingly.
As a result, the robot itself responds so slowly in rviz .About 2~3 seconds the robot changes its pose in rviz ,most of the time it remains still.Why would this happen?Thanks in advance.

Asked by happylyang on 2016-03-14 05:35:00 UTC

Comments

Answers