Home | Tutorials | Wiki | Issues
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

SDF 1.2 conversion bug?

Dear all,

I think the new SDF is bugged, but i could be wrong:

The latest commit changed <orgin> into <pose>, in the sdf. Since then the pose of the third and second link in my world file gets reverted to default.

This does not happen in 1.2.5, which i use at home, there it is handled correctly: gazebo 1.2.5.

Whereas in the 1.2.6 it looks like this: image description.

SDF 1.2 conversion bug?

Dear all,

I think the new SDF is bugged, but i could be wrong:

The latest commit changed <orgin> into <pose>, in the sdf. Since then the pose of the third and second link in my world file gets reverted to default.

This does not happen in 1.2.5, which i use at home, there it is handled correctly: gazebo 1.2.5. good

Whereas in the 1.2.6 it looks like this: image description.bad

SDF 1.2 conversion bug?

Dear all,

I think the new SDF is bugged, but i could be wrong:

The latest commit changed <orgin> into <pose>, in the sdf. Since then the pose of the third and second link in my world file gets reverted to default.

This does not happen in 1.2.5, which i use at home, there it is handled correctly: good

Whereas in the 1.2.6 it looks like this: bad

Picture links seem to fail: version 1.2.5: http://imageshack.us/a/img26/6923/gazebo125.png version 1.2.6: http://imageshack.us/a/img90/5282/gazebo126.png

SDF 1.2 conversion bug?

Dear all,

I think the new SDF is bugged, but i could be wrong:

The latest commit changed <orgin> into <pose>, in the sdf. Since then the pose of the third and second link in my world file gets reverted to default.

This does not happen in 1.2.5, which i use at home, there it is handled correctly: good

Whereas in the 1.2.6 it looks like this: bad

Picture links seem to fail: version 1.2.5: http://imageshack.us/a/img26/6923/gazebo125.png version 1.2.6: http://imageshack.us/a/img90/5282/gazebo126.png

Here is the model.sdf (it is quite large), i tried numeruous combination of poses (defined in the joint and/or link). Only the pose definition in the <link name="table"> link works in 1.2.6.

<?xml version='1.0'?>
  <gazebo version='1.2'>
    <model name="my_robot">
    <static>false</static>
    <!-- angles are not exact (error ~2.5e-4) hence movement occurs because joint friction does not work.-->
    <link name='table'>
        <self_collide>false</self_collide>
            <pose>0.0000 0.0000 0.0000 0.000 0.000 0.000</pose>
            <velocity_decay>
                <linear>100</linear>
                <angular>100</angular>
            </velocity_decay>
            <inertial>
                <mass>100</mass>
            </inertial>

        <collision name='table_c'>
        <geometry>
            <mesh>
                 <uri>model://soccer_table/meshes/table_simple.dae</uri>
                 <scale>0.5 0.5 0.5</scale>
            </mesh>
        <!--box><size>0.6 0.5 0.34</size></box-->
        </geometry>         
        <surface>
            <bounce>
                <restitution_coefficient>0.9</restitution_coefficient>
                <threshold>0.1</threshold>
            </bounce>
            <friction>
                <ode>
                    <mu>0.3</mu>
                    <mu2>0.3</mu2>
                </ode>
            </friction>
        </surface>      
    </collision>

        <visual name='table_v'>
            <geometry>
            <mesh>
                    <uri>model://soccer_table/meshes/table_simple.dae</uri>
                    <scale>0.5 0.5 0.5</scale>
            </mesh>
            <!--box><size>0.6 0.5 0.34</size></box-->
            </geometry>
        </visual>
</link>


<link name="link_1r">
    <pose>0.0000 0.0000 0.06500 0.0000 0.0000 0.0000 </pose>
    <self_collide>false</self_collide>
    <velocity_decay>
        <linear>0.001</linear>
        <angular>0.001</angular>
        </velocity_decay>
    <inertial>
        <mass>0.1</mass>
        <inertia>
            <ixx>0.01</ixx>
            <ixy>0</ixy>
            <ixz>0</ixz>
            <iyy>0.001</iyy>
            <iyz>0</iyz>
            <izz>0.01</izz>
        </inertia>
    </inertial>

    <collision name='link_1r_c'>
        <geometry>
            <box><size>0.0075 0.34 0.0075 </size></box>
        </geometry>
        <surface>
            <bounce>
                <restitution_coefficient>0.9</restitution_coefficient>
                <threshold>0.1</threshold>
            </bounce>
            <friction>
                <ode>
                    <mu>0.3</mu>
                    <mu2>0.3</mu2>
                </ode>
            </friction>
        </surface>  
        </collision>

        <visual name='link_1r_v'>
            <geometry>
        <box><size>0.0075 0.34 0.0075 </size></box>
            </geometry>
        </visual>      
