Skip to content

AP_DDS: GeoPose Publisher#23540

Merged
peterbarker merged 1 commit intoArduPilot:masterfrom
pedro-fuoco:dds-geo-pose-publisher
May 5, 2023
Merged

AP_DDS: GeoPose Publisher#23540
peterbarker merged 1 commit intoArduPilot:masterfrom
pedro-fuoco:dds-geo-pose-publisher

Conversation

@pedro-fuoco
Copy link
Contributor

@pedro-fuoco pedro-fuoco commented Apr 18, 2023

Resolves #23534, here is the PR working on SITL:
Screenshot from 2023-04-18 15-37-54
Uses the same orientation logic as #23480 since both follow ENU

@Ryanf55 Ryanf55 self-requested a review April 20, 2023 00:41
@pedro-fuoco pedro-fuoco force-pushed the dds-geo-pose-publisher branch from 494bb80 to 4cba27e Compare April 20, 2023 16:27
@Ryanf55 Ryanf55 added ROS For-4.5 Planned for 4.5 release labels Apr 22, 2023
@pedro-fuoco pedro-fuoco force-pushed the dds-geo-pose-publisher branch from 4cba27e to b68fa5c Compare April 25, 2023 12:28
@pedro-fuoco
Copy link
Contributor Author

pedro-fuoco commented Apr 25, 2023

Updated the orientation to follow what was agreed on #23480. Code comments were updated accordingly.

@pedro-fuoco pedro-fuoco requested a review from Ryanf55 April 25, 2023 12:35
@pedro-fuoco pedro-fuoco changed the title AP_DDS: Geo Pose Publisher AP_DDS: GeoPose Publisher Apr 27, 2023
@pedro-fuoco pedro-fuoco force-pushed the dds-geo-pose-publisher branch from 761734a to c9949c8 Compare April 27, 2023 21:59
* Add GeoPoint.idl
* Add GeoPose.idl
* Add GeoPoseStamped.idl
* Update geopose topic name to follow ArduPilot#23603
* Add GeoPose topic support

Co-authored-by: Pedro Fuoco <pedrofuoco6@gmail.com>
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
@Ryanf55 Ryanf55 force-pushed the dds-geo-pose-publisher branch from c9949c8 to fd1e9c0 Compare May 4, 2023 14:39
Copy link
Contributor

@Ryanf55 Ryanf55 left a comment

Choose a reason for hiding this comment

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

LGTM, I rebased and updated the code style and tested it on UDP.

./Tools/CodeStyle/ardupilot-astyle.sh --options=Tools/CodeStyle/astylerc libraries/AP_DDS/*.cpp libraries/AP_DDS/*.h

Make sure your commits have a blank line between the first line and any further details.

AP_DDS: Add geographic_msgs 
* Add GeoPoint.idl
* Add GeoPose.idl
* Add GeoPoseStamped.idl

I also added some spaces after operators to comply with the style guide. This is something that astyle doesn't do for you automatically.

        Quaternion aux(orientation[0], orientation[2], orientation[1], -orientation[3]); //NED to ENU transformation
        Quaternion transformation(sqrt(2) / 2, 0, 0, sqrt(2) / 2); // Z axis 90 degree rotation

I squashed all the commits with the formatting. Approved

@pedro-fuoco
Copy link
Contributor Author

@Ryanf55 Thanks a lot for the insights, I will surely keep it all in mind for my future contributions!

@peterbarker peterbarker merged commit 57c2753 into ArduPilot:master May 5, 2023
@russkel
Copy link
Contributor

russkel commented May 5, 2023

Lovely work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

For-4.5 Planned for 4.5 release ROS

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

AP_DDS: Support publishing GeoPoseStamped

5 participants