velodyne_config.pb.cc 116 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: velodyne_config.proto
  3. #include "velodyne_config.pb.h"
  4. #include <algorithm>
  5. #include <google/protobuf/stubs/common.h>
  6. #include <google/protobuf/stubs/port.h>
  7. #include <google/protobuf/io/coded_stream.h>
  8. #include <google/protobuf/wire_format_lite_inl.h>
  9. #include <google/protobuf/descriptor.h>
  10. #include <google/protobuf/generated_message_reflection.h>
  11. #include <google/protobuf/reflection_ops.h>
  12. #include <google/protobuf/wire_format.h>
  13. // This is a temporary google only hack
  14. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  15. #include "third_party/protobuf/version.h"
  16. #endif
  17. // @@protoc_insertion_point(includes)
  18. namespace protobuf_velodyne_5fconfig_2eproto {
  19. extern PROTOBUF_INTERNAL_EXPORT_protobuf_velodyne_5fconfig_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_CalibParameter;
  20. extern PROTOBUF_INTERNAL_EXPORT_protobuf_velodyne_5fconfig_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Region;
  21. extern PROTOBUF_INTERNAL_EXPORT_protobuf_velodyne_5fconfig_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_lidarExtrinsic;
  22. extern PROTOBUF_INTERNAL_EXPORT_protobuf_velodyne_5fconfig_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_velodyneLidarParams;
  23. } // namespace protobuf_velodyne_5fconfig_2eproto
  24. namespace velodyne {
  25. class velodyneManagerParamsDefaultTypeInternal {
  26. public:
  27. ::google::protobuf::internal::ExplicitlyConstructed<velodyneManagerParams>
  28. _instance;
  29. } _velodyneManagerParams_default_instance_;
  30. class velodyneLidarParamsDefaultTypeInternal {
  31. public:
  32. ::google::protobuf::internal::ExplicitlyConstructed<velodyneLidarParams>
  33. _instance;
  34. } _velodyneLidarParams_default_instance_;
  35. class CalibParameterDefaultTypeInternal {
  36. public:
  37. ::google::protobuf::internal::ExplicitlyConstructed<CalibParameter>
  38. _instance;
  39. } _CalibParameter_default_instance_;
  40. class lidarExtrinsicDefaultTypeInternal {
  41. public:
  42. ::google::protobuf::internal::ExplicitlyConstructed<lidarExtrinsic>
  43. _instance;
  44. } _lidarExtrinsic_default_instance_;
  45. class RegionDefaultTypeInternal {
  46. public:
  47. ::google::protobuf::internal::ExplicitlyConstructed<Region>
  48. _instance;
  49. } _Region_default_instance_;
  50. } // namespace velodyne
  51. namespace protobuf_velodyne_5fconfig_2eproto {
  52. static void InitDefaultsvelodyneManagerParams() {
  53. GOOGLE_PROTOBUF_VERIFY_VERSION;
  54. {
  55. void* ptr = &::velodyne::_velodyneManagerParams_default_instance_;
  56. new (ptr) ::velodyne::velodyneManagerParams();
  57. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  58. }
  59. ::velodyne::velodyneManagerParams::InitAsDefaultInstance();
  60. }
  61. ::google::protobuf::internal::SCCInfo<2> scc_info_velodyneManagerParams =
  62. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsvelodyneManagerParams}, {
  63. &protobuf_velodyne_5fconfig_2eproto::scc_info_velodyneLidarParams.base,
  64. &protobuf_velodyne_5fconfig_2eproto::scc_info_Region.base,}};
  65. static void InitDefaultsvelodyneLidarParams() {
  66. GOOGLE_PROTOBUF_VERIFY_VERSION;
  67. ::velodyne::velodyneLidarParams::_i_give_permission_to_break_this_code_default_model_.DefaultConstruct();
  68. *::velodyne::velodyneLidarParams::_i_give_permission_to_break_this_code_default_model_.get_mutable() = ::std::string("VLP16", 5);
  69. ::google::protobuf::internal::OnShutdownDestroyString(
  70. ::velodyne::velodyneLidarParams::_i_give_permission_to_break_this_code_default_model_.get_mutable());
  71. {
  72. void* ptr = &::velodyne::_velodyneLidarParams_default_instance_;
  73. new (ptr) ::velodyne::velodyneLidarParams();
  74. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  75. }
  76. ::velodyne::velodyneLidarParams::InitAsDefaultInstance();
  77. }
  78. ::google::protobuf::internal::SCCInfo<1> scc_info_velodyneLidarParams =
  79. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsvelodyneLidarParams}, {
  80. &protobuf_velodyne_5fconfig_2eproto::scc_info_CalibParameter.base,}};
  81. static void InitDefaultsCalibParameter() {
  82. GOOGLE_PROTOBUF_VERIFY_VERSION;
  83. {
  84. void* ptr = &::velodyne::_CalibParameter_default_instance_;
  85. new (ptr) ::velodyne::CalibParameter();
  86. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  87. }
  88. ::velodyne::CalibParameter::InitAsDefaultInstance();
  89. }
  90. ::google::protobuf::internal::SCCInfo<0> scc_info_CalibParameter =
  91. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCalibParameter}, {}};
  92. static void InitDefaultslidarExtrinsic() {
  93. GOOGLE_PROTOBUF_VERIFY_VERSION;
  94. {
  95. void* ptr = &::velodyne::_lidarExtrinsic_default_instance_;
  96. new (ptr) ::velodyne::lidarExtrinsic();
  97. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  98. }
  99. ::velodyne::lidarExtrinsic::InitAsDefaultInstance();
  100. }
  101. ::google::protobuf::internal::SCCInfo<1> scc_info_lidarExtrinsic =
  102. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultslidarExtrinsic}, {
  103. &protobuf_velodyne_5fconfig_2eproto::scc_info_CalibParameter.base,}};
  104. static void InitDefaultsRegion() {
  105. GOOGLE_PROTOBUF_VERIFY_VERSION;
  106. {
  107. void* ptr = &::velodyne::_Region_default_instance_;
  108. new (ptr) ::velodyne::Region();
  109. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  110. }
  111. ::velodyne::Region::InitAsDefaultInstance();
  112. }
  113. ::google::protobuf::internal::SCCInfo<1> scc_info_Region =
  114. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsRegion}, {
  115. &protobuf_velodyne_5fconfig_2eproto::scc_info_lidarExtrinsic.base,}};
  116. void InitDefaults() {
  117. ::google::protobuf::internal::InitSCC(&scc_info_velodyneManagerParams.base);
  118. ::google::protobuf::internal::InitSCC(&scc_info_velodyneLidarParams.base);
  119. ::google::protobuf::internal::InitSCC(&scc_info_CalibParameter.base);
  120. ::google::protobuf::internal::InitSCC(&scc_info_lidarExtrinsic.base);
  121. ::google::protobuf::internal::InitSCC(&scc_info_Region.base);
  122. }
  123. ::google::protobuf::Metadata file_level_metadata[5];
  124. const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  125. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneManagerParams, _has_bits_),
  126. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneManagerParams, _internal_metadata_),
  127. ~0u, // no _extensions_
  128. ~0u, // no _oneof_case_
  129. ~0u, // no _weak_field_map_
  130. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneManagerParams, velodyne_lidars_),
  131. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneManagerParams, region_),
  132. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneManagerParams, fence_data_path_),
  133. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneManagerParams, fence_log_path_),
  134. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneManagerParams, left_model_path_),
  135. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneManagerParams, right_model_path_),
  136. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneManagerParams, distribution_mode_),
  137. ~0u,
  138. ~0u,
  139. 0,
  140. 1,
  141. 2,
  142. 3,
  143. 4,
  144. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneLidarParams, _has_bits_),
  145. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneLidarParams, _internal_metadata_),
  146. ~0u, // no _extensions_
  147. ~0u, // no _oneof_case_
  148. ~0u, // no _weak_field_map_
  149. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneLidarParams, ip_),
  150. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneLidarParams, port_),
  151. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneLidarParams, model_),
  152. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneLidarParams, calibrationfile_),
  153. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneLidarParams, lidar_id_),
  154. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneLidarParams, max_range_),
  155. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneLidarParams, min_range_),
  156. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneLidarParams, min_angle_),
  157. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneLidarParams, max_angle_),
  158. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneLidarParams, rpm_),
  159. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneLidarParams, calib_),
  160. 0,
  161. 7,
  162. 1,
  163. 2,
  164. 4,
  165. 8,
  166. 9,
  167. 5,
  168. 10,
  169. 6,
  170. 3,
  171. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::CalibParameter, _has_bits_),
  172. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::CalibParameter, _internal_metadata_),
  173. ~0u, // no _extensions_
  174. ~0u, // no _oneof_case_
  175. ~0u, // no _weak_field_map_
  176. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::CalibParameter, r_),
  177. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::CalibParameter, p_),
  178. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::CalibParameter, y_),
  179. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::CalibParameter, cx_),
  180. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::CalibParameter, cy_),
  181. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::CalibParameter, cz_),
  182. 0,
  183. 1,
  184. 2,
  185. 3,
  186. 4,
  187. 5,
  188. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::lidarExtrinsic, _has_bits_),
  189. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::lidarExtrinsic, _internal_metadata_),
  190. ~0u, // no _extensions_
  191. ~0u, // no _oneof_case_
  192. ~0u, // no _weak_field_map_
  193. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::lidarExtrinsic, lidar_id_),
  194. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::lidarExtrinsic, calib_),
  195. 1,
  196. 0,
  197. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, _has_bits_),
  198. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, _internal_metadata_),
  199. ~0u, // no _extensions_
  200. ~0u, // no _oneof_case_
  201. ~0u, // no _weak_field_map_
  202. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, minx_),
  203. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, maxx_),
  204. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, miny_),
  205. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, maxy_),
  206. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, minz_),
  207. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, maxz_),
  208. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, region_id_),
  209. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, lidar_exts_),
  210. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, turnplate_cx_),
  211. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, turnplate_cy_),
  212. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, border_minx_),
  213. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, border_maxx_),
  214. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, plc_offsetx_),
  215. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, plc_offsety_),
  216. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, plc_border_miny_),
  217. 0,
  218. 1,
  219. 2,
  220. 3,
  221. 4,
  222. 5,
  223. 6,
  224. ~0u,
  225. 7,
  226. 8,
  227. 9,
  228. 10,
  229. 11,
  230. 12,
  231. 13,
  232. };
  233. static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  234. { 0, 12, sizeof(::velodyne::velodyneManagerParams)},
  235. { 19, 35, sizeof(::velodyne::velodyneLidarParams)},
  236. { 46, 57, sizeof(::velodyne::CalibParameter)},
  237. { 63, 70, sizeof(::velodyne::lidarExtrinsic)},
  238. { 72, 92, sizeof(::velodyne::Region)},
  239. };
  240. static ::google::protobuf::Message const * const file_default_instances[] = {
  241. reinterpret_cast<const ::google::protobuf::Message*>(&::velodyne::_velodyneManagerParams_default_instance_),
  242. reinterpret_cast<const ::google::protobuf::Message*>(&::velodyne::_velodyneLidarParams_default_instance_),
  243. reinterpret_cast<const ::google::protobuf::Message*>(&::velodyne::_CalibParameter_default_instance_),
  244. reinterpret_cast<const ::google::protobuf::Message*>(&::velodyne::_lidarExtrinsic_default_instance_),
  245. reinterpret_cast<const ::google::protobuf::Message*>(&::velodyne::_Region_default_instance_),
  246. };
  247. void protobuf_AssignDescriptors() {
  248. AddDescriptors();
  249. AssignDescriptors(
  250. "velodyne_config.proto", schemas, file_default_instances, TableStruct::offsets,
  251. file_level_metadata, NULL, NULL);
  252. }
  253. void protobuf_AssignDescriptorsOnce() {
  254. static ::google::protobuf::internal::once_flag once;
  255. ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
  256. }
  257. void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
  258. void protobuf_RegisterTypes(const ::std::string&) {
  259. protobuf_AssignDescriptorsOnce();
  260. ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 5);
  261. }
  262. void AddDescriptorsImpl() {
  263. InitDefaults();
  264. static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  265. "\n\025velodyne_config.proto\022\010velodyne\"\377\001\n\025ve"
  266. "lodyneManagerParams\0226\n\017velodyne_lidars\030\001"
  267. " \003(\0132\035.velodyne.velodyneLidarParams\022 \n\006r"
  268. "egion\030\002 \003(\0132\020.velodyne.Region\022\031\n\017fence_d"
  269. "ata_path\030\003 \001(\t:\000\022\030\n\016fence_log_path\030\004 \001(\t"
  270. ":\000\022\031\n\017left_model_path\030\005 \001(\t:\000\022\032\n\020right_m"
  271. "odel_path\030\006 \001(\t:\000\022 \n\021distribution_mode\030\007"
  272. " \002(\010:\005false\"\226\002\n\023velodyneLidarParams\022\014\n\002i"
  273. "p\030\001 \002(\t:\000\022\022\n\004port\030\002 \002(\005:\0042368\022\024\n\005model\030\003"
  274. " \002(\t:\005VLP16\022\031\n\017calibrationFile\030\004 \002(\t:\000\022\023"
  275. "\n\010lidar_id\030\005 \002(\005:\0010\022\025\n\tmax_range\030\006 \001(\002:\002"
  276. "10\022\027\n\tmin_range\030\007 \001(\002:\0040.15\022\024\n\tmin_angle"
  277. "\030\010 \001(\005:\0010\022\026\n\tmax_angle\030\t \001(\005:\003360\022\020\n\003rpm"
  278. "\030\n \001(\005:\003600\022\'\n\005calib\030\013 \001(\0132\030.velodyne.Ca"
  279. "libParameter\"g\n\016CalibParameter\022\014\n\001r\030\001 \001("
  280. "\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"
  281. " \001(\002:\0010\022\r\n\002cy\030\005 \001(\002:\0010\022\r\n\002cz\030\006 \001(\002:\0010\"K\n"
  282. "\016lidarExtrinsic\022\020\n\010lidar_id\030\001 \002(\005\022\'\n\005cal"
  283. "ib\030\002 \001(\0132\030.velodyne.CalibParameter\"\266\002\n\006R"
  284. "egion\022\014\n\004minx\030\001 \002(\002\022\014\n\004maxx\030\002 \002(\002\022\014\n\004min"
  285. "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"
  286. "axz\030\006 \002(\002\022\021\n\tregion_id\030\007 \002(\005\022,\n\nlidar_ex"
  287. "ts\030\010 \003(\0132\030.velodyne.lidarExtrinsic\022\024\n\014tu"
  288. "rnplate_cx\030\t \002(\002\022\024\n\014turnplate_cy\030\n \002(\002\022\023"
  289. "\n\013border_minx\030\013 \002(\002\022\023\n\013border_maxx\030\014 \002(\002"
  290. "\022\023\n\013plc_offsetx\030\r \002(\002\022\023\n\013plc_offsety\030\016 \002"
  291. "(\002\022\027\n\017plc_border_miny\030\017 \002(\002"
  292. };
  293. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  294. descriptor, 1067);
  295. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  296. "velodyne_config.proto", &protobuf_RegisterTypes);
  297. }
  298. void AddDescriptors() {
  299. static ::google::protobuf::internal::once_flag once;
  300. ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
  301. }
  302. // Force AddDescriptors() to be called at dynamic initialization time.
  303. struct StaticDescriptorInitializer {
  304. StaticDescriptorInitializer() {
  305. AddDescriptors();
  306. }
  307. } static_descriptor_initializer;
  308. } // namespace protobuf_velodyne_5fconfig_2eproto
  309. namespace velodyne {
  310. // ===================================================================
  311. void velodyneManagerParams::InitAsDefaultInstance() {
  312. }
  313. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  314. const int velodyneManagerParams::kVelodyneLidarsFieldNumber;
  315. const int velodyneManagerParams::kRegionFieldNumber;
  316. const int velodyneManagerParams::kFenceDataPathFieldNumber;
  317. const int velodyneManagerParams::kFenceLogPathFieldNumber;
  318. const int velodyneManagerParams::kLeftModelPathFieldNumber;
  319. const int velodyneManagerParams::kRightModelPathFieldNumber;
  320. const int velodyneManagerParams::kDistributionModeFieldNumber;
  321. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  322. velodyneManagerParams::velodyneManagerParams()
  323. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  324. ::google::protobuf::internal::InitSCC(
  325. &protobuf_velodyne_5fconfig_2eproto::scc_info_velodyneManagerParams.base);
  326. SharedCtor();
  327. // @@protoc_insertion_point(constructor:velodyne.velodyneManagerParams)
  328. }
  329. velodyneManagerParams::velodyneManagerParams(const velodyneManagerParams& from)
  330. : ::google::protobuf::Message(),
  331. _internal_metadata_(NULL),
  332. _has_bits_(from._has_bits_),
  333. velodyne_lidars_(from.velodyne_lidars_),
  334. region_(from.region_) {
  335. _internal_metadata_.MergeFrom(from._internal_metadata_);
  336. fence_data_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  337. if (from.has_fence_data_path()) {
  338. fence_data_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.fence_data_path_);
  339. }
  340. fence_log_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  341. if (from.has_fence_log_path()) {
  342. fence_log_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.fence_log_path_);
  343. }
  344. left_model_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  345. if (from.has_left_model_path()) {
  346. left_model_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.left_model_path_);
  347. }
  348. right_model_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  349. if (from.has_right_model_path()) {
  350. right_model_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.right_model_path_);
  351. }
  352. distribution_mode_ = from.distribution_mode_;
  353. // @@protoc_insertion_point(copy_constructor:velodyne.velodyneManagerParams)
  354. }
  355. void velodyneManagerParams::SharedCtor() {
  356. fence_data_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  357. fence_log_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  358. left_model_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  359. right_model_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  360. distribution_mode_ = false;
  361. }
  362. velodyneManagerParams::~velodyneManagerParams() {
  363. // @@protoc_insertion_point(destructor:velodyne.velodyneManagerParams)
  364. SharedDtor();
  365. }
  366. void velodyneManagerParams::SharedDtor() {
  367. fence_data_path_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  368. fence_log_path_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  369. left_model_path_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  370. right_model_path_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  371. }
  372. void velodyneManagerParams::SetCachedSize(int size) const {
  373. _cached_size_.Set(size);
  374. }
  375. const ::google::protobuf::Descriptor* velodyneManagerParams::descriptor() {
  376. ::protobuf_velodyne_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
  377. return ::protobuf_velodyne_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  378. }
  379. const velodyneManagerParams& velodyneManagerParams::default_instance() {
  380. ::google::protobuf::internal::InitSCC(&protobuf_velodyne_5fconfig_2eproto::scc_info_velodyneManagerParams.base);
  381. return *internal_default_instance();
  382. }
  383. void velodyneManagerParams::Clear() {
  384. // @@protoc_insertion_point(message_clear_start:velodyne.velodyneManagerParams)
  385. ::google::protobuf::uint32 cached_has_bits = 0;
  386. // Prevent compiler warnings about cached_has_bits being unused
  387. (void) cached_has_bits;
  388. velodyne_lidars_.Clear();
  389. region_.Clear();
  390. cached_has_bits = _has_bits_[0];
  391. if (cached_has_bits & 15u) {
  392. if (cached_has_bits & 0x00000001u) {
  393. fence_data_path_.ClearNonDefaultToEmptyNoArena();
  394. }
  395. if (cached_has_bits & 0x00000002u) {
  396. fence_log_path_.ClearNonDefaultToEmptyNoArena();
  397. }
  398. if (cached_has_bits & 0x00000004u) {
  399. left_model_path_.ClearNonDefaultToEmptyNoArena();
  400. }
  401. if (cached_has_bits & 0x00000008u) {
  402. right_model_path_.ClearNonDefaultToEmptyNoArena();
  403. }
  404. }
  405. distribution_mode_ = false;
  406. _has_bits_.Clear();
  407. _internal_metadata_.Clear();
  408. }
  409. bool velodyneManagerParams::MergePartialFromCodedStream(
  410. ::google::protobuf::io::CodedInputStream* input) {
  411. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  412. ::google::protobuf::uint32 tag;
  413. // @@protoc_insertion_point(parse_start:velodyne.velodyneManagerParams)
  414. for (;;) {
  415. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  416. tag = p.first;
  417. if (!p.second) goto handle_unusual;
  418. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  419. // repeated .velodyne.velodyneLidarParams velodyne_lidars = 1;
  420. case 1: {
  421. if (static_cast< ::google::protobuf::uint8>(tag) ==
  422. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  423. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  424. input, add_velodyne_lidars()));
  425. } else {
  426. goto handle_unusual;
  427. }
  428. break;
  429. }
  430. // repeated .velodyne.Region region = 2;
  431. case 2: {
  432. if (static_cast< ::google::protobuf::uint8>(tag) ==
  433. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  434. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  435. input, add_region()));
  436. } else {
  437. goto handle_unusual;
  438. }
  439. break;
  440. }
  441. // optional string fence_data_path = 3 [default = ""];
  442. case 3: {
  443. if (static_cast< ::google::protobuf::uint8>(tag) ==
  444. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  445. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  446. input, this->mutable_fence_data_path()));
  447. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  448. this->fence_data_path().data(), static_cast<int>(this->fence_data_path().length()),
  449. ::google::protobuf::internal::WireFormat::PARSE,
  450. "velodyne.velodyneManagerParams.fence_data_path");
  451. } else {
  452. goto handle_unusual;
  453. }
  454. break;
  455. }
  456. // optional string fence_log_path = 4 [default = ""];
  457. case 4: {
  458. if (static_cast< ::google::protobuf::uint8>(tag) ==
  459. static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
  460. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  461. input, this->mutable_fence_log_path()));
  462. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  463. this->fence_log_path().data(), static_cast<int>(this->fence_log_path().length()),
  464. ::google::protobuf::internal::WireFormat::PARSE,
  465. "velodyne.velodyneManagerParams.fence_log_path");
  466. } else {
  467. goto handle_unusual;
  468. }
  469. break;
  470. }
  471. // optional string left_model_path = 5 [default = ""];
  472. case 5: {
  473. if (static_cast< ::google::protobuf::uint8>(tag) ==
  474. static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
  475. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  476. input, this->mutable_left_model_path()));
  477. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  478. this->left_model_path().data(), static_cast<int>(this->left_model_path().length()),
  479. ::google::protobuf::internal::WireFormat::PARSE,
  480. "velodyne.velodyneManagerParams.left_model_path");
  481. } else {
  482. goto handle_unusual;
  483. }
  484. break;
  485. }
  486. // optional string right_model_path = 6 [default = ""];
  487. case 6: {
  488. if (static_cast< ::google::protobuf::uint8>(tag) ==
  489. static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
  490. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  491. input, this->mutable_right_model_path()));
  492. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  493. this->right_model_path().data(), static_cast<int>(this->right_model_path().length()),
  494. ::google::protobuf::internal::WireFormat::PARSE,
  495. "velodyne.velodyneManagerParams.right_model_path");
  496. } else {
  497. goto handle_unusual;
  498. }
  499. break;
  500. }
  501. // required bool distribution_mode = 7 [default = false];
  502. case 7: {
  503. if (static_cast< ::google::protobuf::uint8>(tag) ==
  504. static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
  505. set_has_distribution_mode();
  506. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  507. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  508. input, &distribution_mode_)));
  509. } else {
  510. goto handle_unusual;
  511. }
  512. break;
  513. }
  514. default: {
  515. handle_unusual:
  516. if (tag == 0) {
  517. goto success;
  518. }
  519. DO_(::google::protobuf::internal::WireFormat::SkipField(
  520. input, tag, _internal_metadata_.mutable_unknown_fields()));
  521. break;
  522. }
  523. }
  524. }
  525. success:
  526. // @@protoc_insertion_point(parse_success:velodyne.velodyneManagerParams)
  527. return true;
  528. failure:
  529. // @@protoc_insertion_point(parse_failure:velodyne.velodyneManagerParams)
  530. return false;
  531. #undef DO_
  532. }
  533. void velodyneManagerParams::SerializeWithCachedSizes(
  534. ::google::protobuf::io::CodedOutputStream* output) const {
  535. // @@protoc_insertion_point(serialize_start:velodyne.velodyneManagerParams)
  536. ::google::protobuf::uint32 cached_has_bits = 0;
  537. (void) cached_has_bits;
  538. // repeated .velodyne.velodyneLidarParams velodyne_lidars = 1;
  539. for (unsigned int i = 0,
  540. n = static_cast<unsigned int>(this->velodyne_lidars_size()); i < n; i++) {
  541. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  542. 1,
  543. this->velodyne_lidars(static_cast<int>(i)),
  544. output);
  545. }
  546. // repeated .velodyne.Region region = 2;
  547. for (unsigned int i = 0,
  548. n = static_cast<unsigned int>(this->region_size()); i < n; i++) {
  549. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  550. 2,
  551. this->region(static_cast<int>(i)),
  552. output);
  553. }
  554. cached_has_bits = _has_bits_[0];
  555. // optional string fence_data_path = 3 [default = ""];
  556. if (cached_has_bits & 0x00000001u) {
  557. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  558. this->fence_data_path().data(), static_cast<int>(this->fence_data_path().length()),
  559. ::google::protobuf::internal::WireFormat::SERIALIZE,
  560. "velodyne.velodyneManagerParams.fence_data_path");
  561. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  562. 3, this->fence_data_path(), output);
  563. }
  564. // optional string fence_log_path = 4 [default = ""];
  565. if (cached_has_bits & 0x00000002u) {
  566. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  567. this->fence_log_path().data(), static_cast<int>(this->fence_log_path().length()),
  568. ::google::protobuf::internal::WireFormat::SERIALIZE,
  569. "velodyne.velodyneManagerParams.fence_log_path");
  570. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  571. 4, this->fence_log_path(), output);
  572. }
  573. // optional string left_model_path = 5 [default = ""];
  574. if (cached_has_bits & 0x00000004u) {
  575. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  576. this->left_model_path().data(), static_cast<int>(this->left_model_path().length()),
  577. ::google::protobuf::internal::WireFormat::SERIALIZE,
  578. "velodyne.velodyneManagerParams.left_model_path");
  579. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  580. 5, this->left_model_path(), output);
  581. }
  582. // optional string right_model_path = 6 [default = ""];
  583. if (cached_has_bits & 0x00000008u) {
  584. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  585. this->right_model_path().data(), static_cast<int>(this->right_model_path().length()),
  586. ::google::protobuf::internal::WireFormat::SERIALIZE,
  587. "velodyne.velodyneManagerParams.right_model_path");
  588. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  589. 6, this->right_model_path(), output);
  590. }
  591. // required bool distribution_mode = 7 [default = false];
  592. if (cached_has_bits & 0x00000010u) {
  593. ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->distribution_mode(), output);
  594. }
  595. if (_internal_metadata_.have_unknown_fields()) {
  596. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  597. _internal_metadata_.unknown_fields(), output);
  598. }
  599. // @@protoc_insertion_point(serialize_end:velodyne.velodyneManagerParams)
  600. }
  601. ::google::protobuf::uint8* velodyneManagerParams::InternalSerializeWithCachedSizesToArray(
  602. bool deterministic, ::google::protobuf::uint8* target) const {
  603. (void)deterministic; // Unused
  604. // @@protoc_insertion_point(serialize_to_array_start:velodyne.velodyneManagerParams)
  605. ::google::protobuf::uint32 cached_has_bits = 0;
  606. (void) cached_has_bits;
  607. // repeated .velodyne.velodyneLidarParams velodyne_lidars = 1;
  608. for (unsigned int i = 0,
  609. n = static_cast<unsigned int>(this->velodyne_lidars_size()); i < n; i++) {
  610. target = ::google::protobuf::internal::WireFormatLite::
  611. InternalWriteMessageToArray(
  612. 1, this->velodyne_lidars(static_cast<int>(i)), deterministic, target);
  613. }
  614. // repeated .velodyne.Region region = 2;
  615. for (unsigned int i = 0,
  616. n = static_cast<unsigned int>(this->region_size()); i < n; i++) {
  617. target = ::google::protobuf::internal::WireFormatLite::
  618. InternalWriteMessageToArray(
  619. 2, this->region(static_cast<int>(i)), deterministic, target);
  620. }
  621. cached_has_bits = _has_bits_[0];
  622. // optional string fence_data_path = 3 [default = ""];
  623. if (cached_has_bits & 0x00000001u) {
  624. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  625. this->fence_data_path().data(), static_cast<int>(this->fence_data_path().length()),
  626. ::google::protobuf::internal::WireFormat::SERIALIZE,
  627. "velodyne.velodyneManagerParams.fence_data_path");
  628. target =
  629. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  630. 3, this->fence_data_path(), target);
  631. }
  632. // optional string fence_log_path = 4 [default = ""];
  633. if (cached_has_bits & 0x00000002u) {
  634. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  635. this->fence_log_path().data(), static_cast<int>(this->fence_log_path().length()),
  636. ::google::protobuf::internal::WireFormat::SERIALIZE,
  637. "velodyne.velodyneManagerParams.fence_log_path");
  638. target =
  639. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  640. 4, this->fence_log_path(), target);
  641. }
  642. // optional string left_model_path = 5 [default = ""];
  643. if (cached_has_bits & 0x00000004u) {
  644. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  645. this->left_model_path().data(), static_cast<int>(this->left_model_path().length()),
  646. ::google::protobuf::internal::WireFormat::SERIALIZE,
  647. "velodyne.velodyneManagerParams.left_model_path");
  648. target =
  649. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  650. 5, this->left_model_path(), target);
  651. }
  652. // optional string right_model_path = 6 [default = ""];
  653. if (cached_has_bits & 0x00000008u) {
  654. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  655. this->right_model_path().data(), static_cast<int>(this->right_model_path().length()),
  656. ::google::protobuf::internal::WireFormat::SERIALIZE,
  657. "velodyne.velodyneManagerParams.right_model_path");
  658. target =
  659. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  660. 6, this->right_model_path(), target);
  661. }
  662. // required bool distribution_mode = 7 [default = false];
  663. if (cached_has_bits & 0x00000010u) {
  664. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->distribution_mode(), target);
  665. }
  666. if (_internal_metadata_.have_unknown_fields()) {
  667. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  668. _internal_metadata_.unknown_fields(), target);
  669. }
  670. // @@protoc_insertion_point(serialize_to_array_end:velodyne.velodyneManagerParams)
  671. return target;
  672. }
  673. size_t velodyneManagerParams::ByteSizeLong() const {
  674. // @@protoc_insertion_point(message_byte_size_start:velodyne.velodyneManagerParams)
  675. size_t total_size = 0;
  676. if (_internal_metadata_.have_unknown_fields()) {
  677. total_size +=
  678. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  679. _internal_metadata_.unknown_fields());
  680. }
  681. // required bool distribution_mode = 7 [default = false];
  682. if (has_distribution_mode()) {
  683. total_size += 1 + 1;
  684. }
  685. // repeated .velodyne.velodyneLidarParams velodyne_lidars = 1;
  686. {
  687. unsigned int count = static_cast<unsigned int>(this->velodyne_lidars_size());
  688. total_size += 1UL * count;
  689. for (unsigned int i = 0; i < count; i++) {
  690. total_size +=
  691. ::google::protobuf::internal::WireFormatLite::MessageSize(
  692. this->velodyne_lidars(static_cast<int>(i)));
  693. }
  694. }
  695. // repeated .velodyne.Region region = 2;
  696. {
  697. unsigned int count = static_cast<unsigned int>(this->region_size());
  698. total_size += 1UL * count;
  699. for (unsigned int i = 0; i < count; i++) {
  700. total_size +=
  701. ::google::protobuf::internal::WireFormatLite::MessageSize(
  702. this->region(static_cast<int>(i)));
  703. }
  704. }
  705. if (_has_bits_[0 / 32] & 15u) {
  706. // optional string fence_data_path = 3 [default = ""];
  707. if (has_fence_data_path()) {
  708. total_size += 1 +
  709. ::google::protobuf::internal::WireFormatLite::StringSize(
  710. this->fence_data_path());
  711. }
  712. // optional string fence_log_path = 4 [default = ""];
  713. if (has_fence_log_path()) {
  714. total_size += 1 +
  715. ::google::protobuf::internal::WireFormatLite::StringSize(
  716. this->fence_log_path());
  717. }
  718. // optional string left_model_path = 5 [default = ""];
  719. if (has_left_model_path()) {
  720. total_size += 1 +
  721. ::google::protobuf::internal::WireFormatLite::StringSize(
  722. this->left_model_path());
  723. }
  724. // optional string right_model_path = 6 [default = ""];
  725. if (has_right_model_path()) {
  726. total_size += 1 +
  727. ::google::protobuf::internal::WireFormatLite::StringSize(
  728. this->right_model_path());
  729. }
  730. }
  731. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  732. SetCachedSize(cached_size);
  733. return total_size;
  734. }
  735. void velodyneManagerParams::MergeFrom(const ::google::protobuf::Message& from) {
  736. // @@protoc_insertion_point(generalized_merge_from_start:velodyne.velodyneManagerParams)
  737. GOOGLE_DCHECK_NE(&from, this);
  738. const velodyneManagerParams* source =
  739. ::google::protobuf::internal::DynamicCastToGenerated<const velodyneManagerParams>(
  740. &from);
  741. if (source == NULL) {
  742. // @@protoc_insertion_point(generalized_merge_from_cast_fail:velodyne.velodyneManagerParams)
  743. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  744. } else {
  745. // @@protoc_insertion_point(generalized_merge_from_cast_success:velodyne.velodyneManagerParams)
  746. MergeFrom(*source);
  747. }
  748. }
  749. void velodyneManagerParams::MergeFrom(const velodyneManagerParams& from) {
  750. // @@protoc_insertion_point(class_specific_merge_from_start:velodyne.velodyneManagerParams)
  751. GOOGLE_DCHECK_NE(&from, this);
  752. _internal_metadata_.MergeFrom(from._internal_metadata_);
  753. ::google::protobuf::uint32 cached_has_bits = 0;
  754. (void) cached_has_bits;
  755. velodyne_lidars_.MergeFrom(from.velodyne_lidars_);
  756. region_.MergeFrom(from.region_);
  757. cached_has_bits = from._has_bits_[0];
  758. if (cached_has_bits & 31u) {
  759. if (cached_has_bits & 0x00000001u) {
  760. set_has_fence_data_path();
  761. fence_data_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.fence_data_path_);
  762. }
  763. if (cached_has_bits & 0x00000002u) {
  764. set_has_fence_log_path();
  765. fence_log_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.fence_log_path_);
  766. }
  767. if (cached_has_bits & 0x00000004u) {
  768. set_has_left_model_path();
  769. left_model_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.left_model_path_);
  770. }
  771. if (cached_has_bits & 0x00000008u) {
  772. set_has_right_model_path();
  773. right_model_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.right_model_path_);
  774. }
  775. if (cached_has_bits & 0x00000010u) {
  776. distribution_mode_ = from.distribution_mode_;
  777. }
  778. _has_bits_[0] |= cached_has_bits;
  779. }
  780. }
  781. void velodyneManagerParams::CopyFrom(const ::google::protobuf::Message& from) {
  782. // @@protoc_insertion_point(generalized_copy_from_start:velodyne.velodyneManagerParams)
  783. if (&from == this) return;
  784. Clear();
  785. MergeFrom(from);
  786. }
  787. void velodyneManagerParams::CopyFrom(const velodyneManagerParams& from) {
  788. // @@protoc_insertion_point(class_specific_copy_from_start:velodyne.velodyneManagerParams)
  789. if (&from == this) return;
  790. Clear();
  791. MergeFrom(from);
  792. }
  793. bool velodyneManagerParams::IsInitialized() const {
  794. if ((_has_bits_[0] & 0x00000010) != 0x00000010) return false;
  795. if (!::google::protobuf::internal::AllAreInitialized(this->velodyne_lidars())) return false;
  796. if (!::google::protobuf::internal::AllAreInitialized(this->region())) return false;
  797. return true;
  798. }
  799. void velodyneManagerParams::Swap(velodyneManagerParams* other) {
  800. if (other == this) return;
  801. InternalSwap(other);
  802. }
  803. void velodyneManagerParams::InternalSwap(velodyneManagerParams* other) {
  804. using std::swap;
  805. CastToBase(&velodyne_lidars_)->InternalSwap(CastToBase(&other->velodyne_lidars_));
  806. CastToBase(&region_)->InternalSwap(CastToBase(&other->region_));
  807. fence_data_path_.Swap(&other->fence_data_path_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  808. GetArenaNoVirtual());
  809. fence_log_path_.Swap(&other->fence_log_path_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  810. GetArenaNoVirtual());
  811. left_model_path_.Swap(&other->left_model_path_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  812. GetArenaNoVirtual());
  813. right_model_path_.Swap(&other->right_model_path_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  814. GetArenaNoVirtual());
  815. swap(distribution_mode_, other->distribution_mode_);
  816. swap(_has_bits_[0], other->_has_bits_[0]);
  817. _internal_metadata_.Swap(&other->_internal_metadata_);
  818. }
  819. ::google::protobuf::Metadata velodyneManagerParams::GetMetadata() const {
  820. protobuf_velodyne_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
  821. return ::protobuf_velodyne_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages];
  822. }
  823. // ===================================================================
  824. void velodyneLidarParams::InitAsDefaultInstance() {
  825. ::velodyne::_velodyneLidarParams_default_instance_._instance.get_mutable()->calib_ = const_cast< ::velodyne::CalibParameter*>(
  826. ::velodyne::CalibParameter::internal_default_instance());
  827. }
  828. ::google::protobuf::internal::ExplicitlyConstructed<::std::string> velodyneLidarParams::_i_give_permission_to_break_this_code_default_model_;
  829. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  830. const int velodyneLidarParams::kIpFieldNumber;
  831. const int velodyneLidarParams::kPortFieldNumber;
  832. const int velodyneLidarParams::kModelFieldNumber;
  833. const int velodyneLidarParams::kCalibrationFileFieldNumber;
  834. const int velodyneLidarParams::kLidarIdFieldNumber;
  835. const int velodyneLidarParams::kMaxRangeFieldNumber;
  836. const int velodyneLidarParams::kMinRangeFieldNumber;
  837. const int velodyneLidarParams::kMinAngleFieldNumber;
  838. const int velodyneLidarParams::kMaxAngleFieldNumber;
  839. const int velodyneLidarParams::kRpmFieldNumber;
  840. const int velodyneLidarParams::kCalibFieldNumber;
  841. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  842. velodyneLidarParams::velodyneLidarParams()
  843. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  844. ::google::protobuf::internal::InitSCC(
  845. &protobuf_velodyne_5fconfig_2eproto::scc_info_velodyneLidarParams.base);
  846. SharedCtor();
  847. // @@protoc_insertion_point(constructor:velodyne.velodyneLidarParams)
  848. }
  849. velodyneLidarParams::velodyneLidarParams(const velodyneLidarParams& from)
  850. : ::google::protobuf::Message(),
  851. _internal_metadata_(NULL),
  852. _has_bits_(from._has_bits_) {
  853. _internal_metadata_.MergeFrom(from._internal_metadata_);
  854. ip_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  855. if (from.has_ip()) {
  856. ip_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ip_);
  857. }
  858. model_.UnsafeSetDefault(&::velodyne::velodyneLidarParams::_i_give_permission_to_break_this_code_default_model_.get());
  859. if (from.has_model()) {
  860. model_.AssignWithDefault(&::velodyne::velodyneLidarParams::_i_give_permission_to_break_this_code_default_model_.get(), from.model_);
  861. }
  862. calibrationfile_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  863. if (from.has_calibrationfile()) {
  864. calibrationfile_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.calibrationfile_);
  865. }
  866. if (from.has_calib()) {
  867. calib_ = new ::velodyne::CalibParameter(*from.calib_);
  868. } else {
  869. calib_ = NULL;
  870. }
  871. ::memcpy(&lidar_id_, &from.lidar_id_,
  872. static_cast<size_t>(reinterpret_cast<char*>(&max_angle_) -
  873. reinterpret_cast<char*>(&lidar_id_)) + sizeof(max_angle_));
  874. // @@protoc_insertion_point(copy_constructor:velodyne.velodyneLidarParams)
  875. }
  876. void velodyneLidarParams::SharedCtor() {
  877. ip_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  878. model_.UnsafeSetDefault(&::velodyne::velodyneLidarParams::_i_give_permission_to_break_this_code_default_model_.get());
  879. calibrationfile_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  880. ::memset(&calib_, 0, static_cast<size_t>(
  881. reinterpret_cast<char*>(&min_angle_) -
  882. reinterpret_cast<char*>(&calib_)) + sizeof(min_angle_));
  883. rpm_ = 600;
  884. port_ = 2368;
  885. max_range_ = 10;
  886. min_range_ = 0.15f;
  887. max_angle_ = 360;
  888. }
  889. velodyneLidarParams::~velodyneLidarParams() {
  890. // @@protoc_insertion_point(destructor:velodyne.velodyneLidarParams)
  891. SharedDtor();
  892. }
  893. void velodyneLidarParams::SharedDtor() {
  894. ip_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  895. model_.DestroyNoArena(&::velodyne::velodyneLidarParams::_i_give_permission_to_break_this_code_default_model_.get());
  896. calibrationfile_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  897. if (this != internal_default_instance()) delete calib_;
  898. }
  899. void velodyneLidarParams::SetCachedSize(int size) const {
  900. _cached_size_.Set(size);
  901. }
  902. const ::google::protobuf::Descriptor* velodyneLidarParams::descriptor() {
  903. ::protobuf_velodyne_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
  904. return ::protobuf_velodyne_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  905. }
  906. const velodyneLidarParams& velodyneLidarParams::default_instance() {
  907. ::google::protobuf::internal::InitSCC(&protobuf_velodyne_5fconfig_2eproto::scc_info_velodyneLidarParams.base);
  908. return *internal_default_instance();
  909. }
  910. void velodyneLidarParams::Clear() {
  911. // @@protoc_insertion_point(message_clear_start:velodyne.velodyneLidarParams)
  912. ::google::protobuf::uint32 cached_has_bits = 0;
  913. // Prevent compiler warnings about cached_has_bits being unused
  914. (void) cached_has_bits;
  915. cached_has_bits = _has_bits_[0];
  916. if (cached_has_bits & 15u) {
  917. if (cached_has_bits & 0x00000001u) {
  918. ip_.ClearNonDefaultToEmptyNoArena();
  919. }
  920. if (cached_has_bits & 0x00000002u) {
  921. model_.UnsafeMutablePointer()->assign(*&::velodyne::velodyneLidarParams::_i_give_permission_to_break_this_code_default_model_.get());
  922. }
  923. if (cached_has_bits & 0x00000004u) {
  924. calibrationfile_.ClearNonDefaultToEmptyNoArena();
  925. }
  926. if (cached_has_bits & 0x00000008u) {
  927. GOOGLE_DCHECK(calib_ != NULL);
  928. calib_->Clear();
  929. }
  930. }
  931. if (cached_has_bits & 240u) {
  932. ::memset(&lidar_id_, 0, static_cast<size_t>(
  933. reinterpret_cast<char*>(&min_angle_) -
  934. reinterpret_cast<char*>(&lidar_id_)) + sizeof(min_angle_));
  935. rpm_ = 600;
  936. port_ = 2368;
  937. }
  938. if (cached_has_bits & 1792u) {
  939. max_range_ = 10;
  940. min_range_ = 0.15f;
  941. max_angle_ = 360;
  942. }
  943. _has_bits_.Clear();
  944. _internal_metadata_.Clear();
  945. }
  946. bool velodyneLidarParams::MergePartialFromCodedStream(
  947. ::google::protobuf::io::CodedInputStream* input) {
  948. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  949. ::google::protobuf::uint32 tag;
  950. // @@protoc_insertion_point(parse_start:velodyne.velodyneLidarParams)
  951. for (;;) {
  952. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  953. tag = p.first;
  954. if (!p.second) goto handle_unusual;
  955. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  956. // required string ip = 1 [default = ""];
  957. case 1: {
  958. if (static_cast< ::google::protobuf::uint8>(tag) ==
  959. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  960. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  961. input, this->mutable_ip()));
  962. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  963. this->ip().data(), static_cast<int>(this->ip().length()),
  964. ::google::protobuf::internal::WireFormat::PARSE,
  965. "velodyne.velodyneLidarParams.ip");
  966. } else {
  967. goto handle_unusual;
  968. }
  969. break;
  970. }
  971. // required int32 port = 2 [default = 2368];
  972. case 2: {
  973. if (static_cast< ::google::protobuf::uint8>(tag) ==
  974. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  975. set_has_port();
  976. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  977. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  978. input, &port_)));
  979. } else {
  980. goto handle_unusual;
  981. }
  982. break;
  983. }
  984. // required string model = 3 [default = "VLP16"];
  985. case 3: {
  986. if (static_cast< ::google::protobuf::uint8>(tag) ==
  987. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  988. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  989. input, this->mutable_model()));
  990. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  991. this->model().data(), static_cast<int>(this->model().length()),
  992. ::google::protobuf::internal::WireFormat::PARSE,
  993. "velodyne.velodyneLidarParams.model");
  994. } else {
  995. goto handle_unusual;
  996. }
  997. break;
  998. }
  999. // required string calibrationFile = 4 [default = ""];
  1000. case 4: {
  1001. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1002. static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
  1003. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1004. input, this->mutable_calibrationfile()));
  1005. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1006. this->calibrationfile().data(), static_cast<int>(this->calibrationfile().length()),
  1007. ::google::protobuf::internal::WireFormat::PARSE,
  1008. "velodyne.velodyneLidarParams.calibrationFile");
  1009. } else {
  1010. goto handle_unusual;
  1011. }
  1012. break;
  1013. }
  1014. // required int32 lidar_id = 5 [default = 0];
  1015. case 5: {
  1016. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1017. static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
  1018. set_has_lidar_id();
  1019. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1020. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1021. input, &lidar_id_)));
  1022. } else {
  1023. goto handle_unusual;
  1024. }
  1025. break;
  1026. }
  1027. // optional float max_range = 6 [default = 10];
  1028. case 6: {
  1029. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1030. static_cast< ::google::protobuf::uint8>(53u /* 53 & 0xFF */)) {
  1031. set_has_max_range();
  1032. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1033. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1034. input, &max_range_)));
  1035. } else {
  1036. goto handle_unusual;
  1037. }
  1038. break;
  1039. }
  1040. // optional float min_range = 7 [default = 0.15];
  1041. case 7: {
  1042. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1043. static_cast< ::google::protobuf::uint8>(61u /* 61 & 0xFF */)) {
  1044. set_has_min_range();
  1045. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1046. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1047. input, &min_range_)));
  1048. } else {
  1049. goto handle_unusual;
  1050. }
  1051. break;
  1052. }
  1053. // optional int32 min_angle = 8 [default = 0];
  1054. case 8: {
  1055. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1056. static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) {
  1057. set_has_min_angle();
  1058. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1059. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1060. input, &min_angle_)));
  1061. } else {
  1062. goto handle_unusual;
  1063. }
  1064. break;
  1065. }
  1066. // optional int32 max_angle = 9 [default = 360];
  1067. case 9: {
  1068. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1069. static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
  1070. set_has_max_angle();
  1071. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1072. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1073. input, &max_angle_)));
  1074. } else {
  1075. goto handle_unusual;
  1076. }
  1077. break;
  1078. }
  1079. // optional int32 rpm = 10 [default = 600];
  1080. case 10: {
  1081. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1082. static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) {
  1083. set_has_rpm();
  1084. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1085. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1086. input, &rpm_)));
  1087. } else {
  1088. goto handle_unusual;
  1089. }
  1090. break;
  1091. }
  1092. // optional .velodyne.CalibParameter calib = 11;
  1093. case 11: {
  1094. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1095. static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) {
  1096. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1097. input, mutable_calib()));
  1098. } else {
  1099. goto handle_unusual;
  1100. }
  1101. break;
  1102. }
  1103. default: {
  1104. handle_unusual:
  1105. if (tag == 0) {
  1106. goto success;
  1107. }
  1108. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1109. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1110. break;
  1111. }
  1112. }
  1113. }
  1114. success:
  1115. // @@protoc_insertion_point(parse_success:velodyne.velodyneLidarParams)
  1116. return true;
  1117. failure:
  1118. // @@protoc_insertion_point(parse_failure:velodyne.velodyneLidarParams)
  1119. return false;
  1120. #undef DO_
  1121. }
  1122. void velodyneLidarParams::SerializeWithCachedSizes(
  1123. ::google::protobuf::io::CodedOutputStream* output) const {
  1124. // @@protoc_insertion_point(serialize_start:velodyne.velodyneLidarParams)
  1125. ::google::protobuf::uint32 cached_has_bits = 0;
  1126. (void) cached_has_bits;
  1127. cached_has_bits = _has_bits_[0];
  1128. // required string ip = 1 [default = ""];
  1129. if (cached_has_bits & 0x00000001u) {
  1130. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1131. this->ip().data(), static_cast<int>(this->ip().length()),
  1132. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1133. "velodyne.velodyneLidarParams.ip");
  1134. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1135. 1, this->ip(), output);
  1136. }
  1137. // required int32 port = 2 [default = 2368];
  1138. if (cached_has_bits & 0x00000080u) {
  1139. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->port(), output);
  1140. }
  1141. // required string model = 3 [default = "VLP16"];
  1142. if (cached_has_bits & 0x00000002u) {
  1143. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1144. this->model().data(), static_cast<int>(this->model().length()),
  1145. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1146. "velodyne.velodyneLidarParams.model");
  1147. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1148. 3, this->model(), output);
  1149. }
  1150. // required string calibrationFile = 4 [default = ""];
  1151. if (cached_has_bits & 0x00000004u) {
  1152. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1153. this->calibrationfile().data(), static_cast<int>(this->calibrationfile().length()),
  1154. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1155. "velodyne.velodyneLidarParams.calibrationFile");
  1156. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1157. 4, this->calibrationfile(), output);
  1158. }
  1159. // required int32 lidar_id = 5 [default = 0];
  1160. if (cached_has_bits & 0x00000010u) {
  1161. ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->lidar_id(), output);
  1162. }
  1163. // optional float max_range = 6 [default = 10];
  1164. if (cached_has_bits & 0x00000100u) {
  1165. ::google::protobuf::internal::WireFormatLite::WriteFloat(6, this->max_range(), output);
  1166. }
  1167. // optional float min_range = 7 [default = 0.15];
  1168. if (cached_has_bits & 0x00000200u) {
  1169. ::google::protobuf::internal::WireFormatLite::WriteFloat(7, this->min_range(), output);
  1170. }
  1171. // optional int32 min_angle = 8 [default = 0];
  1172. if (cached_has_bits & 0x00000020u) {
  1173. ::google::protobuf::internal::WireFormatLite::WriteInt32(8, this->min_angle(), output);
  1174. }
  1175. // optional int32 max_angle = 9 [default = 360];
  1176. if (cached_has_bits & 0x00000400u) {
  1177. ::google::protobuf::internal::WireFormatLite::WriteInt32(9, this->max_angle(), output);
  1178. }
  1179. // optional int32 rpm = 10 [default = 600];
  1180. if (cached_has_bits & 0x00000040u) {
  1181. ::google::protobuf::internal::WireFormatLite::WriteInt32(10, this->rpm(), output);
  1182. }
  1183. // optional .velodyne.CalibParameter calib = 11;
  1184. if (cached_has_bits & 0x00000008u) {
  1185. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1186. 11, this->_internal_calib(), output);
  1187. }
  1188. if (_internal_metadata_.have_unknown_fields()) {
  1189. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1190. _internal_metadata_.unknown_fields(), output);
  1191. }
  1192. // @@protoc_insertion_point(serialize_end:velodyne.velodyneLidarParams)
  1193. }
  1194. ::google::protobuf::uint8* velodyneLidarParams::InternalSerializeWithCachedSizesToArray(
  1195. bool deterministic, ::google::protobuf::uint8* target) const {
  1196. (void)deterministic; // Unused
  1197. // @@protoc_insertion_point(serialize_to_array_start:velodyne.velodyneLidarParams)
  1198. ::google::protobuf::uint32 cached_has_bits = 0;
  1199. (void) cached_has_bits;
  1200. cached_has_bits = _has_bits_[0];
  1201. // required string ip = 1 [default = ""];
  1202. if (cached_has_bits & 0x00000001u) {
  1203. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1204. this->ip().data(), static_cast<int>(this->ip().length()),
  1205. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1206. "velodyne.velodyneLidarParams.ip");
  1207. target =
  1208. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1209. 1, this->ip(), target);
  1210. }
  1211. // required int32 port = 2 [default = 2368];
  1212. if (cached_has_bits & 0x00000080u) {
  1213. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->port(), target);
  1214. }
  1215. // required string model = 3 [default = "VLP16"];
  1216. if (cached_has_bits & 0x00000002u) {
  1217. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1218. this->model().data(), static_cast<int>(this->model().length()),
  1219. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1220. "velodyne.velodyneLidarParams.model");
  1221. target =
  1222. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1223. 3, this->model(), target);
  1224. }
  1225. // required string calibrationFile = 4 [default = ""];
  1226. if (cached_has_bits & 0x00000004u) {
  1227. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1228. this->calibrationfile().data(), static_cast<int>(this->calibrationfile().length()),
  1229. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1230. "velodyne.velodyneLidarParams.calibrationFile");
  1231. target =
  1232. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1233. 4, this->calibrationfile(), target);
  1234. }
  1235. // required int32 lidar_id = 5 [default = 0];
  1236. if (cached_has_bits & 0x00000010u) {
  1237. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->lidar_id(), target);
  1238. }
  1239. // optional float max_range = 6 [default = 10];
  1240. if (cached_has_bits & 0x00000100u) {
  1241. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(6, this->max_range(), target);
  1242. }
  1243. // optional float min_range = 7 [default = 0.15];
  1244. if (cached_has_bits & 0x00000200u) {
  1245. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(7, this->min_range(), target);
  1246. }
  1247. // optional int32 min_angle = 8 [default = 0];
  1248. if (cached_has_bits & 0x00000020u) {
  1249. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(8, this->min_angle(), target);
  1250. }
  1251. // optional int32 max_angle = 9 [default = 360];
  1252. if (cached_has_bits & 0x00000400u) {
  1253. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(9, this->max_angle(), target);
  1254. }
  1255. // optional int32 rpm = 10 [default = 600];
  1256. if (cached_has_bits & 0x00000040u) {
  1257. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(10, this->rpm(), target);
  1258. }
  1259. // optional .velodyne.CalibParameter calib = 11;
  1260. if (cached_has_bits & 0x00000008u) {
  1261. target = ::google::protobuf::internal::WireFormatLite::
  1262. InternalWriteMessageToArray(
  1263. 11, this->_internal_calib(), deterministic, target);
  1264. }
  1265. if (_internal_metadata_.have_unknown_fields()) {
  1266. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1267. _internal_metadata_.unknown_fields(), target);
  1268. }
  1269. // @@protoc_insertion_point(serialize_to_array_end:velodyne.velodyneLidarParams)
  1270. return target;
  1271. }
  1272. size_t velodyneLidarParams::RequiredFieldsByteSizeFallback() const {
  1273. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:velodyne.velodyneLidarParams)
  1274. size_t total_size = 0;
  1275. if (has_ip()) {
  1276. // required string ip = 1 [default = ""];
  1277. total_size += 1 +
  1278. ::google::protobuf::internal::WireFormatLite::StringSize(
  1279. this->ip());
  1280. }
  1281. if (has_model()) {
  1282. // required string model = 3 [default = "VLP16"];
  1283. total_size += 1 +
  1284. ::google::protobuf::internal::WireFormatLite::StringSize(
  1285. this->model());
  1286. }
  1287. if (has_calibrationfile()) {
  1288. // required string calibrationFile = 4 [default = ""];
  1289. total_size += 1 +
  1290. ::google::protobuf::internal::WireFormatLite::StringSize(
  1291. this->calibrationfile());
  1292. }
  1293. if (has_lidar_id()) {
  1294. // required int32 lidar_id = 5 [default = 0];
  1295. total_size += 1 +
  1296. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1297. this->lidar_id());
  1298. }
  1299. if (has_port()) {
  1300. // required int32 port = 2 [default = 2368];
  1301. total_size += 1 +
  1302. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1303. this->port());
  1304. }
  1305. return total_size;
  1306. }
  1307. size_t velodyneLidarParams::ByteSizeLong() const {
  1308. // @@protoc_insertion_point(message_byte_size_start:velodyne.velodyneLidarParams)
  1309. size_t total_size = 0;
  1310. if (_internal_metadata_.have_unknown_fields()) {
  1311. total_size +=
  1312. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1313. _internal_metadata_.unknown_fields());
  1314. }
  1315. if (((_has_bits_[0] & 0x00000097) ^ 0x00000097) == 0) { // All required fields are present.
  1316. // required string ip = 1 [default = ""];
  1317. total_size += 1 +
  1318. ::google::protobuf::internal::WireFormatLite::StringSize(
  1319. this->ip());
  1320. // required string model = 3 [default = "VLP16"];
  1321. total_size += 1 +
  1322. ::google::protobuf::internal::WireFormatLite::StringSize(
  1323. this->model());
  1324. // required string calibrationFile = 4 [default = ""];
  1325. total_size += 1 +
  1326. ::google::protobuf::internal::WireFormatLite::StringSize(
  1327. this->calibrationfile());
  1328. // required int32 lidar_id = 5 [default = 0];
  1329. total_size += 1 +
  1330. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1331. this->lidar_id());
  1332. // required int32 port = 2 [default = 2368];
  1333. total_size += 1 +
  1334. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1335. this->port());
  1336. } else {
  1337. total_size += RequiredFieldsByteSizeFallback();
  1338. }
  1339. // optional .velodyne.CalibParameter calib = 11;
  1340. if (has_calib()) {
  1341. total_size += 1 +
  1342. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1343. *calib_);
  1344. }
  1345. if (_has_bits_[0 / 32] & 96u) {
  1346. // optional int32 min_angle = 8 [default = 0];
  1347. if (has_min_angle()) {
  1348. total_size += 1 +
  1349. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1350. this->min_angle());
  1351. }
  1352. // optional int32 rpm = 10 [default = 600];
  1353. if (has_rpm()) {
  1354. total_size += 1 +
  1355. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1356. this->rpm());
  1357. }
  1358. }
  1359. if (_has_bits_[8 / 32] & 1792u) {
  1360. // optional float max_range = 6 [default = 10];
  1361. if (has_max_range()) {
  1362. total_size += 1 + 4;
  1363. }
  1364. // optional float min_range = 7 [default = 0.15];
  1365. if (has_min_range()) {
  1366. total_size += 1 + 4;
  1367. }
  1368. // optional int32 max_angle = 9 [default = 360];
  1369. if (has_max_angle()) {
  1370. total_size += 1 +
  1371. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1372. this->max_angle());
  1373. }
  1374. }
  1375. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1376. SetCachedSize(cached_size);
  1377. return total_size;
  1378. }
  1379. void velodyneLidarParams::MergeFrom(const ::google::protobuf::Message& from) {
  1380. // @@protoc_insertion_point(generalized_merge_from_start:velodyne.velodyneLidarParams)
  1381. GOOGLE_DCHECK_NE(&from, this);
  1382. const velodyneLidarParams* source =
  1383. ::google::protobuf::internal::DynamicCastToGenerated<const velodyneLidarParams>(
  1384. &from);
  1385. if (source == NULL) {
  1386. // @@protoc_insertion_point(generalized_merge_from_cast_fail:velodyne.velodyneLidarParams)
  1387. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1388. } else {
  1389. // @@protoc_insertion_point(generalized_merge_from_cast_success:velodyne.velodyneLidarParams)
  1390. MergeFrom(*source);
  1391. }
  1392. }
  1393. void velodyneLidarParams::MergeFrom(const velodyneLidarParams& from) {
  1394. // @@protoc_insertion_point(class_specific_merge_from_start:velodyne.velodyneLidarParams)
  1395. GOOGLE_DCHECK_NE(&from, this);
  1396. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1397. ::google::protobuf::uint32 cached_has_bits = 0;
  1398. (void) cached_has_bits;
  1399. cached_has_bits = from._has_bits_[0];
  1400. if (cached_has_bits & 255u) {
  1401. if (cached_has_bits & 0x00000001u) {
  1402. set_has_ip();
  1403. ip_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ip_);
  1404. }
  1405. if (cached_has_bits & 0x00000002u) {
  1406. set_has_model();
  1407. model_.AssignWithDefault(&::velodyne::velodyneLidarParams::_i_give_permission_to_break_this_code_default_model_.get(), from.model_);
  1408. }
  1409. if (cached_has_bits & 0x00000004u) {
  1410. set_has_calibrationfile();
  1411. calibrationfile_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.calibrationfile_);
  1412. }
  1413. if (cached_has_bits & 0x00000008u) {
  1414. mutable_calib()->::velodyne::CalibParameter::MergeFrom(from.calib());
  1415. }
  1416. if (cached_has_bits & 0x00000010u) {
  1417. lidar_id_ = from.lidar_id_;
  1418. }
  1419. if (cached_has_bits & 0x00000020u) {
  1420. min_angle_ = from.min_angle_;
  1421. }
  1422. if (cached_has_bits & 0x00000040u) {
  1423. rpm_ = from.rpm_;
  1424. }
  1425. if (cached_has_bits & 0x00000080u) {
  1426. port_ = from.port_;
  1427. }
  1428. _has_bits_[0] |= cached_has_bits;
  1429. }
  1430. if (cached_has_bits & 1792u) {
  1431. if (cached_has_bits & 0x00000100u) {
  1432. max_range_ = from.max_range_;
  1433. }
  1434. if (cached_has_bits & 0x00000200u) {
  1435. min_range_ = from.min_range_;
  1436. }
  1437. if (cached_has_bits & 0x00000400u) {
  1438. max_angle_ = from.max_angle_;
  1439. }
  1440. _has_bits_[0] |= cached_has_bits;
  1441. }
  1442. }
  1443. void velodyneLidarParams::CopyFrom(const ::google::protobuf::Message& from) {
  1444. // @@protoc_insertion_point(generalized_copy_from_start:velodyne.velodyneLidarParams)
  1445. if (&from == this) return;
  1446. Clear();
  1447. MergeFrom(from);
  1448. }
  1449. void velodyneLidarParams::CopyFrom(const velodyneLidarParams& from) {
  1450. // @@protoc_insertion_point(class_specific_copy_from_start:velodyne.velodyneLidarParams)
  1451. if (&from == this) return;
  1452. Clear();
  1453. MergeFrom(from);
  1454. }
  1455. bool velodyneLidarParams::IsInitialized() const {
  1456. if ((_has_bits_[0] & 0x00000097) != 0x00000097) return false;
  1457. return true;
  1458. }
  1459. void velodyneLidarParams::Swap(velodyneLidarParams* other) {
  1460. if (other == this) return;
  1461. InternalSwap(other);
  1462. }
  1463. void velodyneLidarParams::InternalSwap(velodyneLidarParams* other) {
  1464. using std::swap;
  1465. ip_.Swap(&other->ip_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1466. GetArenaNoVirtual());
  1467. model_.Swap(&other->model_, &::velodyne::velodyneLidarParams::_i_give_permission_to_break_this_code_default_model_.get(),
  1468. GetArenaNoVirtual());
  1469. calibrationfile_.Swap(&other->calibrationfile_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1470. GetArenaNoVirtual());
  1471. swap(calib_, other->calib_);
  1472. swap(lidar_id_, other->lidar_id_);
  1473. swap(min_angle_, other->min_angle_);
  1474. swap(rpm_, other->rpm_);
  1475. swap(port_, other->port_);
  1476. swap(max_range_, other->max_range_);
  1477. swap(min_range_, other->min_range_);
  1478. swap(max_angle_, other->max_angle_);
  1479. swap(_has_bits_[0], other->_has_bits_[0]);
  1480. _internal_metadata_.Swap(&other->_internal_metadata_);
  1481. }
  1482. ::google::protobuf::Metadata velodyneLidarParams::GetMetadata() const {
  1483. protobuf_velodyne_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
  1484. return ::protobuf_velodyne_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages];
  1485. }
  1486. // ===================================================================
  1487. void CalibParameter::InitAsDefaultInstance() {
  1488. }
  1489. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1490. const int CalibParameter::kRFieldNumber;
  1491. const int CalibParameter::kPFieldNumber;
  1492. const int CalibParameter::kYFieldNumber;
  1493. const int CalibParameter::kCxFieldNumber;
  1494. const int CalibParameter::kCyFieldNumber;
  1495. const int CalibParameter::kCzFieldNumber;
  1496. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1497. CalibParameter::CalibParameter()
  1498. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1499. ::google::protobuf::internal::InitSCC(
  1500. &protobuf_velodyne_5fconfig_2eproto::scc_info_CalibParameter.base);
  1501. SharedCtor();
  1502. // @@protoc_insertion_point(constructor:velodyne.CalibParameter)
  1503. }
  1504. CalibParameter::CalibParameter(const CalibParameter& from)
  1505. : ::google::protobuf::Message(),
  1506. _internal_metadata_(NULL),
  1507. _has_bits_(from._has_bits_) {
  1508. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1509. ::memcpy(&r_, &from.r_,
  1510. static_cast<size_t>(reinterpret_cast<char*>(&cz_) -
  1511. reinterpret_cast<char*>(&r_)) + sizeof(cz_));
  1512. // @@protoc_insertion_point(copy_constructor:velodyne.CalibParameter)
  1513. }
  1514. void CalibParameter::SharedCtor() {
  1515. ::memset(&r_, 0, static_cast<size_t>(
  1516. reinterpret_cast<char*>(&cz_) -
  1517. reinterpret_cast<char*>(&r_)) + sizeof(cz_));
  1518. }
  1519. CalibParameter::~CalibParameter() {
  1520. // @@protoc_insertion_point(destructor:velodyne.CalibParameter)
  1521. SharedDtor();
  1522. }
  1523. void CalibParameter::SharedDtor() {
  1524. }
  1525. void CalibParameter::SetCachedSize(int size) const {
  1526. _cached_size_.Set(size);
  1527. }
  1528. const ::google::protobuf::Descriptor* CalibParameter::descriptor() {
  1529. ::protobuf_velodyne_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
  1530. return ::protobuf_velodyne_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1531. }
  1532. const CalibParameter& CalibParameter::default_instance() {
  1533. ::google::protobuf::internal::InitSCC(&protobuf_velodyne_5fconfig_2eproto::scc_info_CalibParameter.base);
  1534. return *internal_default_instance();
  1535. }
  1536. void CalibParameter::Clear() {
  1537. // @@protoc_insertion_point(message_clear_start:velodyne.CalibParameter)
  1538. ::google::protobuf::uint32 cached_has_bits = 0;
  1539. // Prevent compiler warnings about cached_has_bits being unused
  1540. (void) cached_has_bits;
  1541. cached_has_bits = _has_bits_[0];
  1542. if (cached_has_bits & 63u) {
  1543. ::memset(&r_, 0, static_cast<size_t>(
  1544. reinterpret_cast<char*>(&cz_) -
  1545. reinterpret_cast<char*>(&r_)) + sizeof(cz_));
  1546. }
  1547. _has_bits_.Clear();
  1548. _internal_metadata_.Clear();
  1549. }
  1550. bool CalibParameter::MergePartialFromCodedStream(
  1551. ::google::protobuf::io::CodedInputStream* input) {
  1552. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1553. ::google::protobuf::uint32 tag;
  1554. // @@protoc_insertion_point(parse_start:velodyne.CalibParameter)
  1555. for (;;) {
  1556. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1557. tag = p.first;
  1558. if (!p.second) goto handle_unusual;
  1559. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1560. // optional float r = 1 [default = 0];
  1561. case 1: {
  1562. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1563. static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
  1564. set_has_r();
  1565. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1566. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1567. input, &r_)));
  1568. } else {
  1569. goto handle_unusual;
  1570. }
  1571. break;
  1572. }
  1573. // optional float p = 2 [default = 0];
  1574. case 2: {
  1575. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1576. static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
  1577. set_has_p();
  1578. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1579. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1580. input, &p_)));
  1581. } else {
  1582. goto handle_unusual;
  1583. }
  1584. break;
  1585. }
  1586. // optional float y = 3 [default = 0];
  1587. case 3: {
  1588. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1589. static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
  1590. set_has_y();
  1591. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1592. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1593. input, &y_)));
  1594. } else {
  1595. goto handle_unusual;
  1596. }
  1597. break;
  1598. }
  1599. // optional float cx = 4 [default = 0];
  1600. case 4: {
  1601. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1602. static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) {
  1603. set_has_cx();
  1604. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1605. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1606. input, &cx_)));
  1607. } else {
  1608. goto handle_unusual;
  1609. }
  1610. break;
  1611. }
  1612. // optional float cy = 5 [default = 0];
  1613. case 5: {
  1614. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1615. static_cast< ::google::protobuf::uint8>(45u /* 45 & 0xFF */)) {
  1616. set_has_cy();
  1617. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1618. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1619. input, &cy_)));
  1620. } else {
  1621. goto handle_unusual;
  1622. }
  1623. break;
  1624. }
  1625. // optional float cz = 6 [default = 0];
  1626. case 6: {
  1627. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1628. static_cast< ::google::protobuf::uint8>(53u /* 53 & 0xFF */)) {
  1629. set_has_cz();
  1630. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1631. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1632. input, &cz_)));
  1633. } else {
  1634. goto handle_unusual;
  1635. }
  1636. break;
  1637. }
  1638. default: {
  1639. handle_unusual:
  1640. if (tag == 0) {
  1641. goto success;
  1642. }
  1643. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1644. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1645. break;
  1646. }
  1647. }
  1648. }
  1649. success:
  1650. // @@protoc_insertion_point(parse_success:velodyne.CalibParameter)
  1651. return true;
  1652. failure:
  1653. // @@protoc_insertion_point(parse_failure:velodyne.CalibParameter)
  1654. return false;
  1655. #undef DO_
  1656. }
  1657. void CalibParameter::SerializeWithCachedSizes(
  1658. ::google::protobuf::io::CodedOutputStream* output) const {
  1659. // @@protoc_insertion_point(serialize_start:velodyne.CalibParameter)
  1660. ::google::protobuf::uint32 cached_has_bits = 0;
  1661. (void) cached_has_bits;
  1662. cached_has_bits = _has_bits_[0];
  1663. // optional float r = 1 [default = 0];
  1664. if (cached_has_bits & 0x00000001u) {
  1665. ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->r(), output);
  1666. }
  1667. // optional float p = 2 [default = 0];
  1668. if (cached_has_bits & 0x00000002u) {
  1669. ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->p(), output);
  1670. }
  1671. // optional float y = 3 [default = 0];
  1672. if (cached_has_bits & 0x00000004u) {
  1673. ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->y(), output);
  1674. }
  1675. // optional float cx = 4 [default = 0];
  1676. if (cached_has_bits & 0x00000008u) {
  1677. ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->cx(), output);
  1678. }
  1679. // optional float cy = 5 [default = 0];
  1680. if (cached_has_bits & 0x00000010u) {
  1681. ::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->cy(), output);
  1682. }
  1683. // optional float cz = 6 [default = 0];
  1684. if (cached_has_bits & 0x00000020u) {
  1685. ::google::protobuf::internal::WireFormatLite::WriteFloat(6, this->cz(), output);
  1686. }
  1687. if (_internal_metadata_.have_unknown_fields()) {
  1688. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1689. _internal_metadata_.unknown_fields(), output);
  1690. }
  1691. // @@protoc_insertion_point(serialize_end:velodyne.CalibParameter)
  1692. }
  1693. ::google::protobuf::uint8* CalibParameter::InternalSerializeWithCachedSizesToArray(
  1694. bool deterministic, ::google::protobuf::uint8* target) const {
  1695. (void)deterministic; // Unused
  1696. // @@protoc_insertion_point(serialize_to_array_start:velodyne.CalibParameter)
  1697. ::google::protobuf::uint32 cached_has_bits = 0;
  1698. (void) cached_has_bits;
  1699. cached_has_bits = _has_bits_[0];
  1700. // optional float r = 1 [default = 0];
  1701. if (cached_has_bits & 0x00000001u) {
  1702. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->r(), target);
  1703. }
  1704. // optional float p = 2 [default = 0];
  1705. if (cached_has_bits & 0x00000002u) {
  1706. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->p(), target);
  1707. }
  1708. // optional float y = 3 [default = 0];
  1709. if (cached_has_bits & 0x00000004u) {
  1710. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->y(), target);
  1711. }
  1712. // optional float cx = 4 [default = 0];
  1713. if (cached_has_bits & 0x00000008u) {
  1714. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->cx(), target);
  1715. }
  1716. // optional float cy = 5 [default = 0];
  1717. if (cached_has_bits & 0x00000010u) {
  1718. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->cy(), target);
  1719. }
  1720. // optional float cz = 6 [default = 0];
  1721. if (cached_has_bits & 0x00000020u) {
  1722. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(6, this->cz(), target);
  1723. }
  1724. if (_internal_metadata_.have_unknown_fields()) {
  1725. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1726. _internal_metadata_.unknown_fields(), target);
  1727. }
  1728. // @@protoc_insertion_point(serialize_to_array_end:velodyne.CalibParameter)
  1729. return target;
  1730. }
  1731. size_t CalibParameter::ByteSizeLong() const {
  1732. // @@protoc_insertion_point(message_byte_size_start:velodyne.CalibParameter)
  1733. size_t total_size = 0;
  1734. if (_internal_metadata_.have_unknown_fields()) {
  1735. total_size +=
  1736. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1737. _internal_metadata_.unknown_fields());
  1738. }
  1739. if (_has_bits_[0 / 32] & 63u) {
  1740. // optional float r = 1 [default = 0];
  1741. if (has_r()) {
  1742. total_size += 1 + 4;
  1743. }
  1744. // optional float p = 2 [default = 0];
  1745. if (has_p()) {
  1746. total_size += 1 + 4;
  1747. }
  1748. // optional float y = 3 [default = 0];
  1749. if (has_y()) {
  1750. total_size += 1 + 4;
  1751. }
  1752. // optional float cx = 4 [default = 0];
  1753. if (has_cx()) {
  1754. total_size += 1 + 4;
  1755. }
  1756. // optional float cy = 5 [default = 0];
  1757. if (has_cy()) {
  1758. total_size += 1 + 4;
  1759. }
  1760. // optional float cz = 6 [default = 0];
  1761. if (has_cz()) {
  1762. total_size += 1 + 4;
  1763. }
  1764. }
  1765. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1766. SetCachedSize(cached_size);
  1767. return total_size;
  1768. }
  1769. void CalibParameter::MergeFrom(const ::google::protobuf::Message& from) {
  1770. // @@protoc_insertion_point(generalized_merge_from_start:velodyne.CalibParameter)
  1771. GOOGLE_DCHECK_NE(&from, this);
  1772. const CalibParameter* source =
  1773. ::google::protobuf::internal::DynamicCastToGenerated<const CalibParameter>(
  1774. &from);
  1775. if (source == NULL) {
  1776. // @@protoc_insertion_point(generalized_merge_from_cast_fail:velodyne.CalibParameter)
  1777. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1778. } else {
  1779. // @@protoc_insertion_point(generalized_merge_from_cast_success:velodyne.CalibParameter)
  1780. MergeFrom(*source);
  1781. }
  1782. }
  1783. void CalibParameter::MergeFrom(const CalibParameter& from) {
  1784. // @@protoc_insertion_point(class_specific_merge_from_start:velodyne.CalibParameter)
  1785. GOOGLE_DCHECK_NE(&from, this);
  1786. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1787. ::google::protobuf::uint32 cached_has_bits = 0;
  1788. (void) cached_has_bits;
  1789. cached_has_bits = from._has_bits_[0];
  1790. if (cached_has_bits & 63u) {
  1791. if (cached_has_bits & 0x00000001u) {
  1792. r_ = from.r_;
  1793. }
  1794. if (cached_has_bits & 0x00000002u) {
  1795. p_ = from.p_;
  1796. }
  1797. if (cached_has_bits & 0x00000004u) {
  1798. y_ = from.y_;
  1799. }
  1800. if (cached_has_bits & 0x00000008u) {
  1801. cx_ = from.cx_;
  1802. }
  1803. if (cached_has_bits & 0x00000010u) {
  1804. cy_ = from.cy_;
  1805. }
  1806. if (cached_has_bits & 0x00000020u) {
  1807. cz_ = from.cz_;
  1808. }
  1809. _has_bits_[0] |= cached_has_bits;
  1810. }
  1811. }
  1812. void CalibParameter::CopyFrom(const ::google::protobuf::Message& from) {
  1813. // @@protoc_insertion_point(generalized_copy_from_start:velodyne.CalibParameter)
  1814. if (&from == this) return;
  1815. Clear();
  1816. MergeFrom(from);
  1817. }
  1818. void CalibParameter::CopyFrom(const CalibParameter& from) {
  1819. // @@protoc_insertion_point(class_specific_copy_from_start:velodyne.CalibParameter)
  1820. if (&from == this) return;
  1821. Clear();
  1822. MergeFrom(from);
  1823. }
  1824. bool CalibParameter::IsInitialized() const {
  1825. return true;
  1826. }
  1827. void CalibParameter::Swap(CalibParameter* other) {
  1828. if (other == this) return;
  1829. InternalSwap(other);
  1830. }
  1831. void CalibParameter::InternalSwap(CalibParameter* other) {
  1832. using std::swap;
  1833. swap(r_, other->r_);
  1834. swap(p_, other->p_);
  1835. swap(y_, other->y_);
  1836. swap(cx_, other->cx_);
  1837. swap(cy_, other->cy_);
  1838. swap(cz_, other->cz_);
  1839. swap(_has_bits_[0], other->_has_bits_[0]);
  1840. _internal_metadata_.Swap(&other->_internal_metadata_);
  1841. }
  1842. ::google::protobuf::Metadata CalibParameter::GetMetadata() const {
  1843. protobuf_velodyne_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
  1844. return ::protobuf_velodyne_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages];
  1845. }
  1846. // ===================================================================
  1847. void lidarExtrinsic::InitAsDefaultInstance() {
  1848. ::velodyne::_lidarExtrinsic_default_instance_._instance.get_mutable()->calib_ = const_cast< ::velodyne::CalibParameter*>(
  1849. ::velodyne::CalibParameter::internal_default_instance());
  1850. }
  1851. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1852. const int lidarExtrinsic::kLidarIdFieldNumber;
  1853. const int lidarExtrinsic::kCalibFieldNumber;
  1854. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1855. lidarExtrinsic::lidarExtrinsic()
  1856. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1857. ::google::protobuf::internal::InitSCC(
  1858. &protobuf_velodyne_5fconfig_2eproto::scc_info_lidarExtrinsic.base);
  1859. SharedCtor();
  1860. // @@protoc_insertion_point(constructor:velodyne.lidarExtrinsic)
  1861. }
  1862. lidarExtrinsic::lidarExtrinsic(const lidarExtrinsic& from)
  1863. : ::google::protobuf::Message(),
  1864. _internal_metadata_(NULL),
  1865. _has_bits_(from._has_bits_) {
  1866. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1867. if (from.has_calib()) {
  1868. calib_ = new ::velodyne::CalibParameter(*from.calib_);
  1869. } else {
  1870. calib_ = NULL;
  1871. }
  1872. lidar_id_ = from.lidar_id_;
  1873. // @@protoc_insertion_point(copy_constructor:velodyne.lidarExtrinsic)
  1874. }
  1875. void lidarExtrinsic::SharedCtor() {
  1876. ::memset(&calib_, 0, static_cast<size_t>(
  1877. reinterpret_cast<char*>(&lidar_id_) -
  1878. reinterpret_cast<char*>(&calib_)) + sizeof(lidar_id_));
  1879. }
  1880. lidarExtrinsic::~lidarExtrinsic() {
  1881. // @@protoc_insertion_point(destructor:velodyne.lidarExtrinsic)
  1882. SharedDtor();
  1883. }
  1884. void lidarExtrinsic::SharedDtor() {
  1885. if (this != internal_default_instance()) delete calib_;
  1886. }
  1887. void lidarExtrinsic::SetCachedSize(int size) const {
  1888. _cached_size_.Set(size);
  1889. }
  1890. const ::google::protobuf::Descriptor* lidarExtrinsic::descriptor() {
  1891. ::protobuf_velodyne_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
  1892. return ::protobuf_velodyne_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1893. }
  1894. const lidarExtrinsic& lidarExtrinsic::default_instance() {
  1895. ::google::protobuf::internal::InitSCC(&protobuf_velodyne_5fconfig_2eproto::scc_info_lidarExtrinsic.base);
  1896. return *internal_default_instance();
  1897. }
  1898. void lidarExtrinsic::Clear() {
  1899. // @@protoc_insertion_point(message_clear_start:velodyne.lidarExtrinsic)
  1900. ::google::protobuf::uint32 cached_has_bits = 0;
  1901. // Prevent compiler warnings about cached_has_bits being unused
  1902. (void) cached_has_bits;
  1903. cached_has_bits = _has_bits_[0];
  1904. if (cached_has_bits & 0x00000001u) {
  1905. GOOGLE_DCHECK(calib_ != NULL);
  1906. calib_->Clear();
  1907. }
  1908. lidar_id_ = 0;
  1909. _has_bits_.Clear();
  1910. _internal_metadata_.Clear();
  1911. }
  1912. bool lidarExtrinsic::MergePartialFromCodedStream(
  1913. ::google::protobuf::io::CodedInputStream* input) {
  1914. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1915. ::google::protobuf::uint32 tag;
  1916. // @@protoc_insertion_point(parse_start:velodyne.lidarExtrinsic)
  1917. for (;;) {
  1918. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1919. tag = p.first;
  1920. if (!p.second) goto handle_unusual;
  1921. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1922. // required int32 lidar_id = 1;
  1923. case 1: {
  1924. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1925. static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
  1926. set_has_lidar_id();
  1927. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1928. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1929. input, &lidar_id_)));
  1930. } else {
  1931. goto handle_unusual;
  1932. }
  1933. break;
  1934. }
  1935. // optional .velodyne.CalibParameter calib = 2;
  1936. case 2: {
  1937. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1938. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  1939. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1940. input, mutable_calib()));
  1941. } else {
  1942. goto handle_unusual;
  1943. }
  1944. break;
  1945. }
  1946. default: {
  1947. handle_unusual:
  1948. if (tag == 0) {
  1949. goto success;
  1950. }
  1951. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1952. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1953. break;
  1954. }
  1955. }
  1956. }
  1957. success:
  1958. // @@protoc_insertion_point(parse_success:velodyne.lidarExtrinsic)
  1959. return true;
  1960. failure:
  1961. // @@protoc_insertion_point(parse_failure:velodyne.lidarExtrinsic)
  1962. return false;
  1963. #undef DO_
  1964. }
  1965. void lidarExtrinsic::SerializeWithCachedSizes(
  1966. ::google::protobuf::io::CodedOutputStream* output) const {
  1967. // @@protoc_insertion_point(serialize_start:velodyne.lidarExtrinsic)
  1968. ::google::protobuf::uint32 cached_has_bits = 0;
  1969. (void) cached_has_bits;
  1970. cached_has_bits = _has_bits_[0];
  1971. // required int32 lidar_id = 1;
  1972. if (cached_has_bits & 0x00000002u) {
  1973. ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->lidar_id(), output);
  1974. }
  1975. // optional .velodyne.CalibParameter calib = 2;
  1976. if (cached_has_bits & 0x00000001u) {
  1977. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1978. 2, this->_internal_calib(), output);
  1979. }
  1980. if (_internal_metadata_.have_unknown_fields()) {
  1981. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1982. _internal_metadata_.unknown_fields(), output);
  1983. }
  1984. // @@protoc_insertion_point(serialize_end:velodyne.lidarExtrinsic)
  1985. }
  1986. ::google::protobuf::uint8* lidarExtrinsic::InternalSerializeWithCachedSizesToArray(
  1987. bool deterministic, ::google::protobuf::uint8* target) const {
  1988. (void)deterministic; // Unused
  1989. // @@protoc_insertion_point(serialize_to_array_start:velodyne.lidarExtrinsic)
  1990. ::google::protobuf::uint32 cached_has_bits = 0;
  1991. (void) cached_has_bits;
  1992. cached_has_bits = _has_bits_[0];
  1993. // required int32 lidar_id = 1;
  1994. if (cached_has_bits & 0x00000002u) {
  1995. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->lidar_id(), target);
  1996. }
  1997. // optional .velodyne.CalibParameter calib = 2;
  1998. if (cached_has_bits & 0x00000001u) {
  1999. target = ::google::protobuf::internal::WireFormatLite::
  2000. InternalWriteMessageToArray(
  2001. 2, this->_internal_calib(), deterministic, target);
  2002. }
  2003. if (_internal_metadata_.have_unknown_fields()) {
  2004. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2005. _internal_metadata_.unknown_fields(), target);
  2006. }
  2007. // @@protoc_insertion_point(serialize_to_array_end:velodyne.lidarExtrinsic)
  2008. return target;
  2009. }
  2010. size_t lidarExtrinsic::ByteSizeLong() const {
  2011. // @@protoc_insertion_point(message_byte_size_start:velodyne.lidarExtrinsic)
  2012. size_t total_size = 0;
  2013. if (_internal_metadata_.have_unknown_fields()) {
  2014. total_size +=
  2015. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2016. _internal_metadata_.unknown_fields());
  2017. }
  2018. // required int32 lidar_id = 1;
  2019. if (has_lidar_id()) {
  2020. total_size += 1 +
  2021. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2022. this->lidar_id());
  2023. }
  2024. // optional .velodyne.CalibParameter calib = 2;
  2025. if (has_calib()) {
  2026. total_size += 1 +
  2027. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2028. *calib_);
  2029. }
  2030. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  2031. SetCachedSize(cached_size);
  2032. return total_size;
  2033. }
  2034. void lidarExtrinsic::MergeFrom(const ::google::protobuf::Message& from) {
  2035. // @@protoc_insertion_point(generalized_merge_from_start:velodyne.lidarExtrinsic)
  2036. GOOGLE_DCHECK_NE(&from, this);
  2037. const lidarExtrinsic* source =
  2038. ::google::protobuf::internal::DynamicCastToGenerated<const lidarExtrinsic>(
  2039. &from);
  2040. if (source == NULL) {
  2041. // @@protoc_insertion_point(generalized_merge_from_cast_fail:velodyne.lidarExtrinsic)
  2042. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2043. } else {
  2044. // @@protoc_insertion_point(generalized_merge_from_cast_success:velodyne.lidarExtrinsic)
  2045. MergeFrom(*source);
  2046. }
  2047. }
  2048. void lidarExtrinsic::MergeFrom(const lidarExtrinsic& from) {
  2049. // @@protoc_insertion_point(class_specific_merge_from_start:velodyne.lidarExtrinsic)
  2050. GOOGLE_DCHECK_NE(&from, this);
  2051. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2052. ::google::protobuf::uint32 cached_has_bits = 0;
  2053. (void) cached_has_bits;
  2054. cached_has_bits = from._has_bits_[0];
  2055. if (cached_has_bits & 3u) {
  2056. if (cached_has_bits & 0x00000001u) {
  2057. mutable_calib()->::velodyne::CalibParameter::MergeFrom(from.calib());
  2058. }
  2059. if (cached_has_bits & 0x00000002u) {
  2060. lidar_id_ = from.lidar_id_;
  2061. }
  2062. _has_bits_[0] |= cached_has_bits;
  2063. }
  2064. }
  2065. void lidarExtrinsic::CopyFrom(const ::google::protobuf::Message& from) {
  2066. // @@protoc_insertion_point(generalized_copy_from_start:velodyne.lidarExtrinsic)
  2067. if (&from == this) return;
  2068. Clear();
  2069. MergeFrom(from);
  2070. }
  2071. void lidarExtrinsic::CopyFrom(const lidarExtrinsic& from) {
  2072. // @@protoc_insertion_point(class_specific_copy_from_start:velodyne.lidarExtrinsic)
  2073. if (&from == this) return;
  2074. Clear();
  2075. MergeFrom(from);
  2076. }
  2077. bool lidarExtrinsic::IsInitialized() const {
  2078. if ((_has_bits_[0] & 0x00000002) != 0x00000002) return false;
  2079. return true;
  2080. }
  2081. void lidarExtrinsic::Swap(lidarExtrinsic* other) {
  2082. if (other == this) return;
  2083. InternalSwap(other);
  2084. }
  2085. void lidarExtrinsic::InternalSwap(lidarExtrinsic* other) {
  2086. using std::swap;
  2087. swap(calib_, other->calib_);
  2088. swap(lidar_id_, other->lidar_id_);
  2089. swap(_has_bits_[0], other->_has_bits_[0]);
  2090. _internal_metadata_.Swap(&other->_internal_metadata_);
  2091. }
  2092. ::google::protobuf::Metadata lidarExtrinsic::GetMetadata() const {
  2093. protobuf_velodyne_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
  2094. return ::protobuf_velodyne_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages];
  2095. }
  2096. // ===================================================================
  2097. void Region::InitAsDefaultInstance() {
  2098. }
  2099. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  2100. const int Region::kMinxFieldNumber;
  2101. const int Region::kMaxxFieldNumber;
  2102. const int Region::kMinyFieldNumber;
  2103. const int Region::kMaxyFieldNumber;
  2104. const int Region::kMinzFieldNumber;
  2105. const int Region::kMaxzFieldNumber;
  2106. const int Region::kRegionIdFieldNumber;
  2107. const int Region::kLidarExtsFieldNumber;
  2108. const int Region::kTurnplateCxFieldNumber;
  2109. const int Region::kTurnplateCyFieldNumber;
  2110. const int Region::kBorderMinxFieldNumber;
  2111. const int Region::kBorderMaxxFieldNumber;
  2112. const int Region::kPlcOffsetxFieldNumber;
  2113. const int Region::kPlcOffsetyFieldNumber;
  2114. const int Region::kPlcBorderMinyFieldNumber;
  2115. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  2116. Region::Region()
  2117. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  2118. ::google::protobuf::internal::InitSCC(
  2119. &protobuf_velodyne_5fconfig_2eproto::scc_info_Region.base);
  2120. SharedCtor();
  2121. // @@protoc_insertion_point(constructor:velodyne.Region)
  2122. }
  2123. Region::Region(const Region& from)
  2124. : ::google::protobuf::Message(),
  2125. _internal_metadata_(NULL),
  2126. _has_bits_(from._has_bits_),
  2127. lidar_exts_(from.lidar_exts_) {
  2128. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2129. ::memcpy(&minx_, &from.minx_,
  2130. static_cast<size_t>(reinterpret_cast<char*>(&plc_border_miny_) -
  2131. reinterpret_cast<char*>(&minx_)) + sizeof(plc_border_miny_));
  2132. // @@protoc_insertion_point(copy_constructor:velodyne.Region)
  2133. }
  2134. void Region::SharedCtor() {
  2135. ::memset(&minx_, 0, static_cast<size_t>(
  2136. reinterpret_cast<char*>(&plc_border_miny_) -
  2137. reinterpret_cast<char*>(&minx_)) + sizeof(plc_border_miny_));
  2138. }
  2139. Region::~Region() {
  2140. // @@protoc_insertion_point(destructor:velodyne.Region)
  2141. SharedDtor();
  2142. }
  2143. void Region::SharedDtor() {
  2144. }
  2145. void Region::SetCachedSize(int size) const {
  2146. _cached_size_.Set(size);
  2147. }
  2148. const ::google::protobuf::Descriptor* Region::descriptor() {
  2149. ::protobuf_velodyne_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
  2150. return ::protobuf_velodyne_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  2151. }
  2152. const Region& Region::default_instance() {
  2153. ::google::protobuf::internal::InitSCC(&protobuf_velodyne_5fconfig_2eproto::scc_info_Region.base);
  2154. return *internal_default_instance();
  2155. }
  2156. void Region::Clear() {
  2157. // @@protoc_insertion_point(message_clear_start:velodyne.Region)
  2158. ::google::protobuf::uint32 cached_has_bits = 0;
  2159. // Prevent compiler warnings about cached_has_bits being unused
  2160. (void) cached_has_bits;
  2161. lidar_exts_.Clear();
  2162. cached_has_bits = _has_bits_[0];
  2163. if (cached_has_bits & 255u) {
  2164. ::memset(&minx_, 0, static_cast<size_t>(
  2165. reinterpret_cast<char*>(&turnplate_cx_) -
  2166. reinterpret_cast<char*>(&minx_)) + sizeof(turnplate_cx_));
  2167. }
  2168. if (cached_has_bits & 16128u) {
  2169. ::memset(&turnplate_cy_, 0, static_cast<size_t>(
  2170. reinterpret_cast<char*>(&plc_border_miny_) -
  2171. reinterpret_cast<char*>(&turnplate_cy_)) + sizeof(plc_border_miny_));
  2172. }
  2173. _has_bits_.Clear();
  2174. _internal_metadata_.Clear();
  2175. }
  2176. bool Region::MergePartialFromCodedStream(
  2177. ::google::protobuf::io::CodedInputStream* input) {
  2178. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  2179. ::google::protobuf::uint32 tag;
  2180. // @@protoc_insertion_point(parse_start:velodyne.Region)
  2181. for (;;) {
  2182. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  2183. tag = p.first;
  2184. if (!p.second) goto handle_unusual;
  2185. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2186. // required float minx = 1;
  2187. case 1: {
  2188. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2189. static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
  2190. set_has_minx();
  2191. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2192. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2193. input, &minx_)));
  2194. } else {
  2195. goto handle_unusual;
  2196. }
  2197. break;
  2198. }
  2199. // required float maxx = 2;
  2200. case 2: {
  2201. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2202. static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
  2203. set_has_maxx();
  2204. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2205. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2206. input, &maxx_)));
  2207. } else {
  2208. goto handle_unusual;
  2209. }
  2210. break;
  2211. }
  2212. // required float miny = 3;
  2213. case 3: {
  2214. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2215. static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
  2216. set_has_miny();
  2217. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2218. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2219. input, &miny_)));
  2220. } else {
  2221. goto handle_unusual;
  2222. }
  2223. break;
  2224. }
  2225. // required float maxy = 4;
  2226. case 4: {
  2227. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2228. static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) {
  2229. set_has_maxy();
  2230. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2231. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2232. input, &maxy_)));
  2233. } else {
  2234. goto handle_unusual;
  2235. }
  2236. break;
  2237. }
  2238. // required float minz = 5;
  2239. case 5: {
  2240. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2241. static_cast< ::google::protobuf::uint8>(45u /* 45 & 0xFF */)) {
  2242. set_has_minz();
  2243. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2244. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2245. input, &minz_)));
  2246. } else {
  2247. goto handle_unusual;
  2248. }
  2249. break;
  2250. }
  2251. // required float maxz = 6;
  2252. case 6: {
  2253. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2254. static_cast< ::google::protobuf::uint8>(53u /* 53 & 0xFF */)) {
  2255. set_has_maxz();
  2256. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2257. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2258. input, &maxz_)));
  2259. } else {
  2260. goto handle_unusual;
  2261. }
  2262. break;
  2263. }
  2264. // required int32 region_id = 7;
  2265. case 7: {
  2266. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2267. static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
  2268. set_has_region_id();
  2269. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2270. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2271. input, &region_id_)));
  2272. } else {
  2273. goto handle_unusual;
  2274. }
  2275. break;
  2276. }
  2277. // repeated .velodyne.lidarExtrinsic lidar_exts = 8;
  2278. case 8: {
  2279. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2280. static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
  2281. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  2282. input, add_lidar_exts()));
  2283. } else {
  2284. goto handle_unusual;
  2285. }
  2286. break;
  2287. }
  2288. // required float turnplate_cx = 9;
  2289. case 9: {
  2290. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2291. static_cast< ::google::protobuf::uint8>(77u /* 77 & 0xFF */)) {
  2292. set_has_turnplate_cx();
  2293. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2294. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2295. input, &turnplate_cx_)));
  2296. } else {
  2297. goto handle_unusual;
  2298. }
  2299. break;
  2300. }
  2301. // required float turnplate_cy = 10;
  2302. case 10: {
  2303. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2304. static_cast< ::google::protobuf::uint8>(85u /* 85 & 0xFF */)) {
  2305. set_has_turnplate_cy();
  2306. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2307. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2308. input, &turnplate_cy_)));
  2309. } else {
  2310. goto handle_unusual;
  2311. }
  2312. break;
  2313. }
  2314. // required float border_minx = 11;
  2315. case 11: {
  2316. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2317. static_cast< ::google::protobuf::uint8>(93u /* 93 & 0xFF */)) {
  2318. set_has_border_minx();
  2319. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2320. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2321. input, &border_minx_)));
  2322. } else {
  2323. goto handle_unusual;
  2324. }
  2325. break;
  2326. }
  2327. // required float border_maxx = 12;
  2328. case 12: {
  2329. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2330. static_cast< ::google::protobuf::uint8>(101u /* 101 & 0xFF */)) {
  2331. set_has_border_maxx();
  2332. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2333. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2334. input, &border_maxx_)));
  2335. } else {
  2336. goto handle_unusual;
  2337. }
  2338. break;
  2339. }
  2340. // required float plc_offsetx = 13;
  2341. case 13: {
  2342. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2343. static_cast< ::google::protobuf::uint8>(109u /* 109 & 0xFF */)) {
  2344. set_has_plc_offsetx();
  2345. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2346. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2347. input, &plc_offsetx_)));
  2348. } else {
  2349. goto handle_unusual;
  2350. }
  2351. break;
  2352. }
  2353. // required float plc_offsety = 14;
  2354. case 14: {
  2355. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2356. static_cast< ::google::protobuf::uint8>(117u /* 117 & 0xFF */)) {
  2357. set_has_plc_offsety();
  2358. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2359. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2360. input, &plc_offsety_)));
  2361. } else {
  2362. goto handle_unusual;
  2363. }
  2364. break;
  2365. }
  2366. // required float plc_border_miny = 15;
  2367. case 15: {
  2368. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2369. static_cast< ::google::protobuf::uint8>(125u /* 125 & 0xFF */)) {
  2370. set_has_plc_border_miny();
  2371. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2372. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2373. input, &plc_border_miny_)));
  2374. } else {
  2375. goto handle_unusual;
  2376. }
  2377. break;
  2378. }
  2379. default: {
  2380. handle_unusual:
  2381. if (tag == 0) {
  2382. goto success;
  2383. }
  2384. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2385. input, tag, _internal_metadata_.mutable_unknown_fields()));
  2386. break;
  2387. }
  2388. }
  2389. }
  2390. success:
  2391. // @@protoc_insertion_point(parse_success:velodyne.Region)
  2392. return true;
  2393. failure:
  2394. // @@protoc_insertion_point(parse_failure:velodyne.Region)
  2395. return false;
  2396. #undef DO_
  2397. }
  2398. void Region::SerializeWithCachedSizes(
  2399. ::google::protobuf::io::CodedOutputStream* output) const {
  2400. // @@protoc_insertion_point(serialize_start:velodyne.Region)
  2401. ::google::protobuf::uint32 cached_has_bits = 0;
  2402. (void) cached_has_bits;
  2403. cached_has_bits = _has_bits_[0];
  2404. // required float minx = 1;
  2405. if (cached_has_bits & 0x00000001u) {
  2406. ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->minx(), output);
  2407. }
  2408. // required float maxx = 2;
  2409. if (cached_has_bits & 0x00000002u) {
  2410. ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->maxx(), output);
  2411. }
  2412. // required float miny = 3;
  2413. if (cached_has_bits & 0x00000004u) {
  2414. ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->miny(), output);
  2415. }
  2416. // required float maxy = 4;
  2417. if (cached_has_bits & 0x00000008u) {
  2418. ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->maxy(), output);
  2419. }
  2420. // required float minz = 5;
  2421. if (cached_has_bits & 0x00000010u) {
  2422. ::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->minz(), output);
  2423. }
  2424. // required float maxz = 6;
  2425. if (cached_has_bits & 0x00000020u) {
  2426. ::google::protobuf::internal::WireFormatLite::WriteFloat(6, this->maxz(), output);
  2427. }
  2428. // required int32 region_id = 7;
  2429. if (cached_has_bits & 0x00000040u) {
  2430. ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->region_id(), output);
  2431. }
  2432. // repeated .velodyne.lidarExtrinsic lidar_exts = 8;
  2433. for (unsigned int i = 0,
  2434. n = static_cast<unsigned int>(this->lidar_exts_size()); i < n; i++) {
  2435. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2436. 8,
  2437. this->lidar_exts(static_cast<int>(i)),
  2438. output);
  2439. }
  2440. // required float turnplate_cx = 9;
  2441. if (cached_has_bits & 0x00000080u) {
  2442. ::google::protobuf::internal::WireFormatLite::WriteFloat(9, this->turnplate_cx(), output);
  2443. }
  2444. // required float turnplate_cy = 10;
  2445. if (cached_has_bits & 0x00000100u) {
  2446. ::google::protobuf::internal::WireFormatLite::WriteFloat(10, this->turnplate_cy(), output);
  2447. }
  2448. // required float border_minx = 11;
  2449. if (cached_has_bits & 0x00000200u) {
  2450. ::google::protobuf::internal::WireFormatLite::WriteFloat(11, this->border_minx(), output);
  2451. }
  2452. // required float border_maxx = 12;
  2453. if (cached_has_bits & 0x00000400u) {
  2454. ::google::protobuf::internal::WireFormatLite::WriteFloat(12, this->border_maxx(), output);
  2455. }
  2456. // required float plc_offsetx = 13;
  2457. if (cached_has_bits & 0x00000800u) {
  2458. ::google::protobuf::internal::WireFormatLite::WriteFloat(13, this->plc_offsetx(), output);
  2459. }
  2460. // required float plc_offsety = 14;
  2461. if (cached_has_bits & 0x00001000u) {
  2462. ::google::protobuf::internal::WireFormatLite::WriteFloat(14, this->plc_offsety(), output);
  2463. }
  2464. // required float plc_border_miny = 15;
  2465. if (cached_has_bits & 0x00002000u) {
  2466. ::google::protobuf::internal::WireFormatLite::WriteFloat(15, this->plc_border_miny(), output);
  2467. }
  2468. if (_internal_metadata_.have_unknown_fields()) {
  2469. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2470. _internal_metadata_.unknown_fields(), output);
  2471. }
  2472. // @@protoc_insertion_point(serialize_end:velodyne.Region)
  2473. }
  2474. ::google::protobuf::uint8* Region::InternalSerializeWithCachedSizesToArray(
  2475. bool deterministic, ::google::protobuf::uint8* target) const {
  2476. (void)deterministic; // Unused
  2477. // @@protoc_insertion_point(serialize_to_array_start:velodyne.Region)
  2478. ::google::protobuf::uint32 cached_has_bits = 0;
  2479. (void) cached_has_bits;
  2480. cached_has_bits = _has_bits_[0];
  2481. // required float minx = 1;
  2482. if (cached_has_bits & 0x00000001u) {
  2483. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->minx(), target);
  2484. }
  2485. // required float maxx = 2;
  2486. if (cached_has_bits & 0x00000002u) {
  2487. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->maxx(), target);
  2488. }
  2489. // required float miny = 3;
  2490. if (cached_has_bits & 0x00000004u) {
  2491. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->miny(), target);
  2492. }
  2493. // required float maxy = 4;
  2494. if (cached_has_bits & 0x00000008u) {
  2495. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->maxy(), target);
  2496. }
  2497. // required float minz = 5;
  2498. if (cached_has_bits & 0x00000010u) {
  2499. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->minz(), target);
  2500. }
  2501. // required float maxz = 6;
  2502. if (cached_has_bits & 0x00000020u) {
  2503. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(6, this->maxz(), target);
  2504. }
  2505. // required int32 region_id = 7;
  2506. if (cached_has_bits & 0x00000040u) {
  2507. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->region_id(), target);
  2508. }
  2509. // repeated .velodyne.lidarExtrinsic lidar_exts = 8;
  2510. for (unsigned int i = 0,
  2511. n = static_cast<unsigned int>(this->lidar_exts_size()); i < n; i++) {
  2512. target = ::google::protobuf::internal::WireFormatLite::
  2513. InternalWriteMessageToArray(
  2514. 8, this->lidar_exts(static_cast<int>(i)), deterministic, target);
  2515. }
  2516. // required float turnplate_cx = 9;
  2517. if (cached_has_bits & 0x00000080u) {
  2518. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(9, this->turnplate_cx(), target);
  2519. }
  2520. // required float turnplate_cy = 10;
  2521. if (cached_has_bits & 0x00000100u) {
  2522. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(10, this->turnplate_cy(), target);
  2523. }
  2524. // required float border_minx = 11;
  2525. if (cached_has_bits & 0x00000200u) {
  2526. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(11, this->border_minx(), target);
  2527. }
  2528. // required float border_maxx = 12;
  2529. if (cached_has_bits & 0x00000400u) {
  2530. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(12, this->border_maxx(), target);
  2531. }
  2532. // required float plc_offsetx = 13;
  2533. if (cached_has_bits & 0x00000800u) {
  2534. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(13, this->plc_offsetx(), target);
  2535. }
  2536. // required float plc_offsety = 14;
  2537. if (cached_has_bits & 0x00001000u) {
  2538. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(14, this->plc_offsety(), target);
  2539. }
  2540. // required float plc_border_miny = 15;
  2541. if (cached_has_bits & 0x00002000u) {
  2542. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(15, this->plc_border_miny(), target);
  2543. }
  2544. if (_internal_metadata_.have_unknown_fields()) {
  2545. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2546. _internal_metadata_.unknown_fields(), target);
  2547. }
  2548. // @@protoc_insertion_point(serialize_to_array_end:velodyne.Region)
  2549. return target;
  2550. }
  2551. size_t Region::RequiredFieldsByteSizeFallback() const {
  2552. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:velodyne.Region)
  2553. size_t total_size = 0;
  2554. if (has_minx()) {
  2555. // required float minx = 1;
  2556. total_size += 1 + 4;
  2557. }
  2558. if (has_maxx()) {
  2559. // required float maxx = 2;
  2560. total_size += 1 + 4;
  2561. }
  2562. if (has_miny()) {
  2563. // required float miny = 3;
  2564. total_size += 1 + 4;
  2565. }
  2566. if (has_maxy()) {
  2567. // required float maxy = 4;
  2568. total_size += 1 + 4;
  2569. }
  2570. if (has_minz()) {
  2571. // required float minz = 5;
  2572. total_size += 1 + 4;
  2573. }
  2574. if (has_maxz()) {
  2575. // required float maxz = 6;
  2576. total_size += 1 + 4;
  2577. }
  2578. if (has_region_id()) {
  2579. // required int32 region_id = 7;
  2580. total_size += 1 +
  2581. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2582. this->region_id());
  2583. }
  2584. if (has_turnplate_cx()) {
  2585. // required float turnplate_cx = 9;
  2586. total_size += 1 + 4;
  2587. }
  2588. if (has_turnplate_cy()) {
  2589. // required float turnplate_cy = 10;
  2590. total_size += 1 + 4;
  2591. }
  2592. if (has_border_minx()) {
  2593. // required float border_minx = 11;
  2594. total_size += 1 + 4;
  2595. }
  2596. if (has_border_maxx()) {
  2597. // required float border_maxx = 12;
  2598. total_size += 1 + 4;
  2599. }
  2600. if (has_plc_offsetx()) {
  2601. // required float plc_offsetx = 13;
  2602. total_size += 1 + 4;
  2603. }
  2604. if (has_plc_offsety()) {
  2605. // required float plc_offsety = 14;
  2606. total_size += 1 + 4;
  2607. }
  2608. if (has_plc_border_miny()) {
  2609. // required float plc_border_miny = 15;
  2610. total_size += 1 + 4;
  2611. }
  2612. return total_size;
  2613. }
  2614. size_t Region::ByteSizeLong() const {
  2615. // @@protoc_insertion_point(message_byte_size_start:velodyne.Region)
  2616. size_t total_size = 0;
  2617. if (_internal_metadata_.have_unknown_fields()) {
  2618. total_size +=
  2619. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2620. _internal_metadata_.unknown_fields());
  2621. }
  2622. if (((_has_bits_[0] & 0x00003fff) ^ 0x00003fff) == 0) { // All required fields are present.
  2623. // required float minx = 1;
  2624. total_size += 1 + 4;
  2625. // required float maxx = 2;
  2626. total_size += 1 + 4;
  2627. // required float miny = 3;
  2628. total_size += 1 + 4;
  2629. // required float maxy = 4;
  2630. total_size += 1 + 4;
  2631. // required float minz = 5;
  2632. total_size += 1 + 4;
  2633. // required float maxz = 6;
  2634. total_size += 1 + 4;
  2635. // required int32 region_id = 7;
  2636. total_size += 1 +
  2637. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2638. this->region_id());
  2639. // required float turnplate_cx = 9;
  2640. total_size += 1 + 4;
  2641. // required float turnplate_cy = 10;
  2642. total_size += 1 + 4;
  2643. // required float border_minx = 11;
  2644. total_size += 1 + 4;
  2645. // required float border_maxx = 12;
  2646. total_size += 1 + 4;
  2647. // required float plc_offsetx = 13;
  2648. total_size += 1 + 4;
  2649. // required float plc_offsety = 14;
  2650. total_size += 1 + 4;
  2651. // required float plc_border_miny = 15;
  2652. total_size += 1 + 4;
  2653. } else {
  2654. total_size += RequiredFieldsByteSizeFallback();
  2655. }
  2656. // repeated .velodyne.lidarExtrinsic lidar_exts = 8;
  2657. {
  2658. unsigned int count = static_cast<unsigned int>(this->lidar_exts_size());
  2659. total_size += 1UL * count;
  2660. for (unsigned int i = 0; i < count; i++) {
  2661. total_size +=
  2662. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2663. this->lidar_exts(static_cast<int>(i)));
  2664. }
  2665. }
  2666. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  2667. SetCachedSize(cached_size);
  2668. return total_size;
  2669. }
  2670. void Region::MergeFrom(const ::google::protobuf::Message& from) {
  2671. // @@protoc_insertion_point(generalized_merge_from_start:velodyne.Region)
  2672. GOOGLE_DCHECK_NE(&from, this);
  2673. const Region* source =
  2674. ::google::protobuf::internal::DynamicCastToGenerated<const Region>(
  2675. &from);
  2676. if (source == NULL) {
  2677. // @@protoc_insertion_point(generalized_merge_from_cast_fail:velodyne.Region)
  2678. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2679. } else {
  2680. // @@protoc_insertion_point(generalized_merge_from_cast_success:velodyne.Region)
  2681. MergeFrom(*source);
  2682. }
  2683. }
  2684. void Region::MergeFrom(const Region& from) {
  2685. // @@protoc_insertion_point(class_specific_merge_from_start:velodyne.Region)
  2686. GOOGLE_DCHECK_NE(&from, this);
  2687. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2688. ::google::protobuf::uint32 cached_has_bits = 0;
  2689. (void) cached_has_bits;
  2690. lidar_exts_.MergeFrom(from.lidar_exts_);
  2691. cached_has_bits = from._has_bits_[0];
  2692. if (cached_has_bits & 255u) {
  2693. if (cached_has_bits & 0x00000001u) {
  2694. minx_ = from.minx_;
  2695. }
  2696. if (cached_has_bits & 0x00000002u) {
  2697. maxx_ = from.maxx_;
  2698. }
  2699. if (cached_has_bits & 0x00000004u) {
  2700. miny_ = from.miny_;
  2701. }
  2702. if (cached_has_bits & 0x00000008u) {
  2703. maxy_ = from.maxy_;
  2704. }
  2705. if (cached_has_bits & 0x00000010u) {
  2706. minz_ = from.minz_;
  2707. }
  2708. if (cached_has_bits & 0x00000020u) {
  2709. maxz_ = from.maxz_;
  2710. }
  2711. if (cached_has_bits & 0x00000040u) {
  2712. region_id_ = from.region_id_;
  2713. }
  2714. if (cached_has_bits & 0x00000080u) {
  2715. turnplate_cx_ = from.turnplate_cx_;
  2716. }
  2717. _has_bits_[0] |= cached_has_bits;
  2718. }
  2719. if (cached_has_bits & 16128u) {
  2720. if (cached_has_bits & 0x00000100u) {
  2721. turnplate_cy_ = from.turnplate_cy_;
  2722. }
  2723. if (cached_has_bits & 0x00000200u) {
  2724. border_minx_ = from.border_minx_;
  2725. }
  2726. if (cached_has_bits & 0x00000400u) {
  2727. border_maxx_ = from.border_maxx_;
  2728. }
  2729. if (cached_has_bits & 0x00000800u) {
  2730. plc_offsetx_ = from.plc_offsetx_;
  2731. }
  2732. if (cached_has_bits & 0x00001000u) {
  2733. plc_offsety_ = from.plc_offsety_;
  2734. }
  2735. if (cached_has_bits & 0x00002000u) {
  2736. plc_border_miny_ = from.plc_border_miny_;
  2737. }
  2738. _has_bits_[0] |= cached_has_bits;
  2739. }
  2740. }
  2741. void Region::CopyFrom(const ::google::protobuf::Message& from) {
  2742. // @@protoc_insertion_point(generalized_copy_from_start:velodyne.Region)
  2743. if (&from == this) return;
  2744. Clear();
  2745. MergeFrom(from);
  2746. }
  2747. void Region::CopyFrom(const Region& from) {
  2748. // @@protoc_insertion_point(class_specific_copy_from_start:velodyne.Region)
  2749. if (&from == this) return;
  2750. Clear();
  2751. MergeFrom(from);
  2752. }
  2753. bool Region::IsInitialized() const {
  2754. if ((_has_bits_[0] & 0x00003fff) != 0x00003fff) return false;
  2755. if (!::google::protobuf::internal::AllAreInitialized(this->lidar_exts())) return false;
  2756. return true;
  2757. }
  2758. void Region::Swap(Region* other) {
  2759. if (other == this) return;
  2760. InternalSwap(other);
  2761. }
  2762. void Region::InternalSwap(Region* other) {
  2763. using std::swap;
  2764. CastToBase(&lidar_exts_)->InternalSwap(CastToBase(&other->lidar_exts_));
  2765. swap(minx_, other->minx_);
  2766. swap(maxx_, other->maxx_);
  2767. swap(miny_, other->miny_);
  2768. swap(maxy_, other->maxy_);
  2769. swap(minz_, other->minz_);
  2770. swap(maxz_, other->maxz_);
  2771. swap(region_id_, other->region_id_);
  2772. swap(turnplate_cx_, other->turnplate_cx_);
  2773. swap(turnplate_cy_, other->turnplate_cy_);
  2774. swap(border_minx_, other->border_minx_);
  2775. swap(border_maxx_, other->border_maxx_);
  2776. swap(plc_offsetx_, other->plc_offsetx_);
  2777. swap(plc_offsety_, other->plc_offsety_);
  2778. swap(plc_border_miny_, other->plc_border_miny_);
  2779. swap(_has_bits_[0], other->_has_bits_[0]);
  2780. _internal_metadata_.Swap(&other->_internal_metadata_);
  2781. }
  2782. ::google::protobuf::Metadata Region::GetMetadata() const {
  2783. protobuf_velodyne_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
  2784. return ::protobuf_velodyne_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages];
  2785. }
  2786. // @@protoc_insertion_point(namespace_scope)
  2787. } // namespace velodyne
  2788. namespace google {
  2789. namespace protobuf {
  2790. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::velodyne::velodyneManagerParams* Arena::CreateMaybeMessage< ::velodyne::velodyneManagerParams >(Arena* arena) {
  2791. return Arena::CreateInternal< ::velodyne::velodyneManagerParams >(arena);
  2792. }
  2793. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::velodyne::velodyneLidarParams* Arena::CreateMaybeMessage< ::velodyne::velodyneLidarParams >(Arena* arena) {
  2794. return Arena::CreateInternal< ::velodyne::velodyneLidarParams >(arena);
  2795. }
  2796. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::velodyne::CalibParameter* Arena::CreateMaybeMessage< ::velodyne::CalibParameter >(Arena* arena) {
  2797. return Arena::CreateInternal< ::velodyne::CalibParameter >(arena);
  2798. }
  2799. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::velodyne::lidarExtrinsic* Arena::CreateMaybeMessage< ::velodyne::lidarExtrinsic >(Arena* arena) {
  2800. return Arena::CreateInternal< ::velodyne::lidarExtrinsic >(arena);
  2801. }
  2802. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::velodyne::Region* Arena::CreateMaybeMessage< ::velodyne::Region >(Arena* arena) {
  2803. return Arena::CreateInternal< ::velodyne::Region >(arena);
  2804. }
  2805. } // namespace protobuf
  2806. } // namespace google
  2807. // @@protoc_insertion_point(global_scope)