transmission.h
Go to the documentation of this file.
1 // Copyright (C) 2013, PAL Robotics S.L.
3 //
4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are met:
6 // * Redistributions of source code must retain the above copyright notice,
7 // this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above copyright
9 // notice, this list of conditions and the following disclaimer in the
10 // documentation and/or other materials provided with the distribution.
11 // * Neither the name of PAL Robotics S.L. nor the names of its
12 // contributors may be used to endorse or promote products derived from
13 // this software without specific prior written permission.
14 //
15 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
16 // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18 // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
19 // LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
20 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
21 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
22 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
23 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
24 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
25 // POSSIBILITY OF SUCH DAMAGE.
27 
29 
30 #ifndef TRANSMISSION_INTERFACE_TRANSMISSION_H
31 #define TRANSMISSION_INTERFACE_TRANSMISSION_H
32 
33 #include <cstddef>
34 #include <string>
35 #include <vector>
36 #include <boost/shared_ptr.hpp>
37 
38 
39 namespace transmission_interface
40 {
41 
51 {
52  std::vector<double*> position;
53  std::vector<double*> velocity;
54  std::vector<double*> effort;
55 };
56 
61 struct JointData
62 {
63  std::vector<double*> position;
64  std::vector<double*> velocity;
65  std::vector<double*> effort;
66 };
67 
88 {
89 public:
90  virtual ~Transmission() {}
91 
100  virtual void actuatorToJointEffort(const ActuatorData& act_data,
101  JointData& jnt_data) = 0;
102 
111  virtual void actuatorToJointVelocity(const ActuatorData& act_data,
112  JointData& jnt_data) = 0;
113 
122  virtual void actuatorToJointPosition(const ActuatorData& act_data,
123  JointData& jnt_data) = 0;
124 
133  virtual void jointToActuatorEffort(const JointData& jnt_data,
134  ActuatorData& act_data) = 0;
135 
144  virtual void jointToActuatorVelocity(const JointData& jnt_data,
145  ActuatorData& act_data) = 0;
146 
155  virtual void jointToActuatorPosition(const JointData& jnt_data,
156  ActuatorData& act_data) = 0;
157 
159  virtual std::size_t numActuators() const = 0;
160 
162  virtual std::size_t numJoints() const = 0;
163 };
164 
166 
167 } // transmission_interface
168 
169 #endif // TRANSMISSION_INTERFACE_TRANSMISSION_H
std::vector< double * > velocity
Definition: transmission.h:64
Contains pointers to raw data representing the position, velocity and acceleration of a transmission&#39;...
Definition: transmission.h:61
std::vector< double * > position
Definition: transmission.h:52
boost::shared_ptr< Transmission > TransmissionSharedPtr
Definition: transmission.h:165
Contains pointers to raw data representing the position, velocity and acceleration of a transmission&#39;...
Definition: transmission.h:50
std::vector< double * > velocity
Definition: transmission.h:53
std::vector< double * > position
Definition: transmission.h:63
std::vector< double * > effort
Definition: transmission.h:65
std::vector< double * > effort
Definition: transmission.h:54
Abstract base class for representing mechanical transmissions.
Definition: transmission.h:87


transmission_interface
Author(s): Adolfo Rodriguez Tsouroukdissian
autogenerated on Mon Apr 20 2020 03:52:15