Ignition Msgs

API Reference

5.6.0
joint_cmd.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/joint_cmd.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2fjoint_5fcmd_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2fjoint_5fcmd_2eproto__INCLUDED
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
11 #if GOOGLE_PROTOBUF_VERSION < 3000000
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
14 #error your headers.
15 #endif
16 #if 3000000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
20 #endif
21 
22 #include <google/protobuf/arena.h>
23 #include <google/protobuf/arenastring.h>
24 #include <google/protobuf/generated_message_util.h>
25 #include <google/protobuf/metadata.h>
26 #include <google/protobuf/message.h>
27 #include <google/protobuf/repeated_field.h>
28 #include <google/protobuf/extension_set.h>
29 #include <google/protobuf/unknown_field_set.h>
31 #include "ignition/msgs/pid.pb.h"
33 #ifndef _MSC_VER
34 #pragma GCC system_header
35 #else
36 #pragma warning(push)
37 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
38 #endif
39 #ifdef __linux__
40 #include <sys/sysmacros.h>
41 #endif
42 #include <memory>
43 #include <ignition/msgs/Export.hh>
44 // @@protoc_insertion_point(includes)
45 
46 namespace ignition {
47 namespace msgs {
48 
49 // Internal implementation detail -- do not call these.
53 
54 class JointCmd;
55 
56 // ===================================================================
57 
58 class IGNITION_MSGS_VISIBLE JointCmd : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.JointCmd) */ {
59  public:
60  JointCmd();
61  virtual ~JointCmd();
62 
63  JointCmd(const JointCmd& from);
64 
65  inline JointCmd& operator=(const JointCmd& from) {
66  CopyFrom(from);
67  return *this;
68  }
69 
70  static const ::google::protobuf::Descriptor* descriptor();
71  static const JointCmd& default_instance();
72 
73  void Swap(JointCmd* other);
74 
75  // implements Message ----------------------------------------------
76 
77  inline JointCmd* New() const { return New(NULL); }
78 
79  JointCmd* New(::google::protobuf::Arena* arena) const;
80  void CopyFrom(const ::google::protobuf::Message& from);
81  void MergeFrom(const ::google::protobuf::Message& from);
82  void CopyFrom(const JointCmd& from);
83  void MergeFrom(const JointCmd& from);
84  void Clear();
85  bool IsInitialized() const;
86 
87  int ByteSize() const;
88  bool MergePartialFromCodedStream(
89  ::google::protobuf::io::CodedInputStream* input);
90  void SerializeWithCachedSizes(
91  ::google::protobuf::io::CodedOutputStream* output) const;
92  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
93  bool deterministic, ::google::protobuf::uint8* output) const;
94  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
95  return InternalSerializeWithCachedSizesToArray(false, output);
96  }
97  int GetCachedSize() const { return _cached_size_; }
98  private:
99  void SharedCtor();
100  void SharedDtor();
101  void SetCachedSize(int size) const;
102  void InternalSwap(JointCmd* other);
103  private:
104  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
105  return _internal_metadata_.arena();
106  }
107  inline void* MaybeArenaPtr() const {
108  return _internal_metadata_.raw_arena_ptr();
109  }
110  public:
111 
112  ::google::protobuf::Metadata GetMetadata() const;
113 
114  // nested types ----------------------------------------------------
115 
116  // accessors -------------------------------------------------------
117 
118  // optional .ignition.msgs.Header header = 1;
119  bool has_header() const;
120  void clear_header();
121  static const int kHeaderFieldNumber = 1;
122  const ::ignition::msgs::Header& header() const;
123  ::ignition::msgs::Header* mutable_header();
124  ::ignition::msgs::Header* release_header();
125  void set_allocated_header(::ignition::msgs::Header* header);
126 
127  // optional string name = 2;
128  void clear_name();
129  static const int kNameFieldNumber = 2;
130  const ::std::string& name() const;
131  void set_name(const ::std::string& value);
132  void set_name(const char* value);
133  void set_name(const char* value, size_t size);
134  ::std::string* mutable_name();
135  ::std::string* release_name();
136  void set_allocated_name(::std::string* name);
137 
138  // optional int32 axis = 3;
139  void clear_axis();
140  static const int kAxisFieldNumber = 3;
141  ::google::protobuf::int32 axis() const;
142  void set_axis(::google::protobuf::int32 value);
143 
144  // optional double force = 4 [deprecated = true];
145  GOOGLE_PROTOBUF_DEPRECATED_ATTR void clear_force();
146  GOOGLE_PROTOBUF_DEPRECATED_ATTR static const int kForceFieldNumber = 4;
147  GOOGLE_PROTOBUF_DEPRECATED_ATTR double force() const;
148  GOOGLE_PROTOBUF_DEPRECATED_ATTR void set_force(double value);
149 
150  // optional .ignition.msgs.PID position = 5;
151  bool has_position() const;
152  void clear_position();
153  static const int kPositionFieldNumber = 5;
154  const ::ignition::msgs::PID& position() const;
155  ::ignition::msgs::PID* mutable_position();
156  ::ignition::msgs::PID* release_position();
157  void set_allocated_position(::ignition::msgs::PID* position);
158 
159  // optional .ignition.msgs.PID velocity = 6;
160  bool has_velocity() const;
161  void clear_velocity();
162  static const int kVelocityFieldNumber = 6;
163  const ::ignition::msgs::PID& velocity() const;
164  ::ignition::msgs::PID* mutable_velocity();
165  ::ignition::msgs::PID* release_velocity();
166  void set_allocated_velocity(::ignition::msgs::PID* velocity);
167 
168  // optional bool reset = 7;
169  void clear_reset();
170  static const int kResetFieldNumber = 7;
171  bool reset() const;
172  void set_reset(bool value);
173 
174  // optional .ignition.msgs.Double force_optional = 8;
175  bool has_force_optional() const;
176  void clear_force_optional();
177  static const int kForceOptionalFieldNumber = 8;
178  const ::ignition::msgs::Double& force_optional() const;
179  ::ignition::msgs::Double* mutable_force_optional();
180  ::ignition::msgs::Double* release_force_optional();
181  void set_allocated_force_optional(::ignition::msgs::Double* force_optional);
182 
183  // @@protoc_insertion_point(class_scope:ignition.msgs.JointCmd)
184  private:
185 
186  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
187  bool _is_default_instance_;
188  ::ignition::msgs::Header* header_;
189  ::google::protobuf::internal::ArenaStringPtr name_;
190  double force_;
191  ::ignition::msgs::PID* position_;
192  ::google::protobuf::int32 axis_;
193  bool reset_;
194  ::ignition::msgs::PID* velocity_;
195  ::ignition::msgs::Double* force_optional_;
196  mutable int _cached_size_;
197  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fjoint_5fcmd_2eproto();
200 
201  void InitAsDefaultInstance();
202  static JointCmd* default_instance_;
203 };
204 // ===================================================================
205 
206 
207 // ===================================================================
208 
209 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
210 // JointCmd
211 
212 // optional .ignition.msgs.Header header = 1;
213 inline bool JointCmd::has_header() const {
214  return !_is_default_instance_ && header_ != NULL;
215 }
216 inline void JointCmd::clear_header() {
217  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
218  header_ = NULL;
219 }
220 inline const ::ignition::msgs::Header& JointCmd::header() const {
221  // @@protoc_insertion_point(field_get:ignition.msgs.JointCmd.header)
222  return header_ != NULL ? *header_ : *default_instance_->header_;
223 }
224 inline ::ignition::msgs::Header* JointCmd::mutable_header() {
225 
226  if (header_ == NULL) {
227  header_ = new ::ignition::msgs::Header;
228  }
229  // @@protoc_insertion_point(field_mutable:ignition.msgs.JointCmd.header)
230  return header_;
231 }
232 inline ::ignition::msgs::Header* JointCmd::release_header() {
233  // @@protoc_insertion_point(field_release:ignition.msgs.JointCmd.header)
234 
235  ::ignition::msgs::Header* temp = header_;
236  header_ = NULL;
237  return temp;
238 }
240  delete header_;
241  header_ = header;
242  if (header) {
243 
244  } else {
245 
246  }
247  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.JointCmd.header)
248 }
249 
250 // optional string name = 2;
251 inline void JointCmd::clear_name() {
252  name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
253 }
254 inline const ::std::string& JointCmd::name() const {
255  // @@protoc_insertion_point(field_get:ignition.msgs.JointCmd.name)
256  return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
257 }
258 inline void JointCmd::set_name(const ::std::string& value) {
259 
260  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
261  // @@protoc_insertion_point(field_set:ignition.msgs.JointCmd.name)
262 }
263 inline void JointCmd::set_name(const char* value) {
264 
265  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
266  // @@protoc_insertion_point(field_set_char:ignition.msgs.JointCmd.name)
267 }
268 inline void JointCmd::set_name(const char* value, size_t size) {
269 
270  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
271  ::std::string(reinterpret_cast<const char*>(value), size));
272  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.JointCmd.name)
273 }
274 inline ::std::string* JointCmd::mutable_name() {
275 
276  // @@protoc_insertion_point(field_mutable:ignition.msgs.JointCmd.name)
277  return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
278 }
279 inline ::std::string* JointCmd::release_name() {
280  // @@protoc_insertion_point(field_release:ignition.msgs.JointCmd.name)
281 
282  return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
283 }
285  if (name != NULL) {
286 
287  } else {
288 
289  }
290  name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
291  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.JointCmd.name)
292 }
293 
294 // optional int32 axis = 3;
295 inline void JointCmd::clear_axis() {
296  axis_ = 0;
297 }
298 inline ::google::protobuf::int32 JointCmd::axis() const {
299  // @@protoc_insertion_point(field_get:ignition.msgs.JointCmd.axis)
300  return axis_;
301 }
302 inline void JointCmd::set_axis(::google::protobuf::int32 value) {
303 
304  axis_ = value;
305  // @@protoc_insertion_point(field_set:ignition.msgs.JointCmd.axis)
306 }
307 
308 // optional double force = 4 [deprecated = true];
309 inline void JointCmd::clear_force() {
310  force_ = 0;
311 }
312 inline double JointCmd::force() const {
313  // @@protoc_insertion_point(field_get:ignition.msgs.JointCmd.force)
314  return force_;
315 }
316 inline void JointCmd::set_force(double value) {
317 
318  force_ = value;
319  // @@protoc_insertion_point(field_set:ignition.msgs.JointCmd.force)
320 }
321 
322 // optional .ignition.msgs.PID position = 5;
323 inline bool JointCmd::has_position() const {
324  return !_is_default_instance_ && position_ != NULL;
325 }
327  if (GetArenaNoVirtual() == NULL && position_ != NULL) delete position_;
328  position_ = NULL;
329 }
330 inline const ::ignition::msgs::PID& JointCmd::position() const {
331  // @@protoc_insertion_point(field_get:ignition.msgs.JointCmd.position)
332  return position_ != NULL ? *position_ : *default_instance_->position_;
333 }
334 inline ::ignition::msgs::PID* JointCmd::mutable_position() {
335 
336  if (position_ == NULL) {
337  position_ = new ::ignition::msgs::PID;
338  }
339  // @@protoc_insertion_point(field_mutable:ignition.msgs.JointCmd.position)
340  return position_;
341 }
342 inline ::ignition::msgs::PID* JointCmd::release_position() {
343  // @@protoc_insertion_point(field_release:ignition.msgs.JointCmd.position)
344 
345  ::ignition::msgs::PID* temp = position_;
346  position_ = NULL;
347  return temp;
348 }
350  delete position_;
351  position_ = position;
352  if (position) {
353 
354  } else {
355 
356  }
357  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.JointCmd.position)
358 }
359 
360 // optional .ignition.msgs.PID velocity = 6;
361 inline bool JointCmd::has_velocity() const {
362  return !_is_default_instance_ && velocity_ != NULL;
363 }
365  if (GetArenaNoVirtual() == NULL && velocity_ != NULL) delete velocity_;
366  velocity_ = NULL;
367 }
368 inline const ::ignition::msgs::PID& JointCmd::velocity() const {
369  // @@protoc_insertion_point(field_get:ignition.msgs.JointCmd.velocity)
370  return velocity_ != NULL ? *velocity_ : *default_instance_->velocity_;
371 }
372 inline ::ignition::msgs::PID* JointCmd::mutable_velocity() {
373 
374  if (velocity_ == NULL) {
375  velocity_ = new ::ignition::msgs::PID;
376  }
377  // @@protoc_insertion_point(field_mutable:ignition.msgs.JointCmd.velocity)
378  return velocity_;
379 }
380 inline ::ignition::msgs::PID* JointCmd::release_velocity() {
381  // @@protoc_insertion_point(field_release:ignition.msgs.JointCmd.velocity)
382 
383  ::ignition::msgs::PID* temp = velocity_;
384  velocity_ = NULL;
385  return temp;
386 }
388  delete velocity_;
389  velocity_ = velocity;
390  if (velocity) {
391 
392  } else {
393 
394  }
395  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.JointCmd.velocity)
396 }
397 
398 // optional bool reset = 7;
399 inline void JointCmd::clear_reset() {
400  reset_ = false;
401 }
402 inline bool JointCmd::reset() const {
403  // @@protoc_insertion_point(field_get:ignition.msgs.JointCmd.reset)
404  return reset_;
405 }
406 inline void JointCmd::set_reset(bool value) {
407 
408  reset_ = value;
409  // @@protoc_insertion_point(field_set:ignition.msgs.JointCmd.reset)
410 }
411 
412 // optional .ignition.msgs.Double force_optional = 8;
413 inline bool JointCmd::has_force_optional() const {
414  return !_is_default_instance_ && force_optional_ != NULL;
415 }
417  if (GetArenaNoVirtual() == NULL && force_optional_ != NULL) delete force_optional_;
418  force_optional_ = NULL;
419 }
420 inline const ::ignition::msgs::Double& JointCmd::force_optional() const {
421  // @@protoc_insertion_point(field_get:ignition.msgs.JointCmd.force_optional)
422  return force_optional_ != NULL ? *force_optional_ : *default_instance_->force_optional_;
423 }
424 inline ::ignition::msgs::Double* JointCmd::mutable_force_optional() {
425 
426  if (force_optional_ == NULL) {
427  force_optional_ = new ::ignition::msgs::Double;
428  }
429  // @@protoc_insertion_point(field_mutable:ignition.msgs.JointCmd.force_optional)
430  return force_optional_;
431 }
432 inline ::ignition::msgs::Double* JointCmd::release_force_optional() {
433  // @@protoc_insertion_point(field_release:ignition.msgs.JointCmd.force_optional)
434 
435  ::ignition::msgs::Double* temp = force_optional_;
436  force_optional_ = NULL;
437  return temp;
438 }
440  delete force_optional_;
441  force_optional_ = force_optional;
442  if (force_optional) {
443 
444  } else {
445 
446  }
447  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.JointCmd.force_optional)
448 }
449 
450 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
451 
456 // @@protoc_insertion_point(namespace_scope)
457 
458 } // namespace msgs
459 } // namespace ignition
460 
461 #ifdef _MSC_VER
462 #pragma warning(pop)
463 #endif
464 // @@protoc_insertion_point(global_scope)
465 
466 #endif // PROTOBUF_ignition_2fmsgs_2fjoint_5fcmd_2eproto__INCLUDED
std::unique_ptr< JointCmd > JointCmdUniquePtr
Definition: joint_cmd.pb.h:452
::ignition::msgs::Double * mutable_force_optional()
Definition: joint_cmd.pb.h:424
void clear_position()
Definition: joint_cmd.pb.h:326
void set_axis(::google::protobuf::int32 value)
Definition: joint_cmd.pb.h:302
GOOGLE_PROTOBUF_DEPRECATED_ATTR void clear_force()
Definition: joint_cmd.pb.h:309
::ignition::msgs::Header * release_header()
Definition: joint_cmd.pb.h:232
const ::std::string & name() const
Definition: joint_cmd.pb.h:254
std::unique_ptr< const JointCmd > ConstJointCmdUniquePtr
Definition: joint_cmd.pb.h:453
bool has_force_optional() const
Definition: joint_cmd.pb.h:413
GOOGLE_PROTOBUF_DEPRECATED_ATTR double force() const
Definition: joint_cmd.pb.h:312
void set_reset(bool value)
Definition: joint_cmd.pb.h:406
Definition: joint_cmd.pb.h:58
::ignition::msgs::PID * release_position()
Definition: joint_cmd.pb.h:342
::std::string * mutable_name()
Definition: joint_cmd.pb.h:274
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: joint_cmd.pb.h:94
Definition: header.pb.h:161
STL class.
void clear_velocity()
Definition: joint_cmd.pb.h:364
void protobuf_AssignDesc_ignition_2fmsgs_2fjoint_5fcmd_2eproto()
const ::ignition::msgs::Double & force_optional() const
Definition: joint_cmd.pb.h:420
::std::string * release_name()
Definition: joint_cmd.pb.h:279
void clear_force_optional()
Definition: joint_cmd.pb.h:416
std::shared_ptr< const JointCmd > ConstJointCmdSharedPtr
Definition: joint_cmd.pb.h:455
const ::ignition::msgs::PID & velocity() const
Definition: joint_cmd.pb.h:368
void clear_name()
Definition: joint_cmd.pb.h:251
void set_allocated_velocity(::ignition::msgs::PID *velocity)
Definition: joint_cmd.pb.h:387
::ignition::msgs::Header * mutable_header()
Definition: joint_cmd.pb.h:224
const ::ignition::msgs::PID & position() const
Definition: joint_cmd.pb.h:330
void set_name(const ::std::string &value)
Definition: joint_cmd.pb.h:258
bool has_position() const
Definition: joint_cmd.pb.h:323
bool reset() const
Definition: joint_cmd.pb.h:402
::ignition::msgs::PID * release_velocity()
Definition: joint_cmd.pb.h:380
std::shared_ptr< JointCmd > JointCmdSharedPtr
Definition: joint_cmd.pb.h:454
::ignition::msgs::PID * mutable_position()
Definition: joint_cmd.pb.h:334
bool has_header() const
Definition: joint_cmd.pb.h:213
Definition: pid.pb.h:57
JointCmd * New() const
Definition: joint_cmd.pb.h:77
void clear_header()
Definition: joint_cmd.pb.h:216
void clear_axis()
Definition: joint_cmd.pb.h:295
int GetCachedSize() const
Definition: joint_cmd.pb.h:97
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fjoint_5fcmd_2eproto()
STL class.
JointCmd & operator=(const JointCmd &from)
Definition: joint_cmd.pb.h:65
GOOGLE_PROTOBUF_DEPRECATED_ATTR void set_force(double value)
Definition: joint_cmd.pb.h:316
void clear_reset()
Definition: joint_cmd.pb.h:399
::ignition::msgs::Double * release_force_optional()
Definition: joint_cmd.pb.h:432
bool has_velocity() const
Definition: joint_cmd.pb.h:361
void set_allocated_name(::std::string *name)
Definition: joint_cmd.pb.h:284
Definition: double.pb.h:56
void set_allocated_force_optional(::ignition::msgs::Double *force_optional)
Definition: joint_cmd.pb.h:439
void set_allocated_header(::ignition::msgs::Header *header)
Definition: joint_cmd.pb.h:239
void set_allocated_position(::ignition::msgs::PID *position)
Definition: joint_cmd.pb.h:349
const ::ignition::msgs::Header & header() const
Definition: joint_cmd.pb.h:220
::ignition::msgs::PID * mutable_velocity()
Definition: joint_cmd.pb.h:372
void protobuf_ShutdownFile_ignition_2fmsgs_2fjoint_5fcmd_2eproto()
::google::protobuf::int32 axis() const
Definition: joint_cmd.pb.h:298