Skip to content

Commit

Permalink
simulation table model and world - draft
Browse files Browse the repository at this point in the history
  • Loading branch information
gcielniak committed Oct 8, 2023
1 parent beb28b1 commit 8c41bdf
Show file tree
Hide file tree
Showing 7 changed files with 1,380 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
material SimulationTable/Background
{
technique
{
pass
{
texture_unit
{
texture background.png
}
}
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions src/limo_gazebosim/models/simulation_table/model.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0"?>

<model>
<name>simulation table</name>
<version>1.0</version>
<sdf version="1.5">model.sdf</sdf>

<author>
<name>Grzegorz Cielniak</name>
<email>[email protected]</email>
</author>

<description>
LIMO's simulation table. A basic version with all 16 parts arranged into a squared arena.
The background texture is based on a low res texture from the LIMO's simulation table user manual,
which was then vectorised in Inkscape. The source vector file is materials/textures/simulation_table_vector.svg
and can be used for export to PNG (@150 dpi) in Inkscape.
</description>
</model>
144 changes: 144 additions & 0 deletions src/limo_gazebosim/models/simulation_table/model.sdf
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
<?xml version="1.0" ?>
<sdf version="1.5">
<model name="simulation_table">
<static>true</static>
<link name="floor">
<collision name="collision">
<geometry>
<plane>
<normal>0 0 1</normal>
<size>3.0 3.0</size>
</plane>
</geometry>
<surface>
<friction>
<ode>
<mu>100</mu>
<mu2>50</mu2>
</ode>
</friction>
</surface>
</collision>
<visual name="visual">
<cast_shadows>false</cast_shadows>
<geometry>
<plane>
<normal>0 0 1</normal>
<size>3.0 3.0</size>
</plane>
</geometry>
<material>
<script>
<uri>model://simulation_table/materials/scripts/</uri>
<uri>model://simulation_table/materials/textures/</uri>
<name>SimulationTable/Background</name>
</script>
</material>
</visual>
</link>
<link name="side_1">
<pose relative_to="floor">0.0 1.5 0.1 1.57079632679 0 0</pose>
<collision name="collision">
<geometry>
<box>
<size>3.05 0.3 0.05</size>
</box>
</geometry>
<surface>
<friction>
<ode>
<mu>100</mu>
<mu2>50</mu2>
</ode>
</friction>
</surface>
</collision>
<visual name="visual">
<cast_shadows>false</cast_shadows>
<geometry>
<box>
<size>3.05 0.3 0.05</size>
</box>
</geometry>
</visual>
</link>
<link name="side_2">
<pose relative_to="floor">0.0 -1.5 0.1 1.57079632679 0 0</pose>
<collision name="collision">
<geometry>
<box>
<size>3.05 0.3 0.05</size>
</box>
</geometry>
<surface>
<friction>
<ode>
<mu>100</mu>
<mu2>50</mu2>
</ode>
</friction>
</surface>
</collision>
<visual name="visual">
<cast_shadows>false</cast_shadows>
<geometry>
<box>
<size>3.05 0.3 0.05</size>
</box>
</geometry>
</visual>
</link>
<link name="side_3">
<pose relative_to="floor">1.5 0.0 0.1 1.57079632679 0 1.57079632679</pose>
<collision name="collision">
<geometry>
<box>
<size>3.05 0.3 0.05</size>
</box>
</geometry>
<surface>
<friction>
<ode>
<mu>100</mu>
<mu2>50</mu2>
</ode>
</friction>
</surface>
</collision>
<visual name="visual">
<cast_shadows>false</cast_shadows>
<geometry>
<box>
<size>3.05 0.3 0.05</size>
</box>
</geometry>
</visual>
</link>
<link name="side_4">
<pose relative_to="floor">-1.5 0.0 0.1 1.57079632679 0 1.57079632679</pose>
<collision name="collision">
<geometry>
<box>
<size>3.05 0.3 0.05</size>
</box>
</geometry>
<surface>
<friction>
<ode>
<mu>100</mu>
<mu2>50</mu2>
</ode>
</friction>
</surface>
</collision>
<visual name="visual">
<cast_shadows>false</cast_shadows>
<geometry>
<box>
<size>3.05 0.3 0.05</size>
</box>
</geometry>
</visual>
</link>
</model>
</sdf>
15 changes: 15 additions & 0 deletions src/limo_gazebosim/worlds/simulation_table.world
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" ?>

<sdf version="1.5">
<world name="default">
<!-- A global light source -->
<include>
<uri>model://sun</uri>
</include>

<!-- simulation table -->
<include>
<uri>model://simulation_table</uri>
</include>
</world>
</sdf>

0 comments on commit 8c41bdf

Please sign in to comment.