12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: velodyne_config.proto
- #include "velodyne_config.pb.h"
- #include <algorithm>
- #include <google/protobuf/stubs/common.h>
- #include <google/protobuf/stubs/port.h>
- #include <google/protobuf/stubs/once.h>
- #include <google/protobuf/io/coded_stream.h>
- #include <google/protobuf/wire_format_lite_inl.h>
- #include <google/protobuf/descriptor.h>
- #include <google/protobuf/generated_message_reflection.h>
- #include <google/protobuf/reflection_ops.h>
- #include <google/protobuf/wire_format.h>
- // This is a temporary google only hack
- #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- #include "third_party/protobuf/version.h"
- #endif
- // @@protoc_insertion_point(includes)
- namespace velodyne {
- class velodyneManagerParamsDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<velodyneManagerParams>
- _instance;
- } _velodyneManagerParams_default_instance_;
- class velodyneLidarParamsDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<velodyneLidarParams>
- _instance;
- } _velodyneLidarParams_default_instance_;
- class RegionDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<Region>
- _instance;
- } _Region_default_instance_;
- class Calib_parameterDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<Calib_parameter>
- _instance;
- } _Calib_parameter_default_instance_;
- } // namespace velodyne
- namespace protobuf_velodyne_5fconfig_2eproto {
- void InitDefaultsvelodyneManagerParamsImpl() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
- #else
- ::google::protobuf::internal::InitProtobufDefaults();
- #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- protobuf_velodyne_5fconfig_2eproto::InitDefaultsvelodyneLidarParams();
- protobuf_velodyne_5fconfig_2eproto::InitDefaultsRegion();
- {
- void* ptr = &::velodyne::_velodyneManagerParams_default_instance_;
- new (ptr) ::velodyne::velodyneManagerParams();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::velodyne::velodyneManagerParams::InitAsDefaultInstance();
- }
- void InitDefaultsvelodyneManagerParams() {
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
- ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsvelodyneManagerParamsImpl);
- }
- void InitDefaultsvelodyneLidarParamsImpl() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
- #else
- ::google::protobuf::internal::InitProtobufDefaults();
- #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- protobuf_velodyne_5fconfig_2eproto::InitDefaultsCalib_parameter();
- ::velodyne::velodyneLidarParams::_default_model_.DefaultConstruct();
- *::velodyne::velodyneLidarParams::_default_model_.get_mutable() = ::std::string("VLP16", 5);
- ::google::protobuf::internal::OnShutdownDestroyString(
- ::velodyne::velodyneLidarParams::_default_model_.get_mutable());
- {
- void* ptr = &::velodyne::_velodyneLidarParams_default_instance_;
- new (ptr) ::velodyne::velodyneLidarParams();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::velodyne::velodyneLidarParams::InitAsDefaultInstance();
- }
- void InitDefaultsvelodyneLidarParams() {
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
- ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsvelodyneLidarParamsImpl);
- }
- void InitDefaultsRegionImpl() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
- #else
- ::google::protobuf::internal::InitProtobufDefaults();
- #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- {
- void* ptr = &::velodyne::_Region_default_instance_;
- new (ptr) ::velodyne::Region();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::velodyne::Region::InitAsDefaultInstance();
- }
- void InitDefaultsRegion() {
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
- ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRegionImpl);
- }
- void InitDefaultsCalib_parameterImpl() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
- #else
- ::google::protobuf::internal::InitProtobufDefaults();
- #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- {
- void* ptr = &::velodyne::_Calib_parameter_default_instance_;
- new (ptr) ::velodyne::Calib_parameter();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::velodyne::Calib_parameter::InitAsDefaultInstance();
- }
- void InitDefaultsCalib_parameter() {
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
- ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCalib_parameterImpl);
- }
- ::google::protobuf::Metadata file_level_metadata[4];
- const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneManagerParams, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneManagerParams, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneManagerParams, velodyne_lidars_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneManagerParams, region_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneManagerParams, fence_data_path_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneManagerParams, fence_log_path_),
- ~0u,
- ~0u,
- 0,
- 1,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneLidarParams, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneLidarParams, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneLidarParams, ip_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneLidarParams, port_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneLidarParams, model_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneLidarParams, calibrationfile_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneLidarParams, max_range_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneLidarParams, min_range_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneLidarParams, min_angle_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneLidarParams, max_angle_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneLidarParams, rpm_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneLidarParams, calib_),
- 0,
- 6,
- 1,
- 2,
- 7,
- 8,
- 4,
- 9,
- 5,
- 3,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, minx_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, maxx_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, miny_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, maxy_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, minz_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, maxz_),
- 0,
- 1,
- 2,
- 3,
- 4,
- 5,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Calib_parameter, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Calib_parameter, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Calib_parameter, r_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Calib_parameter, p_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Calib_parameter, y_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Calib_parameter, cx_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Calib_parameter, cy_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Calib_parameter, cz_),
- 0,
- 1,
- 2,
- 3,
- 4,
- 5,
- };
- static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- { 0, 9, sizeof(::velodyne::velodyneManagerParams)},
- { 13, 28, sizeof(::velodyne::velodyneLidarParams)},
- { 38, 49, sizeof(::velodyne::Region)},
- { 55, 66, sizeof(::velodyne::Calib_parameter)},
- };
- static ::google::protobuf::Message const * const file_default_instances[] = {
- reinterpret_cast<const ::google::protobuf::Message*>(&::velodyne::_velodyneManagerParams_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::velodyne::_velodyneLidarParams_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::velodyne::_Region_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::velodyne::_Calib_parameter_default_instance_),
- };
- void protobuf_AssignDescriptors() {
- AddDescriptors();
- ::google::protobuf::MessageFactory* factory = NULL;
- AssignDescriptors(
- "velodyne_config.proto", schemas, file_default_instances, TableStruct::offsets, factory,
- file_level_metadata, NULL, NULL);
- }
- void protobuf_AssignDescriptorsOnce() {
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
- ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
- }
- void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
- void protobuf_RegisterTypes(const ::std::string&) {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 4);
- }
- void AddDescriptorsImpl() {
- InitDefaults();
- static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- "\n\025velodyne_config.proto\022\010velodyne\"\246\001\n\025ve"
- "lodyneManagerParams\0226\n\017velodyne_lidars\030\001"
- " \003(\0132\035.velodyne.velodyneLidarParams\022 \n\006r"
- "egion\030\002 \003(\0132\020.velodyne.Region\022\031\n\017fence_d"
- "ata_path\030\003 \001(\t:\000\022\030\n\016fence_log_path\030\004 \001(\t"
- ":\000\"\202\002\n\023velodyneLidarParams\022\014\n\002ip\030\001 \002(\t:\000"
- "\022\022\n\004port\030\002 \002(\005:\0042368\022\024\n\005model\030\003 \002(\t:\005VLP"
- "16\022\031\n\017calibrationFile\030\004 \002(\t:\000\022\025\n\tmax_ran"
- "ge\030\005 \001(\002:\00210\022\027\n\tmin_range\030\006 \001(\002:\0040.15\022\024\n"
- "\tmin_angle\030\007 \001(\005:\0010\022\026\n\tmax_angle\030\010 \001(\005:\003"
- "360\022\020\n\003rpm\030\t \001(\005:\003600\022(\n\005calib\030\n \001(\0132\031.v"
- "elodyne.Calib_parameter\"\\\n\006Region\022\014\n\004min"
- "x\030\001 \002(\002\022\014\n\004maxx\030\002 \002(\002\022\014\n\004miny\030\003 \002(\002\022\014\n\004m"
- "axy\030\004 \002(\002\022\014\n\004minz\030\005 \002(\002\022\014\n\004maxz\030\006 \002(\002\"h\n"
- "\017Calib_parameter\022\014\n\001r\030\001 \001(\002:\0010\022\014\n\001p\030\002 \001("
- "\002:\0010\022\014\n\001y\030\003 \001(\002:\0010\022\r\n\002cx\030\004 \001(\002:\0010\022\r\n\002cy\030"
- "\005 \001(\002:\0010\022\r\n\002cz\030\006 \001(\002:\0010"
- };
- ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
- descriptor, 663);
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
- "velodyne_config.proto", &protobuf_RegisterTypes);
- }
- void AddDescriptors() {
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
- ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
- }
- // Force AddDescriptors() to be called at dynamic initialization time.
- struct StaticDescriptorInitializer {
- StaticDescriptorInitializer() {
- AddDescriptors();
- }
- } static_descriptor_initializer;
- } // namespace protobuf_velodyne_5fconfig_2eproto
- namespace velodyne {
- // ===================================================================
- void velodyneManagerParams::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int velodyneManagerParams::kVelodyneLidarsFieldNumber;
- const int velodyneManagerParams::kRegionFieldNumber;
- const int velodyneManagerParams::kFenceDataPathFieldNumber;
- const int velodyneManagerParams::kFenceLogPathFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- velodyneManagerParams::velodyneManagerParams()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
- ::protobuf_velodyne_5fconfig_2eproto::InitDefaultsvelodyneManagerParams();
- }
- SharedCtor();
- // @@protoc_insertion_point(constructor:velodyne.velodyneManagerParams)
- }
- velodyneManagerParams::velodyneManagerParams(const velodyneManagerParams& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_),
- _cached_size_(0),
- velodyne_lidars_(from.velodyne_lidars_),
- region_(from.region_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- fence_data_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.has_fence_data_path()) {
- fence_data_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.fence_data_path_);
- }
- fence_log_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.has_fence_log_path()) {
- fence_log_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.fence_log_path_);
- }
- // @@protoc_insertion_point(copy_constructor:velodyne.velodyneManagerParams)
- }
- void velodyneManagerParams::SharedCtor() {
- _cached_size_ = 0;
- fence_data_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- fence_log_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- velodyneManagerParams::~velodyneManagerParams() {
- // @@protoc_insertion_point(destructor:velodyne.velodyneManagerParams)
- SharedDtor();
- }
- void velodyneManagerParams::SharedDtor() {
- fence_data_path_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- fence_log_path_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- void velodyneManagerParams::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- }
- const ::google::protobuf::Descriptor* velodyneManagerParams::descriptor() {
- ::protobuf_velodyne_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_velodyne_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const velodyneManagerParams& velodyneManagerParams::default_instance() {
- ::protobuf_velodyne_5fconfig_2eproto::InitDefaultsvelodyneManagerParams();
- return *internal_default_instance();
- }
- velodyneManagerParams* velodyneManagerParams::New(::google::protobuf::Arena* arena) const {
- velodyneManagerParams* n = new velodyneManagerParams;
- if (arena != NULL) {
- arena->Own(n);
- }
- return n;
- }
- void velodyneManagerParams::Clear() {
- // @@protoc_insertion_point(message_clear_start:velodyne.velodyneManagerParams)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- velodyne_lidars_.Clear();
- region_.Clear();
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 3u) {
- if (cached_has_bits & 0x00000001u) {
- GOOGLE_DCHECK(!fence_data_path_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
- (*fence_data_path_.UnsafeRawStringPointer())->clear();
- }
- if (cached_has_bits & 0x00000002u) {
- GOOGLE_DCHECK(!fence_log_path_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
- (*fence_log_path_.UnsafeRawStringPointer())->clear();
- }
- }
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool velodyneManagerParams::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:velodyne.velodyneManagerParams)
- for (;;) {
- ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // repeated .velodyne.velodyneLidarParams velodyne_lidars = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_velodyne_lidars()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // repeated .velodyne.Region region = 2;
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_region()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional string fence_data_path = 3 [default = ""];
- case 3: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_fence_data_path()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->fence_data_path().data(), static_cast<int>(this->fence_data_path().length()),
- ::google::protobuf::internal::WireFormat::PARSE,
- "velodyne.velodyneManagerParams.fence_data_path");
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional string fence_log_path = 4 [default = ""];
- case 4: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_fence_log_path()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->fence_log_path().data(), static_cast<int>(this->fence_log_path().length()),
- ::google::protobuf::internal::WireFormat::PARSE,
- "velodyne.velodyneManagerParams.fence_log_path");
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:velodyne.velodyneManagerParams)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:velodyne.velodyneManagerParams)
- return false;
- #undef DO_
- }
- void velodyneManagerParams::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:velodyne.velodyneManagerParams)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // repeated .velodyne.velodyneLidarParams velodyne_lidars = 1;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->velodyne_lidars_size()); i < n; i++) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, this->velodyne_lidars(static_cast<int>(i)), output);
- }
- // repeated .velodyne.Region region = 2;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->region_size()); i < n; i++) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 2, this->region(static_cast<int>(i)), output);
- }
- cached_has_bits = _has_bits_[0];
- // optional string fence_data_path = 3 [default = ""];
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->fence_data_path().data(), static_cast<int>(this->fence_data_path().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "velodyne.velodyneManagerParams.fence_data_path");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 3, this->fence_data_path(), output);
- }
- // optional string fence_log_path = 4 [default = ""];
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->fence_log_path().data(), static_cast<int>(this->fence_log_path().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "velodyne.velodyneManagerParams.fence_log_path");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 4, this->fence_log_path(), output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:velodyne.velodyneManagerParams)
- }
- ::google::protobuf::uint8* velodyneManagerParams::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:velodyne.velodyneManagerParams)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // repeated .velodyne.velodyneLidarParams velodyne_lidars = 1;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->velodyne_lidars_size()); i < n; i++) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 1, this->velodyne_lidars(static_cast<int>(i)), deterministic, target);
- }
- // repeated .velodyne.Region region = 2;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->region_size()); i < n; i++) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 2, this->region(static_cast<int>(i)), deterministic, target);
- }
- cached_has_bits = _has_bits_[0];
- // optional string fence_data_path = 3 [default = ""];
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->fence_data_path().data(), static_cast<int>(this->fence_data_path().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "velodyne.velodyneManagerParams.fence_data_path");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 3, this->fence_data_path(), target);
- }
- // optional string fence_log_path = 4 [default = ""];
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->fence_log_path().data(), static_cast<int>(this->fence_log_path().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "velodyne.velodyneManagerParams.fence_log_path");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 4, this->fence_log_path(), target);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:velodyne.velodyneManagerParams)
- return target;
- }
- size_t velodyneManagerParams::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:velodyne.velodyneManagerParams)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- // repeated .velodyne.velodyneLidarParams velodyne_lidars = 1;
- {
- unsigned int count = static_cast<unsigned int>(this->velodyne_lidars_size());
- total_size += 1UL * count;
- for (unsigned int i = 0; i < count; i++) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- this->velodyne_lidars(static_cast<int>(i)));
- }
- }
- // repeated .velodyne.Region region = 2;
- {
- unsigned int count = static_cast<unsigned int>(this->region_size());
- total_size += 1UL * count;
- for (unsigned int i = 0; i < count; i++) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- this->region(static_cast<int>(i)));
- }
- }
- if (_has_bits_[0 / 32] & 3u) {
- // optional string fence_data_path = 3 [default = ""];
- if (has_fence_data_path()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->fence_data_path());
- }
- // optional string fence_log_path = 4 [default = ""];
- if (has_fence_log_path()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->fence_log_path());
- }
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = cached_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- return total_size;
- }
- void velodyneManagerParams::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:velodyne.velodyneManagerParams)
- GOOGLE_DCHECK_NE(&from, this);
- const velodyneManagerParams* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const velodyneManagerParams>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:velodyne.velodyneManagerParams)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:velodyne.velodyneManagerParams)
- MergeFrom(*source);
- }
- }
- void velodyneManagerParams::MergeFrom(const velodyneManagerParams& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:velodyne.velodyneManagerParams)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- velodyne_lidars_.MergeFrom(from.velodyne_lidars_);
- region_.MergeFrom(from.region_);
- cached_has_bits = from._has_bits_[0];
- if (cached_has_bits & 3u) {
- if (cached_has_bits & 0x00000001u) {
- set_has_fence_data_path();
- fence_data_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.fence_data_path_);
- }
- if (cached_has_bits & 0x00000002u) {
- set_has_fence_log_path();
- fence_log_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.fence_log_path_);
- }
- }
- }
- void velodyneManagerParams::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:velodyne.velodyneManagerParams)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void velodyneManagerParams::CopyFrom(const velodyneManagerParams& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:velodyne.velodyneManagerParams)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool velodyneManagerParams::IsInitialized() const {
- if (!::google::protobuf::internal::AllAreInitialized(this->velodyne_lidars())) return false;
- if (!::google::protobuf::internal::AllAreInitialized(this->region())) return false;
- return true;
- }
- void velodyneManagerParams::Swap(velodyneManagerParams* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void velodyneManagerParams::InternalSwap(velodyneManagerParams* other) {
- using std::swap;
- velodyne_lidars_.InternalSwap(&other->velodyne_lidars_);
- region_.InternalSwap(&other->region_);
- fence_data_path_.Swap(&other->fence_data_path_);
- fence_log_path_.Swap(&other->fence_log_path_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- swap(_cached_size_, other->_cached_size_);
- }
- ::google::protobuf::Metadata velodyneManagerParams::GetMetadata() const {
- protobuf_velodyne_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_velodyne_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void velodyneLidarParams::InitAsDefaultInstance() {
- ::velodyne::_velodyneLidarParams_default_instance_._instance.get_mutable()->calib_ = const_cast< ::velodyne::Calib_parameter*>(
- ::velodyne::Calib_parameter::internal_default_instance());
- }
- ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> velodyneLidarParams::_default_model_;
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int velodyneLidarParams::kIpFieldNumber;
- const int velodyneLidarParams::kPortFieldNumber;
- const int velodyneLidarParams::kModelFieldNumber;
- const int velodyneLidarParams::kCalibrationFileFieldNumber;
- const int velodyneLidarParams::kMaxRangeFieldNumber;
- const int velodyneLidarParams::kMinRangeFieldNumber;
- const int velodyneLidarParams::kMinAngleFieldNumber;
- const int velodyneLidarParams::kMaxAngleFieldNumber;
- const int velodyneLidarParams::kRpmFieldNumber;
- const int velodyneLidarParams::kCalibFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- velodyneLidarParams::velodyneLidarParams()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
- ::protobuf_velodyne_5fconfig_2eproto::InitDefaultsvelodyneLidarParams();
- }
- SharedCtor();
- // @@protoc_insertion_point(constructor:velodyne.velodyneLidarParams)
- }
- velodyneLidarParams::velodyneLidarParams(const velodyneLidarParams& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_),
- _cached_size_(0) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ip_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.has_ip()) {
- ip_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ip_);
- }
- model_.UnsafeSetDefault(&::velodyne::velodyneLidarParams::_default_model_.get());
- if (from.has_model()) {
- model_.AssignWithDefault(&::velodyne::velodyneLidarParams::_default_model_.get(), from.model_);
- }
- calibrationfile_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.has_calibrationfile()) {
- calibrationfile_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.calibrationfile_);
- }
- if (from.has_calib()) {
- calib_ = new ::velodyne::Calib_parameter(*from.calib_);
- } else {
- calib_ = NULL;
- }
- ::memcpy(&min_angle_, &from.min_angle_,
- static_cast<size_t>(reinterpret_cast<char*>(&max_angle_) -
- reinterpret_cast<char*>(&min_angle_)) + sizeof(max_angle_));
- // @@protoc_insertion_point(copy_constructor:velodyne.velodyneLidarParams)
- }
- void velodyneLidarParams::SharedCtor() {
- _cached_size_ = 0;
- ip_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- model_.UnsafeSetDefault(&::velodyne::velodyneLidarParams::_default_model_.get());
- calibrationfile_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- ::memset(&calib_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&min_angle_) -
- reinterpret_cast<char*>(&calib_)) + sizeof(min_angle_));
- rpm_ = 600;
- port_ = 2368;
- max_range_ = 10;
- min_range_ = 0.15f;
- max_angle_ = 360;
- }
- velodyneLidarParams::~velodyneLidarParams() {
- // @@protoc_insertion_point(destructor:velodyne.velodyneLidarParams)
- SharedDtor();
- }
- void velodyneLidarParams::SharedDtor() {
- ip_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- model_.DestroyNoArena(&::velodyne::velodyneLidarParams::_default_model_.get());
- calibrationfile_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (this != internal_default_instance()) delete calib_;
- }
- void velodyneLidarParams::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- }
- const ::google::protobuf::Descriptor* velodyneLidarParams::descriptor() {
- ::protobuf_velodyne_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_velodyne_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const velodyneLidarParams& velodyneLidarParams::default_instance() {
- ::protobuf_velodyne_5fconfig_2eproto::InitDefaultsvelodyneLidarParams();
- return *internal_default_instance();
- }
- velodyneLidarParams* velodyneLidarParams::New(::google::protobuf::Arena* arena) const {
- velodyneLidarParams* n = new velodyneLidarParams;
- if (arena != NULL) {
- arena->Own(n);
- }
- return n;
- }
- void velodyneLidarParams::Clear() {
- // @@protoc_insertion_point(message_clear_start:velodyne.velodyneLidarParams)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 15u) {
- if (cached_has_bits & 0x00000001u) {
- GOOGLE_DCHECK(!ip_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
- (*ip_.UnsafeRawStringPointer())->clear();
- }
- if (cached_has_bits & 0x00000002u) {
- GOOGLE_DCHECK(!model_.IsDefault(&::velodyne::velodyneLidarParams::_default_model_.get()));
- (*model_.UnsafeRawStringPointer())->assign(*&::velodyne::velodyneLidarParams::_default_model_.get());
- }
- if (cached_has_bits & 0x00000004u) {
- GOOGLE_DCHECK(!calibrationfile_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
- (*calibrationfile_.UnsafeRawStringPointer())->clear();
- }
- if (cached_has_bits & 0x00000008u) {
- GOOGLE_DCHECK(calib_ != NULL);
- calib_->Clear();
- }
- }
- if (cached_has_bits & 240u) {
- min_angle_ = 0;
- rpm_ = 600;
- port_ = 2368;
- max_range_ = 10;
- }
- if (cached_has_bits & 768u) {
- min_range_ = 0.15f;
- max_angle_ = 360;
- }
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool velodyneLidarParams::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:velodyne.velodyneLidarParams)
- for (;;) {
- ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // required string ip = 1 [default = ""];
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_ip()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->ip().data(), static_cast<int>(this->ip().length()),
- ::google::protobuf::internal::WireFormat::PARSE,
- "velodyne.velodyneLidarParams.ip");
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required int32 port = 2 [default = 2368];
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
- set_has_port();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &port_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required string model = 3 [default = "VLP16"];
- case 3: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_model()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->model().data(), static_cast<int>(this->model().length()),
- ::google::protobuf::internal::WireFormat::PARSE,
- "velodyne.velodyneLidarParams.model");
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required string calibrationFile = 4 [default = ""];
- case 4: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_calibrationfile()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->calibrationfile().data(), static_cast<int>(this->calibrationfile().length()),
- ::google::protobuf::internal::WireFormat::PARSE,
- "velodyne.velodyneLidarParams.calibrationFile");
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional float max_range = 5 [default = 10];
- case 5: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(45u /* 45 & 0xFF */)) {
- set_has_max_range();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &max_range_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional float min_range = 6 [default = 0.15];
- case 6: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(53u /* 53 & 0xFF */)) {
- set_has_min_range();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &min_range_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional int32 min_angle = 7 [default = 0];
- case 7: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
- set_has_min_angle();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &min_angle_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional int32 max_angle = 8 [default = 360];
- case 8: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) {
- set_has_max_angle();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &max_angle_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional int32 rpm = 9 [default = 600];
- case 9: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
- set_has_rpm();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &rpm_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional .velodyne.Calib_parameter calib = 10;
- case 10: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_calib()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:velodyne.velodyneLidarParams)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:velodyne.velodyneLidarParams)
- return false;
- #undef DO_
- }
- void velodyneLidarParams::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:velodyne.velodyneLidarParams)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // required string ip = 1 [default = ""];
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->ip().data(), static_cast<int>(this->ip().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "velodyne.velodyneLidarParams.ip");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 1, this->ip(), output);
- }
- // required int32 port = 2 [default = 2368];
- if (cached_has_bits & 0x00000040u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->port(), output);
- }
- // required string model = 3 [default = "VLP16"];
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->model().data(), static_cast<int>(this->model().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "velodyne.velodyneLidarParams.model");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 3, this->model(), output);
- }
- // required string calibrationFile = 4 [default = ""];
- if (cached_has_bits & 0x00000004u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->calibrationfile().data(), static_cast<int>(this->calibrationfile().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "velodyne.velodyneLidarParams.calibrationFile");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 4, this->calibrationfile(), output);
- }
- // optional float max_range = 5 [default = 10];
- if (cached_has_bits & 0x00000080u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->max_range(), output);
- }
- // optional float min_range = 6 [default = 0.15];
- if (cached_has_bits & 0x00000100u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(6, this->min_range(), output);
- }
- // optional int32 min_angle = 7 [default = 0];
- if (cached_has_bits & 0x00000010u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->min_angle(), output);
- }
- // optional int32 max_angle = 8 [default = 360];
- if (cached_has_bits & 0x00000200u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(8, this->max_angle(), output);
- }
- // optional int32 rpm = 9 [default = 600];
- if (cached_has_bits & 0x00000020u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(9, this->rpm(), output);
- }
- // optional .velodyne.Calib_parameter calib = 10;
- if (cached_has_bits & 0x00000008u) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 10, *this->calib_, output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:velodyne.velodyneLidarParams)
- }
- ::google::protobuf::uint8* velodyneLidarParams::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:velodyne.velodyneLidarParams)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // required string ip = 1 [default = ""];
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->ip().data(), static_cast<int>(this->ip().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "velodyne.velodyneLidarParams.ip");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 1, this->ip(), target);
- }
- // required int32 port = 2 [default = 2368];
- if (cached_has_bits & 0x00000040u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->port(), target);
- }
- // required string model = 3 [default = "VLP16"];
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->model().data(), static_cast<int>(this->model().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "velodyne.velodyneLidarParams.model");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 3, this->model(), target);
- }
- // required string calibrationFile = 4 [default = ""];
- if (cached_has_bits & 0x00000004u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->calibrationfile().data(), static_cast<int>(this->calibrationfile().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "velodyne.velodyneLidarParams.calibrationFile");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 4, this->calibrationfile(), target);
- }
- // optional float max_range = 5 [default = 10];
- if (cached_has_bits & 0x00000080u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->max_range(), target);
- }
- // optional float min_range = 6 [default = 0.15];
- if (cached_has_bits & 0x00000100u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(6, this->min_range(), target);
- }
- // optional int32 min_angle = 7 [default = 0];
- if (cached_has_bits & 0x00000010u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->min_angle(), target);
- }
- // optional int32 max_angle = 8 [default = 360];
- if (cached_has_bits & 0x00000200u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(8, this->max_angle(), target);
- }
- // optional int32 rpm = 9 [default = 600];
- if (cached_has_bits & 0x00000020u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(9, this->rpm(), target);
- }
- // optional .velodyne.Calib_parameter calib = 10;
- if (cached_has_bits & 0x00000008u) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 10, *this->calib_, deterministic, target);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:velodyne.velodyneLidarParams)
- return target;
- }
- size_t velodyneLidarParams::RequiredFieldsByteSizeFallback() const {
- // @@protoc_insertion_point(required_fields_byte_size_fallback_start:velodyne.velodyneLidarParams)
- size_t total_size = 0;
- if (has_ip()) {
- // required string ip = 1 [default = ""];
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->ip());
- }
- if (has_model()) {
- // required string model = 3 [default = "VLP16"];
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->model());
- }
- if (has_calibrationfile()) {
- // required string calibrationFile = 4 [default = ""];
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->calibrationfile());
- }
- if (has_port()) {
- // required int32 port = 2 [default = 2368];
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->port());
- }
- return total_size;
- }
- size_t velodyneLidarParams::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:velodyne.velodyneLidarParams)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- if (((_has_bits_[0] & 0x00000047) ^ 0x00000047) == 0) { // All required fields are present.
- // required string ip = 1 [default = ""];
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->ip());
- // required string model = 3 [default = "VLP16"];
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->model());
- // required string calibrationFile = 4 [default = ""];
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->calibrationfile());
- // required int32 port = 2 [default = 2368];
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->port());
- } else {
- total_size += RequiredFieldsByteSizeFallback();
- }
- if (_has_bits_[0 / 32] & 56u) {
- // optional .velodyne.Calib_parameter calib = 10;
- if (has_calib()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *this->calib_);
- }
- // optional int32 min_angle = 7 [default = 0];
- if (has_min_angle()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->min_angle());
- }
- // optional int32 rpm = 9 [default = 600];
- if (has_rpm()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->rpm());
- }
- }
- // optional float max_range = 5 [default = 10];
- if (has_max_range()) {
- total_size += 1 + 4;
- }
- if (_has_bits_[8 / 32] & 768u) {
- // optional float min_range = 6 [default = 0.15];
- if (has_min_range()) {
- total_size += 1 + 4;
- }
- // optional int32 max_angle = 8 [default = 360];
- if (has_max_angle()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->max_angle());
- }
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = cached_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- return total_size;
- }
- void velodyneLidarParams::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:velodyne.velodyneLidarParams)
- GOOGLE_DCHECK_NE(&from, this);
- const velodyneLidarParams* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const velodyneLidarParams>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:velodyne.velodyneLidarParams)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:velodyne.velodyneLidarParams)
- MergeFrom(*source);
- }
- }
- void velodyneLidarParams::MergeFrom(const velodyneLidarParams& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:velodyne.velodyneLidarParams)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = from._has_bits_[0];
- if (cached_has_bits & 255u) {
- if (cached_has_bits & 0x00000001u) {
- set_has_ip();
- ip_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ip_);
- }
- if (cached_has_bits & 0x00000002u) {
- set_has_model();
- model_.AssignWithDefault(&::velodyne::velodyneLidarParams::_default_model_.get(), from.model_);
- }
- if (cached_has_bits & 0x00000004u) {
- set_has_calibrationfile();
- calibrationfile_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.calibrationfile_);
- }
- if (cached_has_bits & 0x00000008u) {
- mutable_calib()->::velodyne::Calib_parameter::MergeFrom(from.calib());
- }
- if (cached_has_bits & 0x00000010u) {
- min_angle_ = from.min_angle_;
- }
- if (cached_has_bits & 0x00000020u) {
- rpm_ = from.rpm_;
- }
- if (cached_has_bits & 0x00000040u) {
- port_ = from.port_;
- }
- if (cached_has_bits & 0x00000080u) {
- max_range_ = from.max_range_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- if (cached_has_bits & 768u) {
- if (cached_has_bits & 0x00000100u) {
- min_range_ = from.min_range_;
- }
- if (cached_has_bits & 0x00000200u) {
- max_angle_ = from.max_angle_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- }
- void velodyneLidarParams::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:velodyne.velodyneLidarParams)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void velodyneLidarParams::CopyFrom(const velodyneLidarParams& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:velodyne.velodyneLidarParams)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool velodyneLidarParams::IsInitialized() const {
- if ((_has_bits_[0] & 0x00000047) != 0x00000047) return false;
- return true;
- }
- void velodyneLidarParams::Swap(velodyneLidarParams* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void velodyneLidarParams::InternalSwap(velodyneLidarParams* other) {
- using std::swap;
- ip_.Swap(&other->ip_);
- model_.Swap(&other->model_);
- calibrationfile_.Swap(&other->calibrationfile_);
- swap(calib_, other->calib_);
- swap(min_angle_, other->min_angle_);
- swap(rpm_, other->rpm_);
- swap(port_, other->port_);
- swap(max_range_, other->max_range_);
- swap(min_range_, other->min_range_);
- swap(max_angle_, other->max_angle_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- swap(_cached_size_, other->_cached_size_);
- }
- ::google::protobuf::Metadata velodyneLidarParams::GetMetadata() const {
- protobuf_velodyne_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_velodyne_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void Region::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int Region::kMinxFieldNumber;
- const int Region::kMaxxFieldNumber;
- const int Region::kMinyFieldNumber;
- const int Region::kMaxyFieldNumber;
- const int Region::kMinzFieldNumber;
- const int Region::kMaxzFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- Region::Region()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
- ::protobuf_velodyne_5fconfig_2eproto::InitDefaultsRegion();
- }
- SharedCtor();
- // @@protoc_insertion_point(constructor:velodyne.Region)
- }
- Region::Region(const Region& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_),
- _cached_size_(0) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::memcpy(&minx_, &from.minx_,
- static_cast<size_t>(reinterpret_cast<char*>(&maxz_) -
- reinterpret_cast<char*>(&minx_)) + sizeof(maxz_));
- // @@protoc_insertion_point(copy_constructor:velodyne.Region)
- }
- void Region::SharedCtor() {
- _cached_size_ = 0;
- ::memset(&minx_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&maxz_) -
- reinterpret_cast<char*>(&minx_)) + sizeof(maxz_));
- }
- Region::~Region() {
- // @@protoc_insertion_point(destructor:velodyne.Region)
- SharedDtor();
- }
- void Region::SharedDtor() {
- }
- void Region::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- }
- const ::google::protobuf::Descriptor* Region::descriptor() {
- ::protobuf_velodyne_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_velodyne_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const Region& Region::default_instance() {
- ::protobuf_velodyne_5fconfig_2eproto::InitDefaultsRegion();
- return *internal_default_instance();
- }
- Region* Region::New(::google::protobuf::Arena* arena) const {
- Region* n = new Region;
- if (arena != NULL) {
- arena->Own(n);
- }
- return n;
- }
- void Region::Clear() {
- // @@protoc_insertion_point(message_clear_start:velodyne.Region)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 63u) {
- ::memset(&minx_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&maxz_) -
- reinterpret_cast<char*>(&minx_)) + sizeof(maxz_));
- }
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool Region::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:velodyne.Region)
- for (;;) {
- ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // required float minx = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
- set_has_minx();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &minx_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required float maxx = 2;
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
- set_has_maxx();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &maxx_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required float miny = 3;
- case 3: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
- set_has_miny();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &miny_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required float maxy = 4;
- case 4: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) {
- set_has_maxy();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &maxy_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required float minz = 5;
- case 5: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(45u /* 45 & 0xFF */)) {
- set_has_minz();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &minz_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required float maxz = 6;
- case 6: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(53u /* 53 & 0xFF */)) {
- set_has_maxz();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &maxz_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:velodyne.Region)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:velodyne.Region)
- return false;
- #undef DO_
- }
- void Region::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:velodyne.Region)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // required float minx = 1;
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->minx(), output);
- }
- // required float maxx = 2;
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->maxx(), output);
- }
- // required float miny = 3;
- if (cached_has_bits & 0x00000004u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->miny(), output);
- }
- // required float maxy = 4;
- if (cached_has_bits & 0x00000008u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->maxy(), output);
- }
- // required float minz = 5;
- if (cached_has_bits & 0x00000010u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->minz(), output);
- }
- // required float maxz = 6;
- if (cached_has_bits & 0x00000020u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(6, this->maxz(), output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:velodyne.Region)
- }
- ::google::protobuf::uint8* Region::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:velodyne.Region)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // required float minx = 1;
- if (cached_has_bits & 0x00000001u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->minx(), target);
- }
- // required float maxx = 2;
- if (cached_has_bits & 0x00000002u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->maxx(), target);
- }
- // required float miny = 3;
- if (cached_has_bits & 0x00000004u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->miny(), target);
- }
- // required float maxy = 4;
- if (cached_has_bits & 0x00000008u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->maxy(), target);
- }
- // required float minz = 5;
- if (cached_has_bits & 0x00000010u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->minz(), target);
- }
- // required float maxz = 6;
- if (cached_has_bits & 0x00000020u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(6, this->maxz(), target);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:velodyne.Region)
- return target;
- }
- size_t Region::RequiredFieldsByteSizeFallback() const {
- // @@protoc_insertion_point(required_fields_byte_size_fallback_start:velodyne.Region)
- size_t total_size = 0;
- if (has_minx()) {
- // required float minx = 1;
- total_size += 1 + 4;
- }
- if (has_maxx()) {
- // required float maxx = 2;
- total_size += 1 + 4;
- }
- if (has_miny()) {
- // required float miny = 3;
- total_size += 1 + 4;
- }
- if (has_maxy()) {
- // required float maxy = 4;
- total_size += 1 + 4;
- }
- if (has_minz()) {
- // required float minz = 5;
- total_size += 1 + 4;
- }
- if (has_maxz()) {
- // required float maxz = 6;
- total_size += 1 + 4;
- }
- return total_size;
- }
- size_t Region::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:velodyne.Region)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- if (((_has_bits_[0] & 0x0000003f) ^ 0x0000003f) == 0) { // All required fields are present.
- // required float minx = 1;
- total_size += 1 + 4;
- // required float maxx = 2;
- total_size += 1 + 4;
- // required float miny = 3;
- total_size += 1 + 4;
- // required float maxy = 4;
- total_size += 1 + 4;
- // required float minz = 5;
- total_size += 1 + 4;
- // required float maxz = 6;
- total_size += 1 + 4;
- } else {
- total_size += RequiredFieldsByteSizeFallback();
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = cached_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- return total_size;
- }
- void Region::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:velodyne.Region)
- GOOGLE_DCHECK_NE(&from, this);
- const Region* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const Region>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:velodyne.Region)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:velodyne.Region)
- MergeFrom(*source);
- }
- }
- void Region::MergeFrom(const Region& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:velodyne.Region)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = from._has_bits_[0];
- if (cached_has_bits & 63u) {
- if (cached_has_bits & 0x00000001u) {
- minx_ = from.minx_;
- }
- if (cached_has_bits & 0x00000002u) {
- maxx_ = from.maxx_;
- }
- if (cached_has_bits & 0x00000004u) {
- miny_ = from.miny_;
- }
- if (cached_has_bits & 0x00000008u) {
- maxy_ = from.maxy_;
- }
- if (cached_has_bits & 0x00000010u) {
- minz_ = from.minz_;
- }
- if (cached_has_bits & 0x00000020u) {
- maxz_ = from.maxz_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- }
- void Region::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:velodyne.Region)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void Region::CopyFrom(const Region& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:velodyne.Region)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool Region::IsInitialized() const {
- if ((_has_bits_[0] & 0x0000003f) != 0x0000003f) return false;
- return true;
- }
- void Region::Swap(Region* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void Region::InternalSwap(Region* other) {
- using std::swap;
- swap(minx_, other->minx_);
- swap(maxx_, other->maxx_);
- swap(miny_, other->miny_);
- swap(maxy_, other->maxy_);
- swap(minz_, other->minz_);
- swap(maxz_, other->maxz_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- swap(_cached_size_, other->_cached_size_);
- }
- ::google::protobuf::Metadata Region::GetMetadata() const {
- protobuf_velodyne_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_velodyne_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void Calib_parameter::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int Calib_parameter::kRFieldNumber;
- const int Calib_parameter::kPFieldNumber;
- const int Calib_parameter::kYFieldNumber;
- const int Calib_parameter::kCxFieldNumber;
- const int Calib_parameter::kCyFieldNumber;
- const int Calib_parameter::kCzFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- Calib_parameter::Calib_parameter()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
- ::protobuf_velodyne_5fconfig_2eproto::InitDefaultsCalib_parameter();
- }
- SharedCtor();
- // @@protoc_insertion_point(constructor:velodyne.Calib_parameter)
- }
- Calib_parameter::Calib_parameter(const Calib_parameter& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_),
- _cached_size_(0) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::memcpy(&r_, &from.r_,
- static_cast<size_t>(reinterpret_cast<char*>(&cz_) -
- reinterpret_cast<char*>(&r_)) + sizeof(cz_));
- // @@protoc_insertion_point(copy_constructor:velodyne.Calib_parameter)
- }
- void Calib_parameter::SharedCtor() {
- _cached_size_ = 0;
- ::memset(&r_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&cz_) -
- reinterpret_cast<char*>(&r_)) + sizeof(cz_));
- }
- Calib_parameter::~Calib_parameter() {
- // @@protoc_insertion_point(destructor:velodyne.Calib_parameter)
- SharedDtor();
- }
- void Calib_parameter::SharedDtor() {
- }
- void Calib_parameter::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- }
- const ::google::protobuf::Descriptor* Calib_parameter::descriptor() {
- ::protobuf_velodyne_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_velodyne_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const Calib_parameter& Calib_parameter::default_instance() {
- ::protobuf_velodyne_5fconfig_2eproto::InitDefaultsCalib_parameter();
- return *internal_default_instance();
- }
- Calib_parameter* Calib_parameter::New(::google::protobuf::Arena* arena) const {
- Calib_parameter* n = new Calib_parameter;
- if (arena != NULL) {
- arena->Own(n);
- }
- return n;
- }
- void Calib_parameter::Clear() {
- // @@protoc_insertion_point(message_clear_start:velodyne.Calib_parameter)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 63u) {
- ::memset(&r_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&cz_) -
- reinterpret_cast<char*>(&r_)) + sizeof(cz_));
- }
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool Calib_parameter::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:velodyne.Calib_parameter)
- for (;;) {
- ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // optional float r = 1 [default = 0];
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
- set_has_r();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &r_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional float p = 2 [default = 0];
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
- set_has_p();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &p_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional float y = 3 [default = 0];
- case 3: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
- set_has_y();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &y_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional float cx = 4 [default = 0];
- case 4: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) {
- set_has_cx();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &cx_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional float cy = 5 [default = 0];
- case 5: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(45u /* 45 & 0xFF */)) {
- set_has_cy();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &cy_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional float cz = 6 [default = 0];
- case 6: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(53u /* 53 & 0xFF */)) {
- set_has_cz();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &cz_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:velodyne.Calib_parameter)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:velodyne.Calib_parameter)
- return false;
- #undef DO_
- }
- void Calib_parameter::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:velodyne.Calib_parameter)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional float r = 1 [default = 0];
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->r(), output);
- }
- // optional float p = 2 [default = 0];
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->p(), output);
- }
- // optional float y = 3 [default = 0];
- if (cached_has_bits & 0x00000004u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->y(), output);
- }
- // optional float cx = 4 [default = 0];
- if (cached_has_bits & 0x00000008u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->cx(), output);
- }
- // optional float cy = 5 [default = 0];
- if (cached_has_bits & 0x00000010u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->cy(), output);
- }
- // optional float cz = 6 [default = 0];
- if (cached_has_bits & 0x00000020u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(6, this->cz(), output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:velodyne.Calib_parameter)
- }
- ::google::protobuf::uint8* Calib_parameter::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:velodyne.Calib_parameter)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional float r = 1 [default = 0];
- if (cached_has_bits & 0x00000001u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->r(), target);
- }
- // optional float p = 2 [default = 0];
- if (cached_has_bits & 0x00000002u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->p(), target);
- }
- // optional float y = 3 [default = 0];
- if (cached_has_bits & 0x00000004u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->y(), target);
- }
- // optional float cx = 4 [default = 0];
- if (cached_has_bits & 0x00000008u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->cx(), target);
- }
- // optional float cy = 5 [default = 0];
- if (cached_has_bits & 0x00000010u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->cy(), target);
- }
- // optional float cz = 6 [default = 0];
- if (cached_has_bits & 0x00000020u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(6, this->cz(), target);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:velodyne.Calib_parameter)
- return target;
- }
- size_t Calib_parameter::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:velodyne.Calib_parameter)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- if (_has_bits_[0 / 32] & 63u) {
- // optional float r = 1 [default = 0];
- if (has_r()) {
- total_size += 1 + 4;
- }
- // optional float p = 2 [default = 0];
- if (has_p()) {
- total_size += 1 + 4;
- }
- // optional float y = 3 [default = 0];
- if (has_y()) {
- total_size += 1 + 4;
- }
- // optional float cx = 4 [default = 0];
- if (has_cx()) {
- total_size += 1 + 4;
- }
- // optional float cy = 5 [default = 0];
- if (has_cy()) {
- total_size += 1 + 4;
- }
- // optional float cz = 6 [default = 0];
- if (has_cz()) {
- total_size += 1 + 4;
- }
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = cached_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- return total_size;
- }
- void Calib_parameter::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:velodyne.Calib_parameter)
- GOOGLE_DCHECK_NE(&from, this);
- const Calib_parameter* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const Calib_parameter>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:velodyne.Calib_parameter)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:velodyne.Calib_parameter)
- MergeFrom(*source);
- }
- }
- void Calib_parameter::MergeFrom(const Calib_parameter& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:velodyne.Calib_parameter)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = from._has_bits_[0];
- if (cached_has_bits & 63u) {
- if (cached_has_bits & 0x00000001u) {
- r_ = from.r_;
- }
- if (cached_has_bits & 0x00000002u) {
- p_ = from.p_;
- }
- if (cached_has_bits & 0x00000004u) {
- y_ = from.y_;
- }
- if (cached_has_bits & 0x00000008u) {
- cx_ = from.cx_;
- }
- if (cached_has_bits & 0x00000010u) {
- cy_ = from.cy_;
- }
- if (cached_has_bits & 0x00000020u) {
- cz_ = from.cz_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- }
- void Calib_parameter::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:velodyne.Calib_parameter)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void Calib_parameter::CopyFrom(const Calib_parameter& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:velodyne.Calib_parameter)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool Calib_parameter::IsInitialized() const {
- return true;
- }
- void Calib_parameter::Swap(Calib_parameter* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void Calib_parameter::InternalSwap(Calib_parameter* other) {
- using std::swap;
- swap(r_, other->r_);
- swap(p_, other->p_);
- swap(y_, other->y_);
- swap(cx_, other->cx_);
- swap(cy_, other->cy_);
- swap(cz_, other->cz_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- swap(_cached_size_, other->_cached_size_);
- }
- ::google::protobuf::Metadata Calib_parameter::GetMetadata() const {
- protobuf_velodyne_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_velodyne_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // @@protoc_insertion_point(namespace_scope)
- } // namespace velodyne
- // @@protoc_insertion_point(global_scope)
|