ros2_control - humble
Loading...
Searching...
No Matches
hardware_component_info.hpp
1// Copyright (c) 2021, Stogl Robotics Consulting UG (haftungsbeschränkt)
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// Author: Denis Stogl
17//
18
19#ifndef HARDWARE_INTERFACE__HARDWARE_COMPONENT_INFO_HPP_
20#define HARDWARE_INTERFACE__HARDWARE_COMPONENT_INFO_HPP_
21
22#include <memory>
23#include <string>
24#include <vector>
25
26#include "rclcpp_lifecycle/state.hpp"
27
28namespace hardware_interface
29{
31
35{
37 std::string name;
38
40 std::string type;
41
43 std::string class_type;
44
46 rclcpp_lifecycle::State state;
47
49 std::vector<std::string> state_interfaces;
50
52 std::vector<std::string> command_interfaces;
53};
54
55} // namespace hardware_interface
56#endif // HARDWARE_INTERFACE__HARDWARE_COMPONENT_INFO_HPP_
Definition actuator.hpp:31
Hardware Component Information.
Definition hardware_component_info.hpp:35
std::string class_type
Component class type.
Definition hardware_component_info.hpp:43
std::vector< std::string > command_interfaces
List of provided command interfaces by the component.
Definition hardware_component_info.hpp:52
std::string type
Component "classification": "actuator", "sensor" or "system".
Definition hardware_component_info.hpp:40
std::string name
Component name.
Definition hardware_component_info.hpp:37
std::vector< std::string > state_interfaces
List of provided state interfaces by the component.
Definition hardware_component_info.hpp:49
rclcpp_lifecycle::State state
Component current state.
Definition hardware_component_info.hpp:46