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

Add local global conversion #29

Merged
merged 5 commits into from
Feb 26, 2024
Merged

Add local global conversion #29

merged 5 commits into from
Feb 26, 2024

Conversation

GuillaumeLaine
Copy link
Member

@GuillaumeLaine GuillaumeLaine commented Feb 16, 2024

  • Geodesic operation and conversion utils (mostly PX4 implementation)
    • Map projection class split as MapProjectionImpl and MapProjection. The former handles the math, the latter is user facing and handles the ROS subscription to get the reference position from PX4
  • Adds goto global setpoint type: projects the provided global position to the local frame, and calls the (local) goto setpoint type
  • Example global goto mode: mimics (local) goto example behavior, but in global coordinates.

@GuillaumeLaine GuillaumeLaine force-pushed the local_global_conversion branch from d007ca1 to b4b2b24 Compare February 16, 2024 15:05
@GuillaumeLaine GuillaumeLaine changed the title Local global conversion Add local global conversion Feb 16, 2024
@GuillaumeLaine GuillaumeLaine force-pushed the local_global_conversion branch from b4b2b24 to 1f4bb06 Compare February 16, 2024 15:41
@GuillaumeLaine GuillaumeLaine removed the request for review from tstastny February 16, 2024 15:42
Copy link
Collaborator

@bkueng bkueng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, looks very clean.
Potentially add some unit tests for the geodesic methods.

px4_ros2_cpp/include/px4_ros2/utils/geodesic.hpp Outdated Show resolved Hide resolved
px4_ros2_cpp/include/px4_ros2/utils/geodesic.hpp Outdated Show resolved Hide resolved
px4_ros2_cpp/src/utils/geodesic.cpp Outdated Show resolved Hide resolved
px4_ros2_cpp/src/utils/geodesic.cpp Outdated Show resolved Hide resolved
px4_ros2_cpp/src/utils/geodesic.cpp Outdated Show resolved Hide resolved
px4_ros2_cpp/src/control/setpoint_types/goto.cpp Outdated Show resolved Hide resolved
@GuillaumeLaine GuillaumeLaine force-pushed the local_global_conversion branch from 81b1b92 to 3d82ec1 Compare February 21, 2024 17:27
@GuillaumeLaine
Copy link
Member Author

Thanks for the review, I'm done applying your suggestions for this PR. I'll open separate PRs for the suggestions that weren't directly related to this PR:

  • Odometry class for attitude
  • Node with Mode class
  • Callback for ekf resets in the MapProjection class

@GuillaumeLaine GuillaumeLaine merged commit 3f3ff64 into main Feb 26, 2024
8 checks passed
@GuillaumeLaine GuillaumeLaine deleted the local_global_conversion branch February 26, 2024 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants