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

check urdf to Error reading Attributes.

asked 2022-06-27 19:50:35 -0500

karevaros gravatar image

updated 2022-06-28 01:52:17 -0500

ljaniec gravatar image

My URDF file didn't want to check_urdf

rda@rda:~/catkin_ws/src/rb5_robot/urdf$ sudo check_urdf rb5_robot.urdf
Error:   Error reading Attributes.
         at line 100 in /build/urdfdom-VnCcob/urdfdom-1.0.4+ds/urdf_parser/src/model.cpp
ERROR: Model Parsing the xml failed

<?xml version="1.0" ?>

<robot name='rb5'>

  <material name='black'>
    <color rgba='0.0 0.0 0.0 1.0'/>
  </material>

  <material='orange'>
    <color rgba='1.0 0.4 0.0 1.0'/>
  </material>

  <link name='base'>
    <inertial>
      <origin xyz='0 0 0' rpy='0.0 0.0 0.0'/>
      <mass value='0.82'/>
      <inertia ixx='0' ixy='0.0' ixz='0.0' iyy='0' iyz='0.0' izz='0.0'/>
    </inertial>

    <visual>
       <origin xyz='0 0 0' rpy='0 0 0'/>
       <geometry>
           <mash filename='package://rb5//link//RB5_BASE.stl'/>
       </geometry>
       <material name='black'/>
    </visual>

    <collision>
        <origin xyz='0 0 0' rpy='0 0 0'/>
        <geometry>
          <mash filename="package://rb5//link//RB5_BASE.stl"/>
        </geometry>
    </collision>
  </link>

  <link name='link1'>
    <inertial>
      <origin xyz="0 0 0.01" rpy="0.0 0.0 0.0"/>
      <mass value="1.145"/>
      <inertia ixx="0.004" ixy="0.0" ixz="0.0" iyy="0.004" iyz="0.0" izz="0.0"/>
    </inertial>

    <visual>
       <origin xyz="0 0 0.09" rpy="0 0 0"/>
       <geometry>
         <mash filename="package://rb5//link//RB5_LINK1.stl"/>
       </geometry>
       <material name="black"/>
    </visual>

    <collision>
        <origin xyz="0 0 0.09" rpy="0 0 0"/>
        <geometry>
          <mash filename="package://rb5//link//RB5_LINK1.stl"/>
        </geometry>
    </collision>
  </link>

  <link name="link2">
    <inertial>
      <origin xyz="0.0 -0.14 0.37" rpy="90.0 0.0 0.0"/>
      <mass value="3.679"/>
      <inertia ixx="0.122" ixy="0.0" ixz="0.0" iyy="0.121" iyz="0.0" izz="0"/>
    </inertial>

    <visual>
       <origin xyz="0 -0.163 0.07" rpy="0 0 0"/>
       <geometry>
           <mash filename="package://rb5//link//RB5_LINK2.stl"/>
       </geometry>
       <material name="black"/>
     </visual>

     <collision>
        <origin xyz="0 -0.163 0.07" rpy="0 0 0"/>
        <geometry>
          <mash filename="package://rb5//link//RB5_LINK2.stl"/>
        </geometry>
     </collision>
  </link>

  <link name="link3">
    <inertial>
      <origin xyz="0.0 -0.008 0.747" rpy="90.0 0.0 0.0"/>
      <mass value="2.812"/>
      <inertia ixx="0.07" ixy="0.0" ixz="0.0" iyy="0.07" iyz="0.0" izz="0"/>
    </inertial>

    <visual>
       <origin xyz="0 0 0.594" rpy="0 0 0"/>
       <geometry>
         <mash filename="package://rb5//link//RB5_LINK3.stl"/>
       </geometry>
       <material name="black"/>
    </visual>

    <collision>
        <origin xyz="0 0 0.594" rpy="0 0 0"/>
        <geometry>
          <mash filename="package://rb5//link//RB5_LINK3.stl"/>
        </geometry>
    </collision>
  </link>

  <link name="link4">
    <inertial>
      <origin xyz="0 ...
(more)
edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2022-06-28 01:22:11 -0500

URDF parsing error: 'Error reading Attributes. at line 72 in /../urdf_parser/src/model.cpp ERROR: Model Parsing the xml failed'.General aggregate types, preservin cps tester g order; Dumping to YAML, used for printing to string (dictionaries do not preserve attribute ordering). XML Parsing: ...If the function finds no XML file with the specified name, it returns an error—even if there is a URDF file with the same name in the same folder. As a rule, ... URDF or SDF Import ... robot = importrobot( filename ) returns a rigidBodyTree object by parsing the Unified Robot Description Format (URDF) or Simulation ...

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2022-06-27 19:50:35 -0500

Seen: 103 times

Last updated: Jun 28 '22