ros2_control - rolling
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 <vector>
20
21#include "controller_interface/controller_interface_base.hpp"
22#include "hardware_interface/handle.hpp"
23
24namespace controller_interface
25{
27{
28public:
30
31 virtual ~ControllerInterface() = default;
32
38 bool is_chainable() const final;
39
45 std::vector<hardware_interface::StateInterface::ConstSharedPtr> export_state_interfaces() final;
46
52 std::vector<hardware_interface::CommandInterface::SharedPtr> export_reference_interfaces() final;
53
59 bool set_chained_mode(bool chained_mode) final;
60
66 bool is_in_chained_mode() const final;
67};
68
69using ControllerInterfaceSharedPtr = std::shared_ptr<ControllerInterface>;
70
71} // namespace controller_interface
72
73#endif // CONTROLLER_INTERFACE__CONTROLLER_INTERFACE_HPP_
Definition controller_interface_base.hpp:98
Definition controller_interface.hpp:27
std::vector< hardware_interface::CommandInterface::SharedPtr > export_reference_interfaces() final
Definition controller_interface.cpp:32
bool set_chained_mode(bool chained_mode) final
Definition controller_interface.cpp:37
bool is_chainable() const final
Definition controller_interface.cpp:23
bool is_in_chained_mode() const final
Definition controller_interface.cpp:39
std::vector< hardware_interface::StateInterface::ConstSharedPtr > export_state_interfaces() final
Definition controller_interface.cpp:26