How to disable gravity only for a specific model in Gazebo?
A similar question has been answered. http://answers.ros.org/question/65991...
However, this only works for the .sdf model files. It does not work for urdf. Kindly help.
<link name="base_link" gravity="0 0 0">
<gravity>0</gravity>
</link>
<joint name="base_joint" type="fixed">
<origin xyz="0 0 0" rpy="0 0 0" />
<parent link="base_link" />
<child link="body_link" />
</joint>
<link name="body_link">
<gravity>0</gravity>
<inertial>
<mass value="0.1" />
<origin xyz="0 0 0" />
<inertia ixx="1" ixy="0" ixz="0" iyy="1" iyz="0" izz="1" />
</inertial>
<visual name="base_visual">
<origin xyz="0 0 0" rpy="0 0 0" />
<geometry name="pioneer_geom">
<mesh filename="package://rotors_description/meshes/simple_airplane1.dae" />
</geometry>
</visual>
<collision>
<origin xyz="0 0 0" rpy="0 0 0" />
<geometry>
<mesh filename="package://rotors_description/meshes/simple_airplane1.dae" />
</geometry>
</collision>
</link>