Gazebo | Ignition | Community
Ask Your Question

Nondeterministic ball bounce[SOLVED]

asked 2016-09-22 09:17:48 -0500

nzlz gravatar image

updated 2016-09-26 05:09:23 -0500


I am getting different behaviors with exactly the same execution and world settings. As you can see in this video , I reset the world every time and launch the ball with exactly the same velocity. This happens when launching the ball against any kind of surface (not only this board).

Update: more videos: vid2, vid3.

Ball model.sdf file:

<?xml version="1.0" ?>
<sdf version="1.5">
  <model name="basketball">
    <link name="ball">
        <!-- inertia based on solid sphere 2/5 mr^2 -->
      <visual name="visual">
      <collision name="collision">
edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted

answered 2016-09-23 09:51:14 -0500

nzlz gravatar image

After testing different parameters changing the following seems to be a decent fix:

Gazebo->Physics->solver->iterations = 100 (default is 50)

edit flag offensive delete link more


excuse me, but where to set the interation? And does a .world file suport that?

Alice_ly gravatar imageAlice_ly ( 2021-08-15 03:44:14 -0500 )edit

answered 2016-09-22 13:54:59 -0500

This is a pretty lame answer, but--numerical instability. My guess is that this is an issue with the underlying computations done in gazebo, and more importantly in whichever physics engine you're using. It's also possible the ball is moving slightly around the launcher, and the timing of when you fire matters.

edit flag offensive delete link more


The timing is the same (or almost) since the ball is automatically launched when I reset the simulation. About the physics engine, I wasn't able to make the ball bounce using bullet.

nzlz gravatar imagenzlz ( 2016-09-23 08:52:46 -0500 )edit
Login/Signup to Answer

Question Tools



Asked: 2016-09-22 09:17:48 -0500

Seen: 682 times

Last updated: Sep 26 '16