DAE model doesn't fully load in Gazebo

asked 2019-12-31 10:46:17 -0600

marcusbarnet gravatar image

updated 2019-12-31 10:49:19 -0600


I'm using Gazebo version 9.11.0 and i'm trying to load a model for my robot with mecanum wheels. I converted my mecanum wheel from Solidworks to Collada format and I obtained a *.dae file.

When I try to load it in Gazebo, the wheel doesn't fully and correctly load as you can see in the attached picture. image description

This picture shows how the wheel is made in Solidworks: image description

Why is this happening? How can I solve it? If I open the DAE file I can correctly see the wheel.

This is my code:

<?xml version="1.0"?>
<robot name="wheel" xmlns:xacro="http://www.ros.org/wiki/xacro">

  <xacro:property name="PI" value="3.1415926535897931" />

  <!-- Wheels -->
  <xacro:property name="wheel_radius" value="0.152" />
  <xacro:property name="wheel_height" value="1.115" />
  <xacro:property name="wheel_mass" value="6.5" /> <!-- in kg-->

  <xacro:macro name="cylinder_inertia" params="m r h">
    <inertia  ixx="${m*(3*r*r+h*h)/12}" ixy = "0" ixz = "0"
              iyy="${m*r*r/2}" iyz = "0"
              izz="${m*(3*r*r+h*h)/12}" />

  <xacro:macro name="omni_wheel" params="prefix parent *origin reflect">

    <joint name="${prefix}_wheel_joint" type="continuous">
      <parent link="${parent}"/>
      <child link="${prefix}_wheel_link"/>
      <xacro:insert_block name="origin" />
      <axis xyz="0 1 0" rpy="0 0 0" />
      <limit effort="100" velocity="100"/>
      <joint_properties damping="0.0" friction="0.0"/>

    <link name="${prefix}_wheel_link">
        <origin xyz="0 0 0" rpy="0 0 0" />
        <xacro:if value="${reflect}">
            <mesh filename="package://summit_description/meshes/wheels/wheel-1.dae" />
          <xacro:unless value="${reflect}">
              <mesh filename="package://summit_description/meshes/wheels/wheel-1.dae" />

                <origin xyz="0 0 0" rpy="${PI/2} 0 0" />
                    <cylinder length="${wheel_height}" radius="${wheel_radius}" />

        <mass value="${wheel_mass}" />
        <origin xyz="0 0 0" />
        <cylinder_inertia  m="${wheel_mass}" r="${wheel_radius}" h="${wheel_height}" />

    <!-- Transmission is important to link the joints and the controller (see summit_xl_control/config/summit_xl_control.yaml)-->
    <transmission name="${prefix}_wheel_joint_trans">
      <joint name="${prefix}_wheel_joint" >
      <actuator name="${prefix}_wheel_joint_motor">

    <gazebo reference="${prefix}_wheel_link">
        <mu1 value="1.0"/>
        <mu2 value="1.0"/>
        <kp value="10000000.0" />
        <kd value="1.0" />
        <fdir1 value="1 0 0"/>

edit retag flag offensive close merge delete


When you run with --verbose do you see any relevant messages?

chapulina gravatar imagechapulina ( 2020-01-02 11:02:30 -0600 )edit