</link>

<link name="puppet">
    <pose>0.0000 0.0000 0.06500 0.0000 0.0000 0.0000 </pose>
    <velocity_decay>
            <linear>0.001</linear>
            <angular>0.001</angular>
        </velocity_decay>
    <self_collide>false</self_collide>
    <inertial>
        <mass>0.002069</mass>
        <inertia>
            <ixx>0.001</ixx>
            <ixy>0</ixy>
            <ixz>0</ixz>
            <iyy>0.0002</iyy>
            <iyz>0</iyz>
            <izz>0.001</izz>
        </inertia>
    </inertial>

    <collision name='puppet_c'>
        <geometry>
            <box><size>0.0075 0.01 0.1</size></box>
        </geometry>
        <surface>
            <bounce>
                <restitution_coefficient>0.9</restitution_coefficient>
                <threshold>0.1</threshold>
            </bounce>
            <friction>
                <ode>
                    <mu>0.3</mu>
                    <mu2>0.3</mu2>
                    <fdir1>0 1 0</fdir1>
                </ode>
            </friction>
        </surface>  
        </collision>

        <visual name='puppet_v'>
        <geometry>
            <box><size>0.0075 0.01 0.05</size></box>
        </geometry>
    </visual>      
</link>

<joint name="joint_1" type="revolute">
    <parent>table</parent>
    <child>link_1r</child>
    <pose>0.0000 0.0000 0 0.0000 0.0000 0.0000 </pose>
    <physics>
        <ode>
            <fudge_factor>0.0</fudge_factor>
            <bounce>0</bounce>
            <limit>
                <cfm>0.0</cfm>
                <erp>0.3</erp>
            </limit>
            <suspension>
                <cfm>0.0</cfm>
                <erp>0.3</erp>
            </suspension>
        </ode>
    </physics>
    <axis>
        <xyz>0 1 0</xyz>
        <dynamics>
            <damping>1</damping>
            <friction>0.01</friction>
        </dynamics>
    </axis>
</joint>

<joint name="joint_2" type="prismatic">
    <parent>link_1r</parent>
    <child>puppet</child>
    <pose>0.0000 0.0000 0 0.0000 0.0000 0.0000 </pose>
    <physics>
        <ode>
            <fudge_factor>1</fudge_factor>
            <bounce>1</bounce>
            <limit>
                <cfm>0.0</cfm>
                <erp>0.3</erp>
            </limit>
            <suspension>
                <cfm>0.0</cfm>
                <erp>0.3</erp>
            </suspension>
        </ode>
    </physics>
    <axis>
        <xyz>0 1 0</xyz>
        <limit>
            <lower>-0.1</lower>
            <upper>0.1</upper>
        </limit>
        <dynamics>
            <damping>1</damping>
            <friction>0.1</friction>
        </dynamics>
    </axis>
</joint>

</model>

</gazebo>

SDF 1.2 conversion bug?

Dear all,

I think the new SDF is bugged, but i could be wrong:

The latest commit changed <orgin> into <pose>, in the sdf. Since then the pose of the third and second link in my world file gets reverted to default.

This does not happen in 1.2.5, which i use at home, there it is handled correctly: good

Whereas in the 1.2.6 it looks like this: bad

Picture links seem to fail: version 1.2.5: http://imageshack.us/a/img26/6923/gazebo125.png version 1.2.6: http://imageshack.us/a/img90/5282/gazebo126.png

Here is the model.sdf (it is quite large), i tried numeruous combination of poses (defined in the joint and/or link). Only the pose definition in the <link name="table"> link works in 1.2.6.

<?xml version='1.0'?>
  <gazebo version='1.2'>
    <model name="my_robot">
    <static>false</static>
    <!-- angles are not exact (error ~2.5e-4) hence movement occurs because joint friction does not work.-->
    <link name='table'>
        <self_collide>false</self_collide>
            <pose>0.0000 0.0000 0.0000 0.000 0.000 0.000</pose>
            <velocity_decay>
                <linear>100</linear>
                <angular>100</angular>
            </velocity_decay>
            <inertial>
                <mass>100</mass>
            </inertial>

        <collision name='table_c'>
        <geometry>
            <mesh>
                 <uri>model://soccer_table/meshes/table_simple.dae</uri>
                 <scale>0.5 0.5 0.5</scale>
            </mesh>
        <!--box><size>0.6 0.5 0.34</size></box-->
        </geometry>         
        <surface>
            <bounce>
                <restitution_coefficient>0.9</restitution_coefficient>
                <threshold>0.1</threshold>
            </bounce>
            <friction>
                <ode>
                    <mu>0.3</mu>
                    <mu2>0.3</mu2>
                </ode>
            </friction>
        </surface>      
    </collision>

        <visual name='table_v'>
            <geometry>
            <mesh>
                    <uri>model://soccer_table/meshes/table_simple.dae</uri>
                    <scale>0.5 0.5 0.5</scale>
            </mesh>
            <!--box><size>0.6 0.5 0.34</size></box-->
            </geometry>
        </visual>
