Skip to content

frame_conventions

Carlos Agüero edited this page Mar 4, 2022 · 8 revisions

World frame

Gazebo's simulation is always performed in Cartesian coordinates (good old XYZ). You can visualize the Gazebo origin by selecting View->Origin in the GUI menu.

world_frame

Additionally, Gazebo supports the use of real world latitude and longitude coordinates in its simulations using the WGS84 geodetic system. The world's Cartesian coordinates correspond to a local tangent plane at a given point on the planetary surface. By default, this plane follows the ENU (East-North-Up) convention, as shown on the image below:

spherical_coordinates

Model frame

Gazebo follows the right-hand rule. The robot front facing surface is in the positive x direction, left facing being in the positive y direction, top facing being in the positive z direction and so forth.

model_frame_sm

The next diagram shows the transformation of the model when applying positive roll, pitch and yaw respectively.

roll_pitch_yaw

Wind

The wind plugin publishes the wind vector that is applied to calculate forces on the WAM-V, rather than a wind reading like you would get from a weather report. Thus, the direction value that is reported is where the wind is going to, rather than coming from, so the WAM-V will move in the direction of reported wind. The wind vector direction is expressed in the Gazebo world frame, and in degrees. So, for example, a wind direction of 360 (or 0) will push the WAM-V in the direction of the world frame x-axis, which is towards the east. A wind direction of 090 will push the WAM-V towards the north. The magnitude reported is in meters per second.

Clone this wiki locally