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

AP_DDS: Goal topic publisher #28372

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tizianofiorenzani
Copy link
Contributor

@tizianofiorenzani tizianofiorenzani commented Oct 10, 2024

Issue

#28299

What Changed

  • New topic /ap/goal_lla to provide current goal as GeopointStamped.
  • The topic is published only when changed, reliability set to UXR_RELIABILITY_RELIABLE

Semi automatic test

Run the plane SITL

ros2 launch ardupilot_sitl sitl_dds_udp.launch.py model:=plane command:=arduplane defaults:=$(ros2 pkg prefix ardupilot_sitl)/share/ardupilot_sitl/config/models/plane.parm

and then run the test as:

ros2 run ardupilot_dds_tests plane_waypoint_follower

image

SITL

Tested in SITL: sending copter to a waypoint:

image

ros2 topic echo /ap/goal_lla
image

@tizianofiorenzani
Copy link
Contributor Author

@Ryanf55 I set the topic to be published only when changed.

libraries/AP_DDS/AP_DDS_Client.cpp Outdated Show resolved Hide resolved
libraries/AP_DDS/AP_DDS_Client.cpp Outdated Show resolved Hide resolved
libraries/AP_DDS/AP_DDS_Client.cpp Outdated Show resolved Hide resolved
libraries/AP_DDS/AP_DDS_Client.h Outdated Show resolved Hide resolved
libraries/AP_DDS/AP_DDS_Client.h Outdated Show resolved Hide resolved
@tizianofiorenzani tizianofiorenzani force-pushed the wips/dds-goal-topic branch 2 times, most recently from 4a30ee6 to 41fdc63 Compare October 18, 2024 18:39
libraries/AP_DDS/AP_DDS_Client.cpp Outdated Show resolved Hide resolved
libraries/AP_DDS/AP_DDS_Client.cpp Show resolved Hide resolved
@tizianofiorenzani
Copy link
Contributor Author

After applying suggestions, rally point is in Absolute altitude.

image

image

Copy link
Collaborator

@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.

Looking great, just need to move the rate to be user configurable like the rest and then I'll approve.

libraries/AP_DDS/AP_DDS_Client.cpp Outdated Show resolved Hide resolved
libraries/AP_DDS/AP_DDS_config.h Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

2 participants