YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
IJointCoupling.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2023 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
6#ifndef YARP_DEV_IJOINTCOUPLING_H
7#define YARP_DEV_IJOINTCOUPLING_H
8
9#include <yarp/dev/api.h>
10#include <yarp/os/Vocab.h>
11#include <yarp/sig/Vector.h>
13
14namespace yarp::dev {
15class IJointCoupling;
16}
60class YARP_dev_API yarp::dev::IJointCoupling
61{
62public:
66 virtual ~IJointCoupling() {}
67
76 virtual yarp::dev::ReturnValue convertFromPhysicalJointsToActuatedAxesPos(const yarp::sig::Vector& physJointsPos, yarp::sig::Vector& actAxesPos) = 0;
77
91 virtual yarp::dev::ReturnValue convertFromPhysicalJointsToActuatedAxesVel(const yarp::sig::Vector& physJointsPos, const yarp::sig::Vector& physJointsVel, yarp::sig::Vector& actAxesVel) = 0;
92
107 virtual yarp::dev::ReturnValue convertFromPhysicalJointsToActuatedAxesAcc(const yarp::sig::Vector& physJointsPos, const yarp::sig::Vector& physJointsVel, const yarp::sig::Vector& physJointsAcc, yarp::sig::Vector& actAxesAcc) = 0;
108
117 virtual yarp::dev::ReturnValue convertFromPhysicalJointsToActuatedAxesTrq(const yarp::sig::Vector& physJointsPos, const yarp::sig::Vector& physJointsTrq, yarp::sig::Vector& actAxesTrq) = 0;
118
126 virtual yarp::dev::ReturnValue convertFromActuatedAxesToPhysicalJointsPos(const yarp::sig::Vector& actAxesPos, yarp::sig::Vector& physJointsPos) = 0;
127
141 virtual yarp::dev::ReturnValue convertFromActuatedAxesToPhysicalJointsVel(const yarp::sig::Vector& actAxesPos, const yarp::sig::Vector& actAxesVel, yarp::sig::Vector& physJointsVel) = 0;
142
158 virtual yarp::dev::ReturnValue convertFromActuatedAxesToPhysicalJointsAcc(const yarp::sig::Vector& actAxesPos, const yarp::sig::Vector& actAxesVel, const yarp::sig::Vector& actAxesAcc, yarp::sig::Vector& physJointsAcc) = 0;
159
168 virtual yarp::dev::ReturnValue convertFromActuatedAxesToPhysicalJointsTrq(const yarp::sig::Vector& actAxesPos, const yarp::sig::Vector& actAxesTrq, yarp::sig::Vector& physJointsTrq) = 0;
169
170 // In some case, for a given coupling several "physical joints" ad "actuated axis"
171 // may be related in a obvious way, i.e. the position and torque of given physical
172 // joint could be equal to the position and torque of given actuated axis.
173 // In that case "physical joints" ad "actuated axis" are typically identified by the
174 // same name. The getCoupled***() methods return the indices of the "actuated axis"
175 // and "physical joints" that are coupled in a non-obvious way
176
183 virtual yarp::dev::ReturnValue getNrOfPhysicalJoints(size_t& nrOfPhysicalJoints) = 0;
184
191 virtual yarp::dev::ReturnValue getNrOfActuatedAxes(size_t& nrOfActuatedAxes) = 0;
192
199 virtual yarp::dev::ReturnValue getCoupledPhysicalJoints(yarp::sig::VectorOf<size_t>& coupPhysJointsIndexes)=0;
200
208 virtual yarp::dev::ReturnValue getCoupledActuatedAxes(yarp::sig::VectorOf<size_t>& coupActAxesIndexes)=0;
209
218 virtual yarp::dev::ReturnValue getActuatedAxisName(size_t actuatedAxisIndex, std::string& actuatedAxisName)=0;
219
228 virtual yarp::dev::ReturnValue getPhysicalJointName(size_t physicalJointIndex, std::string& physicalJointName)=0;
229
239 virtual yarp::dev::ReturnValue getPhysicalJointLimits(size_t physicalJointIndex, double& min, double& max)=0;
240};
241
242#endif // YARP_DEV_IJOINTCOUPLING_H
contains the definition of a Vector type
For streams capable of holding different kinds of content, check what they actually have.
typename vector_selector< T >::type VectorOf
Definition Vector.h:174
The main, catch-all namespace for YARP.
Definition dirs.h:16
#define YARP_dev_API
Definition api.h:18