init
This commit is contained in:
16
cricket_ball/model.config
Normal file
16
cricket_ball/model.config
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<model>
|
||||
<name>Cricket ball</name>
|
||||
<version>1.0</version>
|
||||
<sdf version='1.5'>model.sdf</sdf>
|
||||
|
||||
<author>
|
||||
<name>Nate Koenig</name>
|
||||
<email>nate@osrfoundation.org</email>
|
||||
</author>
|
||||
|
||||
<description>
|
||||
A cricket ball.
|
||||
</description>
|
||||
</model>
|
||||
63
cricket_ball/model.rsdf
Normal file
63
cricket_ball/model.rsdf
Normal file
@@ -0,0 +1,63 @@
|
||||
<?xml version="1.0" ?>
|
||||
<%
|
||||
# Cricket ball, diameter 7.5cm
|
||||
# SI units (length in meters)
|
||||
|
||||
# Geometry
|
||||
|
||||
d = 0.075
|
||||
r = d/2
|
||||
|
||||
# Inertia
|
||||
mass = 0.1467
|
||||
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="cricket_ball">
|
||||
<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/Red</name>
|
||||
</script>
|
||||
</material>
|
||||
</visual>
|
||||
|
||||
<!-- approximate rolling friction -->
|
||||
<velocity_decay>
|
||||
<linear>0.00</linear>
|
||||
<angular>0.005</angular>
|
||||
</velocity_decay>
|
||||
</link>
|
||||
</model>
|
||||
</sdf>
|
||||
70
cricket_ball/model.sdf
Normal file
70
cricket_ball/model.sdf
Normal file
@@ -0,0 +1,70 @@
|
||||
<?xml version="1.0" ?>
|
||||
|
||||
<sdf version="1.5">
|
||||
<model name="cricket_ball">
|
||||
<link name="link">
|
||||
<pose>0 0 0.0375 0 0 0</pose>
|
||||
<inertial>
|
||||
<mass>0.1467</mass>
|
||||
<inertia>
|
||||
<ixx>8.251875e-05</ixx>
|
||||
<ixy>0</ixy>
|
||||
<ixz>0</ixz>
|
||||
<iyy>8.251875e-05</iyy>
|
||||
<iyz>0</iyz>
|
||||
<izz>8.251875e-05</izz>
|
||||
</inertia>
|
||||
</inertial>
|
||||
|
||||
<collision name="collision">
|
||||
<geometry>
|
||||
<sphere>
|
||||
<radius>0.0375</radius>
|
||||
</sphere>
|
||||
</geometry>
|
||||
<surface>
|
||||
<contact>
|
||||
<!-- Red Pine coefficients for longitudinal axis of the wood
|
||||
according to:
|
||||
http://www.fpl.fs.fed.us/documnts/fplgtr/fplgtr113/ch04.pdf -->
|
||||
<poissons_ratio>0.347</poissons_ratio>
|
||||
<elastic_modulus>8.8e+09</elastic_modulus>
|
||||
<ode>
|
||||
<kp>100000</kp>
|
||||
<kd>100</kd>
|
||||
<max_vel>100.0</max_vel>
|
||||
<min_depth>0.001</min_depth>
|
||||
</ode>
|
||||
</contact>
|
||||
<friction>
|
||||
<torsional>
|
||||
<coefficient>1.0</coefficient>
|
||||
<use_patch_radius>0</use_patch_radius>
|
||||
<surface_radius>0.01</surface_radius>
|
||||
</torsional>
|
||||
</friction>
|
||||
</surface>
|
||||
</collision>
|
||||
|
||||
<visual name="visual">
|
||||
<geometry>
|
||||
<sphere>
|
||||
<radius>0.0375</radius>
|
||||
</sphere>
|
||||
</geometry>
|
||||
<material>
|
||||
<script>
|
||||
<uri>file://media/materials/scripts/gazebo.material</uri>
|
||||
<name>Gazebo/Red</name>
|
||||
</script>
|
||||
</material>
|
||||
</visual>
|
||||
|
||||
<!-- approximate rolling friction -->
|
||||
<velocity_decay>
|
||||
<linear>0.00</linear>
|
||||
<angular>0.005</angular>
|
||||
</velocity_decay>
|
||||
</link>
|
||||
</model>
|
||||
</sdf>
|
||||
Reference in New Issue
Block a user