Add Latitude, Logitude and Altitude of Porto Alegre.
authorWalter Fetter Lages <w.fetter@ieee.org>
Wed, 20 Apr 2022 16:42:50 +0000 (13:42 -0300)
committerWalter Fetter Lages <w.fetter@ieee.org>
Wed, 20 Apr 2022 16:42:50 +0000 (13:42 -0300)
worlds/centenario.world
worlds/empty_sky_porto_alegre.world [new file with mode: 0644]

index 4571f07..d714130 100644 (file)
     <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>
+      <latitude_deg>-30.0277777777778</latitude_deg>
+      <longitude_deg>-51.228611111111</longitude_deg>
+      <elevation>22.0</elevation>
+      <!-- currently gazebo has a bug: instead of outputing lat, long, altitude in ENU
+        (x = East, y = North and z = Up) as the default configurations, it's outputting (-E)(-N)U,
+        therefore we rotate the default frame 180 so that it would go back to ENU -->
+      <heading_deg>180</heading_deg>
     </spherical_coordinates>
     <model name='Centenario'>
       <pose frame=''>-0.118577 7.44241 0 0 -0 0</pose>
diff --git a/worlds/empty_sky_porto_alegre.world b/worlds/empty_sky_porto_alegre.world
new file mode 100644 (file)
index 0000000..4b1de68
--- /dev/null
@@ -0,0 +1,30 @@
+<?xml version="1.0" ?>
+<sdf version="1.5">
+  <world name="default">
+    <scene>
+      <sky>
+        <clouds>
+          <speed>12</speed>
+        </clouds>
+      </sky>
+    </scene>
+    <!-- A global light source -->
+    <include>
+      <uri>model://sun</uri>
+    </include>
+    <!-- A ground plane -->
+    <include>
+      <uri>model://ground_plane</uri>
+    </include>
+   <spherical_coordinates>
+        <!-- currently gazebo has a bug: instead of outputing lat, long, altitude in ENU
+        (x = East, y = North and z = Up) as the default configurations, it's outputting (-E)(-N)U,
+        therefore we rotate the default frame 180 so that it would go back to ENU -->
+        <heading_deg>180</heading_deg>
+       <surface_model>EARTH_WGS84</surface_model>
+       <latitude_deg>-30.0277777777778</latitude_deg>
+       <longitude_deg>-51.228611111111</longitude_deg>
+       <elevation>22.0</elevation>
+   </spherical_coordinates>    
+  </world>
+</sdf>