Visual Servoing Platform
version 3.7.0
Toggle main menu visibility
Loading...
Searching...
No Matches
vpVelocityTwistMatrix.h
1
/*
2
* ViSP, open source Visual Servoing Platform software.
3
* Copyright (C) 2005 - 2024 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
* Velocity twist transformation matrix.
32
*/
33
34
#ifndef VP_VELOCITY_TWIST_MATRIX_H
35
#define VP_VELOCITY_TWIST_MATRIX_H
36
37
#include <visp3/core/vpConfig.h>
38
#include <visp3/core/vpArray2D.h>
39
#include <visp3/core/vpColVector.h>
40
#include <visp3/core/vpHomogeneousMatrix.h>
41
#include <visp3/core/vpRotationMatrix.h>
42
43
BEGIN_VISP_NAMESPACE
44
class
vpColVector
;
45
class
vpHomogeneousMatrix
;
46
class
vpMatrix
;
47
174
class
VISP_EXPORT
vpVelocityTwistMatrix
:
public
vpArray2D
<double>
175
{
176
friend
class
vpMatrix
;
177
178
public
:
179
// basic constructor
180
vpVelocityTwistMatrix
();
181
// copy constructor
182
vpVelocityTwistMatrix
(
const
vpVelocityTwistMatrix
&V);
183
// constructor from an homogeneous transformation
184
VP_EXPLICIT
vpVelocityTwistMatrix
(
const
vpHomogeneousMatrix
&M,
bool
full =
true
);
185
186
// Construction from Translation and rotation (matrix parameterization)
187
vpVelocityTwistMatrix
(
const
vpTranslationVector
&
t
,
const
vpRotationMatrix
&R);
188
// Construction from Translation and rotation (ThetaU parameterization)
189
vpVelocityTwistMatrix
(
const
vpTranslationVector
&
t
,
const
vpThetaUVector
&thetau);
190
vpVelocityTwistMatrix
(
double
tx,
double
ty,
double
tz,
double
tux,
double
tuy,
double
tuz);
191
192
VP_EXPLICIT
vpVelocityTwistMatrix
(
const
vpRotationMatrix
&R);
193
VP_EXPLICIT
vpVelocityTwistMatrix
(
const
vpThetaUVector
&thetau);
194
195
vpVelocityTwistMatrix
&
buildFrom
(
const
vpTranslationVector
&
t
,
const
vpRotationMatrix
&R);
196
vpVelocityTwistMatrix
&
buildFrom
(
const
vpTranslationVector
&
t
,
const
vpThetaUVector
&thetau);
197
vpVelocityTwistMatrix
&
buildFrom
(
const
vpHomogeneousMatrix
&M,
bool
full =
true
);
198
vpVelocityTwistMatrix
&
buildFrom
(
const
vpRotationMatrix
&R);
199
vpVelocityTwistMatrix
&
buildFrom
(
const
vpThetaUVector
&thetau);
200
201
void
extract
(
vpRotationMatrix
&R)
const
;
202
void
extract
(
vpTranslationVector
&
t
)
const
;
203
204
// Basic initialisation (identity)
205
void
eye
();
206
207
vpVelocityTwistMatrix
inverse
()
const
;
208
void
inverse
(
vpVelocityTwistMatrix
&V)
const
;
209
210
vpVelocityTwistMatrix
operator*
(
const
vpVelocityTwistMatrix
&V)
const
;
211
vpMatrix
operator*
(
const
vpMatrix
&M)
const
;
212
vpColVector
operator*
(
const
vpColVector
&v)
const
;
213
214
vpVelocityTwistMatrix
&
operator=
(
const
vpVelocityTwistMatrix
&V);
215
216
int
print
(std::ostream &s,
unsigned
int
length,
char
const
*intro =
nullptr
)
const
;
217
223
VP_NORETURN
void
resize
(
unsigned
int
nrows,
unsigned
int
ncols,
bool
flagNullify =
true
)
224
{
225
(void)nrows;
226
(void)ncols;
227
(void)flagNullify;
228
throw
(
vpException
(
vpException::fatalError
,
"Cannot resize a velocity twist matrix"
));
229
}
230
231
#if defined(VISP_BUILD_DEPRECATED_FUNCTIONS)
236
240
VP_DEPRECATED
void
init
() { }
244
VP_DEPRECATED
void
setIdentity();
246
#endif
247
private
:
248
static
const
unsigned
constr_val_6;
249
};
250
END_VISP_NAMESPACE
251
#endif
vpArray2D::operator=
vpArray2D< Type > & operator=(Type x)
Set all the elements of the array to x.
Definition
vpArray2D.h:615
vpArray2D< double >::vpArray2D
vpArray2D()
Definition
vpArray2D.h:155
vpArray2D< double >::t
vpArray2D< double > t() const
Definition
vpArray2D.h:1273
vpColVector
Implementation of column vector and the associated operations.
Definition
vpColVector.h:191
vpException
error that can be emitted by ViSP classes.
Definition
vpException.h:60
vpException::fatalError
@ fatalError
Fatal error.
Definition
vpException.h:72
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
vpRotationMatrix
Implementation of a rotation matrix and operations on such kind of matrices.
Definition
vpRotationMatrix.h:130
vpThetaUVector
Implementation of a rotation vector as axis-angle minimal representation.
Definition
vpThetaUVector.h:172
vpTranslationVector
Class that consider the case of a translation vector.
Definition
vpTranslationVector.h:119
vpVelocityTwistMatrix::operator*
vpVelocityTwistMatrix operator*(const vpVelocityTwistMatrix &V) const
Definition
vpVelocityTwistMatrix.cpp:231
vpVelocityTwistMatrix::extract
void extract(vpRotationMatrix &R) const
Extract the rotation matrix from the velocity twist matrix.
Definition
vpVelocityTwistMatrix.cpp:491
vpVelocityTwistMatrix::vpMatrix
friend class vpMatrix
Definition
vpVelocityTwistMatrix.h:176
vpVelocityTwistMatrix::resize
VP_NORETURN void resize(unsigned int nrows, unsigned int ncols, bool flagNullify=true)
Definition
vpVelocityTwistMatrix.h:223
vpVelocityTwistMatrix::inverse
vpVelocityTwistMatrix inverse() const
Invert the velocity twist matrix.
Definition
vpVelocityTwistMatrix.cpp:472
vpVelocityTwistMatrix::buildFrom
vpVelocityTwistMatrix & buildFrom(const vpTranslationVector &t, const vpRotationMatrix &R)
Definition
vpVelocityTwistMatrix.cpp:385
vpVelocityTwistMatrix::eye
void eye()
Definition
vpVelocityTwistMatrix.cpp:71
vpVelocityTwistMatrix::print
int print(std::ostream &s, unsigned int length, char const *intro=nullptr) const
Definition
vpVelocityTwistMatrix.cpp:542
vpVelocityTwistMatrix::init
VP_DEPRECATED void init()
Definition
vpVelocityTwistMatrix.h:240
vpVelocityTwistMatrix::vpVelocityTwistMatrix
vpVelocityTwistMatrix()
Definition
vpVelocityTwistMatrix.cpp:89
BEGIN_VISP_NAMESPACE
Definition
vpMbtDistanceCircle.cpp:55
modules
core
include
visp3
core
vpVelocityTwistMatrix.h
Generated by
1.17.0