YARP
Yet Another Robot Platform
JointsPosMotion.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2020 Istituto Italiano di Tecnologia (IIT)
3  * All rights reserved.
4  *
5  * This software may be modified and distributed under the terms of the
6  * BSD-3-Clause license. See the accompanying LICENSE file for details.
7  */
8 
9 #ifndef YARP_ROBOTTESTINGFRAMEWORK_JOINTSPOSMOVE_H
10 #define YARP_ROBOTTESTINGFRAMEWORK_JOINTSPOSMOVE_H
11 
13 #include <yarp/sig/Vector.h>
14 #include <yarp/dev/PolyDriver.h>
15 #include <string>
16 
17 namespace yarp {
18 namespace robottestingframework {
19 
26 public:
27  //jointsPosMotion();
28 
41  yarp::sig::Vector &jlist);
42 
43  virtual ~jointsPosMotion();
44 
50  void setTolerance(double tolerance);
51 
57  void setTimeout(double timeout);
58 
65  void setSpeed(yarp::sig::Vector &speedlist);
66 
75  bool setAndCheckPosControlMode();
76 
77 
88  bool goToSingle(int j,
89  double pos,
90  double *reached_pos = nullptr);
91 
102  bool goTo(yarp::sig::Vector positions,
103  yarp::sig::Vector *reached_pos = nullptr);
104 
112  bool checkJointLimitsReached(int j);
113 
114 private:
115  class Private;
116  Private * const mPriv;
117 };
118 
119 } // namespace robottestingframework
120 } // namespace yarp
121 
122 #endif // YARP_ROBOTTESTINGFRAMEWORK_JOINTSPOSMOVE_H
Vector.h
contains the definition of a Vector type
YARP_robottestingframework_API
#define YARP_robottestingframework_API
Definition: api.h:18
api.h
yarp::sig::VectorOf< double >
PolyDriver.h
yarp::dev::PolyDriver
A container for a device driver.
Definition: PolyDriver.h:27
yarp::robottestingframework::jointsPosMotion::Private
Definition: JointsPosMotion.cpp:23
yarp
The main, catch-all namespace for YARP.
Definition: environment.h:18
yarp::robottestingframework::jointsPosMotion
The JointPosMotion class is used has been created to simplify and speed up development of tests that ...
Definition: JointsPosMotion.h:25