Skip to content

Commit

Permalink
Merge branch 'master' into ros2
Browse files Browse the repository at this point in the history
* master:
  1.19.0
  update changelog
  gps_global_origin: remove LLA to ECEF conversion
  • Loading branch information
vooon committed Jun 7, 2024
2 parents 5646ba4 + a739960 commit 935a4bd
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 17 deletions.
3 changes: 3 additions & 0 deletions libmavconn/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
Changelog for package libmavconn
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

1.19.0 (2024-06-06)
-------------------

2.7.0 (2024-03-03)
------------------
* Merge branch 'master' into ros2
Expand Down
10 changes: 10 additions & 0 deletions mavros/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@
Changelog for package mavros
^^^^^^^^^^^^^^^^^^^^^^^^^^^^

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

2.7.0 (2024-03-03)
------------------
* Merge branch 'master' into ros2
Expand Down
17 changes: 1 addition & 16 deletions mavros/src/plugins/global_position.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -289,22 +289,7 @@ class GlobalPositionPlugin : public plugin::Plugin
g_origin.position.altitude = glob_orig.altitude / 1E3 + uas->data.geoid_to_ellipsoid_height(
g_origin.position); // convert height amsl to height above the ellipsoid

try {
/**
* @brief Conversion from geodetic coordinates (LLA) to ECEF (Earth-Centered, Earth-Fixed)
* Note: "earth" frame, in ECEF, of the global origin
*/
GeographicLib::Geocentric earth(GeographicLib::Constants::WGS84_a(),
GeographicLib::Constants::WGS84_f());

earth.Forward(
g_origin.position.latitude, g_origin.position.longitude, g_origin.position.altitude,
g_origin.position.latitude, g_origin.position.longitude, g_origin.position.altitude);

gp_global_origin_pub->publish(g_origin);
} catch (const std::exception & e) {
RCLCPP_ERROR_STREAM(get_logger(), "GP: Caught exception: " << e.what());
}
gp_global_origin_pub->publish(g_origin);
}

/** @todo Handler for GLOBAL_POSITION_INT_COV */
Expand Down
3 changes: 3 additions & 0 deletions mavros_extras/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
Changelog for package mavros_extras
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

1.19.0 (2024-06-06)
-------------------

2.7.0 (2024-03-03)
------------------
* re-generate with cogall.sh
Expand Down
3 changes: 3 additions & 0 deletions mavros_msgs/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
Changelog for package mavros_msgs
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

1.19.0 (2024-06-06)
-------------------

2.7.0 (2024-03-03)
------------------
* re-generate with cogall.sh
Expand Down
3 changes: 3 additions & 0 deletions test_mavros/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
Changelog for package test_mavros
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

1.19.0 (2024-06-06)
-------------------

1.18.0 (2024-03-03)
-------------------

Expand Down
2 changes: 1 addition & 1 deletion test_mavros/package.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<package format="2">
<name>test_mavros</name>
<version>1.18.0</version>
<version>1.19.0</version>
<description>Tests for MAVROS package</description>

<maintainer email="[email protected]">Vladimir Ermakov</maintainer>
Expand Down

0 comments on commit 935a4bd

Please sign in to comment.