cisst-saw
Loading...
Searching...
No Matches
prmPositionJointSet.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/../prmPositionJointSet.cdg
4
5#pragma once
6#ifndef _cisstParameterTypes_prmPositionJointSet_h
7#define _cisstParameterTypes_prmPositionJointSet_h
8
11#if CISST_HAS_JSON
13#endif // CISST_HAS_JSON
14
15/* source line: 1 */
16
17
18
19
20// for mts-proxy
24
25/* source line: 1 */
26/* source line: 4 */
27
31// Always include last
33
34/* source line: 12 */
36{
37 /* default constructors and destructors. */
38 public:
43
44/* source line: 22 */
45 protected:
46 vctDynamicVector<double> mGoal; // Desired position
47 public:
48 /* accessors is set to: all */
49#ifndef SWIG
50 void GetGoal(vctDynamicVector<double> & placeHolder) const;
51#endif
52 inline vctDynamicVector<double> GetGoal(void) const {
53 return mGoal;
54 }
55 void SetGoal(const vctDynamicVector<double> & newValue);
56 /* accessors is set to: all */
57 const vctDynamicVector<double> & Goal(void) const;
59/* source line: 28 */
60 protected:
61 vctDynamicVector<double> mVelocity; // Velocity that should be used for the trajectory generator. If the vector size is 0, this will be ignored.
62 public:
63 /* accessors is set to: all */
64#ifndef SWIG
65 void GetVelocity(vctDynamicVector<double> & placeHolder) const;
66#endif
68 return mVelocity;
69 }
70 void SetVelocity(const vctDynamicVector<double> & newValue);
71 /* accessors is set to: all */
74/* source line: 35 */
75 protected:
76 vctDynamicVector<double> mAcceleration; // Acceleration and deceleration that should be used for the trajectory generator. If the vector size is 0, this will be ignored.
77 public:
78 /* accessors is set to: all */
79#ifndef SWIG
80 void GetAcceleration(vctDynamicVector<double> & placeHolder) const;
81#endif
83 return mAcceleration;
84 }
86 /* accessors is set to: all */
89/* source line: 42 */
90 protected:
91 double mTimeLimit; // Time allowed or requested for the motion
92 public:
93 /* accessors is set to: all */
94#ifndef SWIG
95 void GetTimeLimit(double & placeHolder) const;
96#endif
97 inline double GetTimeLimit(void) const {
98 return mTimeLimit;
99 }
100 void SetTimeLimit(const double & newValue);
101 /* accessors is set to: all */
102 const double & TimeLimit(void) const;
103 double & TimeLimit(void);
104/* source line: 49 */
105 protected:
106 bool mIsCoordinated; // Request all joints to move together, synchronizing either start and end or phases. This might be ignored by the controller.
107 public:
108 /* accessors is set to: all */
109#ifndef SWIG
110 void GetIsCoordinated(bool & placeHolder) const;
111#endif
112 inline bool GetIsCoordinated(void) const {
113 return mIsCoordinated;
114 }
115 void SetIsCoordinated(const bool & newValue);
116 /* accessors is set to: all */
117 const bool & IsCoordinated(void) const;
118 bool & IsCoordinated(void);
119/* source line: 57 */
120 protected:
122 public:
123 /* accessors is set to: all */
124#ifndef SWIG
126#endif
131 /* accessors is set to: all */
134/* source line: 63 */
135 protected:
137 public:
138 /* accessors is set to: all */
139#ifndef SWIG
141#endif
143 return mMask;
144 }
146 /* accessors is set to: all */
149/* source line: 70 */
150 protected:
151 prmBlocking mBlockingFlag; // BlockingFlag
152 public:
153 /* accessors is set to: all */
154#ifndef SWIG
156#endif
158 return mBlockingFlag;
159 }
161 /* accessors is set to: all */
164/* source line: 76 */
165 protected:
166 bool mBlendingFactor; // BlendingFactor
167 public:
168 /* accessors is set to: all */
169#ifndef SWIG
170 CISST_DEPRECATED void GetBlendingFactor(bool & placeHolder) const;
171#endif
172 inline CISST_DEPRECATED bool GetBlendingFactor(void) const {
173 return mBlendingFactor;
174 }
175 CISST_DEPRECATED void SetBlendingFactor(const bool & newValue);
176 /* accessors is set to: all */
177 CISST_DEPRECATED const bool & BlendingFactor(void) const;
179/* source line: 82 */
180 protected:
181 bool mIsPreemptable; // IsPreemptable
182 public:
183 /* accessors is set to: all */
184#ifndef SWIG
185 CISST_DEPRECATED void GetIsPreemptable(bool & placeHolder) const;
186#endif
187 inline CISST_DEPRECATED bool GetIsPreemptable(void) const {
188 return mIsPreemptable;
189 }
190 CISST_DEPRECATED void SetIsPreemptable(const bool & newValue);
191 /* accessors is set to: all */
192 CISST_DEPRECATED const bool & IsPreemptable(void) const;
194/* source line: 88 */
195 protected:
196 bool mIsGoalOnly; // IsGoalOnly
197 public:
198 /* accessors is set to: all */
199#ifndef SWIG
200 CISST_DEPRECATED void GetIsGoalOnly(bool & placeHolder) const;
201#endif
202 inline CISST_DEPRECATED bool GetIsGoalOnly(void) const {
203 return mIsGoalOnly;
204 }
205 CISST_DEPRECATED void SetIsGoalOnly(const bool & newValue);
206 /* accessors is set to: all */
207 CISST_DEPRECATED const bool & IsGoalOnly(void) const;
209/* source line: 95 */
210
211 public:
213 mGoal.SetSize(size);
214 mGoal.SetAll(0.0);
215 }
216 void inline CISST_DEPRECATED SetSize(const size_t size) {
217 mGoal.SetSize(size);
218 mGoal.SetAll(0.0);
219 }
220 private:
222 /* default methods */
223 public:
224 void SerializeRaw(std::ostream & outputStream) const override;
225 void DeSerializeRaw(std::istream & inputStream) override;
226 void ToStream(std::ostream & outputStream) const override;
227 void ToStreamRaw(std::ostream & outputStream, const char delimiter = ' ',
228 bool headerOnly = false, const std::string & headerPrefix = "") const override;
229 /* default data methods */
230 public:
231 void Copy(const prmPositionJointSet & source);
232 void SerializeBinary(std::ostream & outputStream) const CISST_THROW(std::runtime_error);
233 void DeSerializeBinary(std::istream & inputStream, const cmnDataFormat & localFormat, const cmnDataFormat & remoteFormat) CISST_THROW(std::runtime_error);
234 void SerializeText(std::ostream & outputStream, const char delimiter = ',') const CISST_THROW(std::runtime_error);
235 std::string SerializeDescription(const char delimiter = ',', const std::string & userDescription = "") const;
236 void DeSerializeText(std::istream & inputStream, const char delimiter = ',') CISST_THROW(std::runtime_error);
237 std::string HumanReadable(void) const;
238 bool ScalarNumberIsFixed(void) const override;
239 size_t ScalarNumber(void) const override;
240 double Scalar(const size_t index) const CISST_THROW(std::out_of_range) override;
241 std::string ScalarDescription(const size_t index, const std::string & userDescription = "") const CISST_THROW(std::out_of_range) override;
242#if CISST_HAS_JSON
243 void SerializeTextJSON(Json::Value & jsonValue) const override;
244 void DeSerializeTextJSON(const Json::Value & jsonValue) CISST_THROW(std::runtime_error) override;
245#endif // CISST_HAS_JSON
246
247}; // prmPositionJointSet
248
249// mts-proxy set to true
252
253/* default functions */
254void CISST_EXPORT cmnSerializeRaw(std::ostream & outputStream, const prmPositionJointSet & object);
255void CISST_EXPORT cmnDeSerializeRaw(std::istream & inputStream, prmPositionJointSet & placeHolder);
256/* data functions */
257template <> class cmnData<prmPositionJointSet > {
258public:
259 enum {IS_SPECIALIZED = 1};
261 static void Copy(DataType & data, const DataType & source) {
262 data.Copy(source);
263 }
264 static std::string SerializeDescription(const DataType & data, const char delimiter, const std::string & userDescription) {
265 return data.SerializeDescription(delimiter, userDescription);
266 }
267 static void SerializeBinary(const DataType & data, std::ostream & outputStream) CISST_THROW(std::runtime_error) {
268 data.SerializeBinary(outputStream);
269 }
270 static void DeSerializeBinary(DataType & data, std::istream & inputStream, const cmnDataFormat & localFormat, const cmnDataFormat & remoteFormat) CISST_THROW(std::runtime_error) {
271 data.DeSerializeBinary(inputStream, localFormat, remoteFormat);
272 }
273 static void SerializeText(const DataType & data, std::ostream & outputStream, const char delimiter = ',') CISST_THROW(std::runtime_error) {
274 data.SerializeText(outputStream, delimiter);
275 }
276 static void DeSerializeText(DataType & data, std::istream & inputStream, const char delimiter = ',') CISST_THROW(std::runtime_error) {
277 data.DeSerializeText(inputStream, delimiter);
278 }
279 static std::string HumanReadable(const DataType & data) {
280 return data.HumanReadable();
281 }
282 static bool ScalarNumberIsFixed(const DataType & data) {
283 return data.ScalarNumberIsFixed();
284 }
285 static size_t ScalarNumber(const DataType & data) {
286 return data.ScalarNumber();
287 }
288 static std::string ScalarDescription(const DataType & data, const size_t index, const std::string & userDescription = "") CISST_THROW(std::out_of_range) {
289 return data.ScalarDescription(index, userDescription);
290 }
291 static double Scalar(const DataType & data, const size_t index) CISST_THROW(std::out_of_range) {
292 return data.Scalar(index);
293 }
294};
295inline std::ostream & operator << (std::ostream & outputStream, const prmPositionJointSet & data) {
296 outputStream << cmnData<prmPositionJointSet >::HumanReadable(data);
297 return outputStream;
298}
299#if CISST_HAS_JSON
300template <> void CISST_EXPORT cmnDataJSON<prmPositionJointSet >::SerializeText(const prmPositionJointSet & data, Json::Value & jsonValue);
301template <> void CISST_EXPORT cmnDataJSON<prmPositionJointSet >::DeSerializeText(prmPositionJointSet & data, const Json::Value & jsonValue) CISST_THROW(std::runtime_error);
302#endif // CISST_HAS_JSON
303
304/* source line: 111 */
305
307
308
309#endif // _cisstParameterTypes_prmPositionJointSet_h
static size_t ScalarNumber(const DataType &data)
Definition prmPositionJointSet.h:285
@ IS_SPECIALIZED
Definition prmPositionJointSet.h:259
static void DeSerializeText(DataType &data, std::istream &inputStream, const char delimiter=',') CISST_THROW(std
Definition prmPositionJointSet.h:276
static bool ScalarNumberIsFixed(const DataType &data)
Definition prmPositionJointSet.h:282
static void Copy(DataType &data, const DataType &source)
Definition prmPositionJointSet.h:261
static std::string HumanReadable(const DataType &data)
Definition prmPositionJointSet.h:279
static void DeSerializeBinary(DataType &data, std::istream &inputStream, const cmnDataFormat &localFormat, const cmnDataFormat &remoteFormat) CISST_THROW(std
Definition prmPositionJointSet.h:270
static std::string ScalarDescription(const DataType &data, const size_t index, const std::string &userDescription="") CISST_THROW(std
Definition prmPositionJointSet.h:288
static std::string SerializeDescription(const DataType &data, const char delimiter, const std::string &userDescription)
Definition prmPositionJointSet.h:264
prmPositionJointSet DataType
Definition prmPositionJointSet.h:260
static double Scalar(const DataType &data, const size_t index) CISST_THROW(std
Definition prmPositionJointSet.h:291
static void SerializeBinary(const DataType &data, std::ostream &outputStream) CISST_THROW(std
Definition prmPositionJointSet.h:267
static void SerializeText(const DataType &data, std::ostream &outputStream, const char delimiter=',') CISST_THROW(std
Definition prmPositionJointSet.h:273
Definition cmnDataFormat.h:30
Definition cmnDataFunctions.h:51
virtual std::string ScalarDescription(const size_t CMN_UNUSED(index), const std::string &CMN_UNUSED(userDescription)) const
Definition cmnGenericObject.h:154
virtual double Scalar(const size_t CMN_UNUSED(index)) const CISST_THROW(std
Definition cmnGenericObject.h:145
mtsGenericObject(void)
Definition mtsGenericObject.h:77
Definition mtsGenericObjectProxy.h:376
Definition prmPositionJointSet.h:36
void GetVelocity(vctDynamicVector< double > &placeHolder) const
CISST_DEPRECATED void SetDeceleration(const vctDynamicVector< double > &newValue)
CISST_DEPRECATED void GetDeceleration(vctDynamicVector< double > &placeHolder) const
vctDynamicVector< double > & Goal(void)
CISST_DEPRECATED bool GetIsPreemptable(void) const
Definition prmPositionJointSet.h:187
void CISST_DEPRECATED SetSize(const size_t size)
Definition prmPositionJointSet.h:216
CISST_DEPRECATED void GetIsGoalOnly(bool &placeHolder) const
bool mIsGoalOnly
Definition prmPositionJointSet.h:196
CISST_DEPRECATED bool & BlendingFactor(void)
CISST_DEPRECATED const bool & IsGoalOnly(void) const
vctDynamicVector< double > & Velocity(void)
CISST_DEPRECATED const bool & BlendingFactor(void) const
void SetIsCoordinated(const bool &newValue)
vctDynamicVector< double > mDeceleration
Definition prmPositionJointSet.h:121
CISST_DEPRECATED bool & IsGoalOnly(void)
void Copy(const prmPositionJointSet &source)
void ToStream(std::ostream &outputStream) const override
CISST_DEPRECATED vctDynamicVector< double > GetDeceleration(void) const
Definition prmPositionJointSet.h:127
CISST_DEPRECATED const prmBlocking & BlockingFlag(void) const
CISST_DEPRECATED prmBlocking GetBlockingFlag(void) const
Definition prmPositionJointSet.h:157
CISST_DEPRECATED void SetMask(const vctDynamicVector< bool > &newValue)
vctDynamicVector< double > & Acceleration(void)
vctDynamicVector< double > mVelocity
Definition prmPositionJointSet.h:61
double & TimeLimit(void)
CISST_DEPRECATED void SetBlendingFactor(const bool &newValue)
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 prmPositionJointSet.h:235
CISST_DEPRECATED const vctDynamicVector< double > & Deceleration(void) const
CISST_DEPRECATED prmPositionJointSet(const size_t size)
Definition prmPositionJointSet.h:212
void SetVelocity(const vctDynamicVector< double > &newValue)
void GetAcceleration(vctDynamicVector< double > &placeHolder) const
vctDynamicVector< double > GetAcceleration(void) const
Definition prmPositionJointSet.h:82
CISST_DEPRECATED void SetBlockingFlag(const prmBlocking &newValue)
vctDynamicVector< double > GetVelocity(void) const
Definition prmPositionJointSet.h:67
bool mBlendingFactor
Definition prmPositionJointSet.h:166
prmBlocking mBlockingFlag
Definition prmPositionJointSet.h:151
void SetGoal(const vctDynamicVector< double > &newValue)
CISST_DEPRECATED bool & IsPreemptable(void)
CISST_DEPRECATED void GetBlendingFactor(bool &placeHolder) const
vctDynamicVector< double > mGoal
Definition prmPositionJointSet.h:46
void SerializeRaw(std::ostream &outputStream) const override
void SetTimeLimit(const double &newValue)
void DeSerializeText(std::istream &inputStream, const char delimiter=',') CISST_THROW(std std::string HumanReadable(void) const
Definition prmPositionJointSet.h:237
bool & IsCoordinated(void)
double mTimeLimit
Definition prmPositionJointSet.h:91
bool mIsCoordinated
Definition prmPositionJointSet.h:106
CISST_DEPRECATED vctDynamicVector< double > & Deceleration(void)
CISST_DEPRECATED vctDynamicVector< bool > GetMask(void) const
Definition prmPositionJointSet.h:142
const vctDynamicVector< double > & Velocity(void) const
double GetTimeLimit(void) const
Definition prmPositionJointSet.h:97
CISST_DEPRECATED void GetBlockingFlag(prmBlocking &placeHolder) const
const bool & IsCoordinated(void) const
CISST_DEPRECATED vctDynamicVector< bool > & Mask(void)
CISST_DEPRECATED bool GetBlendingFactor(void) const
Definition prmPositionJointSet.h:172
vctDynamicVector< double > mAcceleration
Definition prmPositionJointSet.h:76
prmPositionJointSet(const prmPositionJointSet &other)
CISST_DEPRECATED const vctDynamicVector< bool > & Mask(void) const
void SetAcceleration(const vctDynamicVector< double > &newValue)
const vctDynamicVector< double > & Acceleration(void) const
bool ScalarNumberIsFixed(void) const override
const vctDynamicVector< double > & Goal(void) const
bool GetIsCoordinated(void) const
Definition prmPositionJointSet.h:112
vctDynamicVector< bool > mMask
Definition prmPositionJointSet.h:136
size_t ScalarNumber(void) const override
CISST_DEPRECATED bool GetIsGoalOnly(void) const
Definition prmPositionJointSet.h:202
CISST_DEPRECATED prmBlocking & BlockingFlag(void)
void DeSerializeRaw(std::istream &inputStream) override
void GetIsCoordinated(bool &placeHolder) const
vctDynamicVector< double > GetGoal(void) const
Definition prmPositionJointSet.h:52
CISST_DEPRECATED const bool & IsPreemptable(void) const
void ToStreamRaw(std::ostream &outputStream, const char delimiter=' ', bool headerOnly=false, const std::string &headerPrefix="") const override
CISST_DEPRECATED void SetIsPreemptable(const bool &newValue)
CISST_DEPRECATED void GetMask(vctDynamicVector< bool > &placeHolder) const
const double & TimeLimit(void) const
void GetGoal(vctDynamicVector< double > &placeHolder) const
void GetTimeLimit(double &placeHolder) const
CISST_DEPRECATED void GetIsPreemptable(bool &placeHolder) const
bool mIsPreemptable
Definition prmPositionJointSet.h:181
CISST_DEPRECATED void SetIsGoalOnly(const bool &newValue)
Definition vctForwardDeclarations.h:131
Class registration macros.
#define CMN_DECLARE_SERVICES_INSTANTIATION(className)
Definition cmnClassRegisterMacros.h:199
#define CMN_DECLARE_SERVICES(hasDynamicCreation, lod)
Definition cmnClassRegisterMacros.h:113
const int CMN_DYNAMIC_CREATION
Definition cmnClassRegisterMacros.h:328
Defines cmnClassServices.
void cmnDeSerializeRaw(std::istream &inputStream, _elementType &data) CISST_THROW(std
Definition cmnDeSerializer.h:82
#define CISST_EXPORT
Definition cmnExportMacros.h:50
#define CMN_LOG_ALLOW_DEFAULT
Definition cmnLogLoD.h:76
#define CISST_DEPRECATED
Definition cmnPortability.h:314
#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
Defines mtsGenericObject.
STL namespace.
Forward declarations for cisstParameterTypes.
enum Blocking prmBlocking
mtsGenericObjectProxy< prmPositionJointSet > prmPositionJointSetProxy
Definition prmPositionJointSet.h:250
std::ostream & operator<<(std::ostream &outputStream, const prmPositionJointSet &data)
Definition prmPositionJointSet.h:295
size_type size(void) const
Definition vctDynamicConstMatrixBase.h:228
ThisType & operator=(const vctDynamicConstMatrixBase< __matrixOwnerType, __elementType > &otherMatrix)
Definition vctDynamicMatrix.h:255
Typedef for dynamic vectors.