cisst-saw
Toggle main menu visibility
Loading...
Searching...
No Matches
tmp
cisst-saw
cisst
cisstRobot
robDH.h
Go to the documentation of this file.
1
/*
2
3
Author(s): Simon Leonard
4
Created on: Nov 11 2009
5
6
(C) Copyright 2009 Johns Hopkins University (JHU), All Rights
7
Reserved.
8
9
--- begin cisst license - do not edit ---
10
11
This software is provided "as is" under an open source license, with
12
no warranty. The complete license can be found in license.txt and
13
http://www.cisst.org/cisst/license.txt.
14
15
--- end cisst license ---
16
*/
17
18
#ifndef _robDH_h
19
#define _robDH_h
20
21
#include <iostream>
22
23
#include <
cisstRobot/robKinematics.h
>
24
#include <
cisstRobot/robExport.h
>
25
27
30
class
CISST_EXPORT
robDH
:
public
robKinematics
{
31
32
private
:
33
35
double
alpha;
36
double
a;
// x components
37
double
theta;
38
double
d;
// z components
39
40
protected
:
41
43
48
void
ReadParameters
( std::istream& is );
49
#if CISST_HAS_JSON
50
void
ReadParameters
(
const
Json::Value &config);
51
#endif
52
54
59
void
WriteParameters
( std::ostream& os )
const
;
60
61
public
:
62
64
robDH
();
65
67
74
robDH
(
double
alpha,
75
double
a,
76
double
theta,
77
double
d,
78
const
robJoint
& joint );
79
81
~robDH
();
82
84
89
vctFrame4x4<double>
ForwardKinematics
(
double
q )
const
;
90
92
97
vctMatrixRotation3<double>
Orientation
(
double
q )
const
;
98
100
107
vctFixedSizeVector<double,3>
PStar
()
const
;
108
110
robKinematics
*
Clone
()
const
;
111
112
double
GetRotationX
()
const
{
return
alpha; }
113
double
GetRotationZ
()
const
{
return
theta; }
114
double
GetTranslationX
()
const
{
return
a; }
115
double
GetTranslationZ
()
const
{
return
d; }
116
117
void
SetRotationX
(
double
x ) { alpha = x; }
118
void
SetRotationZ
(
double
x ) { theta = x; }
119
void
SetTranslationX
(
double
x ) { a = x; }
120
void
SetTranslationZ
(
double
x ) { d = x; }
121
122
};
123
124
#endif
robDH::Orientation
vctMatrixRotation3< double > Orientation(double q) const
Get the orientation of the link.
robDH::ReadParameters
void ReadParameters(std::istream &is)
Read the parameters from an input stream.
robDH::ForwardKinematics
vctFrame4x4< double > ForwardKinematics(double q) const
Get the position and orientation of the coordinate frame.
robDH::SetTranslationX
void SetTranslationX(double x)
Definition
robDH.h:119
robDH::SetRotationX
void SetRotationX(double x)
Definition
robDH.h:117
robDH::GetTranslationZ
double GetTranslationZ() const
Definition
robDH.h:115
robDH::SetRotationZ
void SetRotationZ(double x)
Definition
robDH.h:118
robDH::GetTranslationX
double GetTranslationX() const
Definition
robDH.h:114
robDH::WriteParameters
void WriteParameters(std::ostream &os) const
Write the parameters to an output stream.
robDH::GetRotationX
double GetRotationX() const
Definition
robDH.h:112
robDH::~robDH
~robDH()
Default destructor.
robDH::GetRotationZ
double GetRotationZ() const
Definition
robDH.h:113
robDH::PStar
vctFixedSizeVector< double, 3 > PStar() const
Return the position of the next (distal) link coordinate frame.
robDH::SetTranslationZ
void SetTranslationZ(double x)
Definition
robDH.h:120
robDH::Clone
robKinematics * Clone() const
Clone.
robDH::robDH
robDH(double alpha, double a, double theta, double d, const robJoint &joint)
Overloaded constructor.
robDH::robDH
robDH()
Default constructor.
robJoint::robJoint
robJoint()
Default constructor.
robKinematics::robKinematics
robKinematics(robKinematics::Convention convention)
Default constructor.
vctFixedSizeVector
Implementation of a fixed-size vector using template metaprogramming.
Definition
vctFixedSizeVector.h:54
vctFrame4x4
Template base class for a 4x4 frame.
Definition
vctFrame4x4.h:51
vctMatrixRotation3
Define a rotation matrix for a space of dimension 3.
Definition
vctMatrixRotation3.h:51
CISST_EXPORT
#define CISST_EXPORT
Definition
cmnExportMacros.h:50
robExport.h
robKinematics.h
Generated by
1.18.0