ardupilot icon indicating copy to clipboard operation
ardupilot copied to clipboard

AP_DDS: Provide current Goal

Open tizianofiorenzani opened this issue 1 year ago • 3 comments

Provide current goal location to the DDS Interface

Providing the current goal would help to verify whether the vehicle is actually going where it has been guided to.

Proposed Solution

  • Create a new topic /ap/goal of type GeoPoseStamped, and use it to send the goal location.
  • The goal location in the DDS client should be recovered with AP::vehicle()->get_target_location(Location &target_loc);

Altitude frame

  • Goal could be either be converted to MSL or we could provide the altitude frame in the frame_id.

Platform [ ] All [ ] AntennaTracker [ x] Copter [ x] Plane [ x] Rover [ x] Submarine

tizianofiorenzani avatar Oct 03 '24 21:10 tizianofiorenzani

In what situation does a companion computer not know what where the autopilot is headed? Won't all commands come from the companion computer over reliable transport?

Ryanf55 avatar Oct 03 '24 22:10 Ryanf55

Not really, as the goal is sent by topic, so you trust that the vehicle obeys, which I find it too flimsy.

tizianofiorenzani avatar Oct 03 '24 22:10 tizianofiorenzani

Created a PR: https://github.com/ArduPilot/ardupilot/pull/28372

tizianofiorenzani avatar Oct 10 '24 17:10 tizianofiorenzani

Well, we merged the PR, so closing this one :-)

peterbarker avatar May 09 '25 13:05 peterbarker