cisst-saw
Loading...
Searching...
No Matches
robModifiedDH.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 2008 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 _robModifiedDH_h
19#define _robModifiedDH_h
20
21#include <iostream>
22
25
27
30
32
33 private:
34
36 double alpha, a; // x components
37 double theta, d; // z components
38
39 protected:
40
42
47 void ReadParameters( std::istream& is );
48#if CISST_HAS_JSON
49 void ReadParameters(const Json::Value &config);
50#endif
51
53
58 void WriteParameters( std::ostream& os ) const;
59
60 public:
61
64
66
73 robModifiedDH( double alpha,
74 double a,
75 double theta,
76 double d,
77 const robJoint& joint );
78
81
83
89
91
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
118 void SetRotationX( double x ) { alpha = x; }
119 void SetRotationZ( double x ) { theta = x; }
120 void SetTranslationX( double x ) { a = x; }
121 void SetTranslationZ( double x ) { d = x; }
122
123};
124
125#endif
robJoint()
Default constructor.
robKinematics(robKinematics::Convention convention)
Default constructor.
void SetTranslationZ(double x)
Definition robModifiedDH.h:121
double GetRotationX() const
Definition robModifiedDH.h:112
void SetRotationZ(double x)
Definition robModifiedDH.h:119
void SetTranslationX(double x)
Definition robModifiedDH.h:120
~robModifiedDH()
Default destructor.
void SetRotationX(double x)
Definition robModifiedDH.h:118
void ReadParameters(std::istream &is)
Read the parameters from an input stream.
double GetTranslationZ() const
Definition robModifiedDH.h:115
robModifiedDH(double alpha, double a, double theta, double d, const robJoint &joint)
Overloaded constructor.
robModifiedDH()
Default constructor.
double GetTranslationX() const
Definition robModifiedDH.h:114
vctFixedSizeVector< double, 3 > PStar() const
Return the position of the next (distal) link coordinate frame.
vctMatrixRotation3< double > Orientation(double q) const
Get the orientation of the link.
robKinematics * Clone() const
Clone.
void WriteParameters(std::ostream &os) const
Write the parameters to an output stream.
double GetRotationZ() const
Definition robModifiedDH.h:113
vctFrame4x4< double > ForwardKinematics(double q) const
Get the position and orientation of the coordinate frame.
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