Skip to content

Commit

Permalink
[Mini Quadrotor][Gazebo] create a world where there is an April tag o…
Browse files Browse the repository at this point in the history
…n the ground
  • Loading branch information
tongtybj authored and Your Name committed Nov 10, 2023
1 parent f85efce commit 73a2649
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 1 deletion.
45 changes: 45 additions & 0 deletions robots/mini_quadrotor/gazebo_model/world/simple_april_tags.world
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?xml version="1.0" ?>
<sdf version='1.4'>
<world name='default'>

<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>
<gravity>0 0 -9.8</gravity>
</physics>

<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>

<!-- A global light source -->
<scene>
<sky>
<clouds>
<speed>12</speed>
</clouds>
</sky>
</scene>

<include>
<uri>model://sun</uri>
</include>

<include>
<uri>model://ground_plane</uri>
</include>

<model name="april_tag1" >
<pose>0.0 0.0 0.0 0 0 0</pose>
<include>
<uri>model://Apriltag36_11_00000_small//</uri>
</include>
</model>

</world>
</sdf>
2 changes: 1 addition & 1 deletion robots/mini_quadrotor/launch/bringup.launch
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<arg name="estimate_mode" default= "0" />
<arg name="sim_estimate_mode" default= "2" />
<arg name="headless" default="True" />
<arg name="worldtype" default="$(find aerial_robot_simulation)/gazebo_model/world/empty.world" />
<arg name="worldtype" default="$(find mini_quadrotor)/gazebo_model/world/simple_april_tags.world" />
<arg name="launch_gazebo" default="True" />
<arg name="direct_model" default="False" />
<arg name="direct_model_name" />
Expand Down

0 comments on commit 73a2649

Please sign in to comment.