cisst-saw
Loading...
Searching...
No Matches
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
12This software is provided "as is" under an open source license, with
13no warranty. The complete license can be found in license.txt and
14http://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
33
38{
39 CMN_DECLARE_SERVICES(CMN_DYNAMIC_CREATION, CMN_LOG_ALLOW_DEFAULT);
40protected:
41
45
49
53
56
59
62 CMN_DECLARE_MEMBER_AND_ACCESSORS(bool, IsPositionGuarded);
63
64public:
65
67 typedef unsigned int size_type;
68
71 BaseType()
72 {}
73
76 BaseType()
77 {
79 }
80
82
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
101
102
104 void SerializeRaw(std::ostream & outputStream) const override;
105
107 void DeSerializeRaw(std::istream & inputStream) override;
108
109
110}; // _prmVelocityJointSet_h
111
113
114#endif
115
prmMotionBase()
Definition prmMotionBase.h:43
Definition prmVelocityJointSet.h:38
CMN_DECLARE_MEMBER_AND_ACCESSORS(vctDoubleVec, Deceleration)
prmVelocityJointSet(size_type size)
Definition prmVelocityJointSet.h:75
CMN_DECLARE_MEMBER_AND_ACCESSORS(vctDoubleVec, Goal)
void SetSize(size_type size)
CMN_DECLARE_MEMBER_AND_ACCESSORS(vctDoubleVec, Guard)
virtual ~prmVelocityJointSet()
unsigned int size_type
Definition prmVelocityJointSet.h:67
CMN_DECLARE_MEMBER_AND_ACCESSORS(bool, IsPositionGuarded)
prmVelocityJointSet()
Definition prmVelocityJointSet.h:70
CMN_DECLARE_MEMBER_AND_ACCESSORS(vctBoolVec, Mask)
prmVelocityJointSet(const vctBoolVec &mask, const vctDoubleVec &guard, const vctDoubleVec &velocity, const vctDoubleVec &acceleration, const vctDoubleVec &deceleration, const bool &isPositionGuarded)
Definition prmVelocityJointSet.h:84
prmMotionBase BaseType
Definition prmVelocityJointSet.h:66
void SerializeRaw(std::ostream &outputStream) const override
CMN_DECLARE_MEMBER_AND_ACCESSORS(vctDoubleVec, Acceleration)
void DeSerializeRaw(std::istream &inputStream) override
#define CMN_DECLARE_SERVICES_INSTANTIATION(className)
Definition cmnClassRegisterMacros.h:199
const int CMN_DYNAMIC_CREATION
Definition cmnClassRegisterMacros.h:328
#define CISST_EXPORT
Definition cmnExportMacros.h:50
#define CMN_LOG_ALLOW_DEFAULT
Definition cmnLogLoD.h:76
size_type size(void) const
Definition vctDynamicConstMatrixBase.h:228
Typedef for dynamic vectors.
vctDynamicVector< double > vctDoubleVec
Definition vctDynamicVectorTypes.h:37
vctDynamicVector< bool > vctBoolVec
Definition vctDynamicVectorTypes.h:44