cisst-saw
Toggle main menu visibility
Loading...
Searching...
No Matches
tmp
cisst-saw
cisst
cisstParameterTypes
prmVelocityJointSet.h
Go to the documentation of this file.
1
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
/* ex: set filetype=cpp softtabstop=4 shiftwidth=4 tabstop=4 cindent expandtab: */
3
4
/*
5
Author(s): Rajesh Kumar, Anton Deguet
6
Created on: 2008-03-12
7
8
(C) Copyright 2008-2023 Johns Hopkins University (JHU), All Rights Reserved.
9
10
--- begin cisst license - do not edit ---
11
12
This software is provided "as is" under an open source license, with
13
no warranty. The complete license can be found in license.txt and
14
http://www.cisst.org/cisst/license.txt.
15
16
--- end cisst license ---
17
*/
18
19
24
25
26
#ifndef _prmVelocityJointSet_h
27
#define _prmVelocityJointSet_h
28
29
// basic includes
30
#include <
cisstVector/vctDynamicVectorTypes.h
>
31
#include <
cisstParameterTypes/prmMotionBase.h
>
32
#include <
cisstParameterTypes/prmExport.h
>
33
37
class
CISST_EXPORT
prmVelocityJointSet
:
public
prmMotionBase
38
{
39
CMN_DECLARE_SERVICES(
CMN_DYNAMIC_CREATION
,
CMN_LOG_ALLOW_DEFAULT
);
40
protected
:
41
44
CMN_DECLARE_MEMBER_AND_ACCESSORS
(
vctBoolVec
, Mask);
45
48
CMN_DECLARE_MEMBER_AND_ACCESSORS
(
vctDoubleVec
, Guard);
49
52
CMN_DECLARE_MEMBER_AND_ACCESSORS
(
vctDoubleVec
, Goal);
53
55
CMN_DECLARE_MEMBER_AND_ACCESSORS
(
vctDoubleVec
, Acceleration);
56
58
CMN_DECLARE_MEMBER_AND_ACCESSORS
(
vctDoubleVec
, Deceleration);
59
62
CMN_DECLARE_MEMBER_AND_ACCESSORS
(
bool
, IsPositionGuarded);
63
64
public
:
65
66
typedef
prmMotionBase
BaseType
;
67
typedef
unsigned
int
size_type
;
68
70
inline
prmVelocityJointSet
():
71
BaseType
()
72
{}
73
75
inline
prmVelocityJointSet
(
size_type
size
):
76
BaseType
()
77
{
78
SetSize
(
size
);
79
}
80
81
void
SetSize
(
size_type
size
);
82
84
prmVelocityJointSet
(
const
vctBoolVec
& mask,
85
const
vctDoubleVec
& guard,
86
const
vctDoubleVec
& velocity,
87
const
vctDoubleVec
& acceleration,
88
const
vctDoubleVec
& deceleration,
89
const
bool
& isPositionGuarded):
90
BaseType
(),
91
MaskMember(mask),
92
GuardMember(guard),
93
GoalMember(velocity),
94
AccelerationMember(acceleration),
95
DecelerationMember(deceleration),
96
IsPositionGuardedMember(isPositionGuarded)
97
{}
98
100
virtual
~prmVelocityJointSet
();
101
102
104
void
SerializeRaw
(std::ostream & outputStream)
const override
;
105
107
void
DeSerializeRaw
(std::istream & inputStream)
override
;
108
109
110
};
// _prmVelocityJointSet_h
111
112
CMN_DECLARE_SERVICES_INSTANTIATION
(
prmVelocityJointSet
);
113
114
#endif
115
prmMotionBase::prmMotionBase
prmMotionBase()
Definition
prmMotionBase.h:43
prmVelocityJointSet
Definition
prmVelocityJointSet.h:38
prmVelocityJointSet::CMN_DECLARE_MEMBER_AND_ACCESSORS
CMN_DECLARE_MEMBER_AND_ACCESSORS(vctDoubleVec, Deceleration)
prmVelocityJointSet::prmVelocityJointSet
prmVelocityJointSet(size_type size)
Definition
prmVelocityJointSet.h:75
prmVelocityJointSet::CMN_DECLARE_MEMBER_AND_ACCESSORS
CMN_DECLARE_MEMBER_AND_ACCESSORS(vctDoubleVec, Goal)
prmVelocityJointSet::SetSize
void SetSize(size_type size)
prmVelocityJointSet::CMN_DECLARE_MEMBER_AND_ACCESSORS
CMN_DECLARE_MEMBER_AND_ACCESSORS(vctDoubleVec, Guard)
prmVelocityJointSet::~prmVelocityJointSet
virtual ~prmVelocityJointSet()
prmVelocityJointSet::size_type
unsigned int size_type
Definition
prmVelocityJointSet.h:67
prmVelocityJointSet::CMN_DECLARE_MEMBER_AND_ACCESSORS
CMN_DECLARE_MEMBER_AND_ACCESSORS(bool, IsPositionGuarded)
prmVelocityJointSet::prmVelocityJointSet
prmVelocityJointSet()
Definition
prmVelocityJointSet.h:70
prmVelocityJointSet::CMN_DECLARE_MEMBER_AND_ACCESSORS
CMN_DECLARE_MEMBER_AND_ACCESSORS(vctBoolVec, Mask)
prmVelocityJointSet::prmVelocityJointSet
prmVelocityJointSet(const vctBoolVec &mask, const vctDoubleVec &guard, const vctDoubleVec &velocity, const vctDoubleVec &acceleration, const vctDoubleVec &deceleration, const bool &isPositionGuarded)
Definition
prmVelocityJointSet.h:84
prmVelocityJointSet::BaseType
prmMotionBase BaseType
Definition
prmVelocityJointSet.h:66
prmVelocityJointSet::SerializeRaw
void SerializeRaw(std::ostream &outputStream) const override
prmVelocityJointSet::CMN_DECLARE_MEMBER_AND_ACCESSORS
CMN_DECLARE_MEMBER_AND_ACCESSORS(vctDoubleVec, Acceleration)
prmVelocityJointSet::DeSerializeRaw
void DeSerializeRaw(std::istream &inputStream) override
CMN_DECLARE_SERVICES_INSTANTIATION
#define CMN_DECLARE_SERVICES_INSTANTIATION(className)
Definition
cmnClassRegisterMacros.h:199
CMN_DYNAMIC_CREATION
const int CMN_DYNAMIC_CREATION
Definition
cmnClassRegisterMacros.h:328
CISST_EXPORT
#define CISST_EXPORT
Definition
cmnExportMacros.h:50
CMN_LOG_ALLOW_DEFAULT
#define CMN_LOG_ALLOW_DEFAULT
Definition
cmnLogLoD.h:76
prmExport.h
prmMotionBase.h
size
size_type size(void) const
Definition
vctDynamicConstMatrixBase.h:228
vctDynamicVectorTypes.h
Typedef for dynamic vectors.
vctDoubleVec
vctDynamicVector< double > vctDoubleVec
Definition
vctDynamicVectorTypes.h:37
vctBoolVec
vctDynamicVector< bool > vctBoolVec
Definition
vctDynamicVectorTypes.h:44
Generated by
1.18.0