Skid_steer_drive_controller output an opposite direction
After receiving a geometry_msg in a +x direction, but my robot run with its -x direction.(each x direction of links are the same in my robot).
My skid_steer_drive_controller config is
<gazebo>
<plugin name="skid_steer_drive_controller" filename="libgazebo_ros_skid_steer_drive.so">
<updateRate>100</updateRate>
<robotNamespace>/</robotNamespace>
<leftFrontJoint>f_Lwheel_j</leftFrontJoint>
<rightFrontJoint>f_Rwheel_j</rightFrontJoint>
<leftRearJoint>r_Lwheel_j</leftRearJoint>
<rightRearJoint>r_Rwheel_j</rightRearJoint>
<wheelSeparation>0.093</wheelSeparation>
<wheelDiameter>0.04</wheelDiameter>
<torque>3</torque>
<commandTopic>cmd_vel</commandTopic>
<odometryTopic>odom</odometryTopic>
<odometryFrame>odom</odometryFrame>
<publishOdom>true</publishOdom>
<robotBaseFrame>base_footprint</robotBaseFrame>
<broadcastTF>true</broadcastTF>
</plugin>
</gazebo>
My urdf files is here
I guess this controller's direction is base the settings of leftFrontJoint
, rightFrontJoint
, leftRearJoint
, rightRearJoint
.
And I think my setup should be fine.... But the robot did run in an opposite direction.
So, I am wonder that how to fixed this issue, and what does skid_steer_drive_controller
's direction actually depend on?
Thank you!