cisst-saw
Loading...
Searching...
No Matches
prmForceCartesianGet.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): Anton Deguet
6 Created on: 2009-02-06
7
8 (C) Copyright 2009-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
23
24#ifndef _prmForceCartesianGet_h
25#define _prmForceCartesianGet_h
26
29
30// Always include last
32
35{
36 CMN_DECLARE_SERVICES(CMN_DYNAMIC_CREATION, CMN_LOG_ALLOW_DEFAULT);
37
38 public:
40
43
46
50 {}
51
53 inline prmForceCartesianGet(const vctDouble6 & force):
54 ForceMember(force)
55 {
56 this->MaskMember.SetAll(true);
57 }
58
62
67
68
73 CMN_DECLARE_MEMBER_AND_ACCESSORS(std::string, ReferenceFrame);
74 CMN_DECLARE_MEMBER_AND_ACCESSORS(std::string, MovingFrame);
75
76public:
77
80 inline ConstForceType F(void) const {
81 return ConstForceType(ForceMember.Pointer(0));
82 }
83
86 inline ForceType F(void) {
87 return ForceType(ForceMember.Pointer(0));
88 }
89
92 inline ConstTorqueType T(void) const {
93 return ConstTorqueType(ForceMember.Pointer(3));
94 }
95
98 inline TorqueType T(void) {
99 return TorqueType(ForceMember.Pointer(3));
100 }
101
103 void ToStream(std::ostream & outputStream) const override;
104
106 void ToStreamRaw(std::ostream & outputStream, const char delimiter = ' ',
107 bool headerOnly = false, const std::string & headerPrefix = "") const override;
108
110 void SerializeRaw(std::ostream & outputStream) const override;
111
113 void DeSerializeRaw(std::istream & inputStream) override;
114
115}; // _prmForceCartesianGet_h
116
117
119
120
121#endif // _prmForceCartesianGet_h
mtsGenericObject(void)
Definition mtsGenericObject.h:77
Definition prmForceCartesianGet.h:35
void SerializeRaw(std::ostream &outputStream) const override
vctFixedSizeConstVectorRef< double, 3, 1 > ConstForceType
Definition prmForceCartesianGet.h:41
CMN_DECLARE_MEMBER_AND_ACCESSORS(std::string, MovingFrame)
virtual ~prmForceCartesianGet()
CMN_DECLARE_MEMBER_AND_ACCESSORS(vctDouble6, Force)
vctFixedSizeVectorRef< double, 3, 1 > ForceType
Definition prmForceCartesianGet.h:42
void DeSerializeRaw(std::istream &inputStream) override
CMN_DECLARE_MEMBER_AND_ACCESSORS(std::string, ReferenceFrame)
prmForceCartesianGet(const vctDouble6 &force)
Definition prmForceCartesianGet.h:53
TorqueType T(void)
Definition prmForceCartesianGet.h:98
ForceType TorqueType
Definition prmForceCartesianGet.h:45
ConstTorqueType T(void) const
Definition prmForceCartesianGet.h:92
prmForceCartesianGet(void)
Definition prmForceCartesianGet.h:48
void ToStream(std::ostream &outputStream) const override
ConstForceType ConstTorqueType
Definition prmForceCartesianGet.h:44
void ToStreamRaw(std::ostream &outputStream, const char delimiter=' ', bool headerOnly=false, const std::string &headerPrefix="") const override
mtsGenericObject BaseType
Definition prmForceCartesianGet.h:39
ForceType F(void)
Definition prmForceCartesianGet.h:86
CMN_DECLARE_MEMBER_AND_ACCESSORS(vctBool6, Mask)
ConstForceType F(void) const
Definition prmForceCartesianGet.h:80
Definition vctForwardDeclarations.h:86
Definition vctForwardDeclarations.h:89
#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.
Typedef for fixed size vectors.
vctFixedSizeVector< bool, 6 > vctBool6
Definition vctFixedSizeVectorTypes.h:269
vctFixedSizeVector< double, 6 > vctDouble6
Definition vctFixedSizeVectorTypes.h:60