cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 Johns Hopkins University (JHU), All Rights
9 Reserved.
10 
11 --- begin cisst license - do not edit ---
12 
13 This software is provided "as is" under an open source license, with
14 no warranty. The complete license can be found in license.txt and
15 http://www.cisst.org/cisst/license.txt.
16 
17 --- end cisst license ---
18 */
19 
20 
27 #ifndef _prmVelocityJointSet_h
28 #define _prmVelocityJointSet_h
29 
30 // basic includes
34 
39 {
41 protected:
42 
46 
50 
54 
57 
60 
63  CMN_DECLARE_MEMBER_AND_ACCESSORS(bool, IsPositionGuarded);
64 
65 public:
66 
68  typedef unsigned int size_type;
69 
72  BaseType()
73  {}
74 
77  BaseType()
78  {
79  SetSize(size);
80  }
81 
82  void SetSize(size_type size);
83 
86  const vctDoubleVec & guard,
87  const vctDoubleVec & velocity,
88  const vctDoubleVec & acceleration,
89  const vctDoubleVec & deceleration,
90  const bool & isPositionGuarded):
91  BaseType(),
92  MaskMember(mask),
93  GuardMember(guard),
94  GoalMember(velocity),
95  AccelerationMember(acceleration),
96  DecelerationMember(deceleration),
97  IsPositionGuardedMember(isPositionGuarded)
98  {}
99 
101  virtual ~prmVelocityJointSet();
102 
103 
105  void SerializeRaw(std::ostream & outputStream) const;
106 
108  void DeSerializeRaw(std::istream & inputStream);
109 
110 
111 }; // _prmVelocityJointSet_h
112 
113 
115 #endif
116 
#define CISST_EXPORT
Definition: cmnExportMacros.h:50
Definition: prmVelocityJointSet.h:38
Typedef for dynamic vectors.
prmVelocityJointSet(const vctBoolVec &mask, const vctDoubleVec &guard, const vctDoubleVec &velocity, const vctDoubleVec &acceleration, const vctDoubleVec &deceleration, const bool &isPositionGuarded)
Definition: prmVelocityJointSet.h:85
Definition: prmMotionBase.h:36
unsigned int size_type
Definition: prmVelocityJointSet.h:68
CMN_DECLARE_SERVICES_INSTANTIATION(prmVelocityJointSet)
size_t size_type
Definition: vctContainerTraits.h:35
Base class for high level objects.
Definition: cmnGenericObject.h:51
prmMotionBase BaseType
Definition: prmVelocityJointSet.h:67
#define CMN_DECLARE_SERVICES(hasDynamicCreation, lod)
Definition: cmnClassRegisterMacros.h:116
CMN_DECLARE_MEMBER_AND_ACCESSORS(prmBlocking, BlockingFlag)
prmVelocityJointSet(size_type size)
Definition: prmVelocityJointSet.h:76
void SerializeRaw(std::ostream &outputStream) const
const int CMN_DYNAMIC_CREATION
Definition: cmnClassRegisterMacros.h:331
prmVelocityJointSet()
Definition: prmVelocityJointSet.h:71
#define CMN_LOG_ALLOW_DEFAULT
Definition: cmnLogLoD.h:76
void DeSerializeRaw(std::istream &inputStream)