cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
prmRobotState.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): Marcin Balicki
6 Created on: 2008-09-14
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 _prmRobotState_h
28 #define _prmRobotState_h
29 
30 //basic includes
36 
37 // Always include last
39 
44 {
46 
47 public:
50 
51  typedef unsigned int size_type;
52 
54  prmRobotState() ;
55 
57 
58  void SetSize(size_type size);
59 
61  void ToStream(std::ostream & outputStream) const;
62 
64  //inline prmRobotState(const prmPosition & position,
65  // const mtsStateIndex & stateIndex):
66  // PositionMember(position),
67  // StateIndexMember(stateIndex)
68  //{}
69 
71  virtual ~prmRobotState() {};
72 
74  void SerializeRaw(std::ostream & outputStream) const;
75 
77  void DeSerializeRaw(std::istream & inputStream);
78 
83 
88 
93 
98 
101  CMN_DECLARE_MEMBER_AND_ACCESSORS(vctDoubleVec, JointPositionError);
103 
106  CMN_DECLARE_MEMBER_AND_ACCESSORS(vctDoubleVec, JointVelocityError);
108 
113 
118 
121  CMN_DECLARE_MEMBER_AND_ACCESSORS(vctDoubleVec, CartesianPositionGoal);
123 
126  CMN_DECLARE_MEMBER_AND_ACCESSORS(vctDoubleVec, CartesianVelocityGoal);
128 
131  CMN_DECLARE_MEMBER_AND_ACCESSORS(vctDoubleVec, CartesianPositionError);
133 
136  CMN_DECLARE_MEMBER_AND_ACCESSORS(vctDoubleVec, CartesianVelocityError);
138 
142  CMN_DECLARE_MEMBER_AND_ACCESSORS(vctFrm3, EndEffectorFrame);
144 
145 
146 
147 
148 }; // _prmRobotState_h
149 
150 
152 
153 
154 #endif
mtsGenericObject BaseType
Definition: prmRobotState.h:49
#define CISST_EXPORT
Definition: cmnExportMacros.h:50
Typedef for dynamic vectors.
CMN_DECLARE_SERVICES_INSTANTIATION(prmRobotState)
virtual void SerializeRaw(std::ostream &outputStream) const
virtual void DeSerializeRaw(std::istream &inputStream)
virtual void ToStream(std::ostream &outputStream) const
Base class for data object in cisstMultiTask.
Definition: mtsGenericObject.h:56
unsigned int size_type
Definition: prmRobotState.h:51
Definition: prmRobotState.h:43
Typedef for different transformations.
virtual ~prmRobotState()
Definition: prmRobotState.h:71
Defines mtsGenericObject.
#define CMN_DECLARE_SERVICES(hasDynamicCreation, lod)
Definition: cmnClassRegisterMacros.h:116
prmRobotState ThisType
Definition: prmRobotState.h:48
#define CMN_DECLARE_MEMBER_AND_ACCESSORS(memberType, memberName)
Definition: cmnAccessorMacros.h:70
const int CMN_DYNAMIC_CREATION
Definition: cmnClassRegisterMacros.h:331
#define CMN_LOG_ALLOW_DEFAULT
Definition: cmnLogLoD.h:76