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

Skid_steer_drive_controller don't move joints

asked 2022-01-31 12:48:43 -0500

Trahery gravatar image

Hello I have found a problem when I try to use gazebo skid_steer_drive_controller. The controller did not publish wheel tf and will not respond when I try to send cmd_vel. Rviz says error where no transform from [link_left_wheel_front] to [odom]. But what is most important that the robot in Gazebo isn't moving. I don't know where it could be problem. Maybe in the plugin setting, but when I was looking and comparing with different codes, it looks ok to me.

Main URDF file:

<robot <a="" href="http://xmlns:xacro="http://ros.org/wiki/xacro%22" name="my_robot">xmlns:xacro="http://ros.org/wiki/xacro"> <xacro:include filename="$(find trabot_description)/urdf/trabot.sensors.urdf.xacro"> <xacro:property name="width" value="0.25"> <xacro:property name="bodylen" value="0.38"> <xacro:property name="hight" value="0.09"> <xacro:property name="wheel_pitch" value="0.175"> <xacro:property name="wheel_length" value="0.053975"> <xacro:property name="wheel_radius" value="0.0575"> <xacro:property name="wheel_separation" value="0.175"></xacro:property></xacro:property></xacro:property></xacro:property></xacro:property></xacro:property></xacro:property></xacro:include></robot>

<link name="base_link">
    <visual>
        <geometry>
            <mesh filename="package://trabot_description/meshes/base.dae" scale="0.001 0.001 0.001"/>
        </geometry>
        <origin rpy="0 0 0" xyz="-${width/2} -${bodylen/2} -${hight/2}"/>
    </visual>
    <collision>
        <geometry>
            <box size="${width} ${bodylen} ${hight}"/>
        </geometry>
    </collision>
    <inertial>
        <mass value="1.204"/>
        <inertia ixx="0.01768" ixy="0.0" ixz="-0.0" iyy="0.00949" iyz="-0.0" izz="0.02069"/>
    </inertial>
</link>

<xacro:macro name="wheel" params="prefix postfix frontback reflect">
    <link name="link_${prefix}_wheel_${postfix}">
        <visual>
            <geometry>
                <mesh filename="package://trabot_description/meshes/wheel.dae" scale="0.001 0.001 0.001"/>
            </geometry>
            <origin rpy="0 0 ${reflect*pi/2}" xyz="0 0 0"/>
        </visual>
        <collision>
            <geometry>
                <cylinder length="${wheel_length}" radius="${wheel_radius}"/>
            </geometry>
            <origin rpy="0 ${pi/2} 0" xyz="${reflect*(wheel_radius/2)} 0 0"/>
        </collision>
        <inertial>
            <mass value="0.254"/>
            <inertia ixx="0.000427228" ixy="0.0" ixz="0.0" iyy="0.0002708487" iyz="0.0" izz="0.0002708487"/>
            <origin rpy="0 0 0" xyz="0 0 0"/>
        </inertial>
    </link>

    <joint name="joint_${prefix}_${postfix}_wheel" type="continuous">
        <parent link="base_link"/>
        <child link="link_${prefix}_wheel_${postfix}"/>
        <origin xyz="${(width/2+0.0001)*reflect} ${(wheel_pitch/2)*frontback} -0.0175"/>
        <axis xyz="1 0 0"/>
            <limit effort="10000" velocity="1000"/>
            <joint_properties damping="1.0" friction="1.0"/>
    </joint>

    <!-- This block provides the simulator (Gazebo) with information on a few additional
    physical properties. See http://gazebosim.org/tutorials/?tut=ros_urdf for more-->
    <gazebo reference="link_${prefix}_wheel_${postfix}">
        <mu1>0.1</mu1>
        <mu2>0.1</mu2>
        <kp>1000000.0</kp>
        <kd>100.0</kd>
        <minDepth>0.00</minDepth>
    </gazebo>

    <transmission name="tran_${prefix}_${postfix}_wheel">
        <type>transmission_interface/SimpleTransmission< ...
(more)
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-02-02 08:34:34 -0500

Trahery gravatar image

So definitely the problem, was in my not understanding in what I was doing. After few days and teaching myself ROS Control properly I found out the problem was in launch file.

edit flag offensive delete link more

Comments

so what is problem in your launch file

UgurY gravatar image UgurY  ( 2022-02-26 09:14:57 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2022-01-31 12:48:43 -0500

Seen: 185 times

Last updated: Feb 02 '22