![]() |
mavros package from mavros repolibmavconn mavros mavros_extras mavros_msgs |
ROS Distro
|
Package Summary
Tags | uav mav mavlink plugin apm px4 |
Version | 2.10.1 |
License | GPLv3 |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Description | MAVLink to ROS gateway with proxy for Ground Control Station |
Checkout URI | https://github.com/mavlink/mavros.git |
VCS Type | git |
VCS Version | ros2 |
Last Updated | 2025-07-11 |
Dev Status | DEVELOPED |
Released | RELEASED |
Tags | uav ros mavlink ros-node mavros mavros-msgs mav plugin apm px4 |
Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- Vladimir Ermakov
Authors
- Vladimir Ermakov
MAVROS
MAVLink extendable communication node for ROS2.
ROS API documentation moved to [wiki.ros.org][wiki].
Features
- Communication with autopilot via serial port, UDP or TCP (e.g. [PX4 Pro][px4] or [ArduPilot][apm])
- Internal proxy for Ground Control Station (serial, UDP, TCP)
- Plugin system for ROS-MAVLink translation
- Parameter manipulation tool
- Waypoint manipulation tool
- PX4Flow support (by [mavros_extras][mrext])
- OFFBOARD mode support
- Geographic coordinates conversions.
Limitations
Only for Linux.
This package are dependent on [ros-*-mavlink][mlwiki] build from [mavlink-gbp-release][mlgbp]. It exists in ROS package index and usually updates each month.
Connection URL
Connection defined by URL, you can use any supported type for FCU and GCS.
Supported schemas:
- Serial:
/path/to/serial/device[:baudrate]
- Serial:
serial:///path/to/serial/device[:baudrate][?ids=sysid,compid]
- Serial with hardware flow control:
serial-hwfc:///path/to/serial/device[:baudrate][?ids=sysid,compid]
- UDP:
udp://[bind_host][:port]@[remote_host[:port]][/?ids=sysid,compid]
- UDP broadcast until GCS discovery:
udp-b://[bind_host][:port]@[:port][/?ids=sysid,compid]
- UDP broadcast (permanent):
udp-pb://[bind_host][:port]@[:port][/?ids=sysid,compid]
- TCP client:
tcp://[server_host][:port][/?ids=sysid,compid]
- TCP server:
tcp-l://[bind_host][:port][/?ids=sysid,compid]
Note:
- Ids from URL overrides value given by system_id & component_id parameters.
- bind_host - default
0.0.0.0
- i.e. IP4 ANY - UDP default ports: 14555 @ 14550
- UDP remote address updated every time with incoming packet on bind port.
- TCP default port: 5760
Coordinate frames
MAVROS does translate Aerospace NED frames, used in FCUs to ROS ENU frames and vice-versa. For translate airframe related data we simply apply rotation 180° about ROLL (X) axis. For local we apply 180° about ROLL (X) and 90° about YAW (Z) axes. Please read documents from issue #473 for additional information.
All the conversions are handled in src/lib/ftf_frame_conversions.cpp
and src/lib/ftf_quaternion_utils.cpp
and tested in test/test_frame_conversions.cpp
and test/test_quaternion_utils.cpp
respectively.
Related issues: [#49 (outdated)][iss49], [#216 (outdated)][iss216], [#317 (outdated)][iss317], [#319 (outdated)][iss319], [#321 (outdated)][iss321], [#473][iss473]. Documents: [Frame Conversions][iss473rfc], [Mavlink coordinate frames][iss473table].
MAVROS also allows conversion of geodetic and geocentric coordinates through [GeographicLib][geolib] given that:
-
geographic_msgs
andNatSatFix.msg
require the LLA fields to be filled in WGS-84 datum, meaning that the altitude should be the height above the WGS-84 ellipsoid. For that, a conversion from the height above the geoid (AMSL, considering the egm96 geoid model) to height above the WGS-84 ellipsoid, and vice-versa, is available and used in several plugins; - According to ROS REP 105, the
earth
frame should be propagated in ECEF (Earth-Centered, Earth-Fixed) local coordinates. For that, the functionalities of GeographicLib are used in order to allow conversion from geodetic coordinates to geocentric coordinates; - The translation from GPS coordinates to local geocentric coordinates require the definition
of a local origin on the
map
frame, in ECEF, and calculate the offset to it in ENU. All the conversions are supported by GeographicLib classes and methods and implemented in theglobal_position
plugin.
Composite nodes
See also: https://docs.ros.org/en/foxy/Tutorials/Composition.html
mavros::router::Router
This is router node required to support connections to FCU(s), GCS(es) and UAS nodes. The Router allows you to add/remove endpoints on the fly without node restart.
mavros::uas::UAS
This node is a plugin container which manages all protocol plugins. Each plugin is a subnode to this.
Programs
File truncated at 100 lines see the full file
Changelog for package mavros
2.10.1 (2025-06-06)
- fix: display topic on service timeout error
- Fix incorrect macro usage RCLCPP_SMART_PTR_DEFINITIONS eventually is expanding to: #define __RCLCPP_MAKE_UNIQUE_DEFINITION(...) template<typename ... Args> static std::unique_ptr<__VA_ARGS_> make_unique(Args && ... args) { return std::unique_ptr<__VA_ARGS_>(new __VA_ARGS_(std::forward<Args>(args) ...)); } which is incorrect for abstract classes like Endpoint or Plugin RCLCPP_SMART_PTR_DEFINITIONS_NOT_COPYABLE is used instead excluding make_unique functionality
- Contributors: Emmanuel Ferdman, Mykhailo Kuznietsov
2.10.0 (2025-05-05)
-
extras: fix odid build
-
extras: re-generate all cog scripts
-
mavros: fix indentation
-
Merge branch 'master' into ros2
* master: 1.20.1 update changelog 1.20.0 update changelog update mavlink dep branch Add missing std_srvs dependency add param to odom plugin add frame_id parameter Fix compile error when compiling with gcc 13
-
1.20.1
-
update changelog
-
fix spelling error
-
add new flag
-
if
-
Address Warnings
-
cpplint
-
built successfully
-
1.20.0
-
update changelog
-
add param to odom plugin
-
add frame_id parameter
-
Contributors: EnderMandS, Michael Carlstrom, Vladimir Ermakov
2.9.0 (2024-10-10)
- py-mavros: fix flake8 errors
- py-mavros: reconfigure flake8
- py: isort
- py: black
- py-mavros: reformat with black
- py-mavros: csv escapechar of empty string unsupported since py 3.11
- apply ament_uncrustify --reformat (jazzy)
- Merge pull request #2000 from leocencetti/fix-test-errors Fix test errors in 3x3 covariance test cases
- fix: Patch test errors
- Merge pull request #1998 from leocencetti/fix-wrong-covariance-rotation Fix 3x3 covariance matrix rotation/transformation
- chore: Fix and reenable covariance rotation tests
- fix: Correct 3x3 covariance matrix rotation
- use GeographicLib::Geoid::ConvertHeight
- fix -Wdeprecated-enum-float-conversion in GeographicLib
- depcrecation errors
- #1965: sync format of configs
- Contributors: Jacob Dahl, Leonardo Cencetti, Vladimir Ermakov
2.8.0 (2024-06-07)
-
param: replace old rmw_qos usage
-
sys_status: replace rmw_qos too
-
command: fix humble condition
-
regenerate all using cogall.sh
-
command: keep support for humble
-
command: fix misprint
-
command: replace deprecated rmw_qos
File truncated at 100 lines see the full file
Package Dependencies
System Dependencies
Dependant Packages
Name | Deps |
---|---|
mavros_extras | |
as2_platform_mavlink |
Launch files
- launch/apm.launch
-
- fcu_url [default: /dev/ttyACM0:57600]
- gcs_url [default: ]
- tgt_system [default: 1]
- tgt_component [default: 1]
- log_output [default: screen]
- fcu_protocol [default: v2.0]
- respawn_mavros [default: false]
- namespace [default: mavros]
- launch/multi_uas.launch
-
- id [default: 0]
- fcu_url [default: udp://:14540@127.0.0.1:14580]
- id [default: 1]
- fcu_url [default: udp://:14541@127.0.0.1:14581]
- launch/node.launch
-
- fcu_url
- gcs_url
- tgt_system
- tgt_component
- pluginlists_yaml
- config_yaml
- log_output [default: screen]
- fcu_protocol [default: v2.0]
- respawn_mavros [default: false]
- namespace [default: mavros]
- launch/px4.launch
-
- fcu_url [default: /dev/ttyACM0:57600]
- gcs_url [default: ]
- tgt_system [default: 1]
- tgt_component [default: 1]
- log_output [default: screen]
- fcu_protocol [default: v2.0]
- respawn_mavros [default: false]
- namespace [default: mavros]
Messages
Services
Plugins
Recent questions tagged mavros at Robotics Stack Exchange
![]() |
mavros package from mavros repolibmavconn mavros mavros_extras mavros_msgs |
ROS Distro
|
Package Summary
Tags | uav mav mavlink plugin apm px4 |
Version | 2.10.1 |
License | GPLv3 |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Description | MAVLink to ROS gateway with proxy for Ground Control Station |
Checkout URI | https://github.com/mavlink/mavros.git |
VCS Type | git |
VCS Version | ros2 |
Last Updated | 2025-07-11 |
Dev Status | DEVELOPED |
Released | RELEASED |
Tags | uav ros mavlink ros-node mavros mavros-msgs mav plugin apm px4 |
Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- Vladimir Ermakov
Authors
- Vladimir Ermakov
MAVROS
MAVLink extendable communication node for ROS2.
ROS API documentation moved to [wiki.ros.org][wiki].
Features
- Communication with autopilot via serial port, UDP or TCP (e.g. [PX4 Pro][px4] or [ArduPilot][apm])
- Internal proxy for Ground Control Station (serial, UDP, TCP)
- Plugin system for ROS-MAVLink translation
- Parameter manipulation tool
- Waypoint manipulation tool
- PX4Flow support (by [mavros_extras][mrext])
- OFFBOARD mode support
- Geographic coordinates conversions.
Limitations
Only for Linux.
This package are dependent on [ros-*-mavlink][mlwiki] build from [mavlink-gbp-release][mlgbp]. It exists in ROS package index and usually updates each month.
Connection URL
Connection defined by URL, you can use any supported type for FCU and GCS.
Supported schemas:
- Serial:
/path/to/serial/device[:baudrate]
- Serial:
serial:///path/to/serial/device[:baudrate][?ids=sysid,compid]
- Serial with hardware flow control:
serial-hwfc:///path/to/serial/device[:baudrate][?ids=sysid,compid]
- UDP:
udp://[bind_host][:port]@[remote_host[:port]][/?ids=sysid,compid]
- UDP broadcast until GCS discovery:
udp-b://[bind_host][:port]@[:port][/?ids=sysid,compid]
- UDP broadcast (permanent):
udp-pb://[bind_host][:port]@[:port][/?ids=sysid,compid]
- TCP client:
tcp://[server_host][:port][/?ids=sysid,compid]
- TCP server:
tcp-l://[bind_host][:port][/?ids=sysid,compid]
Note:
- Ids from URL overrides value given by system_id & component_id parameters.
- bind_host - default
0.0.0.0
- i.e. IP4 ANY - UDP default ports: 14555 @ 14550
- UDP remote address updated every time with incoming packet on bind port.
- TCP default port: 5760
Coordinate frames
MAVROS does translate Aerospace NED frames, used in FCUs to ROS ENU frames and vice-versa. For translate airframe related data we simply apply rotation 180° about ROLL (X) axis. For local we apply 180° about ROLL (X) and 90° about YAW (Z) axes. Please read documents from issue #473 for additional information.
All the conversions are handled in src/lib/ftf_frame_conversions.cpp
and src/lib/ftf_quaternion_utils.cpp
and tested in test/test_frame_conversions.cpp
and test/test_quaternion_utils.cpp
respectively.
Related issues: [#49 (outdated)][iss49], [#216 (outdated)][iss216], [#317 (outdated)][iss317], [#319 (outdated)][iss319], [#321 (outdated)][iss321], [#473][iss473]. Documents: [Frame Conversions][iss473rfc], [Mavlink coordinate frames][iss473table].
MAVROS also allows conversion of geodetic and geocentric coordinates through [GeographicLib][geolib] given that:
-
geographic_msgs
andNatSatFix.msg
require the LLA fields to be filled in WGS-84 datum, meaning that the altitude should be the height above the WGS-84 ellipsoid. For that, a conversion from the height above the geoid (AMSL, considering the egm96 geoid model) to height above the WGS-84 ellipsoid, and vice-versa, is available and used in several plugins; - According to ROS REP 105, the
earth
frame should be propagated in ECEF (Earth-Centered, Earth-Fixed) local coordinates. For that, the functionalities of GeographicLib are used in order to allow conversion from geodetic coordinates to geocentric coordinates; - The translation from GPS coordinates to local geocentric coordinates require the definition
of a local origin on the
map
frame, in ECEF, and calculate the offset to it in ENU. All the conversions are supported by GeographicLib classes and methods and implemented in theglobal_position
plugin.
Composite nodes
See also: https://docs.ros.org/en/foxy/Tutorials/Composition.html
mavros::router::Router
This is router node required to support connections to FCU(s), GCS(es) and UAS nodes. The Router allows you to add/remove endpoints on the fly without node restart.
mavros::uas::UAS
This node is a plugin container which manages all protocol plugins. Each plugin is a subnode to this.
Programs
File truncated at 100 lines see the full file
Changelog for package mavros
2.10.1 (2025-06-06)
- fix: display topic on service timeout error
- Fix incorrect macro usage RCLCPP_SMART_PTR_DEFINITIONS eventually is expanding to: #define __RCLCPP_MAKE_UNIQUE_DEFINITION(...) template<typename ... Args> static std::unique_ptr<__VA_ARGS_> make_unique(Args && ... args) { return std::unique_ptr<__VA_ARGS_>(new __VA_ARGS_(std::forward<Args>(args) ...)); } which is incorrect for abstract classes like Endpoint or Plugin RCLCPP_SMART_PTR_DEFINITIONS_NOT_COPYABLE is used instead excluding make_unique functionality
- Contributors: Emmanuel Ferdman, Mykhailo Kuznietsov
2.10.0 (2025-05-05)
-
extras: fix odid build
-
extras: re-generate all cog scripts
-
mavros: fix indentation
-
Merge branch 'master' into ros2
* master: 1.20.1 update changelog 1.20.0 update changelog update mavlink dep branch Add missing std_srvs dependency add param to odom plugin add frame_id parameter Fix compile error when compiling with gcc 13
-
1.20.1
-
update changelog
-
fix spelling error
-
add new flag
-
if
-
Address Warnings
-
cpplint
-
built successfully
-
1.20.0
-
update changelog
-
add param to odom plugin
-
add frame_id parameter
-
Contributors: EnderMandS, Michael Carlstrom, Vladimir Ermakov
2.9.0 (2024-10-10)
- py-mavros: fix flake8 errors
- py-mavros: reconfigure flake8
- py: isort
- py: black
- py-mavros: reformat with black
- py-mavros: csv escapechar of empty string unsupported since py 3.11
- apply ament_uncrustify --reformat (jazzy)
- Merge pull request #2000 from leocencetti/fix-test-errors Fix test errors in 3x3 covariance test cases
- fix: Patch test errors
- Merge pull request #1998 from leocencetti/fix-wrong-covariance-rotation Fix 3x3 covariance matrix rotation/transformation
- chore: Fix and reenable covariance rotation tests
- fix: Correct 3x3 covariance matrix rotation
- use GeographicLib::Geoid::ConvertHeight
- fix -Wdeprecated-enum-float-conversion in GeographicLib
- depcrecation errors
- #1965: sync format of configs
- Contributors: Jacob Dahl, Leonardo Cencetti, Vladimir Ermakov
2.8.0 (2024-06-07)
-
param: replace old rmw_qos usage
-
sys_status: replace rmw_qos too
-
command: fix humble condition
-
regenerate all using cogall.sh
-
command: keep support for humble
-
command: fix misprint
-
command: replace deprecated rmw_qos
File truncated at 100 lines see the full file
Package Dependencies
System Dependencies
Dependant Packages
Name | Deps |
---|---|
mavros_extras |
Launch files
- launch/apm.launch
-
- fcu_url [default: /dev/ttyACM0:57600]
- gcs_url [default: ]
- tgt_system [default: 1]
- tgt_component [default: 1]
- log_output [default: screen]
- fcu_protocol [default: v2.0]
- respawn_mavros [default: false]
- namespace [default: mavros]
- launch/multi_uas.launch
-
- id [default: 0]
- fcu_url [default: udp://:14540@127.0.0.1:14580]
- id [default: 1]
- fcu_url [default: udp://:14541@127.0.0.1:14581]
- launch/node.launch
-
- fcu_url
- gcs_url
- tgt_system
- tgt_component
- pluginlists_yaml
- config_yaml
- log_output [default: screen]
- fcu_protocol [default: v2.0]
- respawn_mavros [default: false]
- namespace [default: mavros]
- launch/px4.launch
-
- fcu_url [default: /dev/ttyACM0:57600]
- gcs_url [default: ]
- tgt_system [default: 1]
- tgt_component [default: 1]
- log_output [default: screen]
- fcu_protocol [default: v2.0]
- respawn_mavros [default: false]
- namespace [default: mavros]
Messages
Services
Plugins
Recent questions tagged mavros at Robotics Stack Exchange
![]() |
mavros package from mavros repolibmavconn mavros mavros_extras mavros_msgs |
ROS Distro
|
Package Summary
Tags | uav mav mavlink plugin apm px4 |
Version | 2.10.1 |
License | GPLv3 |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Description | MAVLink to ROS gateway with proxy for Ground Control Station |
Checkout URI | https://github.com/mavlink/mavros.git |
VCS Type | git |
VCS Version | ros2 |
Last Updated | 2025-07-11 |
Dev Status | DEVELOPED |
Released | RELEASED |
Tags | uav ros mavlink ros-node mavros mavros-msgs mav plugin apm px4 |
Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- Vladimir Ermakov
Authors
- Vladimir Ermakov
MAVROS
MAVLink extendable communication node for ROS2.
ROS API documentation moved to [wiki.ros.org][wiki].
Features
- Communication with autopilot via serial port, UDP or TCP (e.g. [PX4 Pro][px4] or [ArduPilot][apm])
- Internal proxy for Ground Control Station (serial, UDP, TCP)
- Plugin system for ROS-MAVLink translation
- Parameter manipulation tool
- Waypoint manipulation tool
- PX4Flow support (by [mavros_extras][mrext])
- OFFBOARD mode support
- Geographic coordinates conversions.
Limitations
Only for Linux.
This package are dependent on [ros-*-mavlink][mlwiki] build from [mavlink-gbp-release][mlgbp]. It exists in ROS package index and usually updates each month.
Connection URL
Connection defined by URL, you can use any supported type for FCU and GCS.
Supported schemas:
- Serial:
/path/to/serial/device[:baudrate]
- Serial:
serial:///path/to/serial/device[:baudrate][?ids=sysid,compid]
- Serial with hardware flow control:
serial-hwfc:///path/to/serial/device[:baudrate][?ids=sysid,compid]
- UDP:
udp://[bind_host][:port]@[remote_host[:port]][/?ids=sysid,compid]
- UDP broadcast until GCS discovery:
udp-b://[bind_host][:port]@[:port][/?ids=sysid,compid]
- UDP broadcast (permanent):
udp-pb://[bind_host][:port]@[:port][/?ids=sysid,compid]
- TCP client:
tcp://[server_host][:port][/?ids=sysid,compid]
- TCP server:
tcp-l://[bind_host][:port][/?ids=sysid,compid]
Note:
- Ids from URL overrides value given by system_id & component_id parameters.
- bind_host - default
0.0.0.0
- i.e. IP4 ANY - UDP default ports: 14555 @ 14550
- UDP remote address updated every time with incoming packet on bind port.
- TCP default port: 5760
Coordinate frames
MAVROS does translate Aerospace NED frames, used in FCUs to ROS ENU frames and vice-versa. For translate airframe related data we simply apply rotation 180° about ROLL (X) axis. For local we apply 180° about ROLL (X) and 90° about YAW (Z) axes. Please read documents from issue #473 for additional information.
All the conversions are handled in src/lib/ftf_frame_conversions.cpp
and src/lib/ftf_quaternion_utils.cpp
and tested in test/test_frame_conversions.cpp
and test/test_quaternion_utils.cpp
respectively.
Related issues: [#49 (outdated)][iss49], [#216 (outdated)][iss216], [#317 (outdated)][iss317], [#319 (outdated)][iss319], [#321 (outdated)][iss321], [#473][iss473]. Documents: [Frame Conversions][iss473rfc], [Mavlink coordinate frames][iss473table].
MAVROS also allows conversion of geodetic and geocentric coordinates through [GeographicLib][geolib] given that:
-
geographic_msgs
andNatSatFix.msg
require the LLA fields to be filled in WGS-84 datum, meaning that the altitude should be the height above the WGS-84 ellipsoid. For that, a conversion from the height above the geoid (AMSL, considering the egm96 geoid model) to height above the WGS-84 ellipsoid, and vice-versa, is available and used in several plugins; - According to ROS REP 105, the
earth
frame should be propagated in ECEF (Earth-Centered, Earth-Fixed) local coordinates. For that, the functionalities of GeographicLib are used in order to allow conversion from geodetic coordinates to geocentric coordinates; - The translation from GPS coordinates to local geocentric coordinates require the definition
of a local origin on the
map
frame, in ECEF, and calculate the offset to it in ENU. All the conversions are supported by GeographicLib classes and methods and implemented in theglobal_position
plugin.
Composite nodes
See also: https://docs.ros.org/en/foxy/Tutorials/Composition.html
mavros::router::Router
This is router node required to support connections to FCU(s), GCS(es) and UAS nodes. The Router allows you to add/remove endpoints on the fly without node restart.
mavros::uas::UAS
This node is a plugin container which manages all protocol plugins. Each plugin is a subnode to this.
Programs
File truncated at 100 lines see the full file
Changelog for package mavros
2.10.1 (2025-06-06)
- fix: display topic on service timeout error
- Fix incorrect macro usage RCLCPP_SMART_PTR_DEFINITIONS eventually is expanding to: #define __RCLCPP_MAKE_UNIQUE_DEFINITION(...) template<typename ... Args> static std::unique_ptr<__VA_ARGS_> make_unique(Args && ... args) { return std::unique_ptr<__VA_ARGS_>(new __VA_ARGS_(std::forward<Args>(args) ...)); } which is incorrect for abstract classes like Endpoint or Plugin RCLCPP_SMART_PTR_DEFINITIONS_NOT_COPYABLE is used instead excluding make_unique functionality
- Contributors: Emmanuel Ferdman, Mykhailo Kuznietsov
2.10.0 (2025-05-05)
-
extras: fix odid build
-
extras: re-generate all cog scripts
-
mavros: fix indentation
-
Merge branch 'master' into ros2
* master: 1.20.1 update changelog 1.20.0 update changelog update mavlink dep branch Add missing std_srvs dependency add param to odom plugin add frame_id parameter Fix compile error when compiling with gcc 13
-
1.20.1
-
update changelog
-
fix spelling error
-
add new flag
-
if
-
Address Warnings
-
cpplint
-
built successfully
-
1.20.0
-
update changelog
-
add param to odom plugin
-
add frame_id parameter
-
Contributors: EnderMandS, Michael Carlstrom, Vladimir Ermakov
2.9.0 (2024-10-10)
- py-mavros: fix flake8 errors
- py-mavros: reconfigure flake8
- py: isort
- py: black
- py-mavros: reformat with black
- py-mavros: csv escapechar of empty string unsupported since py 3.11
- apply ament_uncrustify --reformat (jazzy)
- Merge pull request #2000 from leocencetti/fix-test-errors Fix test errors in 3x3 covariance test cases
- fix: Patch test errors
- Merge pull request #1998 from leocencetti/fix-wrong-covariance-rotation Fix 3x3 covariance matrix rotation/transformation
- chore: Fix and reenable covariance rotation tests
- fix: Correct 3x3 covariance matrix rotation
- use GeographicLib::Geoid::ConvertHeight
- fix -Wdeprecated-enum-float-conversion in GeographicLib
- depcrecation errors
- #1965: sync format of configs
- Contributors: Jacob Dahl, Leonardo Cencetti, Vladimir Ermakov
2.8.0 (2024-06-07)
-
param: replace old rmw_qos usage
-
sys_status: replace rmw_qos too
-
command: fix humble condition
-
regenerate all using cogall.sh
-
command: keep support for humble
-
command: fix misprint
-
command: replace deprecated rmw_qos
File truncated at 100 lines see the full file
Package Dependencies
System Dependencies
Dependant Packages
Name | Deps |
---|---|
mavros_extras |
Launch files
- launch/apm.launch
-
- fcu_url [default: /dev/ttyACM0:57600]
- gcs_url [default: ]
- tgt_system [default: 1]
- tgt_component [default: 1]
- log_output [default: screen]
- fcu_protocol [default: v2.0]
- respawn_mavros [default: false]
- namespace [default: mavros]
- launch/multi_uas.launch
-
- id [default: 0]
- fcu_url [default: udp://:14540@127.0.0.1:14580]
- id [default: 1]
- fcu_url [default: udp://:14541@127.0.0.1:14581]
- launch/node.launch
-
- fcu_url
- gcs_url
- tgt_system
- tgt_component
- pluginlists_yaml
- config_yaml
- log_output [default: screen]
- fcu_protocol [default: v2.0]
- respawn_mavros [default: false]
- namespace [default: mavros]
- launch/px4.launch
-
- fcu_url [default: /dev/ttyACM0:57600]
- gcs_url [default: ]
- tgt_system [default: 1]
- tgt_component [default: 1]
- log_output [default: screen]
- fcu_protocol [default: v2.0]
- respawn_mavros [default: false]
- namespace [default: mavros]
Messages
Services
Plugins
Recent questions tagged mavros at Robotics Stack Exchange
![]() |
mavros package from mavros repolibmavconn mavros mavros_extras mavros_msgs |
ROS Distro
|
Package Summary
Tags | uav mav mavlink plugin apm px4 |
Version | 2.10.1 |
License | GPLv3 |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Description | MAVLink to ROS gateway with proxy for Ground Control Station |
Checkout URI | https://github.com/mavlink/mavros.git |
VCS Type | git |
VCS Version | ros2 |
Last Updated | 2025-07-11 |
Dev Status | DEVELOPED |
Released | RELEASED |
Tags | uav ros mavlink ros-node mavros mavros-msgs mav plugin apm px4 |
Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- Vladimir Ermakov
Authors
- Vladimir Ermakov
MAVROS
MAVLink extendable communication node for ROS2.
ROS API documentation moved to [wiki.ros.org][wiki].
Features
- Communication with autopilot via serial port, UDP or TCP (e.g. [PX4 Pro][px4] or [ArduPilot][apm])
- Internal proxy for Ground Control Station (serial, UDP, TCP)
- Plugin system for ROS-MAVLink translation
- Parameter manipulation tool
- Waypoint manipulation tool
- PX4Flow support (by [mavros_extras][mrext])
- OFFBOARD mode support
- Geographic coordinates conversions.
Limitations
Only for Linux.
This package are dependent on [ros-*-mavlink][mlwiki] build from [mavlink-gbp-release][mlgbp]. It exists in ROS package index and usually updates each month.
Connection URL
Connection defined by URL, you can use any supported type for FCU and GCS.
Supported schemas:
- Serial:
/path/to/serial/device[:baudrate]
- Serial:
serial:///path/to/serial/device[:baudrate][?ids=sysid,compid]
- Serial with hardware flow control:
serial-hwfc:///path/to/serial/device[:baudrate][?ids=sysid,compid]
- UDP:
udp://[bind_host][:port]@[remote_host[:port]][/?ids=sysid,compid]
- UDP broadcast until GCS discovery:
udp-b://[bind_host][:port]@[:port][/?ids=sysid,compid]
- UDP broadcast (permanent):
udp-pb://[bind_host][:port]@[:port][/?ids=sysid,compid]
- TCP client:
tcp://[server_host][:port][/?ids=sysid,compid]
- TCP server:
tcp-l://[bind_host][:port][/?ids=sysid,compid]
Note:
- Ids from URL overrides value given by system_id & component_id parameters.
- bind_host - default
0.0.0.0
- i.e. IP4 ANY - UDP default ports: 14555 @ 14550
- UDP remote address updated every time with incoming packet on bind port.
- TCP default port: 5760
Coordinate frames
MAVROS does translate Aerospace NED frames, used in FCUs to ROS ENU frames and vice-versa. For translate airframe related data we simply apply rotation 180° about ROLL (X) axis. For local we apply 180° about ROLL (X) and 90° about YAW (Z) axes. Please read documents from issue #473 for additional information.
All the conversions are handled in src/lib/ftf_frame_conversions.cpp
and src/lib/ftf_quaternion_utils.cpp
and tested in test/test_frame_conversions.cpp
and test/test_quaternion_utils.cpp
respectively.
Related issues: [#49 (outdated)][iss49], [#216 (outdated)][iss216], [#317 (outdated)][iss317], [#319 (outdated)][iss319], [#321 (outdated)][iss321], [#473][iss473]. Documents: [Frame Conversions][iss473rfc], [Mavlink coordinate frames][iss473table].
MAVROS also allows conversion of geodetic and geocentric coordinates through [GeographicLib][geolib] given that:
-
geographic_msgs
andNatSatFix.msg
require the LLA fields to be filled in WGS-84 datum, meaning that the altitude should be the height above the WGS-84 ellipsoid. For that, a conversion from the height above the geoid (AMSL, considering the egm96 geoid model) to height above the WGS-84 ellipsoid, and vice-versa, is available and used in several plugins; - According to ROS REP 105, the
earth
frame should be propagated in ECEF (Earth-Centered, Earth-Fixed) local coordinates. For that, the functionalities of GeographicLib are used in order to allow conversion from geodetic coordinates to geocentric coordinates; - The translation from GPS coordinates to local geocentric coordinates require the definition
of a local origin on the
map
frame, in ECEF, and calculate the offset to it in ENU. All the conversions are supported by GeographicLib classes and methods and implemented in theglobal_position
plugin.
Composite nodes
See also: https://docs.ros.org/en/foxy/Tutorials/Composition.html
mavros::router::Router
This is router node required to support connections to FCU(s), GCS(es) and UAS nodes. The Router allows you to add/remove endpoints on the fly without node restart.
mavros::uas::UAS
This node is a plugin container which manages all protocol plugins. Each plugin is a subnode to this.
Programs
File truncated at 100 lines see the full file
Changelog for package mavros
2.10.1 (2025-06-06)
- fix: display topic on service timeout error
- Fix incorrect macro usage RCLCPP_SMART_PTR_DEFINITIONS eventually is expanding to: #define __RCLCPP_MAKE_UNIQUE_DEFINITION(...) template<typename ... Args> static std::unique_ptr<__VA_ARGS_> make_unique(Args && ... args) { return std::unique_ptr<__VA_ARGS_>(new __VA_ARGS_(std::forward<Args>(args) ...)); } which is incorrect for abstract classes like Endpoint or Plugin RCLCPP_SMART_PTR_DEFINITIONS_NOT_COPYABLE is used instead excluding make_unique functionality
- Contributors: Emmanuel Ferdman, Mykhailo Kuznietsov
2.10.0 (2025-05-05)
-
extras: fix odid build
-
extras: re-generate all cog scripts
-
mavros: fix indentation
-
Merge branch 'master' into ros2
* master: 1.20.1 update changelog 1.20.0 update changelog update mavlink dep branch Add missing std_srvs dependency add param to odom plugin add frame_id parameter Fix compile error when compiling with gcc 13
-
1.20.1
-
update changelog
-
fix spelling error
-
add new flag
-
if
-
Address Warnings
-
cpplint
-
built successfully
-
1.20.0
-
update changelog
-
add param to odom plugin
-
add frame_id parameter
-
Contributors: EnderMandS, Michael Carlstrom, Vladimir Ermakov
2.9.0 (2024-10-10)
- py-mavros: fix flake8 errors
- py-mavros: reconfigure flake8
- py: isort
- py: black
- py-mavros: reformat with black
- py-mavros: csv escapechar of empty string unsupported since py 3.11
- apply ament_uncrustify --reformat (jazzy)
- Merge pull request #2000 from leocencetti/fix-test-errors Fix test errors in 3x3 covariance test cases
- fix: Patch test errors
- Merge pull request #1998 from leocencetti/fix-wrong-covariance-rotation Fix 3x3 covariance matrix rotation/transformation
- chore: Fix and reenable covariance rotation tests
- fix: Correct 3x3 covariance matrix rotation
- use GeographicLib::Geoid::ConvertHeight
- fix -Wdeprecated-enum-float-conversion in GeographicLib
- depcrecation errors
- #1965: sync format of configs
- Contributors: Jacob Dahl, Leonardo Cencetti, Vladimir Ermakov
2.8.0 (2024-06-07)
-
param: replace old rmw_qos usage
-
sys_status: replace rmw_qos too
-
command: fix humble condition
-
regenerate all using cogall.sh
-
command: keep support for humble
-
command: fix misprint
-
command: replace deprecated rmw_qos
File truncated at 100 lines see the full file
Package Dependencies
System Dependencies
Dependant Packages
Name | Deps |
---|---|
mavros_extras |
Launch files
- launch/apm.launch
-
- fcu_url [default: /dev/ttyACM0:57600]
- gcs_url [default: ]
- tgt_system [default: 1]
- tgt_component [default: 1]
- log_output [default: screen]
- fcu_protocol [default: v2.0]
- respawn_mavros [default: false]
- namespace [default: mavros]
- launch/multi_uas.launch
-
- id [default: 0]
- fcu_url [default: udp://:14540@127.0.0.1:14580]
- id [default: 1]
- fcu_url [default: udp://:14541@127.0.0.1:14581]
- launch/node.launch
-
- fcu_url
- gcs_url
- tgt_system
- tgt_component
- pluginlists_yaml
- config_yaml
- log_output [default: screen]
- fcu_protocol [default: v2.0]
- respawn_mavros [default: false]
- namespace [default: mavros]
- launch/px4.launch
-
- fcu_url [default: /dev/ttyACM0:57600]
- gcs_url [default: ]
- tgt_system [default: 1]
- tgt_component [default: 1]
- log_output [default: screen]
- fcu_protocol [default: v2.0]
- respawn_mavros [default: false]
- namespace [default: mavros]
Messages
Services
Plugins
Recent questions tagged mavros at Robotics Stack Exchange
![]() |
mavros package from uavprojectilecatcher repopx4 catkin_tools_prebuild mavlink drone_ball_catcher libmavconn mavros mavros_extras mavros_msgs test_mavros realsense2_description realsense_gazebo_plugin |
ROS Distro
|
Package Summary
Tags | uav mav mavlink plugin apm px4 |
Version | 1.5.1 |
License | GPLv3 |
Build type | CATKIN |
Use | RECOMMENDED |
Repository Summary
Description | A ROS Workspace for the interception of a ball projectile via a simulated drone |
Checkout URI | https://github.com/arijitnoobstar/uavprojectilecatcher.git |
VCS Type | git |
VCS Version | master |
Last Updated | 2021-05-16 |
Dev Status | UNKNOWN |
Released | UNRELEASED |
Tags | uav mav mavlink plugin apm px4 |
Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- Vladimir Ermakov
Authors
- Vladimir Ermakov
MAVROS
MAVLink extendable communication node for ROS with proxy for Ground Control Station (e.g. [QGroundControl][qgc]).
ROS API documentation moved to [wiki.ros.org][wiki].
Features
- Communication with autopilot via serial port, UDP or TCP (e.g. [PX4 Pro][px4] or [ArduPilot][apm])
- Internal proxy for Ground Control Station (serial, UDP, TCP)
- Plugin system for ROS-MAVLink translation
- Parameter manipulation tool
- Waypoint manipulation tool
- PX4Flow support (by [mavros_extras][mrext])
- OFFBOARD mode support
- Geographic coordinates conversions.
Limitations
Only for Linux. Depends on [Boost library][boost], GCC 4.8+ (C++11 support). Catkin build system required.
This package are dependent on [ros-*-mavlink][mlwiki] build from [mavlink-gbp-release][mlgbp]. It exists in ROS package index and usually updates each month.
Connection URL
Connection defined by URL, you can use any supported type for FCU and GCS.
Supported schemas:
- Serial:
/path/to/serial/device[:baudrate]
- Serial:
serial:///path/to/serial/device[:baudrate][?ids=sysid,compid]
- Serial with hardware flow control:
serial-hwfc:///path/to/serial/device[:baudrate][?ids=sysid,compid]
- UDP:
udp://[bind_host][:port]@[remote_host[:port]][/?ids=sysid,compid]
- UDP broadcast until GCS discovery:
udp-b://[bind_host][:port]@[:port][/?ids=sysid,compid]
- UDP broadcast (permanent):
udp-pb://[bind_host][:port]@[:port][/?ids=sysid,compid]
- TCP client:
tcp://[server_host][:port][/?ids=sysid,compid]
- TCP server:
tcp-l://[bind_host][:port][/?ids=sysid,compid]
Note:
- Ids from URL overrides value given by system_id & component_id parameters.
- bind_host - default
0.0.0.0
- i.e. IP4 ANY - UDP default ports: 14555 @ 14550
- UDP remote address updated every time with incoming packet on bind port.
- TCP default port: 5760
Coordinate frames
MAVROS does translate Aerospace NED frames, used in FCUs to ROS ENU frames and vice-versa. For translate airframe related data we simply apply rotation 180° about ROLL (X) axis. For local we apply 180° about ROLL (X) and 90° about YAW (Z) axes. Please read documents from issue #473 for additional information.
All the conversions are handled in src/lib/ftf_frame_conversions.cpp
and src/lib/ftf_quaternion_utils.cpp
and tested in test/test_frame_conversions.cpp
and test/test_quaternion_utils.cpp
respectively.
Related issues: [#49 (outdated)][iss49], [#216 (outdated)][iss216], [#317 (outdated)][iss317], [#319 (outdated)][iss319], [#321 (outdated)][iss321], [#473][iss473]. Documents: [Frame Conversions][iss473rfc], [Mavlink coordinate frames][iss473table].
MAVROS also allows conversion of geodetic and geocentric coordinates through [GeographicLib][geolib] given that:
-
geographic_msgs
andNatSatFix.msg
require the LLA fields to be filled in WGS-84 datum, meaning that the altitude should be the height above the WGS-84 ellipsoid. For that, a conversion from the height above the geoid (AMSL, considering the egm96 geoid model) to height above the WGS-84 ellipsoid, and vice-versa, is available and used in several plugins; - According to ROS REP 105, the
earth
frame should be propagated in ECEF (Earth-Centered, Earth-Fixed) local coordinates. For that, the functionalities of GeographicLib are used in order to allow conversion from geodetic coordinates to geocentric coordinates; - The translation from GPS coordinates to local geocentric coordinates require the definition
of a local origin on the
map
frame, in ECEF, and calculate the offset to it in ENU. All the conversions are supported by GeographicLib classes and methods and implemented in theglobal_position
plugin.
Programs
mavros_node – main communication node
Main node. Allow disable GCS proxy by setting empty URL.
Run example (autopilot connected via USB at 921600 baud, GCS running on the host with IP 172.16.254.1):
rosrun mavros mavros_node _fcu_url:=/dev/ttyACM0:921600 _gcs_url:=udp://@172.16.254.1
gcs_bridge – additional proxy
Allows you to add a channel for GCS. For example if you need to connect one GCS for HIL and the second on the tablet.
File truncated at 100 lines see the full file
Changelog for package mavros
1.5.1 (2021-01-04)
- Fix tests for renaming of ECEF cases Introduced in 6234af29
- Initialise message structures Uninitialised Mavlink 2 extension fields were sent if the fields were not later set. Initialising the fields to zero is the default value for extension fields and appears to the receiver as though sender is unaware of Mavlink 2. Instances were found with regex below, more may exist: mavlink::[\^:]+::msg::[\^:={]+ ?[\^:={]*;
- Contributors: Rob Clarke
1.5.0 (2020-11-11)
- mavros/sys_status: Fill flight_custom_version field
- mavros: Add override specifiers
- mavros: Move ECEF tf enums to separate enum class This avoids a bunch of unhandled switch cases, and should improve type safety a bit.
- Contributors: Morten Fyhn Amundsen
1.4.0 (2020-09-11)
- mavros: use mavlink::minimal:: after incompatible changes in mavlink package Incompatible change: https://github.com/mavlink/mavlink/pull/1463 Fix: #1483, https://github.com/mavlink/mavlink/issues/1474
- fixes based on vooon's review
- fix issue what we couldn't set real parameters to 0.0 in mavros
- Add error message
- Fixed compilation error: publish std_msgs::String, not std::string for gcs_ip
- Dispatch GCS IP address
- Contributors: Artem Batalov, Marcelino, Morten Fyhn Amundsen, Vladimir Ermakov, Øystein Skotheim
1.3.0 (2020-08-08)
- fake_gps.cpp: implement speed accuracy
- fake_gps.cpp: Add mocap_withcovariance configuration parameter
- fake_gps.cpp: add initial support for GPS_INPUT MAVLink message
- apm.launch: Avoid warning: Warning: You are using <arg> inside an <include> tag with the default=XY attribute - which is superfluous. Use value=XY instead for less confusion. Attribute name: respawn_mavros
- Added support for MavProxy parameter file format
- Ignore read-only parameters and statistics parameters in push operations
- fix indentation
- transform based on coordinate_frame
- wind plugin: fix ArduPilot wind transformation
- Contributors: Ben Wolsieffer, Dr.-Ing. Amilcar do Carmo Lucas, Yuan, Yuan Xu
1.2.0 (2020-05-22)
- has_capability only works for enums
- Uncrustify
- Reworked Waypoint plugin to use capabilities_cb Additionally added helper functions has_capability and has_capabilities so that people can use either ints or enums to check if the UAS has a capability. This might make accepting capabilities as a parameter moot though.
- Added alias for capabilities enum to UAS
- Added alias for capabilities enum to UAS
- Added a capabilities change cb queue Plugins can now write functions that they add to the capabilities_cb_vec. These functions will be called only when there is a change to the capabilities themselves not whenever the known status of the fcu_capabilities change. These functions should have a parameter of type mavlink::common::MAV_PROTOCOL_CAPABILITY which is essentially just a uint64_t however being more opinionated is helpful when looking for what the canonical enum names are in the mavlink project header files.
- Uncrustify
- Fixed Removed Uncrustify Option I'm not sure why this didn't break when I ran uncrustify previously but it seems that the align_number_left option was removed a while ago with this merge request but I may be mistaken https://github.com/uncrustify/uncrustify/pull/1393 I replaced it which align_number_right=true since it seems to be the inverse of align_number_left=true.
- Removed deprecated MAV_FRAME values
- Removed use of variant in favor of templates Since ROS messages are now the storage type in the node, providing to and from conversion functions is sufficient and can be better expressed with function templates.
- Encode factor returns double
- Changed encoding factor cog code
- Uncrustify changes
- Added new parameter to config.yamls
- Updated waypoint plugin to support MISSION_ITEM_INT These changes add a new parameter use_mission_item_int, which allows users to prefer the old behavior. These changes also verify that the flight controller supports _INT messages since APM only sends REQUEST_ITEM messages even though it accepts _INT items back. This commit is functional and tested with the APM stack only. PX4 sitl jmavsim threw: WP: upload failed: Command is not supported. FCU: IGN MISSION_ITEM: Busy
File truncated at 100 lines see the full file
Package Dependencies
System Dependencies
Dependant Packages
Launch files
- launch/apm.launch
-
- fcu_url [default: /dev/ttyACM0:57600]
- gcs_url [default: ]
- tgt_system [default: 1]
- tgt_component [default: 1]
- log_output [default: screen]
- fcu_protocol [default: v2.0]
- respawn_mavros [default: false]
- launch/apm2.launch
-
- fcu_url [default: /dev/ttyACM0:57600]
- gcs_url [default: ]
- tgt_system [default: 1]
- tgt_component [default: 1]
- log_output [default: screen]
- fcu_protocol [default: v2.0]
- respawn_mavros [default: false]
- launch/mavlink_bridge.launch
-
- ns [default: iris]
- mavlink_bridge_url [default: udp://127.0.0.1:14553@127.0.0.1:14560]
- launch/node.launch
-
- fcu_url
- gcs_url
- tgt_system
- tgt_component
- pluginlists_yaml
- config_yaml
- log_output [default: screen]
- fcu_protocol [default: v2.0]
- respawn_mavros [default: false]
- launch/px4.launch
-
- fcu_url [default: /dev/ttyACM0:57600]
- gcs_url [default: ]
- tgt_system [default: 1]
- tgt_component [default: 1]
- log_output [default: screen]
- fcu_protocol [default: v2.0]
- respawn_mavros [default: false]
- respawn_mavros [default: $(arg respawn_mavros)]
Messages
Services
Plugins
Recent questions tagged mavros at Robotics Stack Exchange
![]() |
mavros package from mavros repolibmavconn mavros mavros_extras mavros_msgs |
ROS Distro
|
Package Summary
Tags | uav mav mavlink plugin apm px4 |
Version | 2.10.1 |
License | GPLv3 |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Description | MAVLink to ROS gateway with proxy for Ground Control Station |
Checkout URI | https://github.com/mavlink/mavros.git |
VCS Type | git |
VCS Version | ros2 |
Last Updated | 2025-07-11 |
Dev Status | DEVELOPED |
Released | RELEASED |
Tags | uav ros mavlink ros-node mavros mavros-msgs mav plugin apm px4 |
Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- Vladimir Ermakov
Authors
- Vladimir Ermakov
MAVROS
MAVLink extendable communication node for ROS2.
ROS API documentation moved to [wiki.ros.org][wiki].
Features
- Communication with autopilot via serial port, UDP or TCP (e.g. [PX4 Pro][px4] or [ArduPilot][apm])
- Internal proxy for Ground Control Station (serial, UDP, TCP)
- Plugin system for ROS-MAVLink translation
- Parameter manipulation tool
- Waypoint manipulation tool
- PX4Flow support (by [mavros_extras][mrext])
- OFFBOARD mode support
- Geographic coordinates conversions.
Limitations
Only for Linux.
This package are dependent on [ros-*-mavlink][mlwiki] build from [mavlink-gbp-release][mlgbp]. It exists in ROS package index and usually updates each month.
Connection URL
Connection defined by URL, you can use any supported type for FCU and GCS.
Supported schemas:
- Serial:
/path/to/serial/device[:baudrate]
- Serial:
serial:///path/to/serial/device[:baudrate][?ids=sysid,compid]
- Serial with hardware flow control:
serial-hwfc:///path/to/serial/device[:baudrate][?ids=sysid,compid]
- UDP:
udp://[bind_host][:port]@[remote_host[:port]][/?ids=sysid,compid]
- UDP broadcast until GCS discovery:
udp-b://[bind_host][:port]@[:port][/?ids=sysid,compid]
- UDP broadcast (permanent):
udp-pb://[bind_host][:port]@[:port][/?ids=sysid,compid]
- TCP client:
tcp://[server_host][:port][/?ids=sysid,compid]
- TCP server:
tcp-l://[bind_host][:port][/?ids=sysid,compid]
Note:
- Ids from URL overrides value given by system_id & component_id parameters.
- bind_host - default
0.0.0.0
- i.e. IP4 ANY - UDP default ports: 14555 @ 14550
- UDP remote address updated every time with incoming packet on bind port.
- TCP default port: 5760
Coordinate frames
MAVROS does translate Aerospace NED frames, used in FCUs to ROS ENU frames and vice-versa. For translate airframe related data we simply apply rotation 180° about ROLL (X) axis. For local we apply 180° about ROLL (X) and 90° about YAW (Z) axes. Please read documents from issue #473 for additional information.
All the conversions are handled in src/lib/ftf_frame_conversions.cpp
and src/lib/ftf_quaternion_utils.cpp
and tested in test/test_frame_conversions.cpp
and test/test_quaternion_utils.cpp
respectively.
Related issues: [#49 (outdated)][iss49], [#216 (outdated)][iss216], [#317 (outdated)][iss317], [#319 (outdated)][iss319], [#321 (outdated)][iss321], [#473][iss473]. Documents: [Frame Conversions][iss473rfc], [Mavlink coordinate frames][iss473table].
MAVROS also allows conversion of geodetic and geocentric coordinates through [GeographicLib][geolib] given that:
-
geographic_msgs
andNatSatFix.msg
require the LLA fields to be filled in WGS-84 datum, meaning that the altitude should be the height above the WGS-84 ellipsoid. For that, a conversion from the height above the geoid (AMSL, considering the egm96 geoid model) to height above the WGS-84 ellipsoid, and vice-versa, is available and used in several plugins; - According to ROS REP 105, the
earth
frame should be propagated in ECEF (Earth-Centered, Earth-Fixed) local coordinates. For that, the functionalities of GeographicLib are used in order to allow conversion from geodetic coordinates to geocentric coordinates; - The translation from GPS coordinates to local geocentric coordinates require the definition
of a local origin on the
map
frame, in ECEF, and calculate the offset to it in ENU. All the conversions are supported by GeographicLib classes and methods and implemented in theglobal_position
plugin.
Composite nodes
See also: https://docs.ros.org/en/foxy/Tutorials/Composition.html
mavros::router::Router
This is router node required to support connections to FCU(s), GCS(es) and UAS nodes. The Router allows you to add/remove endpoints on the fly without node restart.
mavros::uas::UAS
This node is a plugin container which manages all protocol plugins. Each plugin is a subnode to this.
Programs
File truncated at 100 lines see the full file
Changelog for package mavros
2.10.1 (2025-06-06)
- fix: display topic on service timeout error
- Fix incorrect macro usage RCLCPP_SMART_PTR_DEFINITIONS eventually is expanding to: #define __RCLCPP_MAKE_UNIQUE_DEFINITION(...) template<typename ... Args> static std::unique_ptr<__VA_ARGS_> make_unique(Args && ... args) { return std::unique_ptr<__VA_ARGS_>(new __VA_ARGS_(std::forward<Args>(args) ...)); } which is incorrect for abstract classes like Endpoint or Plugin RCLCPP_SMART_PTR_DEFINITIONS_NOT_COPYABLE is used instead excluding make_unique functionality
- Contributors: Emmanuel Ferdman, Mykhailo Kuznietsov
2.10.0 (2025-05-05)
-
extras: fix odid build
-
extras: re-generate all cog scripts
-
mavros: fix indentation
-
Merge branch 'master' into ros2
* master: 1.20.1 update changelog 1.20.0 update changelog update mavlink dep branch Add missing std_srvs dependency add param to odom plugin add frame_id parameter Fix compile error when compiling with gcc 13
-
1.20.1
-
update changelog
-
fix spelling error
-
add new flag
-
if
-
Address Warnings
-
cpplint
-
built successfully
-
1.20.0
-
update changelog
-
add param to odom plugin
-
add frame_id parameter
-
Contributors: EnderMandS, Michael Carlstrom, Vladimir Ermakov
2.9.0 (2024-10-10)
- py-mavros: fix flake8 errors
- py-mavros: reconfigure flake8
- py: isort
- py: black
- py-mavros: reformat with black
- py-mavros: csv escapechar of empty string unsupported since py 3.11
- apply ament_uncrustify --reformat (jazzy)
- Merge pull request #2000 from leocencetti/fix-test-errors Fix test errors in 3x3 covariance test cases
- fix: Patch test errors
- Merge pull request #1998 from leocencetti/fix-wrong-covariance-rotation Fix 3x3 covariance matrix rotation/transformation
- chore: Fix and reenable covariance rotation tests
- fix: Correct 3x3 covariance matrix rotation
- use GeographicLib::Geoid::ConvertHeight
- fix -Wdeprecated-enum-float-conversion in GeographicLib
- depcrecation errors
- #1965: sync format of configs
- Contributors: Jacob Dahl, Leonardo Cencetti, Vladimir Ermakov
2.8.0 (2024-06-07)
-
param: replace old rmw_qos usage
-
sys_status: replace rmw_qos too
-
command: fix humble condition
-
regenerate all using cogall.sh
-
command: keep support for humble
-
command: fix misprint
-
command: replace deprecated rmw_qos
File truncated at 100 lines see the full file
Package Dependencies
System Dependencies
Dependant Packages
Name | Deps |
---|---|
mavros_extras |
Launch files
- launch/apm.launch
-
- fcu_url [default: /dev/ttyACM0:57600]
- gcs_url [default: ]
- tgt_system [default: 1]
- tgt_component [default: 1]
- log_output [default: screen]
- fcu_protocol [default: v2.0]
- respawn_mavros [default: false]
- namespace [default: mavros]
- launch/multi_uas.launch
-
- id [default: 0]
- fcu_url [default: udp://:14540@127.0.0.1:14580]
- id [default: 1]
- fcu_url [default: udp://:14541@127.0.0.1:14581]
- launch/node.launch
-
- fcu_url
- gcs_url
- tgt_system
- tgt_component
- pluginlists_yaml
- config_yaml
- log_output [default: screen]
- fcu_protocol [default: v2.0]
- respawn_mavros [default: false]
- namespace [default: mavros]
- launch/px4.launch
-
- fcu_url [default: /dev/ttyACM0:57600]
- gcs_url [default: ]
- tgt_system [default: 1]
- tgt_component [default: 1]
- log_output [default: screen]
- fcu_protocol [default: v2.0]
- respawn_mavros [default: false]
- namespace [default: mavros]
Messages
Services
Plugins
Recent questions tagged mavros at Robotics Stack Exchange
![]() |
mavros package from mavros repolibmavconn mavros mavros_extras mavros_msgs |
ROS Distro
|
Package Summary
Tags | uav mav mavlink plugin apm px4 |
Version | 2.10.1 |
License | GPLv3 |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Description | MAVLink to ROS gateway with proxy for Ground Control Station |
Checkout URI | https://github.com/mavlink/mavros.git |
VCS Type | git |
VCS Version | ros2 |
Last Updated | 2025-07-11 |
Dev Status | DEVELOPED |
Released | RELEASED |
Tags | uav ros mavlink ros-node mavros mavros-msgs mav plugin apm px4 |
Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- Vladimir Ermakov
Authors
- Vladimir Ermakov
MAVROS
MAVLink extendable communication node for ROS2.
ROS API documentation moved to [wiki.ros.org][wiki].
Features
- Communication with autopilot via serial port, UDP or TCP (e.g. [PX4 Pro][px4] or [ArduPilot][apm])
- Internal proxy for Ground Control Station (serial, UDP, TCP)
- Plugin system for ROS-MAVLink translation
- Parameter manipulation tool
- Waypoint manipulation tool
- PX4Flow support (by [mavros_extras][mrext])
- OFFBOARD mode support
- Geographic coordinates conversions.
Limitations
Only for Linux.
This package are dependent on [ros-*-mavlink][mlwiki] build from [mavlink-gbp-release][mlgbp]. It exists in ROS package index and usually updates each month.
Connection URL
Connection defined by URL, you can use any supported type for FCU and GCS.
Supported schemas:
- Serial:
/path/to/serial/device[:baudrate]
- Serial:
serial:///path/to/serial/device[:baudrate][?ids=sysid,compid]
- Serial with hardware flow control:
serial-hwfc:///path/to/serial/device[:baudrate][?ids=sysid,compid]
- UDP:
udp://[bind_host][:port]@[remote_host[:port]][/?ids=sysid,compid]
- UDP broadcast until GCS discovery:
udp-b://[bind_host][:port]@[:port][/?ids=sysid,compid]
- UDP broadcast (permanent):
udp-pb://[bind_host][:port]@[:port][/?ids=sysid,compid]
- TCP client:
tcp://[server_host][:port][/?ids=sysid,compid]
- TCP server:
tcp-l://[bind_host][:port][/?ids=sysid,compid]
Note:
- Ids from URL overrides value given by system_id & component_id parameters.
- bind_host - default
0.0.0.0
- i.e. IP4 ANY - UDP default ports: 14555 @ 14550
- UDP remote address updated every time with incoming packet on bind port.
- TCP default port: 5760
Coordinate frames
MAVROS does translate Aerospace NED frames, used in FCUs to ROS ENU frames and vice-versa. For translate airframe related data we simply apply rotation 180° about ROLL (X) axis. For local we apply 180° about ROLL (X) and 90° about YAW (Z) axes. Please read documents from issue #473 for additional information.
All the conversions are handled in src/lib/ftf_frame_conversions.cpp
and src/lib/ftf_quaternion_utils.cpp
and tested in test/test_frame_conversions.cpp
and test/test_quaternion_utils.cpp
respectively.
Related issues: [#49 (outdated)][iss49], [#216 (outdated)][iss216], [#317 (outdated)][iss317], [#319 (outdated)][iss319], [#321 (outdated)][iss321], [#473][iss473]. Documents: [Frame Conversions][iss473rfc], [Mavlink coordinate frames][iss473table].
MAVROS also allows conversion of geodetic and geocentric coordinates through [GeographicLib][geolib] given that:
-
geographic_msgs
andNatSatFix.msg
require the LLA fields to be filled in WGS-84 datum, meaning that the altitude should be the height above the WGS-84 ellipsoid. For that, a conversion from the height above the geoid (AMSL, considering the egm96 geoid model) to height above the WGS-84 ellipsoid, and vice-versa, is available and used in several plugins; - According to ROS REP 105, the
earth
frame should be propagated in ECEF (Earth-Centered, Earth-Fixed) local coordinates. For that, the functionalities of GeographicLib are used in order to allow conversion from geodetic coordinates to geocentric coordinates; - The translation from GPS coordinates to local geocentric coordinates require the definition
of a local origin on the
map
frame, in ECEF, and calculate the offset to it in ENU. All the conversions are supported by GeographicLib classes and methods and implemented in theglobal_position
plugin.
Composite nodes
See also: https://docs.ros.org/en/foxy/Tutorials/Composition.html
mavros::router::Router
This is router node required to support connections to FCU(s), GCS(es) and UAS nodes. The Router allows you to add/remove endpoints on the fly without node restart.
mavros::uas::UAS
This node is a plugin container which manages all protocol plugins. Each plugin is a subnode to this.
Programs
File truncated at 100 lines see the full file
Changelog for package mavros
2.10.1 (2025-06-06)
- fix: display topic on service timeout error
- Fix incorrect macro usage RCLCPP_SMART_PTR_DEFINITIONS eventually is expanding to: #define __RCLCPP_MAKE_UNIQUE_DEFINITION(...) template<typename ... Args> static std::unique_ptr<__VA_ARGS_> make_unique(Args && ... args) { return std::unique_ptr<__VA_ARGS_>(new __VA_ARGS_(std::forward<Args>(args) ...)); } which is incorrect for abstract classes like Endpoint or Plugin RCLCPP_SMART_PTR_DEFINITIONS_NOT_COPYABLE is used instead excluding make_unique functionality
- Contributors: Emmanuel Ferdman, Mykhailo Kuznietsov
2.10.0 (2025-05-05)
-
extras: fix odid build
-
extras: re-generate all cog scripts
-
mavros: fix indentation
-
Merge branch 'master' into ros2
* master: 1.20.1 update changelog 1.20.0 update changelog update mavlink dep branch Add missing std_srvs dependency add param to odom plugin add frame_id parameter Fix compile error when compiling with gcc 13
-
1.20.1
-
update changelog
-
fix spelling error
-
add new flag
-
if
-
Address Warnings
-
cpplint
-
built successfully
-
1.20.0
-
update changelog
-
add param to odom plugin
-
add frame_id parameter
-
Contributors: EnderMandS, Michael Carlstrom, Vladimir Ermakov
2.9.0 (2024-10-10)
- py-mavros: fix flake8 errors
- py-mavros: reconfigure flake8
- py: isort
- py: black
- py-mavros: reformat with black
- py-mavros: csv escapechar of empty string unsupported since py 3.11
- apply ament_uncrustify --reformat (jazzy)
- Merge pull request #2000 from leocencetti/fix-test-errors Fix test errors in 3x3 covariance test cases
- fix: Patch test errors
- Merge pull request #1998 from leocencetti/fix-wrong-covariance-rotation Fix 3x3 covariance matrix rotation/transformation
- chore: Fix and reenable covariance rotation tests
- fix: Correct 3x3 covariance matrix rotation
- use GeographicLib::Geoid::ConvertHeight
- fix -Wdeprecated-enum-float-conversion in GeographicLib
- depcrecation errors
- #1965: sync format of configs
- Contributors: Jacob Dahl, Leonardo Cencetti, Vladimir Ermakov
2.8.0 (2024-06-07)
-
param: replace old rmw_qos usage
-
sys_status: replace rmw_qos too
-
command: fix humble condition
-
regenerate all using cogall.sh
-
command: keep support for humble
-
command: fix misprint
-
command: replace deprecated rmw_qos
File truncated at 100 lines see the full file
Package Dependencies
System Dependencies
Dependant Packages
Name | Deps |
---|---|
mavros_extras |
Launch files
- launch/apm.launch
-
- fcu_url [default: /dev/ttyACM0:57600]
- gcs_url [default: ]
- tgt_system [default: 1]
- tgt_component [default: 1]
- log_output [default: screen]
- fcu_protocol [default: v2.0]
- respawn_mavros [default: false]
- namespace [default: mavros]
- launch/multi_uas.launch
-
- id [default: 0]
- fcu_url [default: udp://:14540@127.0.0.1:14580]
- id [default: 1]
- fcu_url [default: udp://:14541@127.0.0.1:14581]
- launch/node.launch
-
- fcu_url
- gcs_url
- tgt_system
- tgt_component
- pluginlists_yaml
- config_yaml
- log_output [default: screen]
- fcu_protocol [default: v2.0]
- respawn_mavros [default: false]
- namespace [default: mavros]
- launch/px4.launch
-
- fcu_url [default: /dev/ttyACM0:57600]
- gcs_url [default: ]
- tgt_system [default: 1]
- tgt_component [default: 1]
- log_output [default: screen]
- fcu_protocol [default: v2.0]
- respawn_mavros [default: false]
- namespace [default: mavros]
Messages
Services
Plugins
Recent questions tagged mavros at Robotics Stack Exchange
![]() |
mavros package from mavros repolibmavconn mavros mavros_extras mavros_msgs test_mavros |
ROS Distro
|
Package Summary
Tags | uav mav mavlink plugin apm px4 |
Version | 1.20.1 |
License | GPLv3 |
Build type | CATKIN |
Use | RECOMMENDED |
Repository Summary
Description | MAVLink to ROS gateway with proxy for Ground Control Station |
Checkout URI | https://github.com/mavlink/mavros.git |
VCS Type | git |
VCS Version | master |
Last Updated | 2025-07-11 |
Dev Status | DEVELOPED |
Released | RELEASED |
Tags | uav ros mavlink ros-node mavros mavros-msgs mav plugin apm px4 |
Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- Vladimir Ermakov
Authors
- Vladimir Ermakov
MAVROS
MAVLink extendable communication node for ROS with proxy for Ground Control Station (e.g. [QGroundControl][qgc]).
ROS API documentation moved to [wiki.ros.org][wiki].
Features
- Communication with autopilot via serial port, UDP or TCP (e.g. [PX4 Pro][px4] or [ArduPilot][apm])
- Internal proxy for Ground Control Station (serial, UDP, TCP)
- Plugin system for ROS-MAVLink translation
- Parameter manipulation tool
- Waypoint manipulation tool
- PX4Flow support (by [mavros_extras][mrext])
- OFFBOARD mode support
- Geographic coordinates conversions.
Limitations
Only for Linux. Depends on [Boost library][boost], GCC 4.8+ (C++11 support). Catkin build system required.
This package are dependent on [ros-*-mavlink][mlwiki] build from [mavlink-gbp-release][mlgbp]. It exists in ROS package index and usually updates each month.
Connection URL
Connection defined by URL, you can use any supported type for FCU and GCS.
Supported schemas:
- Serial:
/path/to/serial/device[:baudrate]
- Serial:
serial:///path/to/serial/device[:baudrate][?ids=sysid,compid]
- Serial with hardware flow control:
serial-hwfc:///path/to/serial/device[:baudrate][?ids=sysid,compid]
- UDP:
udp://[bind_host][:port]@[remote_host[:port]][/?ids=sysid,compid]
- UDP broadcast until GCS discovery:
udp-b://[bind_host][:port]@[:port][/?ids=sysid,compid]
- UDP broadcast (permanent):
udp-pb://[bind_host][:port]@[:port][/?ids=sysid,compid]
- TCP client:
tcp://[server_host][:port][/?ids=sysid,compid]
- TCP server:
tcp-l://[bind_host][:port][/?ids=sysid,compid]
Note:
- Ids from URL overrides value given by system_id & component_id parameters.
- bind_host - default
0.0.0.0
- i.e. IP4 ANY - UDP default ports: 14555 @ 14550
- UDP remote address updated every time with incoming packet on bind port.
- TCP default port: 5760
Coordinate frames
MAVROS does translate Aerospace NED frames, used in FCUs to ROS ENU frames and vice-versa. For translate airframe related data we simply apply rotation 180° about ROLL (X) axis. For local we apply 180° about ROLL (X) and 90° about YAW (Z) axes. Please read documents from issue #473 for additional information.
All the conversions are handled in src/lib/ftf_frame_conversions.cpp
and src/lib/ftf_quaternion_utils.cpp
and tested in test/test_frame_conversions.cpp
and test/test_quaternion_utils.cpp
respectively.
Related issues: [#49 (outdated)][iss49], [#216 (outdated)][iss216], [#317 (outdated)][iss317], [#319 (outdated)][iss319], [#321 (outdated)][iss321], [#473][iss473]. Documents: [Frame Conversions][iss473rfc], [Mavlink coordinate frames][iss473table].
MAVROS also allows conversion of geodetic and geocentric coordinates through [GeographicLib][geolib] given that:
-
geographic_msgs
andNatSatFix.msg
require the LLA fields to be filled in WGS-84 datum, meaning that the altitude should be the height above the WGS-84 ellipsoid. For that, a conversion from the height above the geoid (AMSL, considering the egm96 geoid model) to height above the WGS-84 ellipsoid, and vice-versa, is available and used in several plugins; - According to ROS REP 105, the
earth
frame should be propagated in ECEF (Earth-Centered, Earth-Fixed) local coordinates. For that, the functionalities of GeographicLib are used in order to allow conversion from geodetic coordinates to geocentric coordinates; - The translation from GPS coordinates to local geocentric coordinates require the definition
of a local origin on the
map
frame, in ECEF, and calculate the offset to it in ENU. All the conversions are supported by GeographicLib classes and methods and implemented in theglobal_position
plugin.
Programs
mavros_node – main communication node
Main node. Allow disable GCS proxy by setting empty URL.
Run example (autopilot connected via USB at 921600 baud, GCS running on the host with IP 172.16.254.1):
rosrun mavros mavros_node _fcu_url:=/dev/ttyACM0:921600 _gcs_url:=udp://@172.16.254.1
gcs_bridge – additional proxy
Allows you to add a channel for GCS. For example if you need to connect one GCS for HIL and the second on the tablet.
File truncated at 100 lines see the full file
Changelog for package mavros
1.20.1 (2025-05-05)
1.20.0 (2024-10-10)
- add param to odom plugin
- add frame_id parameter
- Contributors: EnderMandS
1.19.0 (2024-06-06)
- gps_global_origin: remove LLA to ECEF conversion gps_global_origin is being published as geographic_msgs::GeoPointStamped message, which wants LLA format https://docs.ros.org/en/api/geographic_msgs/html/msg/GeoPointStamped.html FIX https://github.com/mavlink/mavros/issues/1381
- Contributors: Beniamino Pozzan
1.18.0 (2024-03-03)
- sys_status.cpp: improve timeout code
- sys_status.cpp: Add a SYS_STATUS message publisher
- Contributors: Dr.-Ing. Amilcar do Carmo Lucas
1.17.0 (2023-09-09)
-
cog: regenerate all
-
Bugfix/update map origin with home position (#1892)
- Update map origin with home position
- Uncrustify
* Revert "Uncrustify" This reverts commit f1387c79c7670cc241986586436e3da43842e877.
* Change to relative topic ---------Co-authored-by: Natalia Molina <<molina-munoz@wingcopter.com>>
-
Merge pull request #1865 from scoutdi/warnings Fix / suppress some build warnings
-
mavros: Remove extra ';'
-
Suppress warnings from included headers
-
Contributors: Morten Fyhn Amundsen, Vladimir Ermakov, natmol
1.16.0 (2023-05-05)
- Merge pull request #1829 from snwu1996/latched_gp_origin_pub Made it such that the gp_origin topic publisher is latched.
- made it such that the gp_origin topic published latched.
- Merge pull request #1817 from lucasw/pluginlib_hpp use hpp instead of deprecated .h pluginlib headers
- use hpp instead of deprecated .h pluginlib headers
- Contributors: Lucas Walter, Shu-Nong Wu, Vladimir Ermakov
1.15.0 (2022-12-30)
- Merge pull request #1806 from scoutdi/fix-some-warnings mavros: Fix some warnings
- mavros: Fix some warnings
- Contributors: Morten Fyhn Amundsen, Vladimir Ermakov
1.14.0 (2022-09-24)
- scripts: waypoint and param files are text, not binary Fix #1784
- Merge pull request #1780 from snktshrma/master guided_target: accept position-target-global-int messages
- plugins: add guided_target to accept offboard position targets Update guided_target.cpp Update guided_target.cpp Update mavros_plugins.xml Update CMakeLists.txt Added offboard_position.cpp Update apm_config.yaml Update offboard_position.cpp Update offboard_position.cpp Rename offboard_position.cpp to guided_target.cpp Update CMakeLists.txt Update mavros_plugins.xml Update apm_config.yaml Update guided_target.cpp
- Merge pull request #1775 from acxz/find-geographiclib use already installed FindGeographicLib.cmake
- add cmake module path for geographiclib on debian based systems
- Merge pull request #1744 from amilcarlucas/pr_gimbal_diagnostics_fixes mount_control.cpp: detect MOUNT_ORIENTATION stale messages
- mount_control.cpp: detect MOUNT_ORIENTATION stale messages correct MountConfigure response success correct constructor initialization order some gimbals send negated/inverted angle measurements, correct
File truncated at 100 lines see the full file
Package Dependencies
System Dependencies
Dependant Packages
Launch files
- launch/apm.launch
-
- fcu_url [default: /dev/ttyACM0:57600]
- gcs_url [default: ]
- tgt_system [default: 1]
- tgt_component [default: 1]
- log_output [default: screen]
- fcu_protocol [default: v2.0]
- respawn_mavros [default: false]
- launch/apm2.launch
-
- fcu_url [default: /dev/ttyACM0:57600]
- gcs_url [default: ]
- tgt_system [default: 1]
- tgt_component [default: 1]
- log_output [default: screen]
- fcu_protocol [default: v2.0]
- respawn_mavros [default: false]
- launch/mavlink_bridge.launch
-
- ns [default: iris]
- mavlink_bridge_url [default: udp://127.0.0.1:14553@127.0.0.1:14560]
- launch/node.launch
-
- fcu_url
- gcs_url
- tgt_system
- tgt_component
- pluginlists_yaml
- config_yaml
- log_output [default: screen]
- fcu_protocol [default: v2.0]
- respawn_mavros [default: false]
- launch/px4.launch
-
- fcu_url [default: /dev/ttyACM0:57600]
- gcs_url [default: ]
- tgt_system [default: 1]
- tgt_component [default: 1]
- log_output [default: screen]
- fcu_protocol [default: v2.0]
- respawn_mavros [default: false]
- respawn_mavros [default: $(arg respawn_mavros)]
Messages
Services
Plugins
Recent questions tagged mavros at Robotics Stack Exchange
![]() |
mavros package from mavros repolibmavconn mavros mavros_extras mavros_msgs test_mavros |
ROS Distro
|
Package Summary
Tags | uav mav mavlink plugin apm px4 |
Version | 1.20.1 |
License | GPLv3 |
Build type | CATKIN |
Use | RECOMMENDED |
Repository Summary
Description | MAVLink to ROS gateway with proxy for Ground Control Station |
Checkout URI | https://github.com/mavlink/mavros.git |
VCS Type | git |
VCS Version | master |
Last Updated | 2025-07-11 |
Dev Status | DEVELOPED |
Released | RELEASED |
Tags | uav ros mavlink ros-node mavros mavros-msgs mav plugin apm px4 |
Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- Vladimir Ermakov
Authors
- Vladimir Ermakov
MAVROS
MAVLink extendable communication node for ROS with proxy for Ground Control Station (e.g. [QGroundControl][qgc]).
ROS API documentation moved to [wiki.ros.org][wiki].
Features
- Communication with autopilot via serial port, UDP or TCP (e.g. [PX4 Pro][px4] or [ArduPilot][apm])
- Internal proxy for Ground Control Station (serial, UDP, TCP)
- Plugin system for ROS-MAVLink translation
- Parameter manipulation tool
- Waypoint manipulation tool
- PX4Flow support (by [mavros_extras][mrext])
- OFFBOARD mode support
- Geographic coordinates conversions.
Limitations
Only for Linux. Depends on [Boost library][boost], GCC 4.8+ (C++11 support). Catkin build system required.
This package are dependent on [ros-*-mavlink][mlwiki] build from [mavlink-gbp-release][mlgbp]. It exists in ROS package index and usually updates each month.
Connection URL
Connection defined by URL, you can use any supported type for FCU and GCS.
Supported schemas:
- Serial:
/path/to/serial/device[:baudrate]
- Serial:
serial:///path/to/serial/device[:baudrate][?ids=sysid,compid]
- Serial with hardware flow control:
serial-hwfc:///path/to/serial/device[:baudrate][?ids=sysid,compid]
- UDP:
udp://[bind_host][:port]@[remote_host[:port]][/?ids=sysid,compid]
- UDP broadcast until GCS discovery:
udp-b://[bind_host][:port]@[:port][/?ids=sysid,compid]
- UDP broadcast (permanent):
udp-pb://[bind_host][:port]@[:port][/?ids=sysid,compid]
- TCP client:
tcp://[server_host][:port][/?ids=sysid,compid]
- TCP server:
tcp-l://[bind_host][:port][/?ids=sysid,compid]
Note:
- Ids from URL overrides value given by system_id & component_id parameters.
- bind_host - default
0.0.0.0
- i.e. IP4 ANY - UDP default ports: 14555 @ 14550
- UDP remote address updated every time with incoming packet on bind port.
- TCP default port: 5760
Coordinate frames
MAVROS does translate Aerospace NED frames, used in FCUs to ROS ENU frames and vice-versa. For translate airframe related data we simply apply rotation 180° about ROLL (X) axis. For local we apply 180° about ROLL (X) and 90° about YAW (Z) axes. Please read documents from issue #473 for additional information.
All the conversions are handled in src/lib/ftf_frame_conversions.cpp
and src/lib/ftf_quaternion_utils.cpp
and tested in test/test_frame_conversions.cpp
and test/test_quaternion_utils.cpp
respectively.
Related issues: [#49 (outdated)][iss49], [#216 (outdated)][iss216], [#317 (outdated)][iss317], [#319 (outdated)][iss319], [#321 (outdated)][iss321], [#473][iss473]. Documents: [Frame Conversions][iss473rfc], [Mavlink coordinate frames][iss473table].
MAVROS also allows conversion of geodetic and geocentric coordinates through [GeographicLib][geolib] given that:
-
geographic_msgs
andNatSatFix.msg
require the LLA fields to be filled in WGS-84 datum, meaning that the altitude should be the height above the WGS-84 ellipsoid. For that, a conversion from the height above the geoid (AMSL, considering the egm96 geoid model) to height above the WGS-84 ellipsoid, and vice-versa, is available and used in several plugins; - According to ROS REP 105, the
earth
frame should be propagated in ECEF (Earth-Centered, Earth-Fixed) local coordinates. For that, the functionalities of GeographicLib are used in order to allow conversion from geodetic coordinates to geocentric coordinates; - The translation from GPS coordinates to local geocentric coordinates require the definition
of a local origin on the
map
frame, in ECEF, and calculate the offset to it in ENU. All the conversions are supported by GeographicLib classes and methods and implemented in theglobal_position
plugin.
Programs
mavros_node – main communication node
Main node. Allow disable GCS proxy by setting empty URL.
Run example (autopilot connected via USB at 921600 baud, GCS running on the host with IP 172.16.254.1):
rosrun mavros mavros_node _fcu_url:=/dev/ttyACM0:921600 _gcs_url:=udp://@172.16.254.1
gcs_bridge – additional proxy
Allows you to add a channel for GCS. For example if you need to connect one GCS for HIL and the second on the tablet.
File truncated at 100 lines see the full file
Changelog for package mavros
1.20.1 (2025-05-05)
1.20.0 (2024-10-10)
- add param to odom plugin
- add frame_id parameter
- Contributors: EnderMandS
1.19.0 (2024-06-06)
- gps_global_origin: remove LLA to ECEF conversion gps_global_origin is being published as geographic_msgs::GeoPointStamped message, which wants LLA format https://docs.ros.org/en/api/geographic_msgs/html/msg/GeoPointStamped.html FIX https://github.com/mavlink/mavros/issues/1381
- Contributors: Beniamino Pozzan
1.18.0 (2024-03-03)
- sys_status.cpp: improve timeout code
- sys_status.cpp: Add a SYS_STATUS message publisher
- Contributors: Dr.-Ing. Amilcar do Carmo Lucas
1.17.0 (2023-09-09)
-
cog: regenerate all
-
Bugfix/update map origin with home position (#1892)
- Update map origin with home position
- Uncrustify
* Revert "Uncrustify" This reverts commit f1387c79c7670cc241986586436e3da43842e877.
* Change to relative topic ---------Co-authored-by: Natalia Molina <<molina-munoz@wingcopter.com>>
-
Merge pull request #1865 from scoutdi/warnings Fix / suppress some build warnings
-
mavros: Remove extra ';'
-
Suppress warnings from included headers
-
Contributors: Morten Fyhn Amundsen, Vladimir Ermakov, natmol
1.16.0 (2023-05-05)
- Merge pull request #1829 from snwu1996/latched_gp_origin_pub Made it such that the gp_origin topic publisher is latched.
- made it such that the gp_origin topic published latched.
- Merge pull request #1817 from lucasw/pluginlib_hpp use hpp instead of deprecated .h pluginlib headers
- use hpp instead of deprecated .h pluginlib headers
- Contributors: Lucas Walter, Shu-Nong Wu, Vladimir Ermakov
1.15.0 (2022-12-30)
- Merge pull request #1806 from scoutdi/fix-some-warnings mavros: Fix some warnings
- mavros: Fix some warnings
- Contributors: Morten Fyhn Amundsen, Vladimir Ermakov
1.14.0 (2022-09-24)
- scripts: waypoint and param files are text, not binary Fix #1784
- Merge pull request #1780 from snktshrma/master guided_target: accept position-target-global-int messages
- plugins: add guided_target to accept offboard position targets Update guided_target.cpp Update guided_target.cpp Update mavros_plugins.xml Update CMakeLists.txt Added offboard_position.cpp Update apm_config.yaml Update offboard_position.cpp Update offboard_position.cpp Rename offboard_position.cpp to guided_target.cpp Update CMakeLists.txt Update mavros_plugins.xml Update apm_config.yaml Update guided_target.cpp
- Merge pull request #1775 from acxz/find-geographiclib use already installed FindGeographicLib.cmake
- add cmake module path for geographiclib on debian based systems
- Merge pull request #1744 from amilcarlucas/pr_gimbal_diagnostics_fixes mount_control.cpp: detect MOUNT_ORIENTATION stale messages
- mount_control.cpp: detect MOUNT_ORIENTATION stale messages correct MountConfigure response success correct constructor initialization order some gimbals send negated/inverted angle measurements, correct
File truncated at 100 lines see the full file
Package Dependencies
System Dependencies
Dependant Packages
Launch files
- launch/apm.launch
-
- fcu_url [default: /dev/ttyACM0:57600]
- gcs_url [default: ]
- tgt_system [default: 1]
- tgt_component [default: 1]
- log_output [default: screen]
- fcu_protocol [default: v2.0]
- respawn_mavros [default: false]
- launch/apm2.launch
-
- fcu_url [default: /dev/ttyACM0:57600]
- gcs_url [default: ]
- tgt_system [default: 1]
- tgt_component [default: 1]
- log_output [default: screen]
- fcu_protocol [default: v2.0]
- respawn_mavros [default: false]
- launch/mavlink_bridge.launch
-
- ns [default: iris]
- mavlink_bridge_url [default: udp://127.0.0.1:14553@127.0.0.1:14560]
- launch/node.launch
-
- fcu_url
- gcs_url
- tgt_system
- tgt_component
- pluginlists_yaml
- config_yaml
- log_output [default: screen]
- fcu_protocol [default: v2.0]
- respawn_mavros [default: false]
- launch/px4.launch
-
- fcu_url [default: /dev/ttyACM0:57600]
- gcs_url [default: ]
- tgt_system [default: 1]
- tgt_component [default: 1]
- log_output [default: screen]
- fcu_protocol [default: v2.0]
- respawn_mavros [default: false]
- respawn_mavros [default: $(arg respawn_mavros)]