cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
prmVelocityCartesianGet.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-04-10
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 _prmVelocityCartesianGet_h
28 #define _prmVelocityCartesianGet_h
29 
32 
33 // Always include last
35 
36 
39 {
41 
42  public:
44 
47  {}
48 
50  inline prmVelocityCartesianGet(const vctDouble3 & velocityLinear,
51  const vctDouble3 & velocityAngular):
52  VelocityLinearMember(velocityLinear),
53  VelocityAngularMember(velocityAngular)
54  {}
55 
57  virtual ~prmVelocityCartesianGet();
58 
63 
68 
69 public:
70 
76  inline void SetVelocity(const vct6 & newValue)
77  {
78  this->VelocityLinearMember[0] = newValue[0];
79  this->VelocityLinearMember[1] = newValue[1];
80  this->VelocityLinearMember[2] = newValue[2];
81  this->VelocityAngularMember[0] = newValue[3];
82  this->VelocityAngularMember[1] = newValue[4];
83  this->VelocityAngularMember[2] = newValue[5];
84  }
85 
86  inline void GetVelocity(vct6 & placeHolder)
87  {
88  placeHolder[0] = this->VelocityLinearMember[0];
89  placeHolder[1] = this->VelocityLinearMember[1];
90  placeHolder[2] = this->VelocityLinearMember[2];
91  placeHolder[3] = this->VelocityAngularMember[0];
92  placeHolder[4] = this->VelocityAngularMember[1];
93  placeHolder[5] = this->VelocityAngularMember[2];
94  }
96 
98  void ToStream(std::ostream & outputStream) const;
99 
101  void ToStreamRaw(std::ostream & outputStream, const char delimiter = ' ',
102  bool headerOnly = false, const std::string & headerPrefix = "") const;
103 
105  void SerializeRaw(std::ostream & outputStream) const;
106 
108  void DeSerializeRaw(std::istream & inputStream);
109 
110 }; // _prmVelocityCartesianGet_h
111 
112 
114 
115 
116 #endif
117 
#define CISST_EXPORT
Definition: cmnExportMacros.h:50
CMN_DECLARE_SERVICES_INSTANTIATION(prmVelocityCartesianGet)
virtual void SerializeRaw(std::ostream &outputStream) const
virtual void DeSerializeRaw(std::istream &inputStream)
virtual void ToStream(std::ostream &outputStream) const
Typedef for fixed size vectors.
Base class for data object in cisstMultiTask.
Definition: mtsGenericObject.h:56
Definition: prmVelocityCartesianGet.h:38
prmVelocityCartesianGet(void)
Definition: prmVelocityCartesianGet.h:46
prmVelocityCartesianGet(const vctDouble3 &velocityLinear, const vctDouble3 &velocityAngular)
Definition: prmVelocityCartesianGet.h:50
Defines mtsGenericObject.
#define CMN_DECLARE_SERVICES(hasDynamicCreation, lod)
Definition: cmnClassRegisterMacros.h:116
mtsGenericObject BaseType
Definition: prmVelocityCartesianGet.h:43
#define CMN_DECLARE_MEMBER_AND_ACCESSORS(memberType, memberName)
Definition: cmnAccessorMacros.h:70
void SetVelocity(const vct6 &newValue)
Definition: prmVelocityCartesianGet.h:76
const int CMN_DYNAMIC_CREATION
Definition: cmnClassRegisterMacros.h:331
void GetVelocity(vct6 &placeHolder)
Definition: prmVelocityCartesianGet.h:86
virtual void ToStreamRaw(std::ostream &outputStream, const char delimiter= ' ', bool headerOnly=false, const std::string &headerPrefix="") const
#define CMN_LOG_ALLOW_DEFAULT
Definition: cmnLogLoD.h:76