YARP
Yet Another Robot Platform
JointsPosMotion.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3  * SPDX-License-Identifier: BSD-3-Clause
4  */
5 
6 #ifndef YARP_ROBOTTESTINGFRAMEWORK_JOINTSPOSMOVE_H
7 #define YARP_ROBOTTESTINGFRAMEWORK_JOINTSPOSMOVE_H
8 
10 #include <yarp/sig/Vector.h>
11 #include <yarp/dev/PolyDriver.h>
12 #include <string>
13 
14 namespace yarp {
15 namespace robottestingframework {
16 
23 public:
24  //jointsPosMotion();
25 
38  yarp::sig::Vector &jlist);
39 
40  virtual ~jointsPosMotion();
41 
47  void setTolerance(double tolerance);
48 
54  void setTimeout(double timeout);
55 
62  void setSpeed(yarp::sig::Vector &speedlist);
63 
72  bool setAndCheckPosControlMode();
73 
74 
85  bool goToSingle(int j,
86  double pos,
87  double *reached_pos = nullptr);
88 
99  bool goTo(yarp::sig::Vector positions,
100  yarp::sig::Vector *reached_pos = nullptr);
101 
109  bool checkJointLimitsReached(int j);
110 
111 private:
112  class Private;
113  Private * const mPriv;
114 };
115 
116 } // namespace robottestingframework
117 } // namespace yarp
118 
119 #endif // YARP_ROBOTTESTINGFRAMEWORK_JOINTSPOSMOVE_H
contains the definition of a Vector type
A container for a device driver.
Definition: PolyDriver.h:24
The JointPosMotion class is used has been created to simplify and speed up development of tests that ...
The main, catch-all namespace for YARP.
Definition: dirs.h:16
#define YARP_robottestingframework_API
Definition: api.h:17