Go to the documentation of this file.
4 #ifndef PROTOBUF_INCLUDED_ignition_2fmsgs_2finertial_2eproto
5 #define PROTOBUF_INCLUDED_ignition_2fmsgs_2finertial_2eproto
9 #include <google/protobuf/stubs/common.h>
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
16 #if 3006001 < 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.
22 #include <google/protobuf/io/coded_stream.h>
23 #include <google/protobuf/arena.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/inlined_string_field.h>
28 #include <google/protobuf/metadata.h>
29 #include <google/protobuf/message.h>
30 #include <google/protobuf/repeated_field.h>
31 #include <google/protobuf/extension_set.h>
32 #include <google/protobuf/unknown_field_set.h>
36 #pragma GCC system_header
39 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
42 #include <sys/sysmacros.h>
47 #define PROTOBUF_INTERNAL_EXPORT_protobuf_ignition_2fmsgs_2finertial_2eproto IGNITION_MSGS_VISIBLE
52 static const ::google::protobuf::internal::ParseTableField entries[];
53 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
54 static const ::google::protobuf::internal::ParseTable schema[1];
55 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
56 static const ::google::protobuf::internal::SerializationTable serialization_table[];
57 static const ::google::protobuf::uint32 offsets[];
64 class InertialDefaultTypeInternal;
70 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Inertial* Arena::CreateMaybeMessage<::ignition::msgs::Inertial>(Arena*);
78 class IGNITION_MSGS_VISIBLE
Inertial :
public ::google::protobuf::Message {
92 *
this = ::std::move(from);
95 inline Inertial& operator=(Inertial&& from) noexcept {
96 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
97 if (
this != &from) InternalSwap(&from);
104 static const ::google::protobuf::Descriptor* descriptor();
105 static const Inertial& default_instance();
107 static void InitAsDefaultInstance();
109 return reinterpret_cast<const Inertial*
>(
112 static constexpr
int kIndexInFileMessages =
123 return CreateMaybeMessage<Inertial>(NULL);
127 return CreateMaybeMessage<Inertial>(arena);
129 void CopyFrom(const ::google::protobuf::Message& from)
final;
130 void MergeFrom(const ::google::protobuf::Message& from)
final;
131 void CopyFrom(
const Inertial& from);
132 void MergeFrom(
const Inertial& from);
134 bool IsInitialized() const final;
136 size_t ByteSizeLong() const final;
137 bool MergePartialFromCodedStream(
138 ::
google::protobuf::io::CodedInputStream* input) final;
139 void SerializeWithCachedSizes(
140 ::
google::protobuf::io::CodedOutputStream* output) const final;
141 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
142 bool deterministic, ::
google::protobuf::uint8* target) const final;
143 int GetCachedSize() const final {
return _cached_size_.Get(); }
148 void SetCachedSize(
int size)
const final;
151 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
154 inline void* MaybeArenaPtr()
const {
159 ::google::protobuf::Metadata GetMetadata() const final;
166 bool has_header() const;
168 static const
int kHeaderFieldNumber = 1;
178 bool has_pose() const;
180 static const
int kPoseFieldNumber = 3;
191 static const
int kMassFieldNumber = 2;
193 void set_mass(
double value);
197 static const
int kIxxFieldNumber = 4;
199 void set_ixx(
double value);
203 static const
int kIxyFieldNumber = 5;
205 void set_ixy(
double value);
209 static const
int kIxzFieldNumber = 6;
211 void set_ixz(
double value);
215 static const
int kIyyFieldNumber = 7;
217 void set_iyy(
double value);
221 static const
int kIyzFieldNumber = 8;
223 void set_iyz(
double value);
227 static const
int kIzzFieldNumber = 9;
229 void set_izz(
double value);
234 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
244 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
253 #pragma GCC diagnostic push
254 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
260 return this != internal_default_instance() && header_ != NULL;
262 inline const ::ignition::msgs::Header& Inertial::_internal_header()
const {
266 const ::ignition::msgs::Header* p = header_;
280 if (header_ == NULL) {
281 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaNoVirtual());
288 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
289 if (message_arena == NULL) {
290 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
293 ::google::protobuf::Arena* submessage_arena = NULL;
294 if (message_arena != submessage_arena) {
295 header = ::google::protobuf::internal::GetOwnedMessage(
296 message_arena, header, submessage_arena);
322 return this != internal_default_instance() && pose_ != NULL;
324 inline const ::ignition::msgs::Pose& Inertial::_internal_pose()
const {
328 const ::ignition::msgs::Pose* p = pose_;
343 auto* p = CreateMaybeMessage<::ignition::msgs::Pose>(GetArenaNoVirtual());
350 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
351 if (message_arena == NULL) {
352 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(pose_);
355 ::google::protobuf::Arena* submessage_arena = NULL;
356 if (message_arena != submessage_arena) {
357 pose = ::google::protobuf::internal::GetOwnedMessage(
358 message_arena, pose, submessage_arena);
453 #pragma GCC diagnostic pop
470 #endif // PROTOBUF_INCLUDED_ignition_2fmsgs_2finertial_2eproto
std::unique_ptr< const Inertial > ConstInertialUniquePtr
Definition: inertial.pb.h:457
double ixy() const
Definition: inertial.pb.h:386
std::shared_ptr< const Inertial > ConstInertialSharedPtr
Definition: inertial.pb.h:459
IGNITION_MSGS_VISIBLE InertialDefaultTypeInternal _Inertial_default_instance_
void clear_iyy()
Definition: inertial.pb.h:411
std::shared_ptr< Inertial > InertialSharedPtr
Definition: inertial.pb.h:458
bool has_pose() const
Definition: inertial.pb.h:321
::ignition::msgs::Header * release_header()
Definition: inertial.pb.h:271
::ignition::msgs::Header * mutable_header()
Definition: inertial.pb.h:278
void Swap(Inertial *other)
IGNITION_MSGS_VISIBLE PoseDefaultTypeInternal _Pose_default_instance_
::ignition::msgs::Pose * mutable_pose()
Definition: inertial.pb.h:340
void set_ixx(double value)
Definition: inertial.pb.h:376
double mass() const
Definition: inertial.pb.h:310
void clear_mass()
Definition: inertial.pb.h:307
Inertial & operator=(const Inertial &from)
Definition: inertial.pb.h:85
Inertial * New() const final
Definition: inertial.pb.h:122
Definition: inertial.pb.h:78
void IGNITION_MSGS_VISIBLE AddDescriptors()
void clear_ixy()
Definition: inertial.pb.h:383
void set_iyy(double value)
Definition: inertial.pb.h:418
double ixx() const
Definition: inertial.pb.h:372
std::unique_ptr< Inertial > InertialUniquePtr
Definition: inertial.pb.h:456
static const Inertial * internal_default_instance()
Definition: inertial.pb.h:108
bool has_header() const
Definition: inertial.pb.h:259
Definition: inertial.pb.h:49
void set_allocated_header(::ignition::msgs::Header *header)
Definition: inertial.pb.h:287
const ::ignition::msgs::Header & header() const
Definition: inertial.pb.h:265
const ::ignition::msgs::Pose & pose() const
Definition: inertial.pb.h:327
void clear_iyz()
Definition: inertial.pb.h:425
void clear_ixx()
Definition: inertial.pb.h:369
Inertial * New(::google::protobuf::Arena *arena) const final
Definition: inertial.pb.h:126
double izz() const
Definition: inertial.pb.h:442
Definition: inertial.pb.h:51
void set_iyz(double value)
Definition: inertial.pb.h:432
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
double iyz() const
Definition: inertial.pb.h:428
void clear_ixz()
Definition: inertial.pb.h:397
void set_ixz(double value)
Definition: inertial.pb.h:404
void set_izz(double value)
Definition: inertial.pb.h:446
double iyy() const
Definition: inertial.pb.h:414
void set_allocated_pose(::ignition::msgs::Pose *pose)
Definition: inertial.pb.h:349
void clear_izz()
Definition: inertial.pb.h:439
void set_ixy(double value)
Definition: inertial.pb.h:390
::ignition::msgs::Pose * release_pose()
Definition: inertial.pb.h:333
double ixz() const
Definition: inertial.pb.h:400
void set_mass(double value)
Definition: inertial.pb.h:314
Definition: actor.pb.h:78
friend void swap(Inertial &a, Inertial &b)
Definition: inertial.pb.h:116