velodyne_config.pb.cc 106 KB

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