cisst-saw
Loading...
Searching...
No Matches
robHayati.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 _robHayati_h
19#define _robHayati_h
20
21#include <iostream>
22
25
27
31
33
34 private:
35
37 double alpha; // rotation x
38 double beta; // rotation y
39 double theta; // rotation z
40 double d; // translation x or z (depends on joint type)
41
42 protected:
43
45
51 void ReadParameters( std::istream& is );
52#if CISST_HAS_JSON
53 void ReadParameters(const Json::Value &config);
54#endif
55
57
62 void WriteParameters( std::ostream& os ) const;
63
64 public:
65
68
70
77 robHayati( double alpha,
78 double beta,
79 double theta,
80 double d,
81 const robJoint& joint );
82
85
87
93
95
102
104
112
115
116 double GetRotationX() const { return alpha; }
117 double GetRotationY() const { return beta; }
118 double GetRotationZ() const { return theta; }
119 double GetTranslationX() const { return d; }
120 double GetTranslationZ() const { return d; }
121
122 void SetRotationX( double x ) { alpha = x; }
123 void SetRotationY( double x ) { beta = x; }
124 void SetRotationZ( double x ) { theta = x; }
125 void SetTranslationX( double x ) { d = x; }
126 void SetTranslationZ( double x ) { d = x; }
127
128};
129
130#endif
double GetRotationZ() const
Definition robHayati.h:118
double GetRotationX() const
Definition robHayati.h:116
robHayati(double alpha, double beta, double theta, double d, const robJoint &joint)
Overloaded constructor.
vctFrame4x4< double > ForwardKinematics(double q) const
Get the position and orientation of the coordinate frame.
robHayati()
Default constructor.
void SetTranslationX(double x)
Definition robHayati.h:125
robKinematics * Clone() const
Clone.
void SetRotationZ(double x)
Definition robHayati.h:124
~robHayati()
Default destructor.
void SetTranslationZ(double x)
Definition robHayati.h:126
double GetTranslationX() const
Definition robHayati.h:119
vctMatrixRotation3< double > Orientation(double q) const
Get the orientation of the link.
void SetRotationX(double x)
Definition robHayati.h:122
double GetTranslationZ() const
Definition robHayati.h:120
double GetRotationY() const
Definition robHayati.h:117
vctFixedSizeVector< double, 3 > PStar() const
Return the position of the next (distal) link coordinate frame.
void SetRotationY(double x)
Definition robHayati.h:123
void WriteParameters(std::ostream &os) const
Write the parameters to an output stream.
void ReadParameters(std::istream &is)
Read the parameters from an input stream.
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