velodyne_config.pb.cc 114 KB

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