tu-darmstadt-ros-pkg / hector_gazebo

hector_gazebo provides packages related to the simulation of robots using gazebo (gazebo plugins, world files etc.).
http://www.ros.org/wiki/hector_gazebo
181 stars 155 forks source link

diffdrive_plugin_6w usage? #65

Open GrantDare opened 4 years ago

GrantDare commented 4 years ago

Hi team,

I am attempting to simulate a 6-wheeled robot in gazebo and am looking to use your plugin. Could you please supply me an example usage for a .urdf.xacro description? I have scoured and cannot find an up to date (or actually even any on the 6w plugin) example to draw from.

Here is my attempt?

  <gazebo>
    <plugin name="6w_diff_drive" filename="libdiffdrive_plugin_6w.so">
      <publishWheelTF>true</publishWheelTF>
      <publishWheelJointState>true</publishWheelJointState>
      <alwaysOn>true</alwaysOn>
      <frontLeftJoint>front_left_wheel</frontLeftJoint>
      <frontRightJoint>front_right_wheel</frontRightJoint>
      <midLeftJoint>center_left_wheel</midLeftJoint>
      <midRightJoint>center_right_wheel</midRightJoint>
      <rearLeftJoint>rear_left_wheel</rearLeftJoint>
      <rearRightJoint>rear_right_wheel</rearRightJoint>
      <wheelSeperation>1.57</wheelSeperation>
      <wheelDiameter>${wheel_radius*2}</wheelDiameter>
      <wheelTorque>14.9</wheelTorque>
      <wheelAcceleration>1.8</wheelAcceleration>
      <commandTopic>/cmd_vel</commandTopic>
      <odometryFrame>odom</odometryFrame>
      <odometryTopic>/odom</odometryTopic>
      <odometrySource>world</odometrySource>
      <robotBaseFrame>base_link</robotBaseFrame>
      <updateRate>25</updateRate>
    </plugin>
  </gazebo>

The implementation runs and I can control the robot linearly but can't enact any angular velocity on the system.

Thanks, Grant