ros2_control - rolling
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 
28 namespace hardware_interface
29 {
31 
35 {
37  std::string name;
38 
40  std::string type;
41 
43  std::string plugin_name;
44 
46  bool is_async;
47 
49  rclcpp_lifecycle::State state;
50 
52  std::vector<std::string> state_interfaces;
53 
55  std::vector<std::string> command_interfaces;
56 };
57 
58 } // namespace hardware_interface
59 #endif // HARDWARE_INTERFACE__HARDWARE_COMPONENT_INFO_HPP_
Definition: actuator.hpp:31
Hardware Component Information.
Definition: hardware_component_info.hpp:35
bool is_async
Component is async.
Definition: hardware_component_info.hpp:46
std::vector< std::string > command_interfaces
List of provided command interfaces by the component.
Definition: hardware_component_info.hpp:55
std::string plugin_name
Component pluginlib plugin name.
Definition: hardware_component_info.hpp:43
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:52
rclcpp_lifecycle::State state
Component current state.
Definition: hardware_component_info.hpp:49