ros2_control - jazzy
Loading...
Searching...
No Matches
system_interface.hpp
1// Copyright 2020 - 2021 ros2_control Development Team
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 HARDWARE_INTERFACE__SYSTEM_INTERFACE_HPP_
16#define HARDWARE_INTERFACE__SYSTEM_INTERFACE_HPP_
17
18#include "hardware_interface/hardware_component_interface.hpp"
19
20namespace hardware_interface
21{
67{
68public:
69 return_type write(const rclcpp::Time & time, const rclcpp::Duration & period) override = 0;
70};
71
72} // namespace hardware_interface
73#endif // HARDWARE_INTERFACE__SYSTEM_INTERFACE_HPP_
Virtual base class for all hardware components (Actuators, Sensors, and Systems).
Definition hardware_component_interface.hpp:61
Virtual Class to implement when integrating a complex system into ros2_control.
Definition system_interface.hpp:67
return_type write(const rclcpp::Time &time, const rclcpp::Duration &period) override=0
Write the current command values to the hardware.
Definition actuator.hpp:22