Skip to content

Commit

Permalink
added gnss and time reference messages
Browse files Browse the repository at this point in the history
  • Loading branch information
pcdangio committed Aug 6, 2020
1 parent 60839dc commit 06747dd
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ add_message_files(
axis_state.msg
proximity.msg
analog_voltage.msg
time_reference.msg
gnss_fix.msg
gnss_position.msg
gnss_track.msg
)

# Add service files.
Expand Down
19 changes: 19 additions & 0 deletions msg/gnss_fix.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Describes the status of a GNSS receiver's fix.

uint8 type # The current fix type.
uint8 TYPE_NO_FIX = 0
uint8 TYPE_FIX = 1
uint8 TYPE_DIFFERENTIAL = 2
uint8 TYPE_RTK_FIXED = 4
uint8 TYPE_RTK_FLOAT = 5

uint8 mode_selection # The selection type for the operating mode.
uint8 MODE_SELECTION_MANUAL
uint8 MODE_SELECTiON_AUTOMATIC

uint8 mode # The current operating mode.
uint8 MODE_NONE = 0
uint8 MODE_2D = 1
uint8 MODE_3D = 2

uint8 n_satellites # The number of satellites used in the fix solution.
12 changes: 12 additions & 0 deletions msg/gnss_position.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# A global position measurement from a GNSS sensor.

string frame_id # The ID of the GNSS coordinate frame.

bool fix_3d # Indicates if the fix is 3-dimensional (includes altitude).

float64 latitude # Degrees latitude (positive = N, negative = S).
float64 longitude # Degrees longitude (positive = E, negative = W).
float64 altitude # Altitude above MSL (in meters).

bool has_covariance # Indicates if a covariance matrix is provided in this measurement.
float64[9] covariance # The covariance matrix of the measurement for lat,lon,alt.
9 changes: 9 additions & 0 deletions msg/gnss_track.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# An instantaneous velocity track as measured by a GNSS receiver.

uint8 reference # The direction that the heading is in reference to.
uint8 REFERENCE_TRUE_NORTH = 0
uint8 REFERENCE_MAGNETIC_NORTH = 1

float64 heading # The global heading of the track, in degrees from reference north.
# This can be in reference to TRUE or MAGNETIC north.
float64 velocity # The scalar velocity of the track, in m/s.
4 changes: 4 additions & 0 deletions msg/time_reference.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# A time measurement from a timing source.

string source # The timing source generating the measurement.
time utc_time # The measured UTC time.

0 comments on commit 06747dd

Please sign in to comment.