Add executive authority model, mission_executor BT layer, and enforce executive gating in trajectory_manager#7
Open
varadVaidya wants to merge 2 commits into
Conversation
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.
Motivation
on_configure()non-blocking by removing deterministic startup sleep/gates to avoid brittle launch-order dependencies.Description
peregrine_interfaces::msg::UAVState(fault_latched,motion_authorized,takeoff_authorized,landing_authorized,executive_reason) and a new serviceperegrine_interfaces::srv::ClearEmergencyto explicitly clear latched emergencies.uav_manager: compute and publish the newuav_statefields inpublishUavState(), exposeclear_emergencyservice, and remove forwarding of generic motion actions (go_to/execute_trajectory) from the executive.trajectory_managerexecutive gate (executive_gate.hpp) and subscription touav_state, and enforce policy at goal acceptance and during execution (reject goals when executive denies motion, abort active goals when authority is revoked, and forbid takeoff/land via the genericexecute_trajectoryaction).<thread>sleeps fromestimation_manager,trajectory_manager, andcontrol_manageron_configure()implementations and replace with non-blocking lifecycle activation behavior and comments clarifying responsibilities.mission_executorpackage implementing a BehaviorTree-based mission application layer with a reusable example tree and launch integration inperegrine_bringup.ARCHITECTURE.md, package READMEs) to reflect the layered separation (mission/executive/motion) and executive gating rules.trajectory_manager/test_executive_gate.cpp) and updatetrajectory_managerCMake to run the test, plus add/adjustuav_managerunit tests related to emergency behavior.Testing
ament/unit tests:trajectory_manager::ExecutiveGateTest(3 cases) executed and passed.uav_managersupervisor unit tests (including emergency/clear behavior) and they passed.Codex Task