63 lines
1.3 KiB
Plaintext
63 lines
1.3 KiB
Plaintext
![]() |
<?xml version="1.0" ?>
|
||
|
<%
|
||
|
# Marble with diameter 1.5 cm
|
||
|
# SI units (length in meters)
|
||
|
|
||
|
# Geometry
|
||
|
|
||
|
d = 0.015
|
||
|
r = d/2
|
||
|
|
||
|
# Inertia
|
||
|
mass = 0.0062
|
||
|
ixx = 2.0*mass*r**2/5.0
|
||
|
iyy = 2.0*mass*r**2/5.0
|
||
|
izz = 2.0*mass*r**2/5.0
|
||
|
%>
|
||
|
<sdf version="1.5">
|
||
|
<model name="marble_1_5cm">
|
||
|
<link name="link">
|
||
|
<pose>0 0 <%= r %> 0 0 0</pose>
|
||
|
<inertial>
|
||
|
<mass><%= mass %></mass>
|
||
|
<inertia>
|
||
|
<ixx><%= ixx %></ixx>
|
||
|
<ixy>0</ixy>
|
||
|
<ixz>0</ixz>
|
||
|
<iyy><%= iyy %></iyy>
|
||
|
<iyz>0</iyz>
|
||
|
<izz><%= izz %></izz>
|
||
|
</inertia>
|
||
|
</inertial>
|
||
|
|
||
|
<collision name="collision">
|
||
|
<geometry>
|
||
|
<sphere>
|
||
|
<radius><%= r %></radius>
|
||
|
</sphere>
|
||
|
</geometry>
|
||
|
</collision>
|
||
|
|
||
|
<visual name="visual">
|
||
|
<geometry>
|
||
|
<sphere>
|
||
|
<radius><%= r %></radius>
|
||
|
</sphere>
|
||
|
</geometry>
|
||
|
<material>
|
||
|
<script>
|
||
|
<uri>file://media/materials/scripts/gazebo.material</uri>
|
||
|
<name>Gazebo/Blue</name>
|
||
|
</script>
|
||
|
</material>
|
||
|
</visual>
|
||
|
|
||
|
<!-- approximate rolling friction -->
|
||
|
<velocity_decay>
|
||
|
<linear>0.00</linear>
|
||
|
<angular>0.005</angular>
|
||
|
</velocity_decay>
|
||
|
</link>
|
||
|
</model>
|
||
|
</sdf>
|