Home | Tutorials | Wiki | Issues
Ask Your Question

Banana rotates by itself in Gazebo, I don't know why

asked 2019-02-13 22:29:44 -0500

TouchDeeper gravatar image

I'm using gazebo7 in ubuntu16.04.

I launch a bannana model in gazebo,everything is ok but the bannana will rotate slowly by itself.

urdf below:

<?xml version="1.0" ?>
<robot name="Bannana">
  <material name="yellow">
        <color rgba="1 0.4 0 1"/>
  <link name="Bannana">
        xyz="0.0014177 4.15280000000162E-06 0.026526"
        rpy="0.0 0.0 0.0" />
        value="0.11082" />
        izz="0.000175609996584435" />
      <origin xyz="0 0 0" rpy="1.5707963267949 0 0" />
          filename="package://object_description/meshes/Bannana.STL" />
      <material name="yellow" />
      <origin xyz="0 0 0" rpy="1.5707963267949 0 0" />
          filename="package://object_description/meshes/Bannana.STL" />
  <gazebo reference="Bannana">


launch file below:


  <!-- these are the arguments you can pass this launch file, for example paused:=true -->
  <arg name="paused" default="false"/>
  <arg name="use_sim_time" default="true"/>
  <arg name="gui" default="true"/>
  <arg name="headless" default="false"/>
  <arg name="debug" default="false"/>
  <arg name="world_name" default="$(find object_gazebo)/world/table.world"/>

  <!-- We resume the logic in empty_world.launch -->
  <include file="$(find gazebo_ros)/launch/empty_world.launch">
    <arg name="debug" value="$(arg debug)" />
    <arg name="gui" value="$(arg gui)" />
    <arg name="paused" value="$(arg paused)"/>
    <arg name="use_sim_time" value="$(arg use_sim_time)"/>
    <arg name="headless" value="$(arg headless)"/>
    <arg name="world_name" value="$(arg world_name)" />

  <!-- Load the URDF into the ROS Parameter Server -->
  <param name="robot_description" command="$(find xacro)/xacro --inorder '$(find object_description)/urdf/Bannana.urdf'" /> 
  <!-- Run a python script to the send a service call to gazebo_ros to spawn a URDF robot -->
  <node name="urdf_spawner" pkg="gazebo_ros" type="spawn_model" respawn="false" output="screen"
        -model Bannana 
        -param robot_description
        -x 0
        -y 0
        -z 1 "/> 

Here is the workspace link,and there is a bannana.gif in the home directory to describe the question.

Can you give me some advice? Thanks a lot!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-02-19 10:18:42 -0500

It looks like the contacts between the banana and the table may be unstable. You can inspect them by choosing View -> Transparent and View -> Contacts.

One solution would be to tweak the surface parameters of the banana's collision. Something like this:

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2019-02-13 22:29:44 -0500

Seen: 35 times

Last updated: Feb 19