Problem Link and URDF

asked 2019-06-27 21:47:28 -0500

amqib gravatar image

I have urdf model imported from SolidWork. And i try to visualize it on ROS kinetic with RViZ. I also use joint_state_publisher and added gui (slider) to input joint value. But i have a problem when i try to move the slider, the joint is change the child also move but the parent is moving too like the parent and child is the one part and the link is just center of rotation of that onlyone part. Here the code of my URDF file. Did i have some mistake on the joint script?

    <?xml version="1.0" ?>
<robot
  name="robot_model">
  <link
    name="base_link">
    <inertial>
      <origin
        xyz="1.1861E-09 -0.015203 0.022452"
        rpy="0 0 0" />
      <mass
        value="0.072402" />
      <inertia
        ixx="0"
        ixy="0"
        ixz="0"
        iyy="0"
        iyz="0"
        izz="0" />
    </inertial>
    <visual>
      <origin
        xyz="0 0 0"
        rpy="0 0 0" />
      <geometry>
        <mesh
          filename="package://robot_model/meshes/base_link.STL" />
      </geometry>
      <material
        name="">
        <color
          rgba="0.21176 0.21176 0.21176 1" />
      </material>
    </visual>
    <collision>
      <origin
        xyz="0 0 0"
        rpy="0 0 0" />
      <geometry>
        <mesh
          filename="package://robot_model/meshes/base_link.STL" />
      </geometry>
    </collision>
  </link>
  <link
    name="bahu_Link">
    <inertial>
      <origin
        xyz="0.00043596 4.113E-05 0.035563"
        rpy="0 0 0" />
      <mass
        value="0.075111" />
      <inertia
        ixx="3.0564E-06"
        ixy="1.3467E-09"
        ixz="-4.0379E-08"
        iyy="3.0536E-06"
        iyz="1.0182E-07"
        izz="3.9301E-09" />
    </inertial>
    <visual>
      <origin
        xyz="0 0 0"
        rpy="0 0 0" />
      <geometry>
        <mesh
          filename="package://robot_model/meshes/bahu_Link.STL" />
      </geometry>
      <material
        name="">
        <color
          rgba="0.75294 0.75294 0.75294 1" />
      </material>
    </visual>
    <collision>
      <origin
        xyz="0 0 0"
        rpy="0 0 0" />
      <geometry>
        <mesh
          filename="package://robot_model/meshes/bahu_Link.STL" />
      </geometry>
    </collision>
  </link>
  <joint
    name="bahu"
    type="revolute">
    <origin
      xyz="0 0 0.0455"
      rpy="0 0 0" />
    <parent
      link="base_link" />
    <child
      link="bahu_Link" />
    <axis
      xyz="0 0 -1" />
    <limit
      effort="0"
      lower="-1.57" upper="1.57"
      velocity="0" />
  </joint>
  <link
    name="pundak_Link">
    <inertial>
      <origin
        xyz="0.00015346 -0.051427 6.8183E-06"
        rpy="0 0 0" />
      <mass
        value="0.065441" />
      <inertia
        ixx="6.7347E-07"
        ixy="1.3322E-08"
        ixz="-1.1234E-08"
        iyy="4.3942E-07"
        iyz="3.3191E-07"
        izz="5.5303E-07" />
    </inertial>
    <visual>
      <origin
        xyz="0 0 0"
        rpy="0 0 0" />
      <geometry>
        <mesh
          filename="package://robot_model/meshes/pundak_Link.STL" />
      </geometry>
      <material
        name="">
        <color
          rgba="0.92157 0.92157 0.92157 1" />
      </material>
    </visual>
    <collision>
      <origin
        xyz="0 0 0"
        rpy="0 0 0" />
      <geometry>
        <mesh
          filename="package://robot_model/meshes/pundak_Link.STL" />
      </geometry>
    </collision>
  </link>
  <joint
    name="pundak"
    type="revolute">
    <origin
      xyz="-0.0015 -0.00043603 0.052"
      rpy="0 0 0" />
    <parent
      link="bahu_Link" />
    <child
      link="pundak_Link" />
    <axis ...
(more)
edit retag flag offensive close merge delete