cisst-saw
Loading...
Searching...
No Matches
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
11This software is provided "as is" under an open source license, with
12no warranty. The complete license can be found in license.txt and
13http://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
25
27
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
65
67
74 robDH( double alpha,
75 double a,
76 double theta,
77 double d,
78 const robJoint& joint );
79
82
84
90
92
98
100
108
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
vctMatrixRotation3< double > Orientation(double q) const
Get the orientation of the link.
void ReadParameters(std::istream &is)
Read the parameters from an input stream.
vctFrame4x4< double > ForwardKinematics(double q) const
Get the position and orientation of the coordinate frame.
void SetTranslationX(double x)
Definition robDH.h:119
void SetRotationX(double x)
Definition robDH.h:117
double GetTranslationZ() const
Definition robDH.h:115
void SetRotationZ(double x)
Definition robDH.h:118
double GetTranslationX() const
Definition robDH.h:114
void WriteParameters(std::ostream &os) const
Write the parameters to an output stream.
double GetRotationX() const
Definition robDH.h:112
~robDH()
Default destructor.
double GetRotationZ() const
Definition robDH.h:113
vctFixedSizeVector< double, 3 > PStar() const
Return the position of the next (distal) link coordinate frame.
void SetTranslationZ(double x)
Definition robDH.h:120
robKinematics * Clone() const
Clone.
robDH(double alpha, double a, double theta, double d, const robJoint &joint)
Overloaded constructor.
robDH()
Default constructor.
robJoint()
Default constructor.
robKinematics(robKinematics::Convention convention)
Default constructor.
Implementation of a fixed-size vector using template metaprogramming.
Definition vctFixedSizeVector.h:54
Template base class for a 4x4 frame.
Definition vctFrame4x4.h:51
Define a rotation matrix for a space of dimension 3.
Definition vctMatrixRotation3.h:51
#define CISST_EXPORT
Definition cmnExportMacros.h:50