ros2_control - rolling
Loading...
Searching...
No Matches
hardware_interface_return_values.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 HARDWARE_INTERFACE__TYPES__HARDWARE_INTERFACE_RETURN_VALUES_HPP_
16#define HARDWARE_INTERFACE__TYPES__HARDWARE_INTERFACE_RETURN_VALUES_HPP_
17
18#include <chrono>
19#include <cstdint>
20#include <optional>
21
22namespace hardware_interface
23{
24enum class return_type : std::uint8_t
25{
26 OK = 0,
27 ERROR = 1,
28 DEACTIVATE = 2,
29};
30
41{
42 bool successful = true;
43 return_type result = return_type::OK;
44 std::optional<std::chrono::nanoseconds> execution_time = std::nullopt;
45};
46
47} // namespace hardware_interface
48
49#endif // HARDWARE_INTERFACE__TYPES__HARDWARE_INTERFACE_RETURN_VALUES_HPP_
Definition actuator.hpp:33
Definition hardware_interface_return_values.hpp:41