123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598 |
- // 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 Calib_parameterDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<Calib_parameter>
- _instance;
- } _Calib_parameter_default_instance_;
- class RegionDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<Region>
- _instance;
- } _Region_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 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);
- }
- 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);
- }
- ::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_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneManagerParams, left_model_path_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneManagerParams, right_model_path_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneManagerParams, distribution_mode_),
- ~0u,
- ~0u,
- 0,
- 1,
- 2,
- 3,
- 4,
- 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, lidar_id_),
- 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,
- 7,
- 1,
- 2,
- 4,
- 8,
- 9,
- 5,
- 10,
- 6,
- 3,
- 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,
- 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_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, region_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, lidar_ids_),
- 0,
- 1,
- 2,
- 3,
- 4,
- 5,
- 6,
- ~0u,
- };
- static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- { 0, 12, sizeof(::velodyne::velodyneManagerParams)},
- { 19, 35, sizeof(::velodyne::velodyneLidarParams)},
- { 46, 57, sizeof(::velodyne::Calib_parameter)},
- { 63, 76, sizeof(::velodyne::Region)},
- };
- 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::_Calib_parameter_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::velodyne::_Region_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\"\377\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\022\031\n\017left_model_path\030\005 \001(\t:\000\022\032\n\020right_m"
- "odel_path\030\006 \001(\t:\000\022 \n\021distribution_mode\030\007"
- " \002(\010:\005false\"\227\002\n\023velodyneLidarParams\022\014\n\002i"
- "p\030\001 \002(\t:\000\022\022\n\004port\030\002 \002(\005:\0042368\022\024\n\005model\030\003"
- " \002(\t:\005VLP16\022\031\n\017calibrationFile\030\004 \002(\t:\000\022\023"
- "\n\010lidar_id\030\005 \002(\005:\0010\022\025\n\tmax_range\030\006 \001(\002:\002"
- "10\022\027\n\tmin_range\030\007 \001(\002:\0040.15\022\024\n\tmin_angle"
- "\030\010 \001(\005:\0010\022\026\n\tmax_angle\030\t \001(\005:\003360\022\020\n\003rpm"
- "\030\n \001(\005:\003600\022(\n\005calib\030\013 \001(\0132\031.velodyne.Ca"
- "lib_parameter\"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\""
- "\202\001\n\006Region\022\014\n\004minx\030\001 \002(\002\022\014\n\004maxx\030\002 \002(\002\022\014"
- "\n\004miny\030\003 \002(\002\022\014\n\004maxy\030\004 \002(\002\022\014\n\004minz\030\005 \002(\002"
- "\022\014\n\004maxz\030\006 \002(\002\022\021\n\tregion_id\030\007 \002(\005\022\021\n\tlid"
- "ar_ids\030\010 \003(\005"
- };
- ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
- descriptor, 812);
- ::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;
- const int velodyneManagerParams::kLeftModelPathFieldNumber;
- const int velodyneManagerParams::kRightModelPathFieldNumber;
- const int velodyneManagerParams::kDistributionModeFieldNumber;
- #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_);
- }
- left_model_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.has_left_model_path()) {
- left_model_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.left_model_path_);
- }
- right_model_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.has_right_model_path()) {
- right_model_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.right_model_path_);
- }
- distribution_mode_ = from.distribution_mode_;
- // @@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());
- left_model_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- right_model_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- distribution_mode_ = false;
- }
- 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());
- left_model_path_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- right_model_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 & 15u) {
- 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();
- }
- if (cached_has_bits & 0x00000004u) {
- GOOGLE_DCHECK(!left_model_path_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
- (*left_model_path_.UnsafeRawStringPointer())->clear();
- }
- if (cached_has_bits & 0x00000008u) {
- GOOGLE_DCHECK(!right_model_path_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
- (*right_model_path_.UnsafeRawStringPointer())->clear();
- }
- }
- distribution_mode_ = false;
- _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;
- }
- // optional string left_model_path = 5 [default = ""];
- case 5: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_left_model_path()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->left_model_path().data(), static_cast<int>(this->left_model_path().length()),
- ::google::protobuf::internal::WireFormat::PARSE,
- "velodyne.velodyneManagerParams.left_model_path");
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional string right_model_path = 6 [default = ""];
- case 6: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_right_model_path()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->right_model_path().data(), static_cast<int>(this->right_model_path().length()),
- ::google::protobuf::internal::WireFormat::PARSE,
- "velodyne.velodyneManagerParams.right_model_path");
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required bool distribution_mode = 7 [default = false];
- case 7: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
- set_has_distribution_mode();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
- input, &distribution_mode_)));
- } 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);
- }
- // optional string left_model_path = 5 [default = ""];
- if (cached_has_bits & 0x00000004u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->left_model_path().data(), static_cast<int>(this->left_model_path().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "velodyne.velodyneManagerParams.left_model_path");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 5, this->left_model_path(), output);
- }
- // optional string right_model_path = 6 [default = ""];
- if (cached_has_bits & 0x00000008u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->right_model_path().data(), static_cast<int>(this->right_model_path().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "velodyne.velodyneManagerParams.right_model_path");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 6, this->right_model_path(), output);
- }
- // required bool distribution_mode = 7 [default = false];
- if (cached_has_bits & 0x00000010u) {
- ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->distribution_mode(), 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);
- }
- // optional string left_model_path = 5 [default = ""];
- if (cached_has_bits & 0x00000004u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->left_model_path().data(), static_cast<int>(this->left_model_path().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "velodyne.velodyneManagerParams.left_model_path");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 5, this->left_model_path(), target);
- }
- // optional string right_model_path = 6 [default = ""];
- if (cached_has_bits & 0x00000008u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->right_model_path().data(), static_cast<int>(this->right_model_path().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "velodyne.velodyneManagerParams.right_model_path");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 6, this->right_model_path(), target);
- }
- // required bool distribution_mode = 7 [default = false];
- if (cached_has_bits & 0x00000010u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->distribution_mode(), 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());
- }
- // required bool distribution_mode = 7 [default = false];
- if (has_distribution_mode()) {
- total_size += 1 + 1;
- }
- // 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] & 15u) {
- // 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());
- }
- // optional string left_model_path = 5 [default = ""];
- if (has_left_model_path()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->left_model_path());
- }
- // optional string right_model_path = 6 [default = ""];
- if (has_right_model_path()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->right_model_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 & 31u) {
- 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_);
- }
- if (cached_has_bits & 0x00000004u) {
- set_has_left_model_path();
- left_model_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.left_model_path_);
- }
- if (cached_has_bits & 0x00000008u) {
- set_has_right_model_path();
- right_model_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.right_model_path_);
- }
- if (cached_has_bits & 0x00000010u) {
- distribution_mode_ = from.distribution_mode_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- }
- 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 ((_has_bits_[0] & 0x00000010) != 0x00000010) return false;
- 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_);
- left_model_path_.Swap(&other->left_model_path_);
- right_model_path_.Swap(&other->right_model_path_);
- swap(distribution_mode_, other->distribution_mode_);
- 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::kLidarIdFieldNumber;
- 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(&lidar_id_, &from.lidar_id_,
- static_cast<size_t>(reinterpret_cast<char*>(&max_angle_) -
- reinterpret_cast<char*>(&lidar_id_)) + 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) {
- ::memset(&lidar_id_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&min_angle_) -
- reinterpret_cast<char*>(&lidar_id_)) + sizeof(min_angle_));
- rpm_ = 600;
- port_ = 2368;
- }
- if (cached_has_bits & 1792u) {
- max_range_ = 10;
- 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;
- }
- // required int32 lidar_id = 5 [default = 0];
- case 5: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
- set_has_lidar_id();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &lidar_id_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional float max_range = 6 [default = 10];
- case 6: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(53u /* 53 & 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 = 7 [default = 0.15];
- case 7: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(61u /* 61 & 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 = 8 [default = 0];
- case 8: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(64u /* 64 & 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 = 9 [default = 360];
- case 9: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(72u /* 72 & 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 = 10 [default = 600];
- case 10: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(80u /* 80 & 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 = 11;
- case 11: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(90u /* 90 & 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 & 0x00000080u) {
- ::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);
- }
- // required int32 lidar_id = 5 [default = 0];
- if (cached_has_bits & 0x00000010u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->lidar_id(), output);
- }
- // optional float max_range = 6 [default = 10];
- if (cached_has_bits & 0x00000100u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(6, this->max_range(), output);
- }
- // optional float min_range = 7 [default = 0.15];
- if (cached_has_bits & 0x00000200u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(7, this->min_range(), output);
- }
- // optional int32 min_angle = 8 [default = 0];
- if (cached_has_bits & 0x00000020u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(8, this->min_angle(), output);
- }
- // optional int32 max_angle = 9 [default = 360];
- if (cached_has_bits & 0x00000400u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(9, this->max_angle(), output);
- }
- // optional int32 rpm = 10 [default = 600];
- if (cached_has_bits & 0x00000040u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(10, this->rpm(), output);
- }
- // optional .velodyne.Calib_parameter calib = 11;
- if (cached_has_bits & 0x00000008u) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 11, *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 & 0x00000080u) {
- 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);
- }
- // required int32 lidar_id = 5 [default = 0];
- if (cached_has_bits & 0x00000010u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->lidar_id(), target);
- }
- // optional float max_range = 6 [default = 10];
- if (cached_has_bits & 0x00000100u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(6, this->max_range(), target);
- }
- // optional float min_range = 7 [default = 0.15];
- if (cached_has_bits & 0x00000200u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(7, this->min_range(), target);
- }
- // optional int32 min_angle = 8 [default = 0];
- if (cached_has_bits & 0x00000020u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(8, this->min_angle(), target);
- }
- // optional int32 max_angle = 9 [default = 360];
- if (cached_has_bits & 0x00000400u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(9, this->max_angle(), target);
- }
- // optional int32 rpm = 10 [default = 600];
- if (cached_has_bits & 0x00000040u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(10, this->rpm(), target);
- }
- // optional .velodyne.Calib_parameter calib = 11;
- if (cached_has_bits & 0x00000008u) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 11, *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_lidar_id()) {
- // required int32 lidar_id = 5 [default = 0];
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->lidar_id());
- }
- 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] & 0x00000097) ^ 0x00000097) == 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 lidar_id = 5 [default = 0];
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->lidar_id());
- // required int32 port = 2 [default = 2368];
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->port());
- } else {
- total_size += RequiredFieldsByteSizeFallback();
- }
- // optional .velodyne.Calib_parameter calib = 11;
- if (has_calib()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *this->calib_);
- }
- if (_has_bits_[0 / 32] & 96u) {
- // optional int32 min_angle = 8 [default = 0];
- if (has_min_angle()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->min_angle());
- }
- // optional int32 rpm = 10 [default = 600];
- if (has_rpm()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->rpm());
- }
- }
- if (_has_bits_[8 / 32] & 1792u) {
- // optional float max_range = 6 [default = 10];
- if (has_max_range()) {
- total_size += 1 + 4;
- }
- // optional float min_range = 7 [default = 0.15];
- if (has_min_range()) {
- total_size += 1 + 4;
- }
- // optional int32 max_angle = 9 [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) {
- lidar_id_ = from.lidar_id_;
- }
- if (cached_has_bits & 0x00000020u) {
- min_angle_ = from.min_angle_;
- }
- if (cached_has_bits & 0x00000040u) {
- rpm_ = from.rpm_;
- }
- if (cached_has_bits & 0x00000080u) {
- port_ = from.port_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- if (cached_has_bits & 1792u) {
- if (cached_has_bits & 0x00000100u) {
- max_range_ = from.max_range_;
- }
- if (cached_has_bits & 0x00000200u) {
- min_range_ = from.min_range_;
- }
- if (cached_has_bits & 0x00000400u) {
- 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] & 0x00000097) != 0x00000097) 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(lidar_id_, other->lidar_id_);
- 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 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];
- }
- // ===================================================================
- 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;
- const int Region::kRegionIdFieldNumber;
- const int Region::kLidarIdsFieldNumber;
- #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),
- lidar_ids_(from.lidar_ids_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::memcpy(&minx_, &from.minx_,
- static_cast<size_t>(reinterpret_cast<char*>(®ion_id_) -
- reinterpret_cast<char*>(&minx_)) + sizeof(region_id_));
- // @@protoc_insertion_point(copy_constructor:velodyne.Region)
- }
- void Region::SharedCtor() {
- _cached_size_ = 0;
- ::memset(&minx_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(®ion_id_) -
- reinterpret_cast<char*>(&minx_)) + sizeof(region_id_));
- }
- 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;
- lidar_ids_.Clear();
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 127u) {
- ::memset(&minx_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(®ion_id_) -
- reinterpret_cast<char*>(&minx_)) + sizeof(region_id_));
- }
- _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;
- }
- // required int32 region_id = 7;
- case 7: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
- set_has_region_id();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, ®ion_id_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // repeated int32 lidar_ids = 8;
- case 8: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- 1, 64u, input, this->mutable_lidar_ids())));
- } else if (
- static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, this->mutable_lidar_ids())));
- } 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);
- }
- // required int32 region_id = 7;
- if (cached_has_bits & 0x00000040u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->region_id(), output);
- }
- // repeated int32 lidar_ids = 8;
- for (int i = 0, n = this->lidar_ids_size(); i < n; i++) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(
- 8, this->lidar_ids(i), 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);
- }
- // required int32 region_id = 7;
- if (cached_has_bits & 0x00000040u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->region_id(), target);
- }
- // repeated int32 lidar_ids = 8;
- target = ::google::protobuf::internal::WireFormatLite::
- WriteInt32ToArray(8, this->lidar_ids_, 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;
- }
- if (has_region_id()) {
- // required int32 region_id = 7;
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->region_id());
- }
- 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] & 0x0000007f) ^ 0x0000007f) == 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;
- // required int32 region_id = 7;
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->region_id());
- } else {
- total_size += RequiredFieldsByteSizeFallback();
- }
- // repeated int32 lidar_ids = 8;
- {
- size_t data_size = ::google::protobuf::internal::WireFormatLite::
- Int32Size(this->lidar_ids_);
- total_size += 1 *
- ::google::protobuf::internal::FromIntSize(this->lidar_ids_size());
- total_size += data_size;
- }
- 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;
- lidar_ids_.MergeFrom(from.lidar_ids_);
- cached_has_bits = from._has_bits_[0];
- if (cached_has_bits & 127u) {
- 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_;
- }
- if (cached_has_bits & 0x00000040u) {
- region_id_ = from.region_id_;
- }
- _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] & 0x0000007f) != 0x0000007f) return false;
- return true;
- }
- void Region::Swap(Region* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void Region::InternalSwap(Region* other) {
- using std::swap;
- lidar_ids_.InternalSwap(&other->lidar_ids_);
- 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(region_id_, other->region_id_);
- 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];
- }
- // @@protoc_insertion_point(namespace_scope)
- } // namespace velodyne
- // @@protoc_insertion_point(global_scope)
|