Skip to content

Commit

Permalink
feat: update planning world
Browse files Browse the repository at this point in the history
  • Loading branch information
SS47816 committed Mar 7, 2024
1 parent ad7d582 commit dfa4c28
Show file tree
Hide file tree
Showing 2 changed files with 161 additions and 4 deletions.
5 changes: 1 addition & 4 deletions src/me5413_world/launch/world.launch
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<!-- Load the project world into Gazebo -->
<include file="$(find gazebo_ros)/launch/empty_world.launch">
<arg name="world_name" value="$(find me5413_world)/worlds/me5413_project.world"/>
<arg name="world_name" value="$(find me5413_world)/worlds/me5413_planning.world"/>
<arg name="debug" value="false" />
<arg name="gui" value="true" />
<arg name="paused" value="false"/>
Expand All @@ -15,7 +15,4 @@
<!-- Add our jackal robot into the simulation -->
<include file="$(find me5413_world)/launch/include/spawn_jackal.launch"/>

<!-- Load the destination configuration -->
<rosparam command="load" file="$(find me5413_world)/config/config.yaml" />

</launch>
160 changes: 160 additions & 0 deletions src/me5413_world/worlds/me5413_planning.world
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
<sdf version='1.7'>
<world name='default'>
<light name='sun' type='directional'>
<cast_shadows>1</cast_shadows>
<pose>0 0 10 0 -0 0</pose>
<diffuse>0.8 0.8 0.8 1</diffuse>
<specular>0.2 0.2 0.2 1</specular>
<attenuation>
<range>1000</range>
<constant>0.9</constant>
<linear>0.01</linear>
<quadratic>0.001</quadratic>
</attenuation>
<direction>-0.5 0.1 -0.9</direction>
<spot>
<inner_angle>0</inner_angle>
<outer_angle>0</outer_angle>
<falloff>0</falloff>
</spot>
</light>
<model name='ground_plane'>
<static>1</static>
<link name='link'>
<collision name='collision'>
<geometry>
<plane>
<normal>0 0 1</normal>
<size>100 100</size>
</plane>
</geometry>
<surface>
<friction>
<ode>
<mu>100</mu>
<mu2>50</mu2>
</ode>
<torsional>
<ode/>
</torsional>
</friction>
<contact>
<ode/>
</contact>
<bounce/>
</surface>
<max_contacts>10</max_contacts>
</collision>
<visual name='visual'>
<cast_shadows>0</cast_shadows>
<geometry>
<plane>
<normal>0 0 1</normal>
<size>100 100</size>
</plane>
</geometry>
<material>
<script>
<uri>file://media/materials/scripts/gazebo.material</uri>
<name>Gazebo/Grey</name>
</script>
</material>
</visual>
<self_collide>0</self_collide>
<enable_wind>0</enable_wind>
<kinematic>0</kinematic>
</link>
</model>
<gravity>0 0 -9.8</gravity>
<magnetic_field>6e-06 2.3e-05 -4.2e-05</magnetic_field>
<atmosphere type='adiabatic'/>
<physics type='ode'>
<max_step_size>0.001</max_step_size>
<real_time_factor>1</real_time_factor>
<real_time_update_rate>1000</real_time_update_rate>
</physics>
<scene>
<ambient>0.4 0.4 0.4 1</ambient>
<background>0.7 0.7 0.7 1</background>
<shadows>1</shadows>
</scene>
<wind/>
<spherical_coordinates>
<surface_model>EARTH_WGS84</surface_model>
<latitude_deg>0</latitude_deg>
<longitude_deg>0</longitude_deg>
<elevation>0</elevation>
<heading_deg>0</heading_deg>
</spherical_coordinates>
<state world_name='default'>
<sim_time>109 991000000</sim_time>
<real_time>38 686185124</real_time>
<wall_time>1709730761 14639134</wall_time>
<iterations>38670</iterations>
<model name='ground_plane'>
<pose>0 0 0 0 -0 0</pose>
<scale>1 1 1</scale>
<link name='link'>
<pose>0 0 0 0 -0 0</pose>
<velocity>0 0 0 0 -0 0</velocity>
<acceleration>0 0 0 0 -0 0</acceleration>
<wrench>0 0 0 0 -0 0</wrench>
</link>
</model>
<light name='sun'>
<pose>0 0 10 0 -0 0</pose>
</light>
</state>
<model name='asphalt_plane'>
<static>1</static>
<link name='link'>
<collision name='collision'>
<geometry>
<box>
<size>20 20 0.1</size>
</box>
</geometry>
<max_contacts>10</max_contacts>
<surface>
<contact>
<ode/>
</contact>
<bounce/>
<friction>
<torsional>
<ode/>
</torsional>
<ode/>
</friction>
</surface>
</collision>
<visual name='visual'>
<cast_shadows>0</cast_shadows>
<geometry>
<box>
<size>20 20 0.1</size>
</box>
</geometry>
<material>
<script>
<uri>model://asphalt_plane/materials/scripts</uri>
<uri>model://asphalt_plane/materials/textures</uri>
<name>vrc/asphalt</name>
</script>
</material>
</visual>
<self_collide>0</self_collide>
<enable_wind>0</enable_wind>
<kinematic>0</kinematic>
</link>
<pose>0 0 0 0 0 0</pose>
</model>
<gui fullscreen='0'>
<camera name='user_camera'>
<pose>5 -5 2 0 0.275643 2.35619</pose>
<view_controller>orbit</view_controller>
<projection_type>perspective</projection_type>
</camera>
</gui>
</world>
</sdf>

0 comments on commit dfa4c28

Please sign in to comment.