Robot twitches in simulation
I'm been trying to simulate differential drive on my robot and I'm having trouble making the robot move smoothly. I've put in all of the friction coefficients and tried to apply torque to the wheels, but my robot just twitches. If I apply commands to one wheel, the robot will turn in a 360, but it'll take several minutes to do so.
I specified the motors as follows
<transmission name="wheel_left_tran">
<type>transmission_interface/SimpleTransmission</type>
<joint name="to_wheel_left"/>
<actuator name="motor1">
<hardwareInterface>EffortJointInterface</hardwareInterface>
<mechanicalReduction>1</mechanicalReduction>
<motorTorqueConstant>10</motorTorqueConstant>
</actuator>
</transmission>
<transmission name="wheel_right_tran">
<type>transmission_interface/SimpleTransmission</type>
<joint name="to_wheel_right"/>
<actuator name="motor2">
<hardwareInterface>EffortJointInterface</hardwareInterface>
<mechanicalReduction>1</mechanicalReduction>
<motorTorqueConstant>10</motorTorqueConstant>
</actuator>
</transmission>
I haven't built the differiential drive plugin, so I'm using the following plugin to validate the physical characteristic of my robot
<gazebo>
<plugin name="gazebo_ros_control" filename="libgazebo_ros_control.so">
<robotNamespace>/redblade</robotNamespace>
<alwaysOn>true</alwaysOn>
<updateRate>20</updateRate>
</plugin>
</gazebo>
Has anyone seen this problem before? Any thoughts would be greatly appreciated!