</link>


<link name="link_1r">
    <pose>0.0000 0.0000 0.06500 0.0000 0.0000 0.0000 </pose>
    <self_collide>false</self_collide>
    <velocity_decay>
        <linear>0.001</linear>
        <angular>0.001</angular>
        </velocity_decay>
    <inertial>
        <mass>0.1</mass>
        <inertia>
            <ixx>0.01</ixx>
            <ixy>0</ixy>
            <ixz>0</ixz>
            <iyy>0.001</iyy>
            <iyz>0</iyz>
            <izz>0.01</izz>
        </inertia>
    </inertial>

    <collision name='link_1r_c'>
        <geometry>
            <box><size>0.0075 0.34 0.0075 </size></box>
        </geometry>
        <surface>
            <bounce>
                <restitution_coefficient>0.9</restitution_coefficient>
                <threshold>0.1</threshold>
            </bounce>
            <friction>
                <ode>
                    <mu>0.3</mu>
                    <mu2>0.3</mu2>
                </ode>
            </friction>
        </surface>  
        </collision>

        <visual name='link_1r_v'>
            <geometry>
        <box><size>0.0075 0.34 0.0075 </size></box>
            </geometry>
        </visual>      
</link>

<link name="puppet">
    <pose>0.0000 0.0000 0.06500 0.0000 0.0000 0.0000 </pose>
    <velocity_decay>
            <linear>0.001</linear>
            <angular>0.001</angular>
        </velocity_decay>
    <self_collide>false</self_collide>
    <inertial>
        <mass>0.002069</mass>
        <inertia>
            <ixx>0.001</ixx>
            <ixy>0</ixy>
            <ixz>0</ixz>
            <iyy>0.0002</iyy>
            <iyz>0</iyz>
            <izz>0.001</izz>
        </inertia>
    </inertial>

    <collision name='puppet_c'>
        <geometry>
            <box><size>0.0075 0.01 0.1</size></box>
        </geometry>
        <surface>
            <bounce>
                <restitution_coefficient>0.9</restitution_coefficient>
                <threshold>0.1</threshold>
            </bounce>
            <friction>
                <ode>
                    <mu>0.3</mu>
                    <mu2>0.3</mu2>
                    <fdir1>0 1 0</fdir1>
                </ode>
            </friction>
        </surface>  
        </collision>

        <visual name='puppet_v'>
        <geometry>
            <box><size>0.0075 0.01 0.05</size></box>
        </geometry>
    </visual>      
</link>

<joint name="joint_1" type="revolute">
    <parent>table</parent>
    <child>link_1r</child>
    <pose>0.0000 0.0000 0 0.0000 0.0000 0.0000 </pose>
    <physics>
        <ode>
            <fudge_factor>0.0</fudge_factor>
            <bounce>0</bounce>
            <limit>
                <cfm>0.0</cfm>
                <erp>0.3</erp>
            </limit>
            <suspension>
                <cfm>0.0</cfm>
                <erp>0.3</erp>
            </suspension>
        </ode>
    </physics>
    <axis>
        <xyz>0 1 0</xyz>
        <dynamics>
            <damping>1</damping>
            <friction>0.01</friction>
        </dynamics>
    </axis>
</joint>

<joint name="joint_2" type="prismatic">
    <parent>link_1r</parent>
    <child>puppet</child>
    <pose>0.0000 0.0000 0 0.0000 0.0000 0.0000 </pose>
    <physics>
        <ode>
            <fudge_factor>1</fudge_factor>
            <bounce>1</bounce>
            <limit>
                <cfm>0.0</cfm>
                <erp>0.3</erp>
            </limit>
            <suspension>
                <cfm>0.0</cfm>
                <erp>0.3</erp>
            </suspension>
        </ode>
    </physics>
    <axis>
        <xyz>0 1 0</xyz>
        <limit>
            <lower>-0.1</lower>
            <upper>0.1</upper>
        </limit>
        <dynamics>
            <damping>1</damping>
            <friction>0.1</friction>
        </dynamics>
    </axis>
</joint>
</joint>   

  </model>

</gazebo>

</model>

</gazebo>