GPS¶
Use prerecorded data¶
The GPS sensor can be configured to use prerecorded data to simulate different scenarios:
xxx_quality: scenario where GPS data are of xxx quality where xxx can begood,medium, orbadxxx_quality_with_fix: same as xxx quality but preceded by xxx quality fix searchsmartphone: scenario where GPS data contain errors typical from a smartphone
To deactivate the use of prerecorded data, set empirical_error_mode to an
empty string. By default, empirical_error_mode is set to good_quality,
except for ANAFI for which it is set to an empty string.
Note
Some GPS parameters are expressions that are expected to modify the
corresponding perfect output accessible via the val variable. These are:
position_east_m_exprposition_north_m_exprposition_up_m_exprvelocity_east_exprvelocity_north_exprvelocity_up_expr
Others are expressions that directly set arbitrary values:
pos_accuracy_m_exprspeed_accuracy_mps_exprpdop_exprhdop_exprvdop_exprrange_rms_exprstd_lat_exprstd_long_exprstd_alt_exprnum_sv_expr
All parameters¶
Name |
Description |
Expected type |
Read-only |
|---|---|---|---|
delay_ms |
Delay of the GPS in milliseconds. |
integer |
N |
delta_position |
Relative position of the GPS sensor in body frame in meters. |
3-component vector |
N |
empirical_error_mode |
Empirical Error Mode. If set to a mode name supported by the simulated drone, replays predefined errors over several GPS variables. |
[ |
N |
faa_mode_indicator |
(FAA) Mode indicator. Possible values are: |
string |
N |
fix_mode |
Current fix mode. Possible values are: |
[1, 2, 3] |
N |
hdop_expr |
Arbitrary value of the horizontal dilution of precision (HDOP). Expression supported. |
string |
N |
num_sv_expr |
Arbitrary value of the number of satellites. Expression supported. |
string |
N |
number_delay_samples |
DEPRECATED. Delay of the GPS as a number of samples. |
integer |
N |
out_of_order |
If |
boolean |
N |
pdop_expr |
Arbitrary value of the position dilution of precision. Expression supported. |
string |
N |
pos_accuracy_m_expr |
Arbitrary value of the position accuracy estimate [meters]. Expression supported. |
string |
N |
pos_mode |
Positioning mode. Composed of two character, the first character is for GPS and second character is for GLONASS. The signification of each character is as follows: |
string |
N |
position_east_m_expr |
Expression of drone position in Gazebo system coordinates - East direction [meters]. |
string |
N |
position_north_m_expr |
Expression of drone position in Gazebo system coordinates - North direction [meters]. |
string |
N |
position_up_m_expr |
Expression of drone AMSL altitude [meters]. |
string |
N |
quality |
Quality indicator for position fix. Possible values are: |
[0, 1, 2, 6] |
N |
range_rms_expr |
Arbitrary value of the RMS value of the standard deviation of ranges. Expression supported. |
string |
N |
rtk_fix_status |
RTK fix status. Possible values are: |
[ |
N |
selection_mode |
Selection mode for the fix. Possible values are: |
[ |
N |
speed_accuracy_mps_expr |
Arbitrary value of the speed accuracy estimate [m/s]. Expression supported. |
string |
N |
status |
Navigation receiver status. Possible values are: |
[ |
N |
std_alt_expr |
Arbitrary value of the standard deviation for the altitude error. Expression supported. |
string |
N |
std_lat_expr |
Arbitrary value of the standard deviation for the latitude error. Expression supported. |
string |
N |
std_long_expr |
Arbitrary value of the standard deviation for the longitude error. Expression supported. |
string |
N |
update_rate |
Sensor frequency [Hz]. |
floating-point number |
N |
vdop_expr |
Arbitrary value of the vertical dilution of precision (VDOP). Expression supported. |
string |
N |
velocity_east_expr |
Expression defining drone velocity along East direction [m/s]. |
string |
N |
velocity_north_expr |
Expression defining drone velocity along North direction [m/s]. |
string |
N |
velocity_up_expr |
Expression defining drone vertical velocity [m/s]. |
string |
N |
constellations/¶
Name |
Description |
Expected type |
Read-only |
|---|---|---|---|
beidou |
Set to |
boolean |
Y |
galileo |
Set to |
boolean |
Y |
glonass |
Set to |
boolean |
Y |
gps |
Set to |
boolean |
Y |