ros2_control - humble
Loading...
Searching...
No Matches
transmission.hpp
1// Copyright 2020 PAL Robotics S.L.
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#ifndef TRANSMISSION_INTERFACE__TRANSMISSION_HPP_
15#define TRANSMISSION_INTERFACE__TRANSMISSION_HPP_
16
17#include <cstddef>
18#include <memory>
19#include <stdexcept>
20#include <string>
21#include <vector>
22
23#include "transmission_interface/handle.hpp"
24
26{
28
48{
49public:
50 virtual ~Transmission() = default;
51
52 virtual void configure(
53 const std::vector<JointHandle> & joint_handles,
54 const std::vector<ActuatorHandle> & actuator_handles) = 0;
55
57
64 virtual void actuator_to_joint() = 0;
65
67
74 virtual void joint_to_actuator() = 0;
75
79 virtual std::size_t num_actuators() const = 0;
80
84 virtual std::size_t num_joints() const = 0;
85};
86
87typedef std::shared_ptr<Transmission> TransmissionSharedPtr;
88
89} // namespace transmission_interface
90
91#endif // TRANSMISSION_INTERFACE__TRANSMISSION_HPP_
Abstract base class for representing mechanical transmissions.
Definition transmission.hpp:48
virtual void actuator_to_joint()=0
Transform effort variables from actuator to joint space.
virtual std::size_t num_joints() const =0
virtual void joint_to_actuator()=0
Transform effort variables from joint to actuator space.
virtual std::size_t num_actuators() const =0
Definition accessor.hpp:24