本篇梳理一下在户外使用PX4飞控时,与GPS定位相关的Mavlink消息与Mavros话题
global_position.cpp中对这个Mavlink消息进行了解析处理,发布了如下话题:
mavros/global_position/raw/fix
,话题类型为sensor_msgs::NavSatFix
mavros/global_position/raw/gps_vel
,话题类型为geometry_msgs::TwistStamped
mavros/global_position/raw/satellites
,话题类型为std_msgs::UInt32
gps_status.cpp中对这个Mavlink消息进行了解析处理,发布了如下话题:
mavros/gpsstatus/gps1/raw
,话题类型为mavros_msgs::GPSRAW>
The filtered global position (e.g. fused GPS and accelerometers). The position is in GPS-frame (right-handed, Z-up). It is designed as scaled integer message since the resolution of float is not sufficient.
mavros/global_position/global
,话题类型为sensor_msgs::NavSatFix
(重要!)mavros/global_position/local
,话题类型为nav_msgs::Odometry
mavros/global_position/rel_alt
,话题类型为std_msgs::Float64
mavros/global_position/compass_hdg
,话题类型为std_msgs::Float64
Publishes the GPS coordinates of the vehicle local origin (0,0,0) position. Emitted whenever a new GPS-Local position mapping is requested or set - e.g. following SET_GPS_GLOBAL_ORIGIN message.
mavros/global_position/gp_origin
,话题类型为geographic_msgs::GeoPointStamped