1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115 |
- // 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/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 protobuf_velodyne_5fconfig_2eproto {
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_velodyne_5fconfig_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_CalibParameter;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_velodyne_5fconfig_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Region;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_velodyne_5fconfig_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_lidarExtrinsic;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_velodyne_5fconfig_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_velodyneLidarParams;
- } // namespace protobuf_velodyne_5fconfig_2eproto
- 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 CalibParameterDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<CalibParameter>
- _instance;
- } _CalibParameter_default_instance_;
- class lidarExtrinsicDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<lidarExtrinsic>
- _instance;
- } _lidarExtrinsic_default_instance_;
- class RegionDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<Region>
- _instance;
- } _Region_default_instance_;
- } // namespace velodyne
- namespace protobuf_velodyne_5fconfig_2eproto {
- static void InitDefaultsvelodyneManagerParams() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::velodyne::_velodyneManagerParams_default_instance_;
- new (ptr) ::velodyne::velodyneManagerParams();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::velodyne::velodyneManagerParams::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<2> scc_info_velodyneManagerParams =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsvelodyneManagerParams}, {
- &protobuf_velodyne_5fconfig_2eproto::scc_info_velodyneLidarParams.base,
- &protobuf_velodyne_5fconfig_2eproto::scc_info_Region.base,}};
- static void InitDefaultsvelodyneLidarParams() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- ::velodyne::velodyneLidarParams::_i_give_permission_to_break_this_code_default_model_.DefaultConstruct();
- *::velodyne::velodyneLidarParams::_i_give_permission_to_break_this_code_default_model_.get_mutable() = ::std::string("VLP16", 5);
- ::google::protobuf::internal::OnShutdownDestroyString(
- ::velodyne::velodyneLidarParams::_i_give_permission_to_break_this_code_default_model_.get_mutable());
- {
- void* ptr = &::velodyne::_velodyneLidarParams_default_instance_;
- new (ptr) ::velodyne::velodyneLidarParams();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::velodyne::velodyneLidarParams::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<1> scc_info_velodyneLidarParams =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsvelodyneLidarParams}, {
- &protobuf_velodyne_5fconfig_2eproto::scc_info_CalibParameter.base,}};
- static void InitDefaultsCalibParameter() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::velodyne::_CalibParameter_default_instance_;
- new (ptr) ::velodyne::CalibParameter();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::velodyne::CalibParameter::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_CalibParameter =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCalibParameter}, {}};
- static void InitDefaultslidarExtrinsic() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::velodyne::_lidarExtrinsic_default_instance_;
- new (ptr) ::velodyne::lidarExtrinsic();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::velodyne::lidarExtrinsic::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<1> scc_info_lidarExtrinsic =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultslidarExtrinsic}, {
- &protobuf_velodyne_5fconfig_2eproto::scc_info_CalibParameter.base,}};
- static void InitDefaultsRegion() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::velodyne::_Region_default_instance_;
- new (ptr) ::velodyne::Region();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::velodyne::Region::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<1> scc_info_Region =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsRegion}, {
- &protobuf_velodyne_5fconfig_2eproto::scc_info_lidarExtrinsic.base,}};
- void InitDefaults() {
- ::google::protobuf::internal::InitSCC(&scc_info_velodyneManagerParams.base);
- ::google::protobuf::internal::InitSCC(&scc_info_velodyneLidarParams.base);
- ::google::protobuf::internal::InitSCC(&scc_info_CalibParameter.base);
- ::google::protobuf::internal::InitSCC(&scc_info_lidarExtrinsic.base);
- ::google::protobuf::internal::InitSCC(&scc_info_Region.base);
- }
- ::google::protobuf::Metadata file_level_metadata[5];
- 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::CalibParameter, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::CalibParameter, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::CalibParameter, r_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::CalibParameter, p_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::CalibParameter, y_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::CalibParameter, cx_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::CalibParameter, cy_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::CalibParameter, cz_),
- 0,
- 1,
- 2,
- 3,
- 4,
- 5,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::lidarExtrinsic, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::lidarExtrinsic, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::lidarExtrinsic, lidar_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::lidarExtrinsic, calib_),
- 1,
- 0,
- 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_exts_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, turnplate_cx_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, turnplate_cy_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, border_minx_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, border_maxx_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, plc_offsetx_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, plc_offsety_),
- 0,
- 1,
- 2,
- 3,
- 4,
- 5,
- 6,
- ~0u,
- 7,
- 8,
- 9,
- 10,
- 11,
- 12,
- };
- 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::CalibParameter)},
- { 63, 70, sizeof(::velodyne::lidarExtrinsic)},
- { 72, 91, 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::_CalibParameter_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::velodyne::_lidarExtrinsic_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::velodyne::_Region_default_instance_),
- };
- void protobuf_AssignDescriptors() {
- AddDescriptors();
- AssignDescriptors(
- "velodyne_config.proto", schemas, file_default_instances, TableStruct::offsets,
- file_level_metadata, NULL, NULL);
- }
- void protobuf_AssignDescriptorsOnce() {
- static ::google::protobuf::internal::once_flag once;
- ::google::protobuf::internal::call_once(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, 5);
- }
- 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\"\226\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\030.velodyne.Ca"
- "libParameter\"g\n\016CalibParameter\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\"K\n"
- "\016lidarExtrinsic\022\020\n\010lidar_id\030\001 \002(\005\022\'\n\005cal"
- "ib\030\002 \001(\0132\030.velodyne.CalibParameter\"\235\002\n\006R"
- "egion\022\014\n\004minx\030\001 \002(\002\022\014\n\004maxx\030\002 \002(\002\022\014\n\004min"
- "y\030\003 \002(\002\022\014\n\004maxy\030\004 \002(\002\022\014\n\004minz\030\005 \002(\002\022\014\n\004m"
- "axz\030\006 \002(\002\022\021\n\tregion_id\030\007 \002(\005\022,\n\nlidar_ex"
- "ts\030\010 \003(\0132\030.velodyne.lidarExtrinsic\022\024\n\014tu"
- "rnplate_cx\030\t \002(\002\022\024\n\014turnplate_cy\030\n \002(\002\022\023"
- "\n\013border_minx\030\013 \002(\002\022\023\n\013border_maxx\030\014 \002(\002"
- "\022\023\n\013plc_offsetx\030\r \002(\002\022\023\n\013plc_offsety\030\016 \002"
- "(\002"
- };
- ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
- descriptor, 1042);
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
- "velodyne_config.proto", &protobuf_RegisterTypes);
- }
- void AddDescriptors() {
- static ::google::protobuf::internal::once_flag once;
- ::google::protobuf::internal::call_once(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) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_velodyne_5fconfig_2eproto::scc_info_velodyneManagerParams.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:velodyne.velodyneManagerParams)
- }
- velodyneManagerParams::velodyneManagerParams(const velodyneManagerParams& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_),
- 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() {
- 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 {
- _cached_size_.Set(size);
- }
- 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() {
- ::google::protobuf::internal::InitSCC(&protobuf_velodyne_5fconfig_2eproto::scc_info_velodyneManagerParams.base);
- return *internal_default_instance();
- }
- 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) {
- fence_data_path_.ClearNonDefaultToEmptyNoArena();
- }
- if (cached_has_bits & 0x00000002u) {
- fence_log_path_.ClearNonDefaultToEmptyNoArena();
- }
- if (cached_has_bits & 0x00000004u) {
- left_model_path_.ClearNonDefaultToEmptyNoArena();
- }
- if (cached_has_bits & 0x00000008u) {
- right_model_path_.ClearNonDefaultToEmptyNoArena();
- }
- }
- 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);
- SetCachedSize(cached_size);
- 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;
- CastToBase(&velodyne_lidars_)->InternalSwap(CastToBase(&other->velodyne_lidars_));
- CastToBase(®ion_)->InternalSwap(CastToBase(&other->region_));
- fence_data_path_.Swap(&other->fence_data_path_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- fence_log_path_.Swap(&other->fence_log_path_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- left_model_path_.Swap(&other->left_model_path_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- right_model_path_.Swap(&other->right_model_path_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- swap(distribution_mode_, other->distribution_mode_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::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::CalibParameter*>(
- ::velodyne::CalibParameter::internal_default_instance());
- }
- ::google::protobuf::internal::ExplicitlyConstructed<::std::string> velodyneLidarParams::_i_give_permission_to_break_this_code_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) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_velodyne_5fconfig_2eproto::scc_info_velodyneLidarParams.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:velodyne.velodyneLidarParams)
- }
- velodyneLidarParams::velodyneLidarParams(const velodyneLidarParams& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_) {
- _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::_i_give_permission_to_break_this_code_default_model_.get());
- if (from.has_model()) {
- model_.AssignWithDefault(&::velodyne::velodyneLidarParams::_i_give_permission_to_break_this_code_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::CalibParameter(*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() {
- ip_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- model_.UnsafeSetDefault(&::velodyne::velodyneLidarParams::_i_give_permission_to_break_this_code_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::_i_give_permission_to_break_this_code_default_model_.get());
- calibrationfile_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (this != internal_default_instance()) delete calib_;
- }
- void velodyneLidarParams::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- 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() {
- ::google::protobuf::internal::InitSCC(&protobuf_velodyne_5fconfig_2eproto::scc_info_velodyneLidarParams.base);
- return *internal_default_instance();
- }
- 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) {
- ip_.ClearNonDefaultToEmptyNoArena();
- }
- if (cached_has_bits & 0x00000002u) {
- model_.UnsafeMutablePointer()->assign(*&::velodyne::velodyneLidarParams::_i_give_permission_to_break_this_code_default_model_.get());
- }
- if (cached_has_bits & 0x00000004u) {
- calibrationfile_.ClearNonDefaultToEmptyNoArena();
- }
- 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.CalibParameter 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.CalibParameter calib = 11;
- if (cached_has_bits & 0x00000008u) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 11, this->_internal_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.CalibParameter calib = 11;
- if (cached_has_bits & 0x00000008u) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 11, this->_internal_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.CalibParameter calib = 11;
- if (has_calib()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *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);
- SetCachedSize(cached_size);
- 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::_i_give_permission_to_break_this_code_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::CalibParameter::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_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- model_.Swap(&other->model_, &::velodyne::velodyneLidarParams::_i_give_permission_to_break_this_code_default_model_.get(),
- GetArenaNoVirtual());
- calibrationfile_.Swap(&other->calibrationfile_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- 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_);
- }
- ::google::protobuf::Metadata velodyneLidarParams::GetMetadata() const {
- protobuf_velodyne_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_velodyne_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void CalibParameter::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int CalibParameter::kRFieldNumber;
- const int CalibParameter::kPFieldNumber;
- const int CalibParameter::kYFieldNumber;
- const int CalibParameter::kCxFieldNumber;
- const int CalibParameter::kCyFieldNumber;
- const int CalibParameter::kCzFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- CalibParameter::CalibParameter()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_velodyne_5fconfig_2eproto::scc_info_CalibParameter.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:velodyne.CalibParameter)
- }
- CalibParameter::CalibParameter(const CalibParameter& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_) {
- _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.CalibParameter)
- }
- void CalibParameter::SharedCtor() {
- ::memset(&r_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&cz_) -
- reinterpret_cast<char*>(&r_)) + sizeof(cz_));
- }
- CalibParameter::~CalibParameter() {
- // @@protoc_insertion_point(destructor:velodyne.CalibParameter)
- SharedDtor();
- }
- void CalibParameter::SharedDtor() {
- }
- void CalibParameter::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* CalibParameter::descriptor() {
- ::protobuf_velodyne_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_velodyne_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const CalibParameter& CalibParameter::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_velodyne_5fconfig_2eproto::scc_info_CalibParameter.base);
- return *internal_default_instance();
- }
- void CalibParameter::Clear() {
- // @@protoc_insertion_point(message_clear_start:velodyne.CalibParameter)
- ::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 CalibParameter::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.CalibParameter)
- 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.CalibParameter)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:velodyne.CalibParameter)
- return false;
- #undef DO_
- }
- void CalibParameter::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:velodyne.CalibParameter)
- ::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.CalibParameter)
- }
- ::google::protobuf::uint8* CalibParameter::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:velodyne.CalibParameter)
- ::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.CalibParameter)
- return target;
- }
- size_t CalibParameter::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:velodyne.CalibParameter)
- 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);
- SetCachedSize(cached_size);
- return total_size;
- }
- void CalibParameter::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:velodyne.CalibParameter)
- GOOGLE_DCHECK_NE(&from, this);
- const CalibParameter* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const CalibParameter>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:velodyne.CalibParameter)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:velodyne.CalibParameter)
- MergeFrom(*source);
- }
- }
- void CalibParameter::MergeFrom(const CalibParameter& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:velodyne.CalibParameter)
- 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 CalibParameter::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:velodyne.CalibParameter)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void CalibParameter::CopyFrom(const CalibParameter& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:velodyne.CalibParameter)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool CalibParameter::IsInitialized() const {
- return true;
- }
- void CalibParameter::Swap(CalibParameter* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void CalibParameter::InternalSwap(CalibParameter* 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_);
- }
- ::google::protobuf::Metadata CalibParameter::GetMetadata() const {
- protobuf_velodyne_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_velodyne_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void lidarExtrinsic::InitAsDefaultInstance() {
- ::velodyne::_lidarExtrinsic_default_instance_._instance.get_mutable()->calib_ = const_cast< ::velodyne::CalibParameter*>(
- ::velodyne::CalibParameter::internal_default_instance());
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int lidarExtrinsic::kLidarIdFieldNumber;
- const int lidarExtrinsic::kCalibFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- lidarExtrinsic::lidarExtrinsic()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_velodyne_5fconfig_2eproto::scc_info_lidarExtrinsic.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:velodyne.lidarExtrinsic)
- }
- lidarExtrinsic::lidarExtrinsic(const lidarExtrinsic& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- if (from.has_calib()) {
- calib_ = new ::velodyne::CalibParameter(*from.calib_);
- } else {
- calib_ = NULL;
- }
- lidar_id_ = from.lidar_id_;
- // @@protoc_insertion_point(copy_constructor:velodyne.lidarExtrinsic)
- }
- void lidarExtrinsic::SharedCtor() {
- ::memset(&calib_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&lidar_id_) -
- reinterpret_cast<char*>(&calib_)) + sizeof(lidar_id_));
- }
- lidarExtrinsic::~lidarExtrinsic() {
- // @@protoc_insertion_point(destructor:velodyne.lidarExtrinsic)
- SharedDtor();
- }
- void lidarExtrinsic::SharedDtor() {
- if (this != internal_default_instance()) delete calib_;
- }
- void lidarExtrinsic::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* lidarExtrinsic::descriptor() {
- ::protobuf_velodyne_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_velodyne_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const lidarExtrinsic& lidarExtrinsic::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_velodyne_5fconfig_2eproto::scc_info_lidarExtrinsic.base);
- return *internal_default_instance();
- }
- void lidarExtrinsic::Clear() {
- // @@protoc_insertion_point(message_clear_start:velodyne.lidarExtrinsic)
- ::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 & 0x00000001u) {
- GOOGLE_DCHECK(calib_ != NULL);
- calib_->Clear();
- }
- lidar_id_ = 0;
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool lidarExtrinsic::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.lidarExtrinsic)
- 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 int32 lidar_id = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(8u /* 8 & 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 .velodyne.CalibParameter calib = 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, 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.lidarExtrinsic)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:velodyne.lidarExtrinsic)
- return false;
- #undef DO_
- }
- void lidarExtrinsic::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:velodyne.lidarExtrinsic)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // required int32 lidar_id = 1;
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->lidar_id(), output);
- }
- // optional .velodyne.CalibParameter calib = 2;
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 2, this->_internal_calib(), output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:velodyne.lidarExtrinsic)
- }
- ::google::protobuf::uint8* lidarExtrinsic::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:velodyne.lidarExtrinsic)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // required int32 lidar_id = 1;
- if (cached_has_bits & 0x00000002u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->lidar_id(), target);
- }
- // optional .velodyne.CalibParameter calib = 2;
- if (cached_has_bits & 0x00000001u) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 2, this->_internal_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.lidarExtrinsic)
- return target;
- }
- size_t lidarExtrinsic::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:velodyne.lidarExtrinsic)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- // required int32 lidar_id = 1;
- if (has_lidar_id()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->lidar_id());
- }
- // optional .velodyne.CalibParameter calib = 2;
- if (has_calib()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *calib_);
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void lidarExtrinsic::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:velodyne.lidarExtrinsic)
- GOOGLE_DCHECK_NE(&from, this);
- const lidarExtrinsic* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const lidarExtrinsic>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:velodyne.lidarExtrinsic)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:velodyne.lidarExtrinsic)
- MergeFrom(*source);
- }
- }
- void lidarExtrinsic::MergeFrom(const lidarExtrinsic& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:velodyne.lidarExtrinsic)
- 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 & 3u) {
- if (cached_has_bits & 0x00000001u) {
- mutable_calib()->::velodyne::CalibParameter::MergeFrom(from.calib());
- }
- if (cached_has_bits & 0x00000002u) {
- lidar_id_ = from.lidar_id_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- }
- void lidarExtrinsic::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:velodyne.lidarExtrinsic)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void lidarExtrinsic::CopyFrom(const lidarExtrinsic& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:velodyne.lidarExtrinsic)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool lidarExtrinsic::IsInitialized() const {
- if ((_has_bits_[0] & 0x00000002) != 0x00000002) return false;
- return true;
- }
- void lidarExtrinsic::Swap(lidarExtrinsic* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void lidarExtrinsic::InternalSwap(lidarExtrinsic* other) {
- using std::swap;
- swap(calib_, other->calib_);
- swap(lidar_id_, other->lidar_id_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata lidarExtrinsic::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::kLidarExtsFieldNumber;
- const int Region::kTurnplateCxFieldNumber;
- const int Region::kTurnplateCyFieldNumber;
- const int Region::kBorderMinxFieldNumber;
- const int Region::kBorderMaxxFieldNumber;
- const int Region::kPlcOffsetxFieldNumber;
- const int Region::kPlcOffsetyFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- Region::Region()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_velodyne_5fconfig_2eproto::scc_info_Region.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:velodyne.Region)
- }
- Region::Region(const Region& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_),
- lidar_exts_(from.lidar_exts_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::memcpy(&minx_, &from.minx_,
- static_cast<size_t>(reinterpret_cast<char*>(&plc_offsety_) -
- reinterpret_cast<char*>(&minx_)) + sizeof(plc_offsety_));
- // @@protoc_insertion_point(copy_constructor:velodyne.Region)
- }
- void Region::SharedCtor() {
- ::memset(&minx_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&plc_offsety_) -
- reinterpret_cast<char*>(&minx_)) + sizeof(plc_offsety_));
- }
- Region::~Region() {
- // @@protoc_insertion_point(destructor:velodyne.Region)
- SharedDtor();
- }
- void Region::SharedDtor() {
- }
- void Region::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- 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() {
- ::google::protobuf::internal::InitSCC(&protobuf_velodyne_5fconfig_2eproto::scc_info_Region.base);
- return *internal_default_instance();
- }
- 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_exts_.Clear();
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 255u) {
- ::memset(&minx_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&turnplate_cx_) -
- reinterpret_cast<char*>(&minx_)) + sizeof(turnplate_cx_));
- }
- if (cached_has_bits & 7936u) {
- ::memset(&turnplate_cy_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&plc_offsety_) -
- reinterpret_cast<char*>(&turnplate_cy_)) + sizeof(plc_offsety_));
- }
- _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 .velodyne.lidarExtrinsic lidar_exts = 8;
- case 8: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, add_lidar_exts()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required float turnplate_cx = 9;
- case 9: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(77u /* 77 & 0xFF */)) {
- set_has_turnplate_cx();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &turnplate_cx_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required float turnplate_cy = 10;
- case 10: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(85u /* 85 & 0xFF */)) {
- set_has_turnplate_cy();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &turnplate_cy_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required float border_minx = 11;
- case 11: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(93u /* 93 & 0xFF */)) {
- set_has_border_minx();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &border_minx_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required float border_maxx = 12;
- case 12: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(101u /* 101 & 0xFF */)) {
- set_has_border_maxx();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &border_maxx_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required float plc_offsetx = 13;
- case 13: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(109u /* 109 & 0xFF */)) {
- set_has_plc_offsetx();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &plc_offsetx_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required float plc_offsety = 14;
- case 14: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(117u /* 117 & 0xFF */)) {
- set_has_plc_offsety();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &plc_offsety_)));
- } 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 .velodyne.lidarExtrinsic lidar_exts = 8;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->lidar_exts_size()); i < n; i++) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 8,
- this->lidar_exts(static_cast<int>(i)),
- output);
- }
- // required float turnplate_cx = 9;
- if (cached_has_bits & 0x00000080u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(9, this->turnplate_cx(), output);
- }
- // required float turnplate_cy = 10;
- if (cached_has_bits & 0x00000100u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(10, this->turnplate_cy(), output);
- }
- // required float border_minx = 11;
- if (cached_has_bits & 0x00000200u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(11, this->border_minx(), output);
- }
- // required float border_maxx = 12;
- if (cached_has_bits & 0x00000400u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(12, this->border_maxx(), output);
- }
- // required float plc_offsetx = 13;
- if (cached_has_bits & 0x00000800u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(13, this->plc_offsetx(), output);
- }
- // required float plc_offsety = 14;
- if (cached_has_bits & 0x00001000u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(14, this->plc_offsety(), 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 .velodyne.lidarExtrinsic lidar_exts = 8;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->lidar_exts_size()); i < n; i++) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 8, this->lidar_exts(static_cast<int>(i)), deterministic, target);
- }
- // required float turnplate_cx = 9;
- if (cached_has_bits & 0x00000080u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(9, this->turnplate_cx(), target);
- }
- // required float turnplate_cy = 10;
- if (cached_has_bits & 0x00000100u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(10, this->turnplate_cy(), target);
- }
- // required float border_minx = 11;
- if (cached_has_bits & 0x00000200u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(11, this->border_minx(), target);
- }
- // required float border_maxx = 12;
- if (cached_has_bits & 0x00000400u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(12, this->border_maxx(), target);
- }
- // required float plc_offsetx = 13;
- if (cached_has_bits & 0x00000800u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(13, this->plc_offsetx(), target);
- }
- // required float plc_offsety = 14;
- if (cached_has_bits & 0x00001000u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(14, this->plc_offsety(), 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());
- }
- if (has_turnplate_cx()) {
- // required float turnplate_cx = 9;
- total_size += 1 + 4;
- }
- if (has_turnplate_cy()) {
- // required float turnplate_cy = 10;
- total_size += 1 + 4;
- }
- if (has_border_minx()) {
- // required float border_minx = 11;
- total_size += 1 + 4;
- }
- if (has_border_maxx()) {
- // required float border_maxx = 12;
- total_size += 1 + 4;
- }
- if (has_plc_offsetx()) {
- // required float plc_offsetx = 13;
- total_size += 1 + 4;
- }
- if (has_plc_offsety()) {
- // required float plc_offsety = 14;
- total_size += 1 + 4;
- }
- return total_size;
- }
- size_t Region::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:velodyne.Region)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- if (((_has_bits_[0] & 0x00001fff) ^ 0x00001fff) == 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());
- // required float turnplate_cx = 9;
- total_size += 1 + 4;
- // required float turnplate_cy = 10;
- total_size += 1 + 4;
- // required float border_minx = 11;
- total_size += 1 + 4;
- // required float border_maxx = 12;
- total_size += 1 + 4;
- // required float plc_offsetx = 13;
- total_size += 1 + 4;
- // required float plc_offsety = 14;
- total_size += 1 + 4;
- } else {
- total_size += RequiredFieldsByteSizeFallback();
- }
- // repeated .velodyne.lidarExtrinsic lidar_exts = 8;
- {
- unsigned int count = static_cast<unsigned int>(this->lidar_exts_size());
- total_size += 1UL * count;
- for (unsigned int i = 0; i < count; i++) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- this->lidar_exts(static_cast<int>(i)));
- }
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- 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_exts_.MergeFrom(from.lidar_exts_);
- cached_has_bits = from._has_bits_[0];
- if (cached_has_bits & 255u) {
- 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_;
- }
- if (cached_has_bits & 0x00000080u) {
- turnplate_cx_ = from.turnplate_cx_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- if (cached_has_bits & 7936u) {
- if (cached_has_bits & 0x00000100u) {
- turnplate_cy_ = from.turnplate_cy_;
- }
- if (cached_has_bits & 0x00000200u) {
- border_minx_ = from.border_minx_;
- }
- if (cached_has_bits & 0x00000400u) {
- border_maxx_ = from.border_maxx_;
- }
- if (cached_has_bits & 0x00000800u) {
- plc_offsetx_ = from.plc_offsetx_;
- }
- if (cached_has_bits & 0x00001000u) {
- plc_offsety_ = from.plc_offsety_;
- }
- _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] & 0x00001fff) != 0x00001fff) return false;
- if (!::google::protobuf::internal::AllAreInitialized(this->lidar_exts())) return false;
- return true;
- }
- void Region::Swap(Region* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void Region::InternalSwap(Region* other) {
- using std::swap;
- CastToBase(&lidar_exts_)->InternalSwap(CastToBase(&other->lidar_exts_));
- 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(turnplate_cx_, other->turnplate_cx_);
- swap(turnplate_cy_, other->turnplate_cy_);
- swap(border_minx_, other->border_minx_);
- swap(border_maxx_, other->border_maxx_);
- swap(plc_offsetx_, other->plc_offsetx_);
- swap(plc_offsety_, other->plc_offsety_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::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
- namespace google {
- namespace protobuf {
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::velodyne::velodyneManagerParams* Arena::CreateMaybeMessage< ::velodyne::velodyneManagerParams >(Arena* arena) {
- return Arena::CreateInternal< ::velodyne::velodyneManagerParams >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::velodyne::velodyneLidarParams* Arena::CreateMaybeMessage< ::velodyne::velodyneLidarParams >(Arena* arena) {
- return Arena::CreateInternal< ::velodyne::velodyneLidarParams >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::velodyne::CalibParameter* Arena::CreateMaybeMessage< ::velodyne::CalibParameter >(Arena* arena) {
- return Arena::CreateInternal< ::velodyne::CalibParameter >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::velodyne::lidarExtrinsic* Arena::CreateMaybeMessage< ::velodyne::lidarExtrinsic >(Arena* arena) {
- return Arena::CreateInternal< ::velodyne::lidarExtrinsic >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::velodyne::Region* Arena::CreateMaybeMessage< ::velodyne::Region >(Arena* arena) {
- return Arena::CreateInternal< ::velodyne::Region >(arena);
- }
- } // namespace protobuf
- } // namespace google
- // @@protoc_insertion_point(global_scope)
|