SMACC2
Loading...
Searching...
No Matches
cb_wait_nav2_nodes.hpp
Go to the documentation of this file.
1// Copyright 2025 Robosoft Inc.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15/*****************************************************************************************************************
16 *
17 * Authors: Pablo Inigo Blasco, Brett Aldrich
18 *
19 ******************************************************************************************************************/
20#pragma once
21
22#include <tf2_ros/buffer.h>
23
24#include <bond/msg/status.hpp>
27
28namespace cl_nav2z
29{
39
40std::string toString(Nav2Nodes value);
41
42Nav2Nodes fromString(const std::string & str);
43
45{
46public:
48 std::vector<Nav2Nodes> waitNodes = {
50
51 void runtimeConfigure() override;
52
53 void onEntry() override;
54
55private:
56 void onMessageReceived(const bond::msg::Status & msg);
57
59 std::map<Nav2Nodes, bool> receivedAliveMsg_;
60
61 std::vector<Nav2Nodes> waitNodes_;
62};
63} // namespace cl_nav2z
std::map< Nav2Nodes, bool > receivedAliveMsg_
std::vector< Nav2Nodes > waitNodes_
void onMessageReceived(const bond::msg::Status &msg)
CbWaitNav2Nodes(std::vector< Nav2Nodes > waitNodes={ Nav2Nodes::PlannerServer, Nav2Nodes::ControllerServer, Nav2Nodes::BtNavigator})
Nav2Nodes fromString(const std::string &str)
std::string toString(Nav2Nodes value)