Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-actions: update distro to noble for ROS2 rolling #36

Merged
merged 2 commits into from
May 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-publish-debian-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
distro:
- ubuntu: jammy
ros2: humble
- ubuntu: jammy
- ubuntu: noble
ros2: rolling
- ubuntu: focal
ros2: foxy
Expand Down
6 changes: 4 additions & 2 deletions px4_ros2_cpp/src/utils/map_projection_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ class MapProjectionImpl final
{
Eigen::Vector3f local_position;

local_position.head(2) = globalToLocal(static_cast<Eigen::Vector2d>(global_position.head(2)));
local_position.template head<2>() =
globalToLocal(static_cast<Eigen::Vector2d>(global_position.head(2)));
local_position.z() = static_cast<float>(_ref_alt_amsl - global_position.z());
return local_position;
}
Expand All @@ -132,7 +133,8 @@ class MapProjectionImpl final
{
Eigen::Vector3d global_position;

global_position.head(2) = localToGlobal(static_cast<Eigen::Vector2f>(local_position.head(2)));
global_position.template head<2>() =
localToGlobal(static_cast<Eigen::Vector2f>(local_position.head(2)));
global_position.z() = static_cast<double>(_ref_alt_amsl - local_position.z());
return global_position;
}
Expand Down
Loading