CORESENSE4home_Architecture
Loading...
Searching...
No Matches
Flow.hpp
Go to the documentation of this file.
1// Copyright 2024 Intelligent Robotics Lab
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#ifndef CS4HOME_CORE__FLOW_HPP_
16#define CS4HOME_CORE__FLOW_HPP_
17
18#include <list>
19#include <string>
20#include <vector>
21#include <initializer_list>
22
23#include "rclcpp/rclcpp.hpp"
24#include "rclcpp/macros.hpp"
25
26namespace cs4home_core
27{
28
34class Flow
35{
36public:
37 RCLCPP_SMART_PTR_DEFINITIONS(Flow)
38
39
43 explicit Flow(const std::vector<std::string> & nodes);
44
48 void print() const;
49
54 const std::vector<std::string> & get_nodes() const {return nodes_;}
55
56private:
57 std::vector<std::string> nodes_;
58};
59
60} // namespace cs4home_core
61
62#endif // CS4HOME_CORE__FLOW_HPP_
63
64// #include "rclcpp_components/register_node_macro.hpp"
65//
66// // Register the component with class_loader.
67// // This acts as a sort of entry point,
Flow(const std::vector< std::string > &nodes)
Constructs a Flow object with a specified sequence of nodes.
Definition Flow.cpp:32
const std::vector< std::string > & get_nodes() const
Retrieves the sequence of nodes in the flow.
Definition Flow.hpp:54
void print() const
Prints the sequence of nodes in the flow to the standard output.
Definition Flow.cpp:44
Definition Afferent.hpp:32