Repository navigation
Report success from moveOnPath when the drone reaches the end of the path - #167
Merged
Merged
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
moveOnPath, and with ittakeoff,moveToPositionandmoveToZ, returned false for moves that finished. Its loop also ends when the drone stops withingetDistanceAccuracy()of the last point, wheremoveToPathPositionstops 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
moveToZandmoveToPositionRPCs return true and a 60 m climb with a 2 s timeout returns false.🤖 Generated with Claude Code