51 std::lock_guard<std::mutex> lock(
mutex_);
61 std::lock_guard<std::mutex> lock(
mutex_);
74 std::lock_guard<std::mutex> lock(
mutex_);
76 RCLCPP_INFO(
getLogger(),
"[CpDecisionManager] Decision counter reset");
85 std::lock_guard<std::mutex> lock(
mutex_);
87 RCLCPP_INFO_STREAM(
getLogger(),
"[CpDecisionManager] Decision counter set to " << value);
Component that manages mission decision state.
void setDecisionCounter(int value)
Set the decision counter to a specific value.
CpDecisionManager()=default
int getDecisionCounter() const
Get the current decision counter value.
void onInitialize() override
virtual ~CpDecisionManager()=default
void resetDecisionCounter()
Reset the decision counter to zero.
int nextDecision()
Increment the decision counter and return the previous value.
rclcpp::Logger getLogger() const