cisst-saw
Toggle main menu visibility
Loading...
Searching...
No Matches
tmp
cisst-saw
cisst
cisstParameterTypes
prmForceCartesianSet.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 2009-2023 Johns Hopkins University (JHU), All Rights Reserved.
9
10
--- begin cisst license - do not edit ---
11
12
This software is provided "as is" under an open source license, with
13
no warranty. The complete license can be found in license.txt and
14
http://www.cisst.org/cisst/license.txt.
15
16
--- end cisst license ---
17
*/
18
19
24
25
26
#ifndef _prmForceCartesianSet_h
27
#define _prmForceCartesianSet_h
28
29
#include <
cisstVector/vctFixedSizeVector.h
>
30
#include <
cisstParameterTypes/prmMotionBase.h
>
31
32
// Always include last
33
#include <
cisstParameterTypes/prmExport.h
>
34
37
38
class
CISST_EXPORT
prmForceCartesianSet
:
public
prmMotionBase
39
{
40
CMN_DECLARE_SERVICES(
CMN_DYNAMIC_CREATION
,
CMN_LOG_ALLOW_DEFAULT
);
41
public
:
42
43
typedef
prmMotionBase
BaseType
;
44
typedef
vctFixedSizeVector<double, 6>
ForceType
;
45
typedef
vctFixedSizeVector<bool, 6>
MaskType
;
46
47
protected
:
51
CMN_DECLARE_MEMBER_AND_ACCESSORS
(
ForceType
, Force);
52
CMN_DECLARE_MEMBER_AND_ACCESSORS
(
MaskType
, Mask);
53
54
public
:
56
prmForceCartesianSet
():
57
ForceMember(0.0),
58
MaskMember(true)
59
{}
60
62
prmForceCartesianSet
(
const
ForceType
& force,
63
const
MaskType
& mask):
64
ForceMember(force),
65
MaskMember(mask)
66
{}
67
68
inline
void
SetAll
(
double
forceSet,
bool
mask)
69
{
70
ForceMember.SetAll(forceSet);
71
MaskMember.SetAll(mask);
72
}
73
76
virtual
~prmForceCartesianSet
();
77
79
void
ToStream
(std::ostream & outputStream)
const override
;
80
82
void
ToStreamRaw
(std::ostream & outputStream,
const
char
delimiter =
' '
,
83
bool
headerOnly =
false
,
const
std::string & headerPrefix =
""
)
const override
;
84
86
void
SerializeRaw
(std::ostream & outputStream)
const override
;
87
89
void
DeSerializeRaw
(std::istream & inputStream)
override
;
90
91
};
// _prmForceCartesianSet_h
92
93
94
CMN_DECLARE_SERVICES_INSTANTIATION
(
prmForceCartesianSet
);
95
96
97
#endif
// _prmForceCartesianSet_h
98
prmForceCartesianSet
Definition
prmForceCartesianSet.h:39
prmForceCartesianSet::prmForceCartesianSet
prmForceCartesianSet()
Definition
prmForceCartesianSet.h:56
prmForceCartesianSet::BaseType
prmMotionBase BaseType
Definition
prmForceCartesianSet.h:43
prmForceCartesianSet::SetAll
void SetAll(double forceSet, bool mask)
Definition
prmForceCartesianSet.h:68
prmForceCartesianSet::CMN_DECLARE_MEMBER_AND_ACCESSORS
CMN_DECLARE_MEMBER_AND_ACCESSORS(MaskType, Mask)
prmForceCartesianSet::prmForceCartesianSet
prmForceCartesianSet(const ForceType &force, const MaskType &mask)
Definition
prmForceCartesianSet.h:62
prmForceCartesianSet::SerializeRaw
void SerializeRaw(std::ostream &outputStream) const override
prmForceCartesianSet::ToStreamRaw
void ToStreamRaw(std::ostream &outputStream, const char delimiter=' ', bool headerOnly=false, const std::string &headerPrefix="") const override
prmForceCartesianSet::DeSerializeRaw
void DeSerializeRaw(std::istream &inputStream) override
prmForceCartesianSet::ToStream
void ToStream(std::ostream &outputStream) const override
prmForceCartesianSet::CMN_DECLARE_MEMBER_AND_ACCESSORS
CMN_DECLARE_MEMBER_AND_ACCESSORS(ForceType, Force)
prmForceCartesianSet::MaskType
vctFixedSizeVector< bool, 6 > MaskType
Definition
prmForceCartesianSet.h:45
prmForceCartesianSet::~prmForceCartesianSet
virtual ~prmForceCartesianSet()
prmForceCartesianSet::ForceType
vctFixedSizeVector< double, 6 > ForceType
Definition
prmForceCartesianSet.h:44
prmMotionBase::prmMotionBase
prmMotionBase()
Definition
prmMotionBase.h:43
vctFixedSizeVector
Implementation of a fixed-size vector using template metaprogramming.
Definition
vctFixedSizeVector.h:54
CMN_DECLARE_SERVICES_INSTANTIATION
#define CMN_DECLARE_SERVICES_INSTANTIATION(className)
Definition
cmnClassRegisterMacros.h:199
CMN_DYNAMIC_CREATION
const int CMN_DYNAMIC_CREATION
Definition
cmnClassRegisterMacros.h:328
CISST_EXPORT
#define CISST_EXPORT
Definition
cmnExportMacros.h:50
CMN_LOG_ALLOW_DEFAULT
#define CMN_LOG_ALLOW_DEFAULT
Definition
cmnLogLoD.h:76
prmExport.h
prmMotionBase.h
vctFixedSizeVector.h
Declaration of vctFixedSizeVector.
Generated by
1.18.0