mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-01 04:46:51 +08:00
Gazebo in tudelft conf, with orange avoid example (#2149)
* Gazebo Cyberzoo and OrangeAvoid in tudelft conf, Simulate when no RC, call gzclient as tool * [orange_avoider] color setting * docs+remove modules section
This commit is contained in:
committed by
Christophe De Wagter
parent
62bb3cafaa
commit
6fafcaaae9
@@ -0,0 +1,103 @@
|
||||
<?xml version='1.0'?>
|
||||
<sdf version='1.4'>
|
||||
<model name="cyberzoo">
|
||||
<static>true</static>
|
||||
<pose>0 0 0 0 0 0</pose>
|
||||
|
||||
<link name="floor">
|
||||
<pose>0 0 0.01 0 0 0</pose>
|
||||
<visual name="visual">
|
||||
<geometry>
|
||||
<box>
|
||||
<size>10 10 0.02</size>
|
||||
</box>
|
||||
</geometry>
|
||||
<material>
|
||||
<ambient>0 0 0 1</ambient>
|
||||
<diffuse>0.2 0.8 0.2 1</diffuse>
|
||||
<specular>0.2 0.2 0.2 1</specular>
|
||||
<emissive>0 0 0 0</emissive>
|
||||
</material>
|
||||
</visual>
|
||||
<collision name="collision">
|
||||
<geometry>
|
||||
<box>
|
||||
<size>10 10 0.02</size>
|
||||
</box>
|
||||
</geometry>
|
||||
</collision>
|
||||
</link>
|
||||
|
||||
<link name="north_wall">
|
||||
<pose>0 5 5 0 0 0</pose>
|
||||
<visual name="visual">
|
||||
<geometry>
|
||||
<box>
|
||||
<size>10 0.2 10</size>
|
||||
</box>
|
||||
</geometry>
|
||||
<material>
|
||||
<ambient>0 0 0 1</ambient>
|
||||
<diffuse>0.2 0.2 0.2 1</diffuse>
|
||||
<specular>0 0 0 1</specular>
|
||||
<emissive>0 0 0 0</emissive>
|
||||
</material>
|
||||
</visual>
|
||||
<collision name="collision">
|
||||
<geometry>
|
||||
<box>
|
||||
<size>10 0.2 10</size>
|
||||
</box>
|
||||
</geometry>
|
||||
</collision>
|
||||
</link>
|
||||
|
||||
<link name="east_wall">
|
||||
<pose>5 0 5 0 0 0</pose>
|
||||
<visual name="visual">
|
||||
<geometry>
|
||||
<box>
|
||||
<size>0.2 10 10</size>
|
||||
</box>
|
||||
</geometry>
|
||||
<material>
|
||||
<ambient>0 0 0 1</ambient>
|
||||
<diffuse>0.2 0.2 0.2 1</diffuse>
|
||||
<specular>0 0 0 1</specular>
|
||||
<emissive>0 0 0 0</emissive>
|
||||
</material>
|
||||
</visual>
|
||||
<collision name="collision">
|
||||
<geometry>
|
||||
<box>
|
||||
<size>0.2 10 10</size>
|
||||
</box>
|
||||
</geometry>
|
||||
</collision>
|
||||
</link>
|
||||
|
||||
<link name="south_wall">
|
||||
<pose>0 -5 6.25 0 0 0</pose>
|
||||
<visual name="visual">
|
||||
<geometry>
|
||||
<box>
|
||||
<size>10 0.2 7.5</size>
|
||||
</box>
|
||||
</geometry>
|
||||
<material>
|
||||
<ambient>0 0 0 1</ambient>
|
||||
<diffuse>0.2 0.2 0.2 1</diffuse>
|
||||
<specular>0 0 0 1</specular>
|
||||
<emissive>0 0 0 0</emissive>
|
||||
</material>
|
||||
</visual>
|
||||
<collision name="collision">
|
||||
<geometry>
|
||||
<box>
|
||||
<size>10 0.2 7.5</size>
|
||||
</box>
|
||||
</geometry>
|
||||
</collision>
|
||||
</link>
|
||||
</model>
|
||||
</sdf>
|
||||
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0"?>
|
||||
<model>
|
||||
<name>Cyberzoo</name>
|
||||
<version>1.0</version>
|
||||
<sdf version='1.4'>cyberzoo.sdf</sdf>
|
||||
|
||||
<author>
|
||||
<name>Tom van Dijk</name>
|
||||
<email>tomvand@users.noreply.github.com</email>
|
||||
</author>
|
||||
|
||||
<description>
|
||||
Cyberzoo coarse model
|
||||
</description>
|
||||
</model>
|
||||
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0"?>
|
||||
<model>
|
||||
<name>Orange Pole</name>
|
||||
<version>1.0</version>
|
||||
<sdf version='1.4'>orange_pole.sdf</sdf>
|
||||
|
||||
<author>
|
||||
<name>Tom van Dijk</name>
|
||||
<email>tomvand@users.noreply.github.com</email>
|
||||
</author>
|
||||
|
||||
<description>
|
||||
Orange pole as used in the TU Delft Cyberzoo.
|
||||
</description>
|
||||
</model>
|
||||
@@ -0,0 +1,43 @@
|
||||
<?xml version='1.0'?>
|
||||
<sdf version="1.4">
|
||||
<model name="orange_pole">
|
||||
<pose>0 0 1.0 0 0 0</pose>
|
||||
<static>true</static>
|
||||
<link name="link">
|
||||
<inertial>
|
||||
<mass>1.0</mass>
|
||||
<inertia> <!-- interias are tricky to compute -->
|
||||
<!-- http://answers.gazebosim.org/question/4372/the-inertia-matrix-explained/ -->
|
||||
<ixx>0.083</ixx> <!-- for a box: ixx = 0.083 * mass * (y*y + z*z) -->
|
||||
<ixy>0.0</ixy> <!-- for a box: ixy = 0 -->
|
||||
<ixz>0.0</ixz> <!-- for a box: ixz = 0 -->
|
||||
<iyy>0.083</iyy> <!-- for a box: iyy = 0.083 * mass * (x*x + z*z) -->
|
||||
<iyz>0.0</iyz> <!-- for a box: iyz = 0 -->
|
||||
<izz>0.083</izz> <!-- for a box: izz = 0.083 * mass * (x*x + y*y) -->
|
||||
</inertia>
|
||||
</inertial>
|
||||
<collision name="collision">
|
||||
<geometry>
|
||||
<cylinder>
|
||||
<radius>0.3</radius>
|
||||
<length>2.0</length>
|
||||
</cylinder>
|
||||
</geometry>
|
||||
</collision>
|
||||
<visual name="visual">
|
||||
<geometry>
|
||||
<cylinder>
|
||||
<radius>0.2</radius>
|
||||
<length>2.0</length>
|
||||
</cylinder>
|
||||
</geometry>
|
||||
<material>
|
||||
<ambient>1 0.55 0 1</ambient>
|
||||
<diffuse>1 0.55 0 1</diffuse>
|
||||
<specular>0.1 0.1 0.1 1</specular>
|
||||
<emissive>0 0 0 0</emissive>
|
||||
</material>
|
||||
</visual>
|
||||
</link>
|
||||
</model>
|
||||
</sdf>
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user