Using diff drive to drive a new robot
Hello,
I'm trying to make a model of my own robot and plugins. However, I can't drive the robot. Moreover,the information is not being published into /gz/cmd_vel or /gazebo/cmd_vel or /gz/odom topics.
Here is the header of my model.sdf
<?xml version="1.0" ?>
<sdf version="1.4">
<model name="myrobot">
<link name="chassis">
<pose>0 0 .1 0 0 0</pose>
Here are the plugins of my model.sdf
<plugin name="modelplugin" filename="libmyrobot_sonar_model_plugin.so"/>
<plugin name="differential_drive_controller" filename="libgazebo_ros_diff_drive.so">
<alwaysOn>true</alwaysOn>
<updateRate>10</updateRate>
<leftJoint>left_wheel_hinge</leftJoint>
<rightJoint>right_wheel_hinge</rightJoint>
<wheelSeparation>0.5380</wheelSeparation>
<wheelDiameter>0.2410</wheelDiameter>
<torque>20</torque>
<commandTopic>cmd_vel</commandTopic>
<odometryTopic>odom</odometryTopic>
<odometryFrame>odom</odometryFrame>
<robotBaseFrame>base_footprint</robotBaseFrame>
<robotNamespace>gz</robotNamespace>
</plugin>
...
I don't understand these parameters, anything else except <robotbaseframe> seems right for my robot. Can anybody explain what should I write in robotBaseFrame tag.
What should I to drive the robot? Do I need any other plugin? Any answer will be much appreciated.