ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Publishing in different topics for each wheel

asked 2015-08-20 11:34:22 -0500

Ros_user gravatar image

updated 2015-08-22 01:57:07 -0500

ahendrix gravatar image

How can I (having a 6-wheeled robot and using the DiffDrivePlugin6w from hectorgazebo plugins) make that each wheel subscribes in a different topic: Now I've been able to make that all the wheels move at the same time (they are all "answering" to the cmd_vel topic), but I'd like something like cmd_vel_front_left topic,....

<gazebo>
  <plugin name="DiffDrivePlugin6W" filename="libdiffdrive_plugin_6w.so">
      <rosDebugLevel>Debug</rosDebugLevel>
      <publishWheelTF>false</publishWheelTF>
      <publishWheelJointState>true</publishWheelJointState>
      <alwaysOn>true</alwaysOn>
      <frontLeftJoint>front_left_wheel_joint</frontLeftJoint>
      <frontRightJoint>front_right_wheel_joint </frontRightJoint>
      <midLeftJoint>medium_left_wheel_joint </midLeftJoint>
      <midRightJoint>medium_right_wheel_joint </midRightJoint>
      <rearLeftJoint>back_left_wheel_joint </rearLeftJoint>
      <rearRightJoint>back_right_wheel_joint </rearRightJoint>
      <wheelSeparation>0.569</wheelSeparation>
      <wheelDiameter>0.145</wheelDiameter>
      <wheelTorque>20</wheelTorque>
      <wheelAcceleration>1.8</wheelAcceleration>
      <commandTopic>cmd_vel</commandTopic>
      <odometryTopic>odom</odometryTopic>
      <odometryFrame>odom</odometryFrame>
      <odometrySource>world</odometrySource>
      <robotBaseFrame>base_link</robotBaseFrame>
      <updateRate>10.0</updateRate>
  </plugin>
</gazebo>

Thanks!!

edit retag flag offensive close merge delete

Comments

3

Please do not use CAPS!

dornhege gravatar image dornhege  ( 2015-08-20 11:54:08 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-08-21 01:08:55 -0500

mgruhler gravatar image

You would need to write a new driver for this. The DiffDrivePlugin6W takes in the /cmd_vel topic for the base_link and not for each wheel seperately! It then computes the single wheel velocities based on this command.

Thus, using this Plugin, you cannot do what you want without modification.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2015-08-20 11:34:22 -0500

Seen: 328 times

Last updated: Aug 22 '15