cisst-saw
Loading...
Searching...
No Matches
robLink.h
Go to the documentation of this file.
1/*
2 Author(s): Simon Leonard
3 Created on: Nov 11 2009
4
5 (C) Copyright 2008-2024 Johns Hopkins University (JHU), All Rights Reserved.
6
7--- begin cisst license - do not edit ---
8
9This software is provided "as is" under an open source license, with
10no warranty. The complete license can be found in license.txt and
11http://www.cisst.org/cisst/license.txt.
12
13--- end cisst license ---
14*/
15
16#ifndef _robLink_h
17#define _robLink_h
18
19#include <iostream>
20
22#include <cisstRobot/robMass.h>
23
24#if CISST_HAS_JSON
25#include <json/json.h>
26#endif
27
29
31
38
39 protected:
40
43
44 public:
45
47
50
52 robLink( const robLink& link );
53
55 robLink & operator=( const robLink& link );
56
59
62
64
84 robLink::Errno Read( std::istream& is );
85
86#if CISST_HAS_JSON
87 robLink::Errno Read( const Json::Value & linkConfig );
88#endif
89
91 robLink::Errno Write( std::ostream& os ) const;
92
94
95
98
100
101 const robMass & MassData(void) const;
103
105
107
108 double Mass() const { return mass.Mass(); }
109
112
115
118
119 double PositionMin() const {
120 if( kinematics != NULL ) { return kinematics->PositionMin(); }
121 return 0.0;
122 }
123
124 double PositionMax() const {
125 if( kinematics != NULL ) { return kinematics->PositionMax(); }
126 return 0.0;
127 }
128
129 double ForceTorqueMax() const {
130 if( kinematics != NULL ) { return kinematics->ForceTorqueMax(); }
131 return 0.0;
132 }
133
134};
135
136#endif // _robLink_h
const double & PositionMax(void) const
Return the maximum position.
const double & PositionMin(void) const
Return the minimum position.
const double & ForceTorqueMax(void) const
Return the maximum force/torque.
Definition robKinematics.h:18
Convention
Kinematics convention.
Definition robKinematics.h:26
Definition robMass.h:29
vctFixedSizeMatrix< double, 3, 3 > MomentOfInertia() const
Return the moment of inertia tensor in the body frame.
vctFixedSizeVector< double, 3 > CenterOfMass() const
Return the center of mass.
vctFixedSizeMatrix< double, 3, 3 > MomentOfInertiaAtCOM() const
const double & Mass(void) const
Return the mass.
Implementation of a fixed-size matrix using template metaprogramming.
Definition vctFixedSizeMatrix.h:54
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
cmnJointType
Definition cmnJointType.h:29