ros2_control - humble
Loading...
Searching...
No Matches
controller_interface.hpp
1// Copyright 2017 Open Source Robotics Foundation, Inc.
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 CONTROLLER_INTERFACE__CONTROLLER_INTERFACE_HPP_
16#define CONTROLLER_INTERFACE__CONTROLLER_INTERFACE_HPP_
17
18#include <memory>
19#include <string>
20#include <vector>
21
22#include "controller_interface/controller_interface_base.hpp"
23#include "controller_interface/visibility_control.h"
24#include "hardware_interface/handle.hpp"
25
26namespace controller_interface
27{
29{
30public:
31 CONTROLLER_INTERFACE_PUBLIC
33
34 CONTROLLER_INTERFACE_PUBLIC
35 virtual ~ControllerInterface() = default;
36
42 CONTROLLER_INTERFACE_PUBLIC
43 bool is_chainable() const final;
44
50 CONTROLLER_INTERFACE_PUBLIC
51 std::vector<hardware_interface::CommandInterface> export_reference_interfaces() final;
52
58 CONTROLLER_INTERFACE_PUBLIC
59 bool set_chained_mode(bool chained_mode) final;
60
66 CONTROLLER_INTERFACE_PUBLIC
67 bool is_in_chained_mode() const final;
68};
69
70using ControllerInterfaceSharedPtr = std::shared_ptr<ControllerInterface>;
71
72} // namespace controller_interface
73
74#endif // CONTROLLER_INTERFACE__CONTROLLER_INTERFACE_HPP_
Definition controller_interface_base.hpp:67
Definition controller_interface.hpp:29
CONTROLLER_INTERFACE_PUBLIC bool set_chained_mode(bool chained_mode) final
Definition controller_interface.cpp:36
CONTROLLER_INTERFACE_PUBLIC bool is_chainable() const final
Definition controller_interface.cpp:29
CONTROLLER_INTERFACE_PUBLIC std::vector< hardware_interface::CommandInterface > export_reference_interfaces() final
Definition controller_interface.cpp:31
CONTROLLER_INTERFACE_PUBLIC bool is_in_chained_mode() const final
Definition controller_interface.cpp:38