Max_vel parameter doesn't work as expected
I'm trying to reduce the speed injected in two bodies after they overlapse.
After reading this post, I tried to use the world given in the Constraints parameters but I doesn't seem to work the same way as the video bellow it.
In my case even changing the parameters as they explain them, the output is constantly the same, the ball throws up at a really high speed regardless the max_vel
value.
Here I leave the code I used to test it:
<?xml version="1.0" ?>
<sdf version="1.6">
<world name="default">
<physics type="ode">
<ode>
<solver>
<type>world</type>
</solver>
<constraints>
<contact_max_correcting_vel>0.1</contact_max_correcting_vel>
<contact_surface_layer>0.0001</contact_surface_layer>
</constraints>
</ode>
<max_step_size>0.001</max_step_size>
</physics>
<gravity>0.0 0.0 -9.81</gravity>
<include>
<uri>model://ground_plane</uri>
</include>
<include>
<uri>model://sun</uri>
</include>
<model name="sphere_1">
<pose>0.0 0.0 1.4 0.0 0.0 0.0</pose>
<link name="link_1">
<visual name="visual_sphere_1">
<geometry>
<sphere>
<radius>0.5</radius>
</sphere>
</geometry>
<material>
<script>
<name>Gazebo/Red</name>
</script>
</material>
</visual>
<collision name="collision_sphere_1">
<geometry>
<sphere>
<radius>0.5</radius>
</sphere>
</geometry>
<surface>
<contact>
<ode>
<max_vel>0</max_vel>
<min_depth>0.001</min_depth>
</ode>
</contact>
</surface>
</collision>
</link>
</model>
<model name="sphere_2">
<pose>0.0 0.0 0.5 0.0 0.0 0.0</pose>
<link name="link_2">
<visual name="visual_sphere_2">
<geometry>
<sphere>
<radius>0.5</radius>
</sphere>
</geometry>
<material>
<script>
<name>Gazebo/Blue</name>
</script>
</material>
</visual>
<collision name="collision_sphere_2">
<geometry>
<sphere>
<radius>0.5</radius>
</sphere>
</geometry>
<surface>
<contact>
<ode>
<max_vel>0</max_vel>
<min_depth>0.001</min_depth>
</ode>
</contact>
</surface>
</collision>
</link>
</model>
</world>
</sdf>
Asked by amayorga27 on 2022-06-02 06:18:13 UTC
Answers
This tutorial is about how to choose or tune physics related parameters, mainly focused on the physics parameters in Open Dynamics EngineI haven't tried 192.168.l00.1 messing with the min_depth or max_vel parameters yet, ... The fdir1 doesn't work the way it is described at Gazebo help section. Hi, I am new working with Maxwell (2 days). ... I request to show the current path the coil doesn't exhibit the expected current behavior.
Asked by sophiaabigail on 2022-06-04 07:49:26 UTC
Comments
After playing with the code I found the problem. The flag type in solver shouldn't be there.
<solver>
<type> world </type>
</solver>
After commenting this lines, the exercise works as expected.
Asked by amayorga27 on 2022-06-07 02:17:45 UTC
Comments