cisst-saw
Loading...
Searching...
No Matches
prmActuatorJointCoupling.h
Go to the documentation of this file.
1// file automatically generated, do not modify
2// cisst version: 1.5.0
3// source file: /Users/anton/devel/cisst-saw-doxygen/tmp/cisst-saw/cisst/cisstParameterTypes/code/../prmActuatorJointCoupling.cdg
4
5#pragma once
6#ifndef _cisstParameterTypes_prmActuatorJointCoupling_h
7#define _cisstParameterTypes_prmActuatorJointCoupling_h
8
11#if CISST_HAS_JSON
13#endif // CISST_HAS_JSON
14
15/* source line: 1 */
16
17
18
19// for mts-proxy
23
24/* source line: 1 */
25/* source line: 4 */
26
28// Always include last
30
31/* source line: 10 */
33{
34 /* default constructors and destructors. */
35 public:
40
41/* source line: 14 */
42 protected:
43 vctDoubleMat mActuatorToJointPosition; // ActuatorToJointPosition
44 public:
45 /* accessors is set to: all */
46#ifndef SWIG
47 void GetActuatorToJointPosition(vctDoubleMat & placeHolder) const;
48#endif
53 /* accessors is set to: all */
56/* source line: 20 */
57 protected:
58 vctDoubleMat mJointToActuatorPosition; // JointToActuatorPosition
59 public:
60 /* accessors is set to: all */
61#ifndef SWIG
62 void GetJointToActuatorPosition(vctDoubleMat & placeHolder) const;
63#endif
68 /* accessors is set to: all */
71/* source line: 26 */
72 protected:
73 vctDoubleMat mActuatorToJointEffort; // ActuatorToJointEffort
74 public:
75 /* accessors is set to: all */
76#ifndef SWIG
77 void GetActuatorToJointEffort(vctDoubleMat & placeHolder) const;
78#endif
81 }
82 void SetActuatorToJointEffort(const vctDoubleMat & newValue);
83 /* accessors is set to: all */
86/* source line: 32 */
87 protected:
88 vctDoubleMat mJointToActuatorEffort; // JointToActuatorEffort
89 public:
90 /* accessors is set to: all */
91#ifndef SWIG
92 void GetJointToActuatorEffort(vctDoubleMat & placeHolder) const;
93#endif
96 }
97 void SetJointToActuatorEffort(const vctDoubleMat & newValue);
98 /* accessors is set to: all */
101/* source line: 38 */
102
103 public:
107 ActuatorToJointEffort().ForceAssign(other.ActuatorToJointEffort());
108 JointToActuatorEffort().ForceAssign(other.JointToActuatorEffort());
109 return *this;
110 }
111 inline const prmActuatorJointCoupling & Assign(const vctDoubleMat & other) {
112 ActuatorToJointPosition().ForceAssign(other);
113 JointToActuatorPosition().ForceAssign(other);
114 ActuatorToJointEffort().ForceAssign(other);
115 JointToActuatorEffort().ForceAssign(other);
116 return *this;
117 }
124 /* default methods */
125 public:
126 void SerializeRaw(std::ostream & outputStream) const;
127 void DeSerializeRaw(std::istream & inputStream);
128 void ToStream(std::ostream & outputStream) const;
129 void ToStreamRaw(std::ostream & outputStream, const char delimiter = ' ',
130 bool headerOnly = false, const std::string & headerPrefix = "") const;
131 /* default data methods */
132 public:
133 void Copy(const prmActuatorJointCoupling & source);
134 void SerializeBinary(std::ostream & outputStream) const CISST_THROW(std::runtime_error);
135 void DeSerializeBinary(std::istream & inputStream, const cmnDataFormat & localFormat, const cmnDataFormat & remoteFormat) CISST_THROW(std::runtime_error);
136 void SerializeText(std::ostream & outputStream, const char delimiter = ',') const CISST_THROW(std::runtime_error);
137 std::string SerializeDescription(const char delimiter = ',', const std::string & userDescription = "") const;
138 void DeSerializeText(std::istream & inputStream, const char delimiter = ',') CISST_THROW(std::runtime_error);
139 std::string HumanReadable(void) const;
140 bool ScalarNumberIsFixed(void) const;
141 size_t ScalarNumber(void) const;
142 double Scalar(const size_t index) const CISST_THROW(std::out_of_range);
143 std::string ScalarDescription(const size_t index, const std::string & userDescription = "") const CISST_THROW(std::out_of_range);
144#if CISST_HAS_JSON
145 void SerializeTextJSON(Json::Value & jsonValue) const;
146 void DeSerializeTextJSON(const Json::Value & jsonValue) CISST_THROW(std::runtime_error);
147#endif // CISST_HAS_JSON
148
149}; // prmActuatorJointCoupling
150
151// mts-proxy set to true
154
155/* default functions */
156void CISST_EXPORT cmnSerializeRaw(std::ostream & outputStream, const prmActuatorJointCoupling & object);
157void CISST_EXPORT cmnDeSerializeRaw(std::istream & inputStream, prmActuatorJointCoupling & placeHolder);
158/* data functions */
160public:
161 enum {IS_SPECIALIZED = 1};
163 static void Copy(DataType & data, const DataType & source) {
164 data.Copy(source);
165 }
166 static std::string SerializeDescription(const DataType & data, const char delimiter, const std::string & userDescription) {
167 return data.SerializeDescription(delimiter, userDescription);
168 }
169 static void SerializeBinary(const DataType & data, std::ostream & outputStream) CISST_THROW(std::runtime_error) {
170 data.SerializeBinary(outputStream);
171 }
172 static void DeSerializeBinary(DataType & data, std::istream & inputStream, const cmnDataFormat & localFormat, const cmnDataFormat & remoteFormat) CISST_THROW(std::runtime_error) {
173 data.DeSerializeBinary(inputStream, localFormat, remoteFormat);
174 }
175 static void SerializeText(const DataType & data, std::ostream & outputStream, const char delimiter = ',') CISST_THROW(std::runtime_error) {
176 data.SerializeText(outputStream, delimiter);
177 }
178 static void DeSerializeText(DataType & data, std::istream & inputStream, const char delimiter = ',') CISST_THROW(std::runtime_error) {
179 data.DeSerializeText(inputStream, delimiter);
180 }
181 static std::string HumanReadable(const DataType & data) {
182 return data.HumanReadable();
183 }
184 static bool ScalarNumberIsFixed(const DataType & data) {
185 return data.ScalarNumberIsFixed();
186 }
187 static size_t ScalarNumber(const DataType & data) {
188 return data.ScalarNumber();
189 }
190 static std::string ScalarDescription(const DataType & data, const size_t index, const std::string & userDescription = "") CISST_THROW(std::out_of_range) {
191 return data.ScalarDescription(index, userDescription);
192 }
193 static double Scalar(const DataType & data, const size_t index) CISST_THROW(std::out_of_range) {
194 return data.Scalar(index);
195 }
196};
197inline std::ostream & operator << (std::ostream & outputStream, const prmActuatorJointCoupling & data) {
198 outputStream << cmnData<prmActuatorJointCoupling >::HumanReadable(data);
199 return outputStream;
200}
201#if CISST_HAS_JSON
202template <> void CISST_EXPORT cmnDataJSON<prmActuatorJointCoupling >::SerializeText(const prmActuatorJointCoupling & data, Json::Value & jsonValue);
203template <> void CISST_EXPORT cmnDataJSON<prmActuatorJointCoupling >::DeSerializeText(prmActuatorJointCoupling & data, const Json::Value & jsonValue) CISST_THROW(std::runtime_error);
204#endif // CISST_HAS_JSON
205
206
207#endif // _cisstParameterTypes_prmActuatorJointCoupling_h
static void Copy(DataType &data, const DataType &source)
Definition prmActuatorJointCoupling.h:163
@ IS_SPECIALIZED
Definition prmActuatorJointCoupling.h:161
static void SerializeBinary(const DataType &data, std::ostream &outputStream) CISST_THROW(std
Definition prmActuatorJointCoupling.h:169
static bool ScalarNumberIsFixed(const DataType &data)
Definition prmActuatorJointCoupling.h:184
static void DeSerializeBinary(DataType &data, std::istream &inputStream, const cmnDataFormat &localFormat, const cmnDataFormat &remoteFormat) CISST_THROW(std
Definition prmActuatorJointCoupling.h:172
static std::string SerializeDescription(const DataType &data, const char delimiter, const std::string &userDescription)
Definition prmActuatorJointCoupling.h:166
static std::string ScalarDescription(const DataType &data, const size_t index, const std::string &userDescription="") CISST_THROW(std
Definition prmActuatorJointCoupling.h:190
static void SerializeText(const DataType &data, std::ostream &outputStream, const char delimiter=',') CISST_THROW(std
Definition prmActuatorJointCoupling.h:175
static double Scalar(const DataType &data, const size_t index) CISST_THROW(std
Definition prmActuatorJointCoupling.h:193
static std::string HumanReadable(const DataType &data)
Definition prmActuatorJointCoupling.h:181
static size_t ScalarNumber(const DataType &data)
Definition prmActuatorJointCoupling.h:187
static void DeSerializeText(DataType &data, std::istream &inputStream, const char delimiter=',') CISST_THROW(std
Definition prmActuatorJointCoupling.h:178
prmActuatorJointCoupling DataType
Definition prmActuatorJointCoupling.h:162
Definition cmnDataFormat.h:30
Definition cmnDataFunctions.h:51
Definition mtsGenericObjectProxy.h:376
Definition prmActuatorJointCoupling.h:33
vctDoubleMat & JointToActuatorPosition(void)
vctDoubleMat mActuatorToJointPosition
Definition prmActuatorJointCoupling.h:43
prmActuatorJointCoupling(const prmActuatorJointCoupling &other)
void SetJointToActuatorEffort(const vctDoubleMat &newValue)
void ToStream(std::ostream &outputStream) const
vctDoubleMat & ActuatorToJointEffort(void)
void Copy(const prmActuatorJointCoupling &source)
void GetActuatorToJointPosition(vctDoubleMat &placeHolder) const
vctDoubleMat GetActuatorToJointEffort(void) const
Definition prmActuatorJointCoupling.h:79
vctDoubleMat & ActuatorToJointPosition(void)
const vctDoubleMat & ActuatorToJointEffort(void) const
void GetJointToActuatorEffort(vctDoubleMat &placeHolder) const
void DeSerializeText(std::istream &inputStream, const char delimiter=',') CISST_THROW(std std::string HumanReadable(void) const
Definition prmActuatorJointCoupling.h:139
bool Equal(const prmActuatorJointCoupling &other)
Definition prmActuatorJointCoupling.h:118
void SetJointToActuatorPosition(const vctDoubleMat &newValue)
const vctDoubleMat & ActuatorToJointPosition(void) const
void SerializeBinary(std::ostream &outputStream) const CISST_THROW(std void DeSerializeBinary(std::istream &inputStream, const cmnDataFormat &localFormat, const cmnDataFormat &remoteFormat) CISST_THROW(std void SerializeText(std::ostream &outputStream, const char delimiter=',') const CISST_THROW(std std::string SerializeDescription(const char delimiter=',', const std::string &userDescription="") const
Definition prmActuatorJointCoupling.h:137
vctDoubleMat mJointToActuatorPosition
Definition prmActuatorJointCoupling.h:58
const vctDoubleMat & JointToActuatorPosition(void) const
void DeSerializeRaw(std::istream &inputStream)
vctDoubleMat GetJointToActuatorEffort(void) const
Definition prmActuatorJointCoupling.h:94
vctDoubleMat & JointToActuatorEffort(void)
vctDoubleMat mJointToActuatorEffort
Definition prmActuatorJointCoupling.h:88
vctDoubleMat mActuatorToJointEffort
Definition prmActuatorJointCoupling.h:73
const prmActuatorJointCoupling & Assign(const prmActuatorJointCoupling &other)
Definition prmActuatorJointCoupling.h:104
const vctDoubleMat & JointToActuatorEffort(void) const
vctDoubleMat GetActuatorToJointPosition(void) const
Definition prmActuatorJointCoupling.h:49
void SerializeRaw(std::ostream &outputStream) const
vctDoubleMat GetJointToActuatorPosition(void) const
Definition prmActuatorJointCoupling.h:64
size_t ScalarNumber(void) const
bool ScalarNumberIsFixed(void) const
void SetActuatorToJointPosition(const vctDoubleMat &newValue)
void GetActuatorToJointEffort(vctDoubleMat &placeHolder) const
void ToStreamRaw(std::ostream &outputStream, const char delimiter=' ', bool headerOnly=false, const std::string &headerPrefix="") const
void SetActuatorToJointEffort(const vctDoubleMat &newValue)
const prmActuatorJointCoupling & Assign(const vctDoubleMat &other)
Definition prmActuatorJointCoupling.h:111
void GetJointToActuatorPosition(vctDoubleMat &placeHolder) const
Class registration macros.
#define CMN_DECLARE_SERVICES_INSTANTIATION(className)
Definition cmnClassRegisterMacros.h:199
Defines cmnClassServices.
void cmnDeSerializeRaw(std::istream &inputStream, _elementType &data) CISST_THROW(std
Definition cmnDeSerializer.h:82
#define CISST_EXPORT
Definition cmnExportMacros.h:50
#define CISST_THROW(exceptionParameter)
Somewhat portable compilation warning message. This works with very recent versions of gcc (4....
Definition cmnPortability.h:559
void cmnSerializeRaw(std::ostream &outputStream, const _elementType &data) CISST_THROW(std
Definition cmnSerializer.h:76
STL namespace.
mtsGenericObjectProxy< prmActuatorJointCoupling > prmActuatorJointCouplingProxy
Definition prmActuatorJointCoupling.h:152
std::ostream & operator<<(std::ostream &outputStream, const prmActuatorJointCoupling &data)
Definition prmActuatorJointCoupling.h:197
ThisType & operator=(const vctDynamicConstMatrixBase< __matrixOwnerType, __elementType > &otherMatrix)
Definition vctDynamicMatrix.h:255
Typedef for dynamic matrices.
vctDynamicMatrix< double > vctDoubleMat
Definition vctDynamicMatrixTypes.h:35