Skip to content

Report success from moveOnPath when the drone reaches the end of the path - #167

Merged
WouterJansen merged 1 commit into
Cosys-Lab:5.8devfrom
jcfurey:fix/moveonpath-result
Oct 5, 2026
Merged

WouterJansen merged 1 commit into
Cosys-Lab:5.8devfrom
jcfurey:fix/moveonpath-result

Conversation

@jcfurey

@jcfurey jcfurey commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

moveOnPath, and with it takeoff, moveToPosition and moveToZ, returned false for moves that finished. Its loop also ends when the drone stops within getDistanceAccuracy() of the last point, where moveToPathPosition stops commanding it, but only an exact arrival completed the waiter.

It now also succeeds when the drone ends within twice the distance accuracy of the end of the path; timeouts and drones stuck short of the goal still fail.

Tested in HERCULES (a Cosys-AirSim fork) with UE 5.8.3: waited takeoffs and reachable moves over RPC return true, and a 40 m climb with a 2 s timeout returns false. Also built from this tree with UE 5.8.3 (Windows): in Blocks, reachable moveToZ and moveToPosition RPCs return true and a 60 m climb with a 2 s timeout returns false.

🤖 Generated with Claude Code

…path

moveOnPath, behind takeoff, moveToPosition and moveToZ, returned false for
moves that finished: its loop also ends when the drone stops within
getDistanceAccuracy() of the end of the path, where moveToPathPosition
stops commanding it, but only an exact arrival marked the task complete.
It now succeeds when the drone ends within twice the distance accuracy of
the end of the path (allowing for the drone still settling), and still
fails on a timeout or a drone stuck short of its goal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JmWqXFCY6vDdpRe4VHoaQX
@jcfurey
jcfurey marked this pull request as ready for review October 4, 2026 05:46
@WouterJansen
WouterJansen changed the base branch from main to 5.8dev October 5, 2026 06:49
@WouterJansen
WouterJansen merged commit 0bcde67 into Cosys-Lab:5.8dev Oct 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants