cisst-saw
Loading...
Searching...
No Matches
robModifiedHayati.h
Go to the documentation of this file.
1/*
2
3 Author(s): Simon Leonard, Min Yang Jung
4 Created on: April 29 2013
5
6 (C) Copyright 2013 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 _robModifiedHayati_h
19#define _robModifiedHayati_h
20
21#include <iostream>
22
25
27
33
35
36 private:
37
39 double beta; // rotation y
40 double alpha; // rotation x
41 double a; // translation x
42 double d; // translation z
43 double theta; // rotation z
44
45 protected:
46
48
53 void ReadParameters( std::istream& is );
54#if CISST_HAS_JSON
55 void ReadParameters(const Json::Value &config);
56#endif
57
59
64 void WriteParameters( std::ostream& os ) const;
65
66 public:
67
70
72
80 robModifiedHayati(double beta,
81 double alpha,
82 double a,
83 double d,
84 double theta,
85 const robJoint& joint);
86
89
91
97
99
106
108
116
118 robKinematics* Clone(void) const;
119
120 double GetRotationX(void) const { return alpha; }
121 double GetRotationY(void) const { return beta; }
122 double GetRotationZ(void) const { return theta; }
123 double GetTranslationX(void) const { return a; }
124 double GetTranslationZ(void) const { return d; }
125
126 void SetRotationX( double x ) { alpha = x; }
127 void SetRotationY( double x ) { beta = x; }
128 void SetRotationZ( double x ) { theta = x; }
129 void SetTranslationX( double x ) { a = x; }
130 void SetTranslationZ( double x ) { d = x; }
131
132 void PrintParams(void) const;
133};
134
135#endif
robJoint()
Default constructor.
robKinematics(robKinematics::Convention convention)
Default constructor.
void SetRotationX(double x)
Definition robModifiedHayati.h:126
vctMatrixRotation3< double > Orientation(double q) const
Get the orientation of the link.
~robModifiedHayati()
Default destructor.
double GetRotationY(void) const
Definition robModifiedHayati.h:121
double GetTranslationX(void) const
Definition robModifiedHayati.h:123
void SetRotationZ(double x)
Definition robModifiedHayati.h:128
robKinematics * Clone(void) const
Clone.
void SetTranslationZ(double x)
Definition robModifiedHayati.h:130
robModifiedHayati(double beta, double alpha, double a, double d, double theta, const robJoint &joint)
Overloaded constructor.
double GetRotationZ(void) const
Definition robModifiedHayati.h:122
void SetTranslationX(double x)
Definition robModifiedHayati.h:129
void ReadParameters(std::istream &is)
Read the parameters from an input stream.
void SetRotationY(double x)
Definition robModifiedHayati.h:127
void PrintParams(void) const
double GetRotationX(void) const
Definition robModifiedHayati.h:120
robModifiedHayati(void)
Default constructor.
void WriteParameters(std::ostream &os) const
Write the parameters to an output stream.
vctFrame4x4< double > ForwardKinematics(double q) const
Get the position and orientation of the coordinate frame.
vctFixedSizeVector< double, 3 > PStar(void) const
Return the position of the next (distal) link coordinate frame.
double GetTranslationZ(void) const
Definition robModifiedHayati.h:124
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