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 <string>
23 #include <vector>
24 
25 #include <rclcpp/time.hpp>
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 group;
44 
46  std::string plugin_name;
47 
49  bool is_async;
50 
52  unsigned int rw_rate;
53 
55  rclcpp_lifecycle::State state;
56 
58  std::vector<std::string> state_interfaces;
59 
61  std::vector<std::string> command_interfaces;
62 };
63 
64 } // namespace hardware_interface
65 #endif // HARDWARE_INTERFACE__HARDWARE_COMPONENT_INFO_HPP_
Definition: actuator.hpp:34
Hardware Component Information.
Definition: hardware_component_info.hpp:35
bool is_async
Component is async.
Definition: hardware_component_info.hpp:49
std::string group
Component group.
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:61
std::string plugin_name
Component pluginlib plugin name.
Definition: hardware_component_info.hpp:46
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:58
rclcpp_lifecycle::State state
Component current state.
Definition: hardware_component_info.hpp:55