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

Revision history [back]

click to hide/show revision 1
initial version

I was able to load up STL's from your tar ball in diamondback without errors. Can you post a sample URDF file you used that you were able to reproduce the error? I have not seen the "endian" error before, what kind of system are you running on?

This is what I did: (I put the meshes under my_ros_pkg/debug_objects), and created test.urdf:

<robot name="simple_model">
  <link name="my_link">
    <inertial>
      <mass value="1.0" />
      <!-- center of mass (com) is defined w.r.t. link local coordinate system -->
      <origin xyz="1 0 0" /> 
      <inertia  ixx="1.0" ixy="0.0"  ixz="0.0"  iyy="100.0"  iyz="0.0"  izz="1.0" />
    </inertial>
    <visual>
      <!-- visual origin is defined w.r.t. link local coordinate system -->
      <origin xyz="1 0 0" rpy="0 0 0" />
      <geometry>
        <!--
        <mesh filename="package://my_ros_pkg/debug_objects/Roboti_algus - roomuk-1 Jalg-1 seib-28.STL" />
        -->
        <mesh filename="package://my_ros_pkg/debug_objects/Roboti_algus - roomuk-1 seib_4-3.STL" scale="10 10 10"/>
      </geometry>
    </visual>
    <collision>
      <!-- collision origin is defined w.r.t. link local coordinate system -->
      <origin xyz="1 0 0" rpy="0 0 0" />
      <geometry>
        <mesh filename="package://my_ros_pkg/debug_objects/Roboti_algus - roomuk-1 seib_4-3.STL" />
      </geometry>
    </collision>
  </link>
  <gazebo reference="my_link">
    <material>Gazebo/Blue</material>
    <turnGravityOff>true</turnGravityOff>
  </gazebo>
</robot>

started empty world

roslaunch gazebo_worlds empty_world.launch

then spawned the model

rosrun gazebo spawn_model -urdf -file test.urdf -model test_stl_mesh -z 1