cisst-saw
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
catkin_ws
src
cisst-saw
cisst
cisstRobot
robMass.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
11
This software is provided "as is" under an open source license, with
12
no warranty. The complete license can be found in license.txt and
13
http://www.cisst.org/cisst/license.txt.
14
15
--- end cisst license ---
16
*/
17
18
#ifndef _robMass_h
19
#define _robMass_h
20
21
#include <iostream>
22
23
#include <
cisstVector/vctMatrixRotation3.h
>
24
#include <
cisstVector/vctFrame4x4.h
>
25
#if CISST_HAS_JSON
26
#include <json/json.h>
27
#endif
28
#include <
cisstRobot/robExport.h
>
29
30
class
CISST_EXPORT
robMass
{
31
public
:
32
33
enum
Errno
{
ESUCCESS
, EFAILURE };
34
35
private
:
36
38
double
mass;
39
41
48
vctFixedSizeVector<double,3>
com;
49
51
59
vctFixedSizeMatrix<double,3,3>
D;
60
62
74
vctMatrixRotation3<double>
V;
75
76
public
:
77
79
82
vctFixedSizeMatrix<double,3,3>
83
ParallelAxis(
double
m,
84
const
vctFixedSizeVector<double,3>
& t,
85
const
vctFixedSizeMatrix<double,3,3>
& I )
const
;
86
87
89
92
robMass
();
93
94
robMass
(
double
m,
95
const
vctFixedSizeVector<double,3>
& com,
96
const
vctFixedSizeMatrix<double,3,3>
& D,
97
const
vctFixedSizeMatrix<double,3,3>
& V );
98
100
103
double
Mass()
const
;
104
106
111
vctFixedSizeVector<double,3>
CenterOfMass()
const
;
112
114
120
vctFixedSizeMatrix<double,3,3>
MomentOfInertia()
const
;
121
122
vctFixedSizeMatrix<double,3,3>
MomentOfInertiaAtCOM()
const
;
123
125
robMass::Errno
ReadMass( std::istream& is );
126
#if CISST_HAS_JSON
127
robMass::Errno
ReadMass(
const
Json::Value &config );
128
#endif
129
131
robMass::Errno
WriteMass( std::ostream& os )
const
;
132
133
};
134
135
#endif
CISST_EXPORT
#define CISST_EXPORT
Definition:
cmnExportMacros.h:50
robMass::ESUCCESS
Definition:
robMass.h:33
robExport.h
robMass
Definition:
robMass.h:30
vctMatrixRotation3.h
Declaration of vctMatrixRotation3.
vctFixedSizeVector< double, 3 >
vctFrame4x4.h
Declaration of vctFrame4x4.
vctFixedSizeMatrix< double, 3, 3 >
robMass::Errno
Errno
Definition:
robMass.h:33
vctMatrixRotation3< double >
Generated by
1.8.6