Add office_lab and forest Gazebo world maps
This commit is contained in:
@@ -26,10 +26,20 @@ source install/setup.bash
|
||||
```
|
||||
|
||||
### 2. Spawning the Simulation (Gazebo)
|
||||
To start the Gazebo Fortress simulator, spawn the integrated robot, and spin up joint controllers:
|
||||
```bash
|
||||
ros2 launch panther_piper_description simulation.launch.py
|
||||
```
|
||||
You can choose which environment map to spawn using the `world` argument:
|
||||
|
||||
- **Map 1: Office & 79m² Lab Layout (Default)**:
|
||||
```bash
|
||||
ros2 launch panther_piper_description simulation.launch.py world:=office_lab.sdf
|
||||
```
|
||||
- **Map 2: Outdoor Forest Map (Trees, Boulders & Off-Road Terrain)**:
|
||||
```bash
|
||||
ros2 launch panther_piper_description simulation.launch.py world:=forest.sdf
|
||||
```
|
||||
- **Empty World**:
|
||||
```bash
|
||||
ros2 launch panther_piper_description simulation.launch.py world:=empty.sdf
|
||||
```
|
||||
|
||||
### 3. Release the E-Stop (Required to Move Panther UGV Base)
|
||||
By default, the Panther base simulation spawns with the E-Stop triggered (`e_stop: true`). To release it and enable wheel drive motors:
|
||||
|
||||
@@ -8,6 +8,7 @@ install(DIRECTORY
|
||||
launch
|
||||
urdf
|
||||
rviz
|
||||
worlds
|
||||
DESTINATION share/${PROJECT_NAME}
|
||||
)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ from ament_index_python.packages import get_package_share_directory
|
||||
from launch import LaunchDescription
|
||||
from launch.actions import DeclareLaunchArgument, IncludeLaunchDescription, SetEnvironmentVariable
|
||||
from launch.launch_description_sources import PythonLaunchDescriptionSource
|
||||
from launch.substitutions import Command, LaunchConfiguration
|
||||
from launch.substitutions import Command, LaunchConfiguration, PathJoinSubstitution
|
||||
from launch_ros.actions import Node
|
||||
|
||||
def generate_launch_description():
|
||||
@@ -12,6 +12,12 @@ def generate_launch_description():
|
||||
xacro_file = os.path.join(pkg_path, 'urdf', 'panther_piper.urdf.xacro')
|
||||
controller_config = os.path.join(pkg_path, 'config', 'controllers.yaml')
|
||||
|
||||
declare_world_cmd = DeclareLaunchArgument(
|
||||
'world',
|
||||
default_value='office_lab.sdf',
|
||||
description='World file to load: office_lab.sdf, forest.sdf, or empty.sdf'
|
||||
)
|
||||
|
||||
# Set Gazebo resource path to find meshes of all packages
|
||||
ament_prefix_path = os.environ.get('AMENT_PREFIX_PATH', '')
|
||||
resource_paths = []
|
||||
@@ -52,12 +58,19 @@ def generate_launch_description():
|
||||
}]
|
||||
)
|
||||
|
||||
# Launch Gazebo
|
||||
# Construct world path
|
||||
world_path = PathJoinSubstitution([
|
||||
pkg_path,
|
||||
'worlds',
|
||||
LaunchConfiguration('world')
|
||||
])
|
||||
|
||||
# Launch Gazebo with selected world
|
||||
gz_sim_launch = IncludeLaunchDescription(
|
||||
PythonLaunchDescriptionSource(
|
||||
os.path.join(get_package_share_directory('ros_gz_sim'), 'launch', 'gz_sim.launch.py')
|
||||
),
|
||||
launch_arguments={'gz_args': '-r empty.sdf'}.items(),
|
||||
launch_arguments={'gz_args': Command(['echo -r ', world_path])}.items(),
|
||||
)
|
||||
|
||||
# Spawn Robot
|
||||
@@ -65,7 +78,7 @@ def generate_launch_description():
|
||||
package='ros_gz_sim',
|
||||
executable='create',
|
||||
name='spawn_robot',
|
||||
arguments=['-name', 'panther_piper', '-topic', 'robot_description'],
|
||||
arguments=['-name', 'panther_piper', '-topic', 'robot_description', '-z', '0.1'],
|
||||
output='screen',
|
||||
parameters=[{'use_sim_time': True}]
|
||||
)
|
||||
@@ -121,6 +134,7 @@ def generate_launch_description():
|
||||
)
|
||||
|
||||
return LaunchDescription([
|
||||
declare_world_cmd,
|
||||
set_gz_resource_path,
|
||||
set_ign_resource_path,
|
||||
robot_state_publisher_node,
|
||||
|
||||
@@ -0,0 +1,216 @@
|
||||
<?xml version="1.0" ?>
|
||||
<sdf version="1.6">
|
||||
<world name="forest_world">
|
||||
<!-- Physics settings -->
|
||||
<physics name="1ms" type="ignored">
|
||||
<max_step_size>0.001</max_step_size>
|
||||
<real_time_factor>1.0</real_time_factor>
|
||||
</physics>
|
||||
|
||||
<!-- Ignition Gazebo Plugins -->
|
||||
<plugin filename="libignition-gazebo-physics-system.so" name="ignition::gazebo::systems::Physics" />
|
||||
<plugin filename="libignition-gazebo-user-commands-system.so" name="ignition::gazebo::systems::UserCommands" />
|
||||
<plugin filename="libignition-gazebo-scene-broadcaster-system.so" name="ignition::gazebo::systems::SceneBroadcaster" />
|
||||
|
||||
<!-- Sunlight (Outdoor Sky Lighting) -->
|
||||
<light type="directional" name="sun">
|
||||
<cast_shadows>true</cast_shadows>
|
||||
<pose>0 0 20 0 0 0</pose>
|
||||
<diffuse>1.0 0.98 0.9 1</diffuse>
|
||||
<specular>0.4 0.4 0.4 1</specular>
|
||||
<attenuation>
|
||||
<range>1000</range>
|
||||
<constant>0.9</constant>
|
||||
<linear>0.01</linear>
|
||||
<quadratic>0.001</quadratic>
|
||||
</attenuation>
|
||||
<direction>-0.5 0.3 -0.8</direction>
|
||||
</light>
|
||||
|
||||
<!-- Outdoor Forest Ground (40m x 40m Grassy Terrain) -->
|
||||
<model name="forest_ground">
|
||||
<static>true</static>
|
||||
<link name="link">
|
||||
<collision name="collision">
|
||||
<geometry>
|
||||
<plane>
|
||||
<normal>0 0 1</normal>
|
||||
<size>50 50</size>
|
||||
</plane>
|
||||
</geometry>
|
||||
</collision>
|
||||
<visual name="visual">
|
||||
<geometry>
|
||||
<plane>
|
||||
<normal>0 0 1</normal>
|
||||
<size>50 50</size>
|
||||
</plane>
|
||||
</geometry>
|
||||
<material>
|
||||
<ambient>0.2 0.5 0.2 1</ambient>
|
||||
<diffuse>0.2 0.5 0.2 1</diffuse>
|
||||
<specular>0.05 0.05 0.05 1</specular>
|
||||
</material>
|
||||
</visual>
|
||||
</link>
|
||||
</model>
|
||||
|
||||
<!-- Dirt Path / Clearing Trail through the forest -->
|
||||
<model name="dirt_trail">
|
||||
<static>true</static>
|
||||
<pose>0 0 0.001 0 0 0</pose>
|
||||
<link name="link">
|
||||
<visual name="visual">
|
||||
<geometry>
|
||||
<box size="4.0 40.0 0.001"/>
|
||||
</geometry>
|
||||
<material>
|
||||
<ambient>0.45 0.35 0.2 1</ambient>
|
||||
<diffuse>0.45 0.35 0.2 1</diffuse>
|
||||
</material>
|
||||
</visual>
|
||||
</link>
|
||||
</model>
|
||||
|
||||
<!-- ======================================================== -->
|
||||
<!-- FOREST TREES & NATURAL OBSTACLES -->
|
||||
<!-- ======================================================== -->
|
||||
|
||||
<!-- Macro/Models for Pine & Deciduous Trees -->
|
||||
|
||||
<!-- Tree 1 -->
|
||||
<model name="tree_1">
|
||||
<static>true</static>
|
||||
<pose>-4.0 5.0 0 0 0 0</pose>
|
||||
<link name="trunk">
|
||||
<collision name="col"><geometry><cylinder radius="0.25" length="4.0"/></geometry></collision>
|
||||
<visual name="vis"><origin xyz="0 0 2.0"/><geometry><cylinder radius="0.25" length="4.0"/></geometry><material><ambient>0.35 0.2 0.1 1</ambient><diffuse>0.35 0.2 0.1 1</diffuse></material></visual>
|
||||
</link>
|
||||
<link name="canopy">
|
||||
<visual name="vis"><origin xyz="0 0 4.5"/><geometry><cone radius="1.8" length="3.5"/></geometry><material><ambient>0.1 0.4 0.15 1</ambient><diffuse>0.1 0.4 0.15 1</diffuse></material></visual>
|
||||
</link>
|
||||
</model>
|
||||
|
||||
<!-- Tree 2 -->
|
||||
<model name="tree_2">
|
||||
<static>true</static>
|
||||
<pose>5.0 6.0 0 0 0 0</pose>
|
||||
<link name="trunk">
|
||||
<collision name="col"><geometry><cylinder radius="0.3" length="4.5"/></geometry></collision>
|
||||
<visual name="vis"><origin xyz="0 0 2.25"/><geometry><cylinder radius="0.3" length="4.5"/></geometry><material><ambient>0.35 0.2 0.1 1</ambient><diffuse>0.35 0.2 0.1 1</diffuse></material></visual>
|
||||
</link>
|
||||
<link name="canopy">
|
||||
<visual name="vis"><origin xyz="0 0 4.8"/><geometry><sphere radius="2.2"/></geometry><material><ambient>0.12 0.45 0.12 1</ambient><diffuse>0.12 0.45 0.12 1</diffuse></material></visual>
|
||||
</link>
|
||||
</model>
|
||||
|
||||
<!-- Tree 3 -->
|
||||
<model name="tree_3">
|
||||
<static>true</static>
|
||||
<pose>-6.5 -3.0 0 0 0 0</pose>
|
||||
<link name="trunk">
|
||||
<collision name="col"><geometry><cylinder radius="0.22" length="3.8"/></geometry></collision>
|
||||
<visual name="vis"><origin xyz="0 0 1.9"/><geometry><cylinder radius="0.22" length="3.8"/></geometry><material><ambient>0.35 0.2 0.1 1</ambient><diffuse>0.35 0.2 0.1 1</diffuse></material></visual>
|
||||
</link>
|
||||
<link name="canopy">
|
||||
<visual name="vis"><origin xyz="0 0 4.2"/><geometry><cone radius="1.6" length="3.2"/></geometry><material><ambient>0.08 0.38 0.1 1</ambient><diffuse>0.08 0.38 0.1 1</diffuse></material></visual>
|
||||
</link>
|
||||
</model>
|
||||
|
||||
<!-- Tree 4 -->
|
||||
<model name="tree_4">
|
||||
<static>true</static>
|
||||
<pose>6.0 -4.5 0 0 0 0</pose>
|
||||
<link name="trunk">
|
||||
<collision name="col"><geometry><cylinder radius="0.28" length="4.2"/></geometry></collision>
|
||||
<visual name="vis"><origin xyz="0 0 2.1"/><geometry><cylinder radius="0.28" length="4.2"/></geometry><material><ambient>0.35 0.2 0.1 1</ambient><diffuse>0.35 0.2 0.1 1</diffuse></material></visual>
|
||||
</link>
|
||||
<link name="canopy">
|
||||
<visual name="vis"><origin xyz="0 0 4.5"/><geometry><sphere radius="2.0"/></geometry><material><ambient>0.15 0.48 0.15 1</ambient><diffuse>0.15 0.48 0.15 1</diffuse></material></visual>
|
||||
</link>
|
||||
</model>
|
||||
|
||||
<!-- Tree 5 -->
|
||||
<model name="tree_5">
|
||||
<static>true</static>
|
||||
<pose>-3.5 12.0 0 0 0 0</pose>
|
||||
<link name="trunk"><collision name="col"><geometry><cylinder radius="0.3" length="4.5"/></geometry></collision><visual name="vis"><origin xyz="0 0 2.25"/><geometry><cylinder radius="0.3" length="4.5"/></geometry><material><ambient>0.35 0.2 0.1 1</ambient></material></visual></link>
|
||||
<link name="canopy"><visual name="vis"><origin xyz="0 0 4.8"/><geometry><cone radius="2.0" length="3.8"/></geometry><material><ambient>0.1 0.42 0.12 1</ambient></material></visual></link>
|
||||
</model>
|
||||
|
||||
<!-- Tree 6 -->
|
||||
<model name="tree_6">
|
||||
<static>true</static>
|
||||
<pose>4.5 13.5 0 0 0 0</pose>
|
||||
<link name="trunk"><collision name="col"><geometry><cylinder radius="0.25" length="4.0"/></geometry></collision><visual name="vis"><origin xyz="0 0 2.0"/><geometry><cylinder radius="0.25" length="4.0"/></geometry><material><ambient>0.35 0.2 0.1 1</ambient></material></visual></link>
|
||||
<link name="canopy"><visual name="vis"><origin xyz="0 0 4.5"/><geometry><sphere radius="1.9"/></geometry><material><ambient>0.12 0.45 0.12 1</ambient></material></visual></link>
|
||||
</model>
|
||||
|
||||
<!-- Tree 7 -->
|
||||
<model name="tree_7">
|
||||
<static>true</static>
|
||||
<pose>-8.0 -10.0 0 0 0 0</pose>
|
||||
<link name="trunk"><collision name="col"><geometry><cylinder radius="0.32" length="5.0"/></geometry></collision><visual name="vis"><origin xyz="0 0 2.5"/><geometry><cylinder radius="0.32" length="5.0"/></geometry><material><ambient>0.35 0.2 0.1 1</ambient></material></visual></link>
|
||||
<link name="canopy"><visual name="vis"><origin xyz="0 0 5.2"/><geometry><cone radius="2.2" length="4.0"/></geometry><material><ambient>0.08 0.35 0.1 1</ambient></material></visual></link>
|
||||
</model>
|
||||
|
||||
<!-- Tree 8 -->
|
||||
<model name="tree_8">
|
||||
<static>true</static>
|
||||
<pose>8.5 -11.0 0 0 0 0</pose>
|
||||
<link name="trunk"><collision name="col"><geometry><cylinder radius="0.26" length="4.0"/></geometry></collision><visual name="vis"><origin xyz="0 0 2.0"/><geometry><cylinder radius="0.26" length="4.0"/></geometry><material><ambient>0.35 0.2 0.1 1</ambient></material></visual></link>
|
||||
<link name="canopy"><visual name="vis"><origin xyz="0 0 4.4"/><geometry><sphere radius="1.8"/></geometry><material><ambient>0.14 0.46 0.14 1</ambient></material></visual></link>
|
||||
</model>
|
||||
|
||||
<!-- Fallen Log (Off-road obstacle) -->
|
||||
<model name="fallen_log">
|
||||
<static>true</static>
|
||||
<pose>-1.5 8.0 0.2 0 1.57 0.4</pose>
|
||||
<link name="link">
|
||||
<collision name="col"><geometry><cylinder radius="0.2" length="3.0"/></geometry></collision>
|
||||
<visual name="vis">
|
||||
<geometry><cylinder radius="0.2" length="3.0"/></geometry>
|
||||
<material><ambient>0.3 0.18 0.08 1</ambient><diffuse>0.3 0.18 0.08 1</diffuse></material>
|
||||
</visual>
|
||||
</link>
|
||||
</model>
|
||||
|
||||
<!-- Rock Boulders -->
|
||||
<model name="boulder_1">
|
||||
<static>true</static>
|
||||
<pose>2.5 3.0 0.3 0.2 0.4 0.8</pose>
|
||||
<link name="link">
|
||||
<collision name="col"><geometry><box size="0.9 0.7 0.6"/></geometry></collision>
|
||||
<visual name="vis">
|
||||
<geometry><box size="0.9 0.7 0.6"/></geometry>
|
||||
<material><ambient>0.4 0.4 0.42 1</ambient><diffuse>0.4 0.4 0.42 1</diffuse></material>
|
||||
</visual>
|
||||
</link>
|
||||
</model>
|
||||
|
||||
<model name="boulder_2">
|
||||
<static>true</static>
|
||||
<pose>-2.8 -4.0 0.35 -0.3 0.1 1.2</pose>
|
||||
<link name="link">
|
||||
<collision name="col"><geometry><box size="1.2 0.9 0.7"/></geometry></collision>
|
||||
<visual name="vis">
|
||||
<geometry><box size="1.2 0.9 0.7"/></geometry>
|
||||
<material><ambient>0.38 0.38 0.4 1</ambient><diffuse>0.38 0.38 0.4 1</diffuse></material>
|
||||
</visual>
|
||||
</link>
|
||||
</model>
|
||||
|
||||
<model name="boulder_3">
|
||||
<static>true</static>
|
||||
<pose>3.2 -7.0 0.25 0.1 -0.2 0.3</pose>
|
||||
<link name="link">
|
||||
<collision name="col"><geometry><box size="0.8 0.8 0.5"/></geometry></collision>
|
||||
<visual name="vis">
|
||||
<geometry><box size="0.8 0.8 0.5"/></geometry>
|
||||
<material><ambient>0.42 0.42 0.44 1</ambient><diffuse>0.42 0.42 0.44 1</diffuse></material>
|
||||
</visual>
|
||||
</link>
|
||||
</model>
|
||||
|
||||
</world>
|
||||
</sdf>
|
||||
@@ -0,0 +1,333 @@
|
||||
<?xml version="1.0" ?>
|
||||
<sdf version="1.6">
|
||||
<world name="office_lab_world">
|
||||
<!-- Physics settings -->
|
||||
<physics name="1ms" type="ignored">
|
||||
<max_step_size>0.001</max_step_size>
|
||||
<real_time_factor>1.0</real_time_factor>
|
||||
</physics>
|
||||
|
||||
<!-- Ignition Gazebo Plugins -->
|
||||
<plugin filename="libignition-gazebo-physics-system.so" name="ignition::gazebo::systems::Physics" />
|
||||
<plugin filename="libignition-gazebo-user-commands-system.so" name="ignition::gazebo::systems::UserCommands" />
|
||||
<plugin filename="libignition-gazebo-scene-broadcaster-system.so" name="ignition::gazebo::systems::SceneBroadcaster" />
|
||||
|
||||
<!-- Ambient & Directional Lighting -->
|
||||
<light type="directional" name="sun">
|
||||
<cast_shadows>true</cast_shadows>
|
||||
<pose>0 0 12 0 0 0</pose>
|
||||
<diffuse>0.9 0.9 0.9 1</diffuse>
|
||||
<specular>0.3 0.3 0.3 1</specular>
|
||||
<attenuation>
|
||||
<range>1000</range>
|
||||
<constant>0.9</constant>
|
||||
<linear>0.01</linear>
|
||||
<quadratic>0.001</quadratic>
|
||||
</attenuation>
|
||||
<direction>-0.4 0.2 -0.9</direction>
|
||||
</light>
|
||||
|
||||
<!-- Ground Floor -->
|
||||
<model name="ground_plane">
|
||||
<static>true</static>
|
||||
<link name="link">
|
||||
<collision name="collision">
|
||||
<geometry>
|
||||
<plane>
|
||||
<normal>0 0 1</normal>
|
||||
<size>40 30</size>
|
||||
</plane>
|
||||
</geometry>
|
||||
</collision>
|
||||
<visual name="visual">
|
||||
<geometry>
|
||||
<plane>
|
||||
<normal>0 0 1</normal>
|
||||
<size>40 30</size>
|
||||
</plane>
|
||||
</geometry>
|
||||
<material>
|
||||
<ambient>0.75 0.75 0.75 1</ambient>
|
||||
<diffuse>0.75 0.75 0.75 1</diffuse>
|
||||
<specular>0.1 0.1 0.1 1</specular>
|
||||
</material>
|
||||
</visual>
|
||||
</link>
|
||||
</model>
|
||||
|
||||
<!-- ======================================================== -->
|
||||
<!-- BUILDING ARCHITECTURE (OFFICES + LARGE LAB 79m²) -->
|
||||
<!-- ======================================================== -->
|
||||
<model name="office_lab_building">
|
||||
<static>true</static>
|
||||
|
||||
<!-- Outer Perimeter Walls (Height = 2.8m, Thickness = 0.2m) -->
|
||||
|
||||
<!-- North Wall (Back) -->
|
||||
<link name="north_wall">
|
||||
<pose>0 4.0 1.4 0 0 0</pose>
|
||||
<collision name="col"><geometry><box size="22.0 0.2 2.8"/></geometry></collision>
|
||||
<visual name="vis">
|
||||
<geometry><box size="22.0 0.2 2.8"/></geometry>
|
||||
<material><ambient>0.85 0.85 0.82 1</ambient><diffuse>0.85 0.85 0.82 1</diffuse></material>
|
||||
</visual>
|
||||
</link>
|
||||
|
||||
<!-- West Wall (Left Side) -->
|
||||
<link name="west_wall">
|
||||
<pose>-11.0 0.0 1.4 0 0 0</pose>
|
||||
<collision name="col"><geometry><box size="0.2 8.0 2.8"/></geometry></collision>
|
||||
<visual name="vis">
|
||||
<geometry><box size="0.2 8.0 2.8"/></geometry>
|
||||
<material><ambient>0.85 0.85 0.82 1</ambient><diffuse>0.85 0.85 0.82 1</diffuse></material>
|
||||
</visual>
|
||||
</link>
|
||||
|
||||
<!-- East Wall (Right Side) -->
|
||||
<link name="east_wall">
|
||||
<pose>11.0 0.0 1.4 0 0 0</pose>
|
||||
<collision name="col"><geometry><box size="0.2 8.0 2.8"/></geometry></collision>
|
||||
<visual name="vis">
|
||||
<geometry><box size="0.2 8.0 2.8"/></geometry>
|
||||
<material><ambient>0.85 0.85 0.82 1</ambient><diffuse>0.85 0.85 0.82 1</diffuse></material>
|
||||
</visual>
|
||||
</link>
|
||||
|
||||
<!-- South Wall Outer (Bottom) with Corridor Openings -->
|
||||
<link name="south_wall_left">
|
||||
<pose>-6.0 -4.0 1.4 0 0 0</pose>
|
||||
<collision name="col"><geometry><box size="10.0 0.2 2.8"/></geometry></collision>
|
||||
<visual name="vis">
|
||||
<geometry><box size="10.0 0.2 2.8"/></geometry>
|
||||
<material><ambient>0.85 0.85 0.82 1</ambient><diffuse>0.85 0.85 0.82 1</diffuse></material>
|
||||
</visual>
|
||||
</link>
|
||||
<link name="south_wall_right">
|
||||
<pose>5.0 -4.0 1.4 0 0 0</pose>
|
||||
<collision name="col"><geometry><box size="12.0 0.2 2.8"/></geometry></collision>
|
||||
<visual name="vis">
|
||||
<geometry><box size="12.0 0.2 2.8"/></geometry>
|
||||
<material><ambient>0.85 0.85 0.82 1</ambient><diffuse>0.85 0.85 0.82 1</diffuse></material>
|
||||
</visual>
|
||||
</link>
|
||||
|
||||
<!-- ======================================================== -->
|
||||
<!-- INTERIOR DIVIDING WALLS & ROOMS -->
|
||||
<!-- ======================================================== -->
|
||||
|
||||
<!-- Main Central Wall separating Offices (Left) and Large Lab (Right) -->
|
||||
<!-- Wall at X = 0.0, from Y = -2.2 to Y = 4.0 with Doorway at Y = 1.0 -->
|
||||
<link name="center_divider_north">
|
||||
<pose>0.0 2.6 1.4 0 0 0</pose>
|
||||
<collision name="col"><geometry><box size="0.2 2.8 2.8"/></geometry></collision>
|
||||
<visual name="vis">
|
||||
<geometry><box size="0.2 2.8 2.8"/></geometry>
|
||||
<material><ambient>0.7 0.7 0.75 1</ambient><diffuse>0.7 0.7 0.75 1</diffuse></material>
|
||||
</visual>
|
||||
</link>
|
||||
<link name="center_divider_south">
|
||||
<pose>0.0 -1.1 1.4 0 0 0</pose>
|
||||
<collision name="col"><geometry><box size="0.2 2.2 2.8"/></geometry></collision>
|
||||
<visual name="vis">
|
||||
<geometry><box size="0.2 2.2 2.8"/></geometry>
|
||||
<material><ambient>0.7 0.7 0.75 1</ambient><diffuse>0.7 0.7 0.75 1</diffuse></material>
|
||||
</visual>
|
||||
</link>
|
||||
|
||||
<!-- Main Corridor Wall (running east-west at Y = -2.2) -->
|
||||
<!-- Office 1 Corridor Wall (S-A329) with Doorway -->
|
||||
<link name="corridor_wall_office1">
|
||||
<pose>-9.2 -2.2 1.4 0 0 0</pose>
|
||||
<collision name="col"><geometry><box size="2.4 0.2 2.8"/></geometry></collision>
|
||||
<visual name="vis">
|
||||
<geometry><box size="2.4 0.2 2.8"/></geometry>
|
||||
<material><ambient>0.8 0.8 0.8 1</ambient><diffuse>0.8 0.8 0.8 1</diffuse></material>
|
||||
</visual>
|
||||
</link>
|
||||
|
||||
<!-- Office 2 Corridor Wall (S-A328) with Angled Entrance Doorway -->
|
||||
<link name="corridor_wall_office2">
|
||||
<pose>-5.5 -2.2 1.4 0 0 0</pose>
|
||||
<collision name="col"><geometry><box size="2.2 0.2 2.8"/></geometry></collision>
|
||||
<visual name="vis">
|
||||
<geometry><box size="2.2 0.2 2.8"/></geometry>
|
||||
<material><ambient>0.8 0.8 0.8 1</ambient><diffuse>0.8 0.8 0.8 1</diffuse></material>
|
||||
</visual>
|
||||
</link>
|
||||
|
||||
<!-- Office 3 Corridor Wall (S-A327) with Doorway -->
|
||||
<link name="corridor_wall_office3">
|
||||
<pose>-1.8 -2.2 1.4 0 0 0</pose>
|
||||
<collision name="col"><geometry><box size="2.2 0.2 2.8"/></geometry></collision>
|
||||
<visual name="vis">
|
||||
<geometry><box size="2.2 0.2 2.8"/></geometry>
|
||||
<material><ambient>0.8 0.8 0.8 1</ambient><diffuse>0.8 0.8 0.8 1</diffuse></material>
|
||||
</visual>
|
||||
</link>
|
||||
|
||||
<!-- Lab Corridor Wall (79m² Lab) with Doorways -->
|
||||
<link name="corridor_wall_lab">
|
||||
<pose>5.5 -2.2 1.4 0 0 0</pose>
|
||||
<collision name="col"><geometry><box size="8.5 0.2 2.8"/></geometry></collision>
|
||||
<visual name="vis">
|
||||
<geometry><box size="8.5 0.2 2.8"/></geometry>
|
||||
<material><ambient>0.8 0.8 0.8 1</ambient><diffuse>0.8 0.8 0.8 1</diffuse></material>
|
||||
</visual>
|
||||
</link>
|
||||
|
||||
<!-- Office Dividing Walls (North-South) -->
|
||||
<!-- Wall between Office 1 (S-A329) & Office 2 (S-A328) -->
|
||||
<link name="wall_off1_off2">
|
||||
<pose>-7.5 0.9 1.4 0 0 0</pose>
|
||||
<collision name="col"><geometry><box size="0.2 6.2 2.8"/></geometry></collision>
|
||||
<visual name="vis">
|
||||
<geometry><box size="0.2 6.2 2.8"/></geometry>
|
||||
<material><ambient>0.8 0.8 0.8 1</ambient><diffuse>0.8 0.8 0.8 1</diffuse></material>
|
||||
</visual>
|
||||
</link>
|
||||
|
||||
<!-- Wall between Office 2 (S-A328) & Office 3 (S-A327) -->
|
||||
<link name="wall_off2_off3">
|
||||
<pose>-3.8 0.9 1.4 0 0 0</pose>
|
||||
<collision name="col"><geometry><box size="0.2 6.2 2.8"/></geometry></collision>
|
||||
<visual name="vis">
|
||||
<geometry><box size="0.2 6.2 2.8"/></geometry>
|
||||
<material><ambient>0.8 0.8 0.8 1</ambient><diffuse>0.8 0.8 0.8 1</diffuse></material>
|
||||
</visual>
|
||||
</link>
|
||||
|
||||
<!-- ======================================================== -->
|
||||
<!-- SPECIAL ROOM ENCLOSURES & ALCOVES -->
|
||||
<!-- ======================================================== -->
|
||||
|
||||
<!-- Storage S-A330 (Bottom Left, 4.6 m²) -->
|
||||
<link name="storage_a330_wall">
|
||||
<pose>-9.2 -3.1 1.4 0 0 0</pose>
|
||||
<collision name="col"><geometry><box size="0.2 1.6 2.8"/></geometry></collision>
|
||||
<visual name="vis">
|
||||
<geometry><box size="0.2 1.6 2.8"/></geometry>
|
||||
<material><ambient>0.75 0.75 0.7 1</ambient><diffuse>0.75 0.75 0.7 1</diffuse></material>
|
||||
</visual>
|
||||
</link>
|
||||
|
||||
<!-- Teeküche S-A325 (Lab Tea Kitchen Alcove, 3.28 m²) -->
|
||||
<link name="tea_kitchen_wall">
|
||||
<pose>1.0 -3.1 1.4 0 0 0</pose>
|
||||
<collision name="col"><geometry><box size="0.2 1.6 2.8"/></geometry></collision>
|
||||
<visual name="vis">
|
||||
<geometry><box size="0.2 1.6 2.8"/></geometry>
|
||||
<material><ambient>0.75 0.75 0.7 1</ambient><diffuse>0.75 0.75 0.7 1</diffuse></material>
|
||||
</visual>
|
||||
</link>
|
||||
|
||||
<!-- EDV-Peripherielagerraum S-A322 (Bottom Right Lab Storage, 8.9 m²) -->
|
||||
<link name="edv_storage_wall">
|
||||
<pose>7.5 -3.1 1.4 0 0 0</pose>
|
||||
<collision name="col"><geometry><box size="0.2 1.6 2.8"/></geometry></collision>
|
||||
<visual name="vis">
|
||||
<geometry><box size="0.2 1.6 2.8"/></geometry>
|
||||
<material><ambient>0.75 0.75 0.7 1</ambient><diffuse>0.75 0.75 0.7 1</diffuse></material>
|
||||
</visual>
|
||||
</link>
|
||||
<link name="edv_storage_front">
|
||||
<pose>9.2 -2.2 1.4 0 0 0</pose>
|
||||
<collision name="col"><geometry><box size="3.4 0.2 2.8"/></geometry></collision>
|
||||
<visual name="vis">
|
||||
<geometry><box size="3.4 0.2 2.8"/></geometry>
|
||||
<material><ambient>0.75 0.75 0.7 1</ambient><diffuse>0.75 0.75 0.7 1</diffuse></material>
|
||||
</visual>
|
||||
</link>
|
||||
|
||||
</model>
|
||||
|
||||
<!-- ======================================================== -->
|
||||
<!-- LAB WORKBENCHES & MANIPULATION TARGETS -->
|
||||
<!-- ======================================================== -->
|
||||
|
||||
<!-- Main Central Experiment Workbench in Large Lab (79m²) -->
|
||||
<model name="lab_workbench">
|
||||
<static>true</static>
|
||||
<pose>5.0 1.0 0.4 0 0 0</pose>
|
||||
<link name="link">
|
||||
<collision name="col"><geometry><box size="2.4 1.2 0.8"/></geometry></collision>
|
||||
<visual name="vis">
|
||||
<geometry><box size="2.4 1.2 0.8"/></geometry>
|
||||
<material>
|
||||
<ambient>0.2 0.4 0.6 1</ambient>
|
||||
<diffuse>0.2 0.4 0.6 1</diffuse>
|
||||
</material>
|
||||
</visual>
|
||||
</link>
|
||||
</model>
|
||||
|
||||
<!-- Secondary Lab Table -->
|
||||
<model name="lab_table_2">
|
||||
<static>true</static>
|
||||
<pose>8.5 2.5 0.4 0 0 0</pose>
|
||||
<link name="link">
|
||||
<collision name="col"><geometry><box size="1.8 1.0 0.8"/></geometry></collision>
|
||||
<visual name="vis">
|
||||
<geometry><box size="1.8 1.0 0.8"/></geometry>
|
||||
<material>
|
||||
<ambient>0.3 0.3 0.3 1</ambient>
|
||||
<diffuse>0.3 0.3 0.3 1</diffuse>
|
||||
</material>
|
||||
</visual>
|
||||
</link>
|
||||
</model>
|
||||
|
||||
<!-- Grasping Target Objects on the Main Workbench (for PiPER Arm MoveIt Testing) -->
|
||||
<!-- Red Cylinder Target -->
|
||||
<model name="target_cylinder">
|
||||
<pose>5.0 1.0 0.85 0 0 0</pose>
|
||||
<link name="link">
|
||||
<inertial><mass>0.1</mass><inertia ixx="0.001" ixy="0" ixz="0" iyy="0.001" iyz="0" izz="0.001"/></inertial>
|
||||
<collision name="col"><geometry><cylinder radius="0.03" length="0.1"/></geometry></collision>
|
||||
<visual name="vis">
|
||||
<geometry><cylinder radius="0.03" length="0.1"/></geometry>
|
||||
<material><ambient>0.9 0.1 0.1 1</ambient><diffuse>0.9 0.1 0.1 1</diffuse></material>
|
||||
</visual>
|
||||
</link>
|
||||
</model>
|
||||
|
||||
<!-- Blue Box Target -->
|
||||
<model name="target_box">
|
||||
<pose>5.3 0.9 0.85 0 0 0</pose>
|
||||
<link name="link">
|
||||
<inertial><mass>0.1</mass><inertia ixx="0.001" ixy="0" ixz="0" iyy="0.001" iyz="0" izz="0.001"/></inertial>
|
||||
<collision name="col"><geometry><box size="0.06 0.06 0.08"/></geometry></collision>
|
||||
<visual name="vis">
|
||||
<geometry><box size="0.06 0.06 0.08"/></geometry>
|
||||
<material><ambient>0.1 0.3 0.9 1</ambient><diffuse>0.1 0.3 0.9 1</diffuse></material>
|
||||
</visual>
|
||||
</link>
|
||||
</model>
|
||||
|
||||
<!-- Office Desk in Office 1 (S-A329) -->
|
||||
<model name="office1_desk">
|
||||
<static>true</static>
|
||||
<pose>-9.2 1.5 0.38 0 0 0</pose>
|
||||
<link name="link">
|
||||
<collision name="col"><geometry><box size="1.6 0.8 0.75"/></geometry></collision>
|
||||
<visual name="vis">
|
||||
<geometry><box size="1.6 0.8 0.75"/></geometry>
|
||||
<material><ambient>0.6 0.4 0.2 1</ambient><diffuse>0.6 0.4 0.2 1</diffuse></material>
|
||||
</visual>
|
||||
</link>
|
||||
</model>
|
||||
|
||||
<!-- Office Desk in Office 2 (S-A328) -->
|
||||
<model name="office2_desk">
|
||||
<static>true</static>
|
||||
<pose>-5.5 1.5 0.38 0 0 0</pose>
|
||||
<link name="link">
|
||||
<collision name="col"><geometry><box size="1.6 0.8 0.75"/></geometry></collision>
|
||||
<visual name="vis">
|
||||
<geometry><box size="1.6 0.8 0.75"/></geometry>
|
||||
<material><ambient>0.6 0.4 0.2 1</ambient><diffuse>0.6 0.4 0.2 1</diffuse></material>
|
||||
</visual>
|
||||
</link>
|
||||
</model>
|
||||
|
||||
</world>
|
||||
</sdf>
|
||||
Reference in New Issue
Block a user