Robotics StackExchange | Archived questions

Laser has to be mounted planar! Z-coordinate has to be 1 or -1, but gave: 0.99298

i keep having this error when ever i run the g mapping configured PKG my urdf

<link name="base_link">
    <visual>
      <origin rpy="0 0 3.14159265359" xyz="0.03 -0.005 -0.09"/> 
        <geometry>
            <mesh filename="package://ctcv_gazebo/mesh/Black.stl" scale="0.001 0.001 0.001"/>
        </geometry>
        <material name="black"/>
    </visual>

  <collision>
      <origin rpy="0 0 3.14159265359" xyz="0.03 -0.005 -0.09"/>
      <geometry>
          <mesh filename="package://ctcv_gazebo/mesh/Black.stl" scale="0.001 0.001 0.001"/>
      </geometry>
    </collision>

    <inertial>
        <origin rpy="0 0 3.14159265359" xyz="0.03 -0.005 -0.09"/>
        <mass value="350"/>
        <inertia ixx="2.0" ixy="0.0" ixz="0.0" iyy="2.0" iyz="0.0" izz="2.0"/>
    </inertial>      
</link>

<link name="laser" />  
<joint name="base_to_laser" type="fixed">
    <parent link="front_ir"/>
    <child link="laser"/>
    <origin rpy="0 0.1 0" xyz="0.052 0 0.035"/>
</joint>

Asked by mohamed19977 on 2020-04-02 17:09:50 UTC

Comments

Did you try a more exact PI statement? You may use pi as a variable in URDF, see http://wiki.ros.org/xacro

Asked by stevemacenski on 2020-04-03 03:42:46 UTC

Answers