cisst-saw
Loading...
Searching...
No Matches
prmActuatorState.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-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 _prmActuatorState_h
27#define _prmActuatorState_h
28
29// basic includes
33
34// Always include last
36
41{
42 CMN_DECLARE_SERVICES(CMN_DYNAMIC_CREATION, CMN_LOG_ALLOW_DEFAULT);
43
44public:
47
48 typedef unsigned int size_type;
49
51 inline prmActuatorState() {}
52
54
56
58 //inline prmActuatorState(const prmPosition & position,
59 // const mtsStateIndex & stateIndex):
60 // PositionMember(position),
61 // StateIndexMember(stateIndex)
62 //{}
63
65 virtual ~prmActuatorState() {};
66
71
76
77
82
87
88
93
94
99
104
109
110
115
120
125
126public:
127
129 void ToStream(std::ostream & outputStream) const override;
130
132 void SerializeRaw(std::ostream & outputStream) const override;
133
135 void DeSerializeRaw(std::istream & inputStream) override;
136
137};
138
139
141
142#endif // _prmActuatorState_h
mtsGenericObject(void)
Definition mtsGenericObject.h:77
Definition prmActuatorState.h:41
prmActuatorState(size_type size)
prmActuatorState()
Definition prmActuatorState.h:51
unsigned int size_type
Definition prmActuatorState.h:48
CMN_DECLARE_MEMBER_AND_ACCESSORS(mtsDoubleVec, Velocity)
CMN_DECLARE_MEMBER_AND_ACCESSORS(vctBoolVec, SoftRevLimitHit)
virtual ~prmActuatorState()
Definition prmActuatorState.h:65
CMN_DECLARE_MEMBER_AND_ACCESSORS(mtsDoubleVec, Position)
CMN_DECLARE_MEMBER_AND_ACCESSORS(vctBoolVec, IsHomed)
void ToStream(std::ostream &outputStream) const override
void SerializeRaw(std::ostream &outputStream) const override
void SetSize(size_type size)
CMN_DECLARE_MEMBER_AND_ACCESSORS(vctBoolVec, SoftFwdLimitHit)
CMN_DECLARE_MEMBER_AND_ACCESSORS(bool, EStopON)
CMN_DECLARE_MEMBER_AND_ACCESSORS(vctBoolVec, InMotion)
CMN_DECLARE_MEMBER_AND_ACCESSORS(vctBoolVec, HomeSwitchOn)
CMN_DECLARE_MEMBER_AND_ACCESSORS(vctBoolVec, HardRevLimitHit)
void DeSerializeRaw(std::istream &inputStream) override
mtsGenericObject BaseType
Definition prmActuatorState.h:46
CMN_DECLARE_MEMBER_AND_ACCESSORS(vctBoolVec, HardFwdLimitHit)
prmActuatorState ThisType
Definition prmActuatorState.h:45
CMN_DECLARE_MEMBER_AND_ACCESSORS(vctBoolVec, MotorOff)
#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
Defines mtsGenericObject.
mtsVector< double > mtsDoubleVec
Definition mtsVector.h:131
size_type size(void) const
Definition vctDynamicConstMatrixBase.h:228
Typedef for dynamic vectors.
vctDynamicVector< bool > vctBoolVec
Definition vctDynamicVectorTypes.h:44