wj_lidar_conf.pb.cc 101 KB

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