Visual Servoing Platform
version 3.7.0
Toggle main menu visibility
Loading...
Searching...
No Matches
vpRobotPtu46.h
1
/*
2
* ViSP, open source Visual Servoing Platform software.
3
* Copyright (C) 2005 - 2025 by Inria. All rights reserved.
4
*
5
* This software is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 2 of the License, or
8
* (at your option) any later version.
9
* See the file LICENSE.txt at the root directory of this source
10
* distribution for additional information about the GNU GPL.
11
*
12
* For using ViSP with software that can not be combined with the GNU
13
* GPL, please contact Inria about acquiring a ViSP Professional
14
* Edition License.
15
*
16
* See https://visp.inria.fr for more information.
17
*
18
* This software was developed at:
19
* Inria Rennes - Bretagne Atlantique
20
* Campus Universitaire de Beaulieu
21
* 35042 Rennes Cedex
22
* France
23
*
24
* If you have questions regarding the use of this file, please contact
25
* Inria at visp@inria.fr
26
*
27
* This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
28
* WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
29
*
30
* Description:
31
* Interface for the ptu-46 robot.
32
*/
33
34
#include <visp3/core/vpConfig.h>
35
#ifdef VISP_HAVE_PTU46
36
37
#ifndef _vpRobotPtu46_h_
38
#define _vpRobotPtu46_h_
39
40
/* ------------------------------------------------------------------------ */
41
/* --- INCLUDES ----------------------------------------------------------- */
42
/* ------------------------------------------------------------------------ */
43
44
/* --- GENERAL --- */
45
#include <iostream>
46
#include <stdio.h>
47
48
/* --- ViSP --- */
49
#include <visp3/core/vpColVector.h>
50
#include <visp3/core/vpDebug.h>
51
#include <visp3/core/vpVelocityTwistMatrix.h>
52
#include <visp3/robot/vpPtu46.h>
53
#include <visp3/robot/vpRobot.h>
54
55
#include <ptu.h>
// Contrib for Ptu-46 robot
56
57
/* ------------------------------------------------------------------------ */
58
/* --- CLASS ------------------------------------------------------------- */
59
/* ------------------------------------------------------------------------ */
60
BEGIN_VISP_NAMESPACE
75
class
VISP_EXPORT vpRobotPtu46 :
public
vpPtu46
,
public
vpRobot
76
{
77
78
private
:
80
vpRobotPtu46(
const
vpRobotPtu46 &ass);
81
83
Ptu ptu;
84
85
private
:
86
static
bool
robotAlreadyCreated;
87
double
positioningVelocity;
88
int
velocityMesureTempo;
89
std::string device;
90
91
public
:
92
static
const
double
defaultPositioningVelocity
;
93
94
VP_EXPLICIT vpRobotPtu46(
const
std::string &device =
"/dev/ttyS0"
);
95
VP_EXPLICIT
vpRobotPtu46
(vpRobotPtu46 *pub);
96
virtual
~vpRobotPtu46(
void
);
97
98
void
get_cMe
(
vpHomogeneousMatrix
&_cMe)
const
;
99
void
get_cVe
(
vpVelocityTwistMatrix
&_cVe)
const
;
100
void
get_eJe
(
vpMatrix
&_eJe) VP_OVERRIDE;
101
void
get_fJe
(
vpMatrix
&_fJe) VP_OVERRIDE;
102
103
void
getDisplacement
(
vpRobot::vpControlFrameType
frame,
vpColVector
&q);
104
void
getPosition
(
const
vpRobot::vpControlFrameType
frame,
vpColVector
&q) VP_OVERRIDE;
105
double
getPositioningVelocity
(
void
);
106
void
getVelocity
(
const
vpRobot::vpControlFrameType
frame,
vpColVector
&q_dot);
107
vpColVector
getVelocity
(
const
vpRobot::vpControlFrameType
frame);
108
109
void
init
(
void
);
110
111
bool
readPositionFile
(
const
std::string &filename,
vpColVector
&q);
112
113
void
setPosition
(
const
vpRobot::vpControlFrameType
frame,
const
vpColVector
&q) VP_OVERRIDE;
114
void
setPosition
(
const
vpRobot::vpControlFrameType
frame,
const
double
&q1,
const
double
&q2);
115
void
setPosition
(
const
char
*filename);
116
void
setPositioningVelocity
(
double
velocity);
117
vpRobot::vpRobotStateType
setRobotState
(
vpRobot::vpRobotStateType
newState);
118
119
void
setVelocity
(
const
vpRobot::vpControlFrameType
frame,
const
vpColVector
&q_dot) VP_OVERRIDE;
120
121
void
stopMotion
();
122
};
123
END_VISP_NAMESPACE
124
#endif
/* #ifndef _vpRobotPtu46_h_ */
125
126
#endif
vpColVector
Implementation of column vector and the associated operations.
Definition
vpColVector.h:191
vpHomogeneousMatrix
Implementation of an homogeneous matrix and operations on such kind of matrices.
Definition
vpHomogeneousMatrix.h:221
vpMatrix
Implementation of a matrix and operations on matrices.
Definition
vpMatrix.h:175
vpPtu46::vpPtu46
vpPtu46(void)
Definition
vpPtu46.cpp:153
vpPtu46::get_cVe
void get_cVe(vpVelocityTwistMatrix &_cVe) const
Definition
vpPtu46.cpp:189
vpPtu46::init
void init(void)
Definition
vpPtu46.cpp:162
vpPtu46::get_cMe
void get_cMe(vpHomogeneousMatrix &_cMe) const
Definition
vpPtu46.cpp:206
vpPtu46::get_fJe
void get_fJe(const vpColVector &q, vpMatrix &fJe) const
Definition
vpPtu46.cpp:274
vpPtu46::get_eJe
void get_eJe(const vpColVector &q, vpMatrix &eJe) const
Definition
vpPtu46.cpp:245
vpRobotPtu46::setPositioningVelocity
void setPositioningVelocity(double velocity)
Definition
vpRobotPtu46.cpp:273
vpRobotPtu46::getPositioningVelocity
double getPositioningVelocity(void)
Definition
vpRobotPtu46.cpp:280
vpRobotPtu46::stopMotion
void stopMotion()
Definition
vpRobotPtu46.cpp:187
vpRobotPtu46::getVelocity
void getVelocity(const vpRobot::vpControlFrameType frame, vpColVector &q_dot)
Definition
vpRobotPtu46.cpp:581
vpRobotPtu46::defaultPositioningVelocity
static const double defaultPositioningVelocity
Definition
vpRobotPtu46.h:92
vpRobotPtu46::vpRobotPtu46
VP_EXPLICIT vpRobotPtu46(vpRobotPtu46 *pub)
vpRobotPtu46::readPositionFile
bool readPositionFile(const std::string &filename, vpColVector &q)
Definition
vpRobotPtu46.cpp:656
vpRobot::vpControlFrameType
vpControlFrameType
Definition
vpRobot.h:74
vpRobot::setVelocity
virtual void setVelocity(const vpRobot::vpControlFrameType frame, const vpColVector &vel)=0
vpRobot::getPosition
virtual void getPosition(const vpRobot::vpControlFrameType frame, vpColVector &position)=0
Get the robot position (frame has to be specified).
vpRobot::vpRobotStateType
vpRobotStateType
Definition
vpRobot.h:62
vpRobot::setRobotState
virtual vpRobotStateType setRobotState(const vpRobot::vpRobotStateType newState)
Definition
vpRobot.cpp:200
vpRobot::getDisplacement
virtual void getDisplacement(const vpRobot::vpControlFrameType frame, vpColVector &q)=0
vpRobot::vpRobot
vpRobot(void)
Definition
vpRobot.cpp:49
vpRobot::setPosition
virtual void setPosition(const vpRobot::vpControlFrameType frame, const vpColVector &q)=0
Set a displacement (frame has to be specified) in position control.
vpVelocityTwistMatrix
Definition
vpVelocityTwistMatrix.h:175
BEGIN_VISP_NAMESPACE
Definition
vpMbtDistanceCircle.cpp:55
modules
robot
include
visp3
robot
vpRobotPtu46.h
Generated by
1.17.0