parameter.pb.cc 111 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: parameter.proto
  3. #include "parameter.pb.h"
  4. #include <algorithm>
  5. #include "google/protobuf/io/coded_stream.h"
  6. #include "google/protobuf/extension_set.h"
  7. #include "google/protobuf/wire_format_lite.h"
  8. #include "google/protobuf/descriptor.h"
  9. #include "google/protobuf/generated_message_reflection.h"
  10. #include "google/protobuf/reflection_ops.h"
  11. #include "google/protobuf/wire_format.h"
  12. // @@protoc_insertion_point(includes)
  13. // Must be included last.
  14. #include "google/protobuf/port_def.inc"
  15. PROTOBUF_PRAGMA_INIT_SEG
  16. namespace _pb = ::PROTOBUF_NAMESPACE_ID;
  17. namespace _pbi = ::PROTOBUF_NAMESPACE_ID::internal;
  18. namespace NavParameter {
  19. template <typename>
  20. PROTOBUF_CONSTEXPR AgvEmqx_parameter::AgvEmqx_parameter(
  21. ::_pbi::ConstantInitialized): _impl_{
  22. /*decltype(_impl_.nodeid_)*/ {
  23. &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  24. }
  25. , /*decltype(_impl_.ip_)*/ {
  26. &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  27. }
  28. , /*decltype(_impl_.pubspeedtopic_)*/ {
  29. &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  30. }
  31. , /*decltype(_impl_.subposetopic_)*/ {
  32. &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  33. }
  34. , /*decltype(_impl_.subspeedtopic_)*/ {
  35. &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  36. }
  37. , /*decltype(_impl_.pubclampliftertopic_)*/ {
  38. &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  39. }
  40. , /*decltype(_impl_.port_)*/ 0
  41. , /*decltype(_impl_._cached_size_)*/{}} {}
  42. struct AgvEmqx_parameterDefaultTypeInternal {
  43. PROTOBUF_CONSTEXPR AgvEmqx_parameterDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  44. ~AgvEmqx_parameterDefaultTypeInternal() {}
  45. union {
  46. AgvEmqx_parameter _instance;
  47. };
  48. };
  49. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  50. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AgvEmqx_parameterDefaultTypeInternal _AgvEmqx_parameter_default_instance_;
  51. template <typename>
  52. PROTOBUF_CONSTEXPR Emqx_parameter::Emqx_parameter(
  53. ::_pbi::ConstantInitialized): _impl_{
  54. /*decltype(_impl_.nodeid_)*/ {
  55. &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  56. }
  57. , /*decltype(_impl_.ip_)*/ {
  58. &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  59. }
  60. , /*decltype(_impl_.pubstatutopic_)*/ {
  61. &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  62. }
  63. , /*decltype(_impl_.pubnavstatutopic_)*/ {
  64. &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  65. }
  66. , /*decltype(_impl_.port_)*/ 0
  67. , /*decltype(_impl_._cached_size_)*/{}} {}
  68. struct Emqx_parameterDefaultTypeInternal {
  69. PROTOBUF_CONSTEXPR Emqx_parameterDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  70. ~Emqx_parameterDefaultTypeInternal() {}
  71. union {
  72. Emqx_parameter _instance;
  73. };
  74. };
  75. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  76. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Emqx_parameterDefaultTypeInternal _Emqx_parameter_default_instance_;
  77. template <typename>
  78. PROTOBUF_CONSTEXPR BrotherEmqx::BrotherEmqx(
  79. ::_pbi::ConstantInitialized): _impl_{
  80. /*decltype(_impl_.nodeid_)*/ {
  81. &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  82. }
  83. , /*decltype(_impl_.ip_)*/ {
  84. &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  85. }
  86. , /*decltype(_impl_.subbrotherstatutopic_)*/ {
  87. &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  88. }
  89. , /*decltype(_impl_.port_)*/ 0
  90. , /*decltype(_impl_._cached_size_)*/{}} {}
  91. struct BrotherEmqxDefaultTypeInternal {
  92. PROTOBUF_CONSTEXPR BrotherEmqxDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  93. ~BrotherEmqxDefaultTypeInternal() {}
  94. union {
  95. BrotherEmqx _instance;
  96. };
  97. };
  98. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  99. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BrotherEmqxDefaultTypeInternal _BrotherEmqx_default_instance_;
  100. template <typename>
  101. PROTOBUF_CONSTEXPR MPC_parameter::MPC_parameter(
  102. ::_pbi::ConstantInitialized): _impl_{
  103. /*decltype(_impl_.shortest_radius_)*/ 0
  104. , /*decltype(_impl_.dt_)*/ 0
  105. , /*decltype(_impl_.acc_velocity_)*/ 0
  106. , /*decltype(_impl_.acc_angular_)*/ 0
  107. , /*decltype(_impl_._cached_size_)*/{}} {}
  108. struct MPC_parameterDefaultTypeInternal {
  109. PROTOBUF_CONSTEXPR MPC_parameterDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  110. ~MPC_parameterDefaultTypeInternal() {}
  111. union {
  112. MPC_parameter _instance;
  113. };
  114. };
  115. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  116. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPC_parameterDefaultTypeInternal _MPC_parameter_default_instance_;
  117. template <typename>
  118. PROTOBUF_CONSTEXPR SpeedLimit::SpeedLimit(
  119. ::_pbi::ConstantInitialized): _impl_{
  120. /*decltype(_impl_.min_)*/ 0
  121. , /*decltype(_impl_.max_)*/ 0
  122. , /*decltype(_impl_._cached_size_)*/{}} {}
  123. struct SpeedLimitDefaultTypeInternal {
  124. PROTOBUF_CONSTEXPR SpeedLimitDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  125. ~SpeedLimitDefaultTypeInternal() {}
  126. union {
  127. SpeedLimit _instance;
  128. };
  129. };
  130. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  131. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SpeedLimitDefaultTypeInternal _SpeedLimit_default_instance_;
  132. template <typename>
  133. PROTOBUF_CONSTEXPR Accuracy::Accuracy(
  134. ::_pbi::ConstantInitialized): _impl_{
  135. /*decltype(_impl_.l_)*/ 0
  136. , /*decltype(_impl_.w_)*/ 0
  137. , /*decltype(_impl_._cached_size_)*/{}} {}
  138. struct AccuracyDefaultTypeInternal {
  139. PROTOBUF_CONSTEXPR AccuracyDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  140. ~AccuracyDefaultTypeInternal() {}
  141. union {
  142. Accuracy _instance;
  143. };
  144. };
  145. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  146. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AccuracyDefaultTypeInternal _Accuracy_default_instance_;
  147. template <typename>
  148. PROTOBUF_CONSTEXPR Navigation_parameter::Navigation_parameter(
  149. ::_pbi::ConstantInitialized): _impl_{
  150. /*decltype(_impl_._has_bits_)*/{}
  151. , /*decltype(_impl_._cached_size_)*/{}
  152. , /*decltype(_impl_.rpc_ipport_)*/ {
  153. &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  154. }
  155. , /*decltype(_impl_.agv_emqx_)*/nullptr
  156. , /*decltype(_impl_.terminal_emqx_)*/nullptr
  157. , /*decltype(_impl_.brother_emqx_)*/nullptr
  158. , /*decltype(_impl_.x_mpc_parameter_)*/nullptr
  159. , /*decltype(_impl_.y_mpc_parameter_)*/nullptr
  160. , /*decltype(_impl_.inoutvlimit_)*/nullptr
  161. , /*decltype(_impl_.nodevelocitylimit_)*/nullptr
  162. , /*decltype(_impl_.nodeangularlimit_)*/nullptr
  163. , /*decltype(_impl_.main_agv_)*/ false
  164. } {}
  165. struct Navigation_parameterDefaultTypeInternal {
  166. PROTOBUF_CONSTEXPR Navigation_parameterDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  167. ~Navigation_parameterDefaultTypeInternal() {}
  168. union {
  169. Navigation_parameter _instance;
  170. };
  171. };
  172. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  173. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Navigation_parameterDefaultTypeInternal _Navigation_parameter_default_instance_;
  174. } // namespace NavParameter
  175. static ::_pb::Metadata file_level_metadata_parameter_2eproto[7];
  176. static constexpr const ::_pb::EnumDescriptor**
  177. file_level_enum_descriptors_parameter_2eproto = nullptr;
  178. static constexpr const ::_pb::ServiceDescriptor**
  179. file_level_service_descriptors_parameter_2eproto = nullptr;
  180. const ::uint32_t TableStruct_parameter_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(
  181. protodesc_cold) = {
  182. ~0u, // no _has_bits_
  183. PROTOBUF_FIELD_OFFSET(::NavParameter::AgvEmqx_parameter, _internal_metadata_),
  184. ~0u, // no _extensions_
  185. ~0u, // no _oneof_case_
  186. ~0u, // no _weak_field_map_
  187. ~0u, // no _inlined_string_donated_
  188. ~0u, // no _split_
  189. ~0u, // no sizeof(Split)
  190. PROTOBUF_FIELD_OFFSET(::NavParameter::AgvEmqx_parameter, _impl_.nodeid_),
  191. PROTOBUF_FIELD_OFFSET(::NavParameter::AgvEmqx_parameter, _impl_.ip_),
  192. PROTOBUF_FIELD_OFFSET(::NavParameter::AgvEmqx_parameter, _impl_.port_),
  193. PROTOBUF_FIELD_OFFSET(::NavParameter::AgvEmqx_parameter, _impl_.pubspeedtopic_),
  194. PROTOBUF_FIELD_OFFSET(::NavParameter::AgvEmqx_parameter, _impl_.subposetopic_),
  195. PROTOBUF_FIELD_OFFSET(::NavParameter::AgvEmqx_parameter, _impl_.subspeedtopic_),
  196. PROTOBUF_FIELD_OFFSET(::NavParameter::AgvEmqx_parameter, _impl_.pubclampliftertopic_),
  197. ~0u, // no _has_bits_
  198. PROTOBUF_FIELD_OFFSET(::NavParameter::Emqx_parameter, _internal_metadata_),
  199. ~0u, // no _extensions_
  200. ~0u, // no _oneof_case_
  201. ~0u, // no _weak_field_map_
  202. ~0u, // no _inlined_string_donated_
  203. ~0u, // no _split_
  204. ~0u, // no sizeof(Split)
  205. PROTOBUF_FIELD_OFFSET(::NavParameter::Emqx_parameter, _impl_.nodeid_),
  206. PROTOBUF_FIELD_OFFSET(::NavParameter::Emqx_parameter, _impl_.ip_),
  207. PROTOBUF_FIELD_OFFSET(::NavParameter::Emqx_parameter, _impl_.port_),
  208. PROTOBUF_FIELD_OFFSET(::NavParameter::Emqx_parameter, _impl_.pubstatutopic_),
  209. PROTOBUF_FIELD_OFFSET(::NavParameter::Emqx_parameter, _impl_.pubnavstatutopic_),
  210. ~0u, // no _has_bits_
  211. PROTOBUF_FIELD_OFFSET(::NavParameter::BrotherEmqx, _internal_metadata_),
  212. ~0u, // no _extensions_
  213. ~0u, // no _oneof_case_
  214. ~0u, // no _weak_field_map_
  215. ~0u, // no _inlined_string_donated_
  216. ~0u, // no _split_
  217. ~0u, // no sizeof(Split)
  218. PROTOBUF_FIELD_OFFSET(::NavParameter::BrotherEmqx, _impl_.nodeid_),
  219. PROTOBUF_FIELD_OFFSET(::NavParameter::BrotherEmqx, _impl_.ip_),
  220. PROTOBUF_FIELD_OFFSET(::NavParameter::BrotherEmqx, _impl_.port_),
  221. PROTOBUF_FIELD_OFFSET(::NavParameter::BrotherEmqx, _impl_.subbrotherstatutopic_),
  222. ~0u, // no _has_bits_
  223. PROTOBUF_FIELD_OFFSET(::NavParameter::MPC_parameter, _internal_metadata_),
  224. ~0u, // no _extensions_
  225. ~0u, // no _oneof_case_
  226. ~0u, // no _weak_field_map_
  227. ~0u, // no _inlined_string_donated_
  228. ~0u, // no _split_
  229. ~0u, // no sizeof(Split)
  230. PROTOBUF_FIELD_OFFSET(::NavParameter::MPC_parameter, _impl_.shortest_radius_),
  231. PROTOBUF_FIELD_OFFSET(::NavParameter::MPC_parameter, _impl_.dt_),
  232. PROTOBUF_FIELD_OFFSET(::NavParameter::MPC_parameter, _impl_.acc_velocity_),
  233. PROTOBUF_FIELD_OFFSET(::NavParameter::MPC_parameter, _impl_.acc_angular_),
  234. ~0u, // no _has_bits_
  235. PROTOBUF_FIELD_OFFSET(::NavParameter::SpeedLimit, _internal_metadata_),
  236. ~0u, // no _extensions_
  237. ~0u, // no _oneof_case_
  238. ~0u, // no _weak_field_map_
  239. ~0u, // no _inlined_string_donated_
  240. ~0u, // no _split_
  241. ~0u, // no sizeof(Split)
  242. PROTOBUF_FIELD_OFFSET(::NavParameter::SpeedLimit, _impl_.min_),
  243. PROTOBUF_FIELD_OFFSET(::NavParameter::SpeedLimit, _impl_.max_),
  244. ~0u, // no _has_bits_
  245. PROTOBUF_FIELD_OFFSET(::NavParameter::Accuracy, _internal_metadata_),
  246. ~0u, // no _extensions_
  247. ~0u, // no _oneof_case_
  248. ~0u, // no _weak_field_map_
  249. ~0u, // no _inlined_string_donated_
  250. ~0u, // no _split_
  251. ~0u, // no sizeof(Split)
  252. PROTOBUF_FIELD_OFFSET(::NavParameter::Accuracy, _impl_.l_),
  253. PROTOBUF_FIELD_OFFSET(::NavParameter::Accuracy, _impl_.w_),
  254. PROTOBUF_FIELD_OFFSET(::NavParameter::Navigation_parameter, _impl_._has_bits_),
  255. PROTOBUF_FIELD_OFFSET(::NavParameter::Navigation_parameter, _internal_metadata_),
  256. ~0u, // no _extensions_
  257. ~0u, // no _oneof_case_
  258. ~0u, // no _weak_field_map_
  259. ~0u, // no _inlined_string_donated_
  260. ~0u, // no _split_
  261. ~0u, // no sizeof(Split)
  262. PROTOBUF_FIELD_OFFSET(::NavParameter::Navigation_parameter, _impl_.main_agv_),
  263. PROTOBUF_FIELD_OFFSET(::NavParameter::Navigation_parameter, _impl_.agv_emqx_),
  264. PROTOBUF_FIELD_OFFSET(::NavParameter::Navigation_parameter, _impl_.terminal_emqx_),
  265. PROTOBUF_FIELD_OFFSET(::NavParameter::Navigation_parameter, _impl_.brother_emqx_),
  266. PROTOBUF_FIELD_OFFSET(::NavParameter::Navigation_parameter, _impl_.x_mpc_parameter_),
  267. PROTOBUF_FIELD_OFFSET(::NavParameter::Navigation_parameter, _impl_.y_mpc_parameter_),
  268. PROTOBUF_FIELD_OFFSET(::NavParameter::Navigation_parameter, _impl_.inoutvlimit_),
  269. PROTOBUF_FIELD_OFFSET(::NavParameter::Navigation_parameter, _impl_.nodevelocitylimit_),
  270. PROTOBUF_FIELD_OFFSET(::NavParameter::Navigation_parameter, _impl_.nodeangularlimit_),
  271. PROTOBUF_FIELD_OFFSET(::NavParameter::Navigation_parameter, _impl_.rpc_ipport_),
  272. ~0u,
  273. 0,
  274. 1,
  275. 2,
  276. 3,
  277. 4,
  278. 5,
  279. 6,
  280. 7,
  281. ~0u,
  282. };
  283. static const ::_pbi::MigrationSchema
  284. schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  285. { 0, -1, -1, sizeof(::NavParameter::AgvEmqx_parameter)},
  286. { 15, -1, -1, sizeof(::NavParameter::Emqx_parameter)},
  287. { 28, -1, -1, sizeof(::NavParameter::BrotherEmqx)},
  288. { 40, -1, -1, sizeof(::NavParameter::MPC_parameter)},
  289. { 52, -1, -1, sizeof(::NavParameter::SpeedLimit)},
  290. { 62, -1, -1, sizeof(::NavParameter::Accuracy)},
  291. { 72, 90, -1, sizeof(::NavParameter::Navigation_parameter)},
  292. };
  293. static const ::_pb::Message* const file_default_instances[] = {
  294. &::NavParameter::_AgvEmqx_parameter_default_instance_._instance,
  295. &::NavParameter::_Emqx_parameter_default_instance_._instance,
  296. &::NavParameter::_BrotherEmqx_default_instance_._instance,
  297. &::NavParameter::_MPC_parameter_default_instance_._instance,
  298. &::NavParameter::_SpeedLimit_default_instance_._instance,
  299. &::NavParameter::_Accuracy_default_instance_._instance,
  300. &::NavParameter::_Navigation_parameter_default_instance_._instance,
  301. };
  302. const char descriptor_table_protodef_parameter_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  303. "\n\017parameter.proto\022\014NavParameter\"\236\001\n\021AgvE"
  304. "mqx_parameter\022\016\n\006NodeId\030\001 \001(\t\022\n\n\002ip\030\002 \001("
  305. "\t\022\014\n\004port\030\003 \001(\005\022\025\n\rpubSpeedTopic\030\004 \001(\t\022\024"
  306. "\n\014subPoseTopic\030\005 \001(\t\022\025\n\rsubSpeedTopic\030\006 "
  307. "\001(\t\022\033\n\023pubClampLifterTopic\030\007 \001(\t\"k\n\016Emqx"
  308. "_parameter\022\016\n\006NodeId\030\001 \001(\t\022\n\n\002ip\030\002 \001(\t\022\014"
  309. "\n\004port\030\003 \001(\005\022\025\n\rpubStatuTopic\030\004 \001(\t\022\030\n\020p"
  310. "ubNavStatuTopic\030\005 \001(\t\"U\n\013BrotherEmqx\022\016\n\006"
  311. "NodeId\030\001 \001(\t\022\n\n\002ip\030\002 \001(\t\022\014\n\004port\030\003 \001(\005\022\034"
  312. "\n\024subBrotherStatuTopic\030\004 \001(\t\"_\n\rMPC_para"
  313. "meter\022\027\n\017shortest_radius\030\001 \001(\002\022\n\n\002dt\030\002 \001"
  314. "(\002\022\024\n\014acc_velocity\030\003 \001(\002\022\023\n\013acc_angular\030"
  315. "\004 \001(\002\"&\n\nSpeedLimit\022\013\n\003min\030\001 \001(\002\022\013\n\003max\030"
  316. "\002 \001(\002\" \n\010Accuracy\022\t\n\001l\030\001 \001(\002\022\t\n\001w\030\002 \001(\002\""
  317. "\331\003\n\024Navigation_parameter\022\020\n\010main_agv\030\001 \001"
  318. "(\010\0221\n\010Agv_emqx\030\002 \001(\0132\037.NavParameter.AgvE"
  319. "mqx_parameter\0223\n\rTerminal_emqx\030\003 \001(\0132\034.N"
  320. "avParameter.Emqx_parameter\022/\n\014brother_em"
  321. "qx\030\004 \001(\0132\031.NavParameter.BrotherEmqx\0224\n\017x"
  322. "_mpc_parameter\030\005 \001(\0132\033.NavParameter.MPC_"
  323. "parameter\0224\n\017y_mpc_parameter\030\006 \001(\0132\033.Nav"
  324. "Parameter.MPC_parameter\022-\n\013InOutVLimit\030\007"
  325. " \001(\0132\030.NavParameter.SpeedLimit\0223\n\021NodeVe"
  326. "locityLimit\030\010 \001(\0132\030.NavParameter.SpeedLi"
  327. "mit\0222\n\020NodeAngularLimit\030\t \001(\0132\030.NavParam"
  328. "eter.SpeedLimit\022\022\n\nrpc_ipport\030\n \001(\tb\006pro"
  329. "to3"
  330. };
  331. static ::absl::once_flag descriptor_table_parameter_2eproto_once;
  332. const ::_pbi::DescriptorTable descriptor_table_parameter_2eproto = {
  333. false,
  334. false,
  335. 1043,
  336. descriptor_table_protodef_parameter_2eproto,
  337. "parameter.proto",
  338. &descriptor_table_parameter_2eproto_once,
  339. nullptr,
  340. 0,
  341. 7,
  342. schemas,
  343. file_default_instances,
  344. TableStruct_parameter_2eproto::offsets,
  345. file_level_metadata_parameter_2eproto,
  346. file_level_enum_descriptors_parameter_2eproto,
  347. file_level_service_descriptors_parameter_2eproto,
  348. };
  349. // This function exists to be marked as weak.
  350. // It can significantly speed up compilation by breaking up LLVM's SCC
  351. // in the .pb.cc translation units. Large translation units see a
  352. // reduction of more than 35% of walltime for optimized builds. Without
  353. // the weak attribute all the messages in the file, including all the
  354. // vtables and everything they use become part of the same SCC through
  355. // a cycle like:
  356. // GetMetadata -> descriptor table -> default instances ->
  357. // vtables -> GetMetadata
  358. // By adding a weak function here we break the connection from the
  359. // individual vtables back into the descriptor table.
  360. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_parameter_2eproto_getter() {
  361. return &descriptor_table_parameter_2eproto;
  362. }
  363. // Force running AddDescriptors() at dynamic initialization time.
  364. PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
  365. static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_parameter_2eproto(&descriptor_table_parameter_2eproto);
  366. namespace NavParameter {
  367. // ===================================================================
  368. class AgvEmqx_parameter::_Internal {
  369. public:
  370. };
  371. AgvEmqx_parameter::AgvEmqx_parameter(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  372. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  373. SharedCtor(arena);
  374. // @@protoc_insertion_point(arena_constructor:NavParameter.AgvEmqx_parameter)
  375. }
  376. AgvEmqx_parameter::AgvEmqx_parameter(const AgvEmqx_parameter& from)
  377. : ::PROTOBUF_NAMESPACE_ID::Message() {
  378. AgvEmqx_parameter* const _this = this; (void)_this;
  379. new (&_impl_) Impl_{
  380. decltype(_impl_.nodeid_) {}
  381. , decltype(_impl_.ip_) {}
  382. , decltype(_impl_.pubspeedtopic_) {}
  383. , decltype(_impl_.subposetopic_) {}
  384. , decltype(_impl_.subspeedtopic_) {}
  385. , decltype(_impl_.pubclampliftertopic_) {}
  386. , decltype(_impl_.port_) {}
  387. , /*decltype(_impl_._cached_size_)*/{}};
  388. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  389. _impl_.nodeid_.InitDefault();
  390. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  391. _impl_.nodeid_.Set("", GetArenaForAllocation());
  392. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  393. if (!from._internal_nodeid().empty()) {
  394. _this->_impl_.nodeid_.Set(from._internal_nodeid(), _this->GetArenaForAllocation());
  395. }
  396. _impl_.ip_.InitDefault();
  397. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  398. _impl_.ip_.Set("", GetArenaForAllocation());
  399. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  400. if (!from._internal_ip().empty()) {
  401. _this->_impl_.ip_.Set(from._internal_ip(), _this->GetArenaForAllocation());
  402. }
  403. _impl_.pubspeedtopic_.InitDefault();
  404. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  405. _impl_.pubspeedtopic_.Set("", GetArenaForAllocation());
  406. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  407. if (!from._internal_pubspeedtopic().empty()) {
  408. _this->_impl_.pubspeedtopic_.Set(from._internal_pubspeedtopic(), _this->GetArenaForAllocation());
  409. }
  410. _impl_.subposetopic_.InitDefault();
  411. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  412. _impl_.subposetopic_.Set("", GetArenaForAllocation());
  413. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  414. if (!from._internal_subposetopic().empty()) {
  415. _this->_impl_.subposetopic_.Set(from._internal_subposetopic(), _this->GetArenaForAllocation());
  416. }
  417. _impl_.subspeedtopic_.InitDefault();
  418. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  419. _impl_.subspeedtopic_.Set("", GetArenaForAllocation());
  420. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  421. if (!from._internal_subspeedtopic().empty()) {
  422. _this->_impl_.subspeedtopic_.Set(from._internal_subspeedtopic(), _this->GetArenaForAllocation());
  423. }
  424. _impl_.pubclampliftertopic_.InitDefault();
  425. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  426. _impl_.pubclampliftertopic_.Set("", GetArenaForAllocation());
  427. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  428. if (!from._internal_pubclampliftertopic().empty()) {
  429. _this->_impl_.pubclampliftertopic_.Set(from._internal_pubclampliftertopic(), _this->GetArenaForAllocation());
  430. }
  431. _this->_impl_.port_ = from._impl_.port_;
  432. // @@protoc_insertion_point(copy_constructor:NavParameter.AgvEmqx_parameter)
  433. }
  434. inline void AgvEmqx_parameter::SharedCtor(::_pb::Arena* arena) {
  435. (void)arena;
  436. new (&_impl_) Impl_{
  437. decltype(_impl_.nodeid_) {}
  438. , decltype(_impl_.ip_) {}
  439. , decltype(_impl_.pubspeedtopic_) {}
  440. , decltype(_impl_.subposetopic_) {}
  441. , decltype(_impl_.subspeedtopic_) {}
  442. , decltype(_impl_.pubclampliftertopic_) {}
  443. , decltype(_impl_.port_) { 0 }
  444. , /*decltype(_impl_._cached_size_)*/{}
  445. };
  446. _impl_.nodeid_.InitDefault();
  447. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  448. _impl_.nodeid_.Set("", GetArenaForAllocation());
  449. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  450. _impl_.ip_.InitDefault();
  451. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  452. _impl_.ip_.Set("", GetArenaForAllocation());
  453. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  454. _impl_.pubspeedtopic_.InitDefault();
  455. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  456. _impl_.pubspeedtopic_.Set("", GetArenaForAllocation());
  457. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  458. _impl_.subposetopic_.InitDefault();
  459. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  460. _impl_.subposetopic_.Set("", GetArenaForAllocation());
  461. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  462. _impl_.subspeedtopic_.InitDefault();
  463. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  464. _impl_.subspeedtopic_.Set("", GetArenaForAllocation());
  465. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  466. _impl_.pubclampliftertopic_.InitDefault();
  467. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  468. _impl_.pubclampliftertopic_.Set("", GetArenaForAllocation());
  469. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  470. }
  471. AgvEmqx_parameter::~AgvEmqx_parameter() {
  472. // @@protoc_insertion_point(destructor:NavParameter.AgvEmqx_parameter)
  473. if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  474. (void)arena;
  475. return;
  476. }
  477. SharedDtor();
  478. }
  479. inline void AgvEmqx_parameter::SharedDtor() {
  480. ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  481. _impl_.nodeid_.Destroy();
  482. _impl_.ip_.Destroy();
  483. _impl_.pubspeedtopic_.Destroy();
  484. _impl_.subposetopic_.Destroy();
  485. _impl_.subspeedtopic_.Destroy();
  486. _impl_.pubclampliftertopic_.Destroy();
  487. }
  488. void AgvEmqx_parameter::SetCachedSize(int size) const {
  489. _impl_._cached_size_.Set(size);
  490. }
  491. void AgvEmqx_parameter::Clear() {
  492. // @@protoc_insertion_point(message_clear_start:NavParameter.AgvEmqx_parameter)
  493. ::uint32_t cached_has_bits = 0;
  494. // Prevent compiler warnings about cached_has_bits being unused
  495. (void) cached_has_bits;
  496. _impl_.nodeid_.ClearToEmpty();
  497. _impl_.ip_.ClearToEmpty();
  498. _impl_.pubspeedtopic_.ClearToEmpty();
  499. _impl_.subposetopic_.ClearToEmpty();
  500. _impl_.subspeedtopic_.ClearToEmpty();
  501. _impl_.pubclampliftertopic_.ClearToEmpty();
  502. _impl_.port_ = 0;
  503. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  504. }
  505. const char* AgvEmqx_parameter::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
  506. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  507. while (!ctx->Done(&ptr)) {
  508. ::uint32_t tag;
  509. ptr = ::_pbi::ReadTag(ptr, &tag);
  510. switch (tag >> 3) {
  511. // string NodeId = 1;
  512. case 1:
  513. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
  514. auto str = _internal_mutable_nodeid();
  515. ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
  516. CHK_(ptr);
  517. CHK_(::_pbi::VerifyUTF8(str, "NavParameter.AgvEmqx_parameter.NodeId"));
  518. } else {
  519. goto handle_unusual;
  520. }
  521. continue;
  522. // string ip = 2;
  523. case 2:
  524. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
  525. auto str = _internal_mutable_ip();
  526. ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
  527. CHK_(ptr);
  528. CHK_(::_pbi::VerifyUTF8(str, "NavParameter.AgvEmqx_parameter.ip"));
  529. } else {
  530. goto handle_unusual;
  531. }
  532. continue;
  533. // int32 port = 3;
  534. case 3:
  535. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
  536. _impl_.port_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  537. CHK_(ptr);
  538. } else {
  539. goto handle_unusual;
  540. }
  541. continue;
  542. // string pubSpeedTopic = 4;
  543. case 4:
  544. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
  545. auto str = _internal_mutable_pubspeedtopic();
  546. ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
  547. CHK_(ptr);
  548. CHK_(::_pbi::VerifyUTF8(str, "NavParameter.AgvEmqx_parameter.pubSpeedTopic"));
  549. } else {
  550. goto handle_unusual;
  551. }
  552. continue;
  553. // string subPoseTopic = 5;
  554. case 5:
  555. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) {
  556. auto str = _internal_mutable_subposetopic();
  557. ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
  558. CHK_(ptr);
  559. CHK_(::_pbi::VerifyUTF8(str, "NavParameter.AgvEmqx_parameter.subPoseTopic"));
  560. } else {
  561. goto handle_unusual;
  562. }
  563. continue;
  564. // string subSpeedTopic = 6;
  565. case 6:
  566. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 50)) {
  567. auto str = _internal_mutable_subspeedtopic();
  568. ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
  569. CHK_(ptr);
  570. CHK_(::_pbi::VerifyUTF8(str, "NavParameter.AgvEmqx_parameter.subSpeedTopic"));
  571. } else {
  572. goto handle_unusual;
  573. }
  574. continue;
  575. // string pubClampLifterTopic = 7;
  576. case 7:
  577. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 58)) {
  578. auto str = _internal_mutable_pubclampliftertopic();
  579. ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
  580. CHK_(ptr);
  581. CHK_(::_pbi::VerifyUTF8(str, "NavParameter.AgvEmqx_parameter.pubClampLifterTopic"));
  582. } else {
  583. goto handle_unusual;
  584. }
  585. continue;
  586. default:
  587. goto handle_unusual;
  588. } // switch
  589. handle_unusual:
  590. if ((tag == 0) || ((tag & 7) == 4)) {
  591. CHK_(ptr);
  592. ctx->SetLastTag(tag);
  593. goto message_done;
  594. }
  595. ptr = UnknownFieldParse(
  596. tag,
  597. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  598. ptr, ctx);
  599. CHK_(ptr != nullptr);
  600. } // while
  601. message_done:
  602. return ptr;
  603. failure:
  604. ptr = nullptr;
  605. goto message_done;
  606. #undef CHK_
  607. }
  608. ::uint8_t* AgvEmqx_parameter::_InternalSerialize(
  609. ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  610. // @@protoc_insertion_point(serialize_to_array_start:NavParameter.AgvEmqx_parameter)
  611. ::uint32_t cached_has_bits = 0;
  612. (void) cached_has_bits;
  613. // string NodeId = 1;
  614. if (!this->_internal_nodeid().empty()) {
  615. const std::string& _s = this->_internal_nodeid();
  616. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  617. _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "NavParameter.AgvEmqx_parameter.NodeId");
  618. target = stream->WriteStringMaybeAliased(1, _s, target);
  619. }
  620. // string ip = 2;
  621. if (!this->_internal_ip().empty()) {
  622. const std::string& _s = this->_internal_ip();
  623. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  624. _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "NavParameter.AgvEmqx_parameter.ip");
  625. target = stream->WriteStringMaybeAliased(2, _s, target);
  626. }
  627. // int32 port = 3;
  628. if (this->_internal_port() != 0) {
  629. target = stream->EnsureSpace(target);
  630. target = ::_pbi::WireFormatLite::WriteInt32ToArray(
  631. 3, this->_internal_port(), target);
  632. }
  633. // string pubSpeedTopic = 4;
  634. if (!this->_internal_pubspeedtopic().empty()) {
  635. const std::string& _s = this->_internal_pubspeedtopic();
  636. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  637. _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "NavParameter.AgvEmqx_parameter.pubSpeedTopic");
  638. target = stream->WriteStringMaybeAliased(4, _s, target);
  639. }
  640. // string subPoseTopic = 5;
  641. if (!this->_internal_subposetopic().empty()) {
  642. const std::string& _s = this->_internal_subposetopic();
  643. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  644. _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "NavParameter.AgvEmqx_parameter.subPoseTopic");
  645. target = stream->WriteStringMaybeAliased(5, _s, target);
  646. }
  647. // string subSpeedTopic = 6;
  648. if (!this->_internal_subspeedtopic().empty()) {
  649. const std::string& _s = this->_internal_subspeedtopic();
  650. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  651. _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "NavParameter.AgvEmqx_parameter.subSpeedTopic");
  652. target = stream->WriteStringMaybeAliased(6, _s, target);
  653. }
  654. // string pubClampLifterTopic = 7;
  655. if (!this->_internal_pubclampliftertopic().empty()) {
  656. const std::string& _s = this->_internal_pubclampliftertopic();
  657. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  658. _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "NavParameter.AgvEmqx_parameter.pubClampLifterTopic");
  659. target = stream->WriteStringMaybeAliased(7, _s, target);
  660. }
  661. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  662. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  663. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  664. }
  665. // @@protoc_insertion_point(serialize_to_array_end:NavParameter.AgvEmqx_parameter)
  666. return target;
  667. }
  668. ::size_t AgvEmqx_parameter::ByteSizeLong() const {
  669. // @@protoc_insertion_point(message_byte_size_start:NavParameter.AgvEmqx_parameter)
  670. ::size_t total_size = 0;
  671. ::uint32_t cached_has_bits = 0;
  672. // Prevent compiler warnings about cached_has_bits being unused
  673. (void) cached_has_bits;
  674. // string NodeId = 1;
  675. if (!this->_internal_nodeid().empty()) {
  676. total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  677. this->_internal_nodeid());
  678. }
  679. // string ip = 2;
  680. if (!this->_internal_ip().empty()) {
  681. total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  682. this->_internal_ip());
  683. }
  684. // string pubSpeedTopic = 4;
  685. if (!this->_internal_pubspeedtopic().empty()) {
  686. total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  687. this->_internal_pubspeedtopic());
  688. }
  689. // string subPoseTopic = 5;
  690. if (!this->_internal_subposetopic().empty()) {
  691. total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  692. this->_internal_subposetopic());
  693. }
  694. // string subSpeedTopic = 6;
  695. if (!this->_internal_subspeedtopic().empty()) {
  696. total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  697. this->_internal_subspeedtopic());
  698. }
  699. // string pubClampLifterTopic = 7;
  700. if (!this->_internal_pubclampliftertopic().empty()) {
  701. total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  702. this->_internal_pubclampliftertopic());
  703. }
  704. // int32 port = 3;
  705. if (this->_internal_port() != 0) {
  706. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
  707. this->_internal_port());
  708. }
  709. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  710. }
  711. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AgvEmqx_parameter::_class_data_ = {
  712. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  713. AgvEmqx_parameter::MergeImpl
  714. };
  715. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AgvEmqx_parameter::GetClassData() const { return &_class_data_; }
  716. void AgvEmqx_parameter::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
  717. auto* const _this = static_cast<AgvEmqx_parameter*>(&to_msg);
  718. auto& from = static_cast<const AgvEmqx_parameter&>(from_msg);
  719. // @@protoc_insertion_point(class_specific_merge_from_start:NavParameter.AgvEmqx_parameter)
  720. ABSL_DCHECK_NE(&from, _this);
  721. ::uint32_t cached_has_bits = 0;
  722. (void) cached_has_bits;
  723. if (!from._internal_nodeid().empty()) {
  724. _this->_internal_set_nodeid(from._internal_nodeid());
  725. }
  726. if (!from._internal_ip().empty()) {
  727. _this->_internal_set_ip(from._internal_ip());
  728. }
  729. if (!from._internal_pubspeedtopic().empty()) {
  730. _this->_internal_set_pubspeedtopic(from._internal_pubspeedtopic());
  731. }
  732. if (!from._internal_subposetopic().empty()) {
  733. _this->_internal_set_subposetopic(from._internal_subposetopic());
  734. }
  735. if (!from._internal_subspeedtopic().empty()) {
  736. _this->_internal_set_subspeedtopic(from._internal_subspeedtopic());
  737. }
  738. if (!from._internal_pubclampliftertopic().empty()) {
  739. _this->_internal_set_pubclampliftertopic(from._internal_pubclampliftertopic());
  740. }
  741. if (from._internal_port() != 0) {
  742. _this->_internal_set_port(from._internal_port());
  743. }
  744. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  745. }
  746. void AgvEmqx_parameter::CopyFrom(const AgvEmqx_parameter& from) {
  747. // @@protoc_insertion_point(class_specific_copy_from_start:NavParameter.AgvEmqx_parameter)
  748. if (&from == this) return;
  749. Clear();
  750. MergeFrom(from);
  751. }
  752. bool AgvEmqx_parameter::IsInitialized() const {
  753. return true;
  754. }
  755. void AgvEmqx_parameter::InternalSwap(AgvEmqx_parameter* other) {
  756. using std::swap;
  757. auto* lhs_arena = GetArenaForAllocation();
  758. auto* rhs_arena = other->GetArenaForAllocation();
  759. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  760. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.nodeid_, lhs_arena,
  761. &other->_impl_.nodeid_, rhs_arena);
  762. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.ip_, lhs_arena,
  763. &other->_impl_.ip_, rhs_arena);
  764. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.pubspeedtopic_, lhs_arena,
  765. &other->_impl_.pubspeedtopic_, rhs_arena);
  766. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.subposetopic_, lhs_arena,
  767. &other->_impl_.subposetopic_, rhs_arena);
  768. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.subspeedtopic_, lhs_arena,
  769. &other->_impl_.subspeedtopic_, rhs_arena);
  770. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.pubclampliftertopic_, lhs_arena,
  771. &other->_impl_.pubclampliftertopic_, rhs_arena);
  772. swap(_impl_.port_, other->_impl_.port_);
  773. }
  774. ::PROTOBUF_NAMESPACE_ID::Metadata AgvEmqx_parameter::GetMetadata() const {
  775. return ::_pbi::AssignDescriptors(
  776. &descriptor_table_parameter_2eproto_getter, &descriptor_table_parameter_2eproto_once,
  777. file_level_metadata_parameter_2eproto[0]);
  778. }
  779. // ===================================================================
  780. class Emqx_parameter::_Internal {
  781. public:
  782. };
  783. Emqx_parameter::Emqx_parameter(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  784. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  785. SharedCtor(arena);
  786. // @@protoc_insertion_point(arena_constructor:NavParameter.Emqx_parameter)
  787. }
  788. Emqx_parameter::Emqx_parameter(const Emqx_parameter& from)
  789. : ::PROTOBUF_NAMESPACE_ID::Message() {
  790. Emqx_parameter* const _this = this; (void)_this;
  791. new (&_impl_) Impl_{
  792. decltype(_impl_.nodeid_) {}
  793. , decltype(_impl_.ip_) {}
  794. , decltype(_impl_.pubstatutopic_) {}
  795. , decltype(_impl_.pubnavstatutopic_) {}
  796. , decltype(_impl_.port_) {}
  797. , /*decltype(_impl_._cached_size_)*/{}};
  798. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  799. _impl_.nodeid_.InitDefault();
  800. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  801. _impl_.nodeid_.Set("", GetArenaForAllocation());
  802. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  803. if (!from._internal_nodeid().empty()) {
  804. _this->_impl_.nodeid_.Set(from._internal_nodeid(), _this->GetArenaForAllocation());
  805. }
  806. _impl_.ip_.InitDefault();
  807. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  808. _impl_.ip_.Set("", GetArenaForAllocation());
  809. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  810. if (!from._internal_ip().empty()) {
  811. _this->_impl_.ip_.Set(from._internal_ip(), _this->GetArenaForAllocation());
  812. }
  813. _impl_.pubstatutopic_.InitDefault();
  814. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  815. _impl_.pubstatutopic_.Set("", GetArenaForAllocation());
  816. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  817. if (!from._internal_pubstatutopic().empty()) {
  818. _this->_impl_.pubstatutopic_.Set(from._internal_pubstatutopic(), _this->GetArenaForAllocation());
  819. }
  820. _impl_.pubnavstatutopic_.InitDefault();
  821. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  822. _impl_.pubnavstatutopic_.Set("", GetArenaForAllocation());
  823. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  824. if (!from._internal_pubnavstatutopic().empty()) {
  825. _this->_impl_.pubnavstatutopic_.Set(from._internal_pubnavstatutopic(), _this->GetArenaForAllocation());
  826. }
  827. _this->_impl_.port_ = from._impl_.port_;
  828. // @@protoc_insertion_point(copy_constructor:NavParameter.Emqx_parameter)
  829. }
  830. inline void Emqx_parameter::SharedCtor(::_pb::Arena* arena) {
  831. (void)arena;
  832. new (&_impl_) Impl_{
  833. decltype(_impl_.nodeid_) {}
  834. , decltype(_impl_.ip_) {}
  835. , decltype(_impl_.pubstatutopic_) {}
  836. , decltype(_impl_.pubnavstatutopic_) {}
  837. , decltype(_impl_.port_) { 0 }
  838. , /*decltype(_impl_._cached_size_)*/{}
  839. };
  840. _impl_.nodeid_.InitDefault();
  841. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  842. _impl_.nodeid_.Set("", GetArenaForAllocation());
  843. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  844. _impl_.ip_.InitDefault();
  845. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  846. _impl_.ip_.Set("", GetArenaForAllocation());
  847. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  848. _impl_.pubstatutopic_.InitDefault();
  849. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  850. _impl_.pubstatutopic_.Set("", GetArenaForAllocation());
  851. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  852. _impl_.pubnavstatutopic_.InitDefault();
  853. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  854. _impl_.pubnavstatutopic_.Set("", GetArenaForAllocation());
  855. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  856. }
  857. Emqx_parameter::~Emqx_parameter() {
  858. // @@protoc_insertion_point(destructor:NavParameter.Emqx_parameter)
  859. if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  860. (void)arena;
  861. return;
  862. }
  863. SharedDtor();
  864. }
  865. inline void Emqx_parameter::SharedDtor() {
  866. ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  867. _impl_.nodeid_.Destroy();
  868. _impl_.ip_.Destroy();
  869. _impl_.pubstatutopic_.Destroy();
  870. _impl_.pubnavstatutopic_.Destroy();
  871. }
  872. void Emqx_parameter::SetCachedSize(int size) const {
  873. _impl_._cached_size_.Set(size);
  874. }
  875. void Emqx_parameter::Clear() {
  876. // @@protoc_insertion_point(message_clear_start:NavParameter.Emqx_parameter)
  877. ::uint32_t cached_has_bits = 0;
  878. // Prevent compiler warnings about cached_has_bits being unused
  879. (void) cached_has_bits;
  880. _impl_.nodeid_.ClearToEmpty();
  881. _impl_.ip_.ClearToEmpty();
  882. _impl_.pubstatutopic_.ClearToEmpty();
  883. _impl_.pubnavstatutopic_.ClearToEmpty();
  884. _impl_.port_ = 0;
  885. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  886. }
  887. const char* Emqx_parameter::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
  888. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  889. while (!ctx->Done(&ptr)) {
  890. ::uint32_t tag;
  891. ptr = ::_pbi::ReadTag(ptr, &tag);
  892. switch (tag >> 3) {
  893. // string NodeId = 1;
  894. case 1:
  895. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
  896. auto str = _internal_mutable_nodeid();
  897. ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
  898. CHK_(ptr);
  899. CHK_(::_pbi::VerifyUTF8(str, "NavParameter.Emqx_parameter.NodeId"));
  900. } else {
  901. goto handle_unusual;
  902. }
  903. continue;
  904. // string ip = 2;
  905. case 2:
  906. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
  907. auto str = _internal_mutable_ip();
  908. ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
  909. CHK_(ptr);
  910. CHK_(::_pbi::VerifyUTF8(str, "NavParameter.Emqx_parameter.ip"));
  911. } else {
  912. goto handle_unusual;
  913. }
  914. continue;
  915. // int32 port = 3;
  916. case 3:
  917. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
  918. _impl_.port_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  919. CHK_(ptr);
  920. } else {
  921. goto handle_unusual;
  922. }
  923. continue;
  924. // string pubStatuTopic = 4;
  925. case 4:
  926. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
  927. auto str = _internal_mutable_pubstatutopic();
  928. ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
  929. CHK_(ptr);
  930. CHK_(::_pbi::VerifyUTF8(str, "NavParameter.Emqx_parameter.pubStatuTopic"));
  931. } else {
  932. goto handle_unusual;
  933. }
  934. continue;
  935. // string pubNavStatuTopic = 5;
  936. case 5:
  937. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) {
  938. auto str = _internal_mutable_pubnavstatutopic();
  939. ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
  940. CHK_(ptr);
  941. CHK_(::_pbi::VerifyUTF8(str, "NavParameter.Emqx_parameter.pubNavStatuTopic"));
  942. } else {
  943. goto handle_unusual;
  944. }
  945. continue;
  946. default:
  947. goto handle_unusual;
  948. } // switch
  949. handle_unusual:
  950. if ((tag == 0) || ((tag & 7) == 4)) {
  951. CHK_(ptr);
  952. ctx->SetLastTag(tag);
  953. goto message_done;
  954. }
  955. ptr = UnknownFieldParse(
  956. tag,
  957. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  958. ptr, ctx);
  959. CHK_(ptr != nullptr);
  960. } // while
  961. message_done:
  962. return ptr;
  963. failure:
  964. ptr = nullptr;
  965. goto message_done;
  966. #undef CHK_
  967. }
  968. ::uint8_t* Emqx_parameter::_InternalSerialize(
  969. ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  970. // @@protoc_insertion_point(serialize_to_array_start:NavParameter.Emqx_parameter)
  971. ::uint32_t cached_has_bits = 0;
  972. (void) cached_has_bits;
  973. // string NodeId = 1;
  974. if (!this->_internal_nodeid().empty()) {
  975. const std::string& _s = this->_internal_nodeid();
  976. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  977. _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "NavParameter.Emqx_parameter.NodeId");
  978. target = stream->WriteStringMaybeAliased(1, _s, target);
  979. }
  980. // string ip = 2;
  981. if (!this->_internal_ip().empty()) {
  982. const std::string& _s = this->_internal_ip();
  983. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  984. _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "NavParameter.Emqx_parameter.ip");
  985. target = stream->WriteStringMaybeAliased(2, _s, target);
  986. }
  987. // int32 port = 3;
  988. if (this->_internal_port() != 0) {
  989. target = stream->EnsureSpace(target);
  990. target = ::_pbi::WireFormatLite::WriteInt32ToArray(
  991. 3, this->_internal_port(), target);
  992. }
  993. // string pubStatuTopic = 4;
  994. if (!this->_internal_pubstatutopic().empty()) {
  995. const std::string& _s = this->_internal_pubstatutopic();
  996. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  997. _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "NavParameter.Emqx_parameter.pubStatuTopic");
  998. target = stream->WriteStringMaybeAliased(4, _s, target);
  999. }
  1000. // string pubNavStatuTopic = 5;
  1001. if (!this->_internal_pubnavstatutopic().empty()) {
  1002. const std::string& _s = this->_internal_pubnavstatutopic();
  1003. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  1004. _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "NavParameter.Emqx_parameter.pubNavStatuTopic");
  1005. target = stream->WriteStringMaybeAliased(5, _s, target);
  1006. }
  1007. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1008. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  1009. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  1010. }
  1011. // @@protoc_insertion_point(serialize_to_array_end:NavParameter.Emqx_parameter)
  1012. return target;
  1013. }
  1014. ::size_t Emqx_parameter::ByteSizeLong() const {
  1015. // @@protoc_insertion_point(message_byte_size_start:NavParameter.Emqx_parameter)
  1016. ::size_t total_size = 0;
  1017. ::uint32_t cached_has_bits = 0;
  1018. // Prevent compiler warnings about cached_has_bits being unused
  1019. (void) cached_has_bits;
  1020. // string NodeId = 1;
  1021. if (!this->_internal_nodeid().empty()) {
  1022. total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  1023. this->_internal_nodeid());
  1024. }
  1025. // string ip = 2;
  1026. if (!this->_internal_ip().empty()) {
  1027. total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  1028. this->_internal_ip());
  1029. }
  1030. // string pubStatuTopic = 4;
  1031. if (!this->_internal_pubstatutopic().empty()) {
  1032. total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  1033. this->_internal_pubstatutopic());
  1034. }
  1035. // string pubNavStatuTopic = 5;
  1036. if (!this->_internal_pubnavstatutopic().empty()) {
  1037. total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  1038. this->_internal_pubnavstatutopic());
  1039. }
  1040. // int32 port = 3;
  1041. if (this->_internal_port() != 0) {
  1042. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
  1043. this->_internal_port());
  1044. }
  1045. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  1046. }
  1047. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Emqx_parameter::_class_data_ = {
  1048. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  1049. Emqx_parameter::MergeImpl
  1050. };
  1051. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Emqx_parameter::GetClassData() const { return &_class_data_; }
  1052. void Emqx_parameter::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
  1053. auto* const _this = static_cast<Emqx_parameter*>(&to_msg);
  1054. auto& from = static_cast<const Emqx_parameter&>(from_msg);
  1055. // @@protoc_insertion_point(class_specific_merge_from_start:NavParameter.Emqx_parameter)
  1056. ABSL_DCHECK_NE(&from, _this);
  1057. ::uint32_t cached_has_bits = 0;
  1058. (void) cached_has_bits;
  1059. if (!from._internal_nodeid().empty()) {
  1060. _this->_internal_set_nodeid(from._internal_nodeid());
  1061. }
  1062. if (!from._internal_ip().empty()) {
  1063. _this->_internal_set_ip(from._internal_ip());
  1064. }
  1065. if (!from._internal_pubstatutopic().empty()) {
  1066. _this->_internal_set_pubstatutopic(from._internal_pubstatutopic());
  1067. }
  1068. if (!from._internal_pubnavstatutopic().empty()) {
  1069. _this->_internal_set_pubnavstatutopic(from._internal_pubnavstatutopic());
  1070. }
  1071. if (from._internal_port() != 0) {
  1072. _this->_internal_set_port(from._internal_port());
  1073. }
  1074. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1075. }
  1076. void Emqx_parameter::CopyFrom(const Emqx_parameter& from) {
  1077. // @@protoc_insertion_point(class_specific_copy_from_start:NavParameter.Emqx_parameter)
  1078. if (&from == this) return;
  1079. Clear();
  1080. MergeFrom(from);
  1081. }
  1082. bool Emqx_parameter::IsInitialized() const {
  1083. return true;
  1084. }
  1085. void Emqx_parameter::InternalSwap(Emqx_parameter* other) {
  1086. using std::swap;
  1087. auto* lhs_arena = GetArenaForAllocation();
  1088. auto* rhs_arena = other->GetArenaForAllocation();
  1089. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1090. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.nodeid_, lhs_arena,
  1091. &other->_impl_.nodeid_, rhs_arena);
  1092. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.ip_, lhs_arena,
  1093. &other->_impl_.ip_, rhs_arena);
  1094. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.pubstatutopic_, lhs_arena,
  1095. &other->_impl_.pubstatutopic_, rhs_arena);
  1096. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.pubnavstatutopic_, lhs_arena,
  1097. &other->_impl_.pubnavstatutopic_, rhs_arena);
  1098. swap(_impl_.port_, other->_impl_.port_);
  1099. }
  1100. ::PROTOBUF_NAMESPACE_ID::Metadata Emqx_parameter::GetMetadata() const {
  1101. return ::_pbi::AssignDescriptors(
  1102. &descriptor_table_parameter_2eproto_getter, &descriptor_table_parameter_2eproto_once,
  1103. file_level_metadata_parameter_2eproto[1]);
  1104. }
  1105. // ===================================================================
  1106. class BrotherEmqx::_Internal {
  1107. public:
  1108. };
  1109. BrotherEmqx::BrotherEmqx(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  1110. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  1111. SharedCtor(arena);
  1112. // @@protoc_insertion_point(arena_constructor:NavParameter.BrotherEmqx)
  1113. }
  1114. BrotherEmqx::BrotherEmqx(const BrotherEmqx& from)
  1115. : ::PROTOBUF_NAMESPACE_ID::Message() {
  1116. BrotherEmqx* const _this = this; (void)_this;
  1117. new (&_impl_) Impl_{
  1118. decltype(_impl_.nodeid_) {}
  1119. , decltype(_impl_.ip_) {}
  1120. , decltype(_impl_.subbrotherstatutopic_) {}
  1121. , decltype(_impl_.port_) {}
  1122. , /*decltype(_impl_._cached_size_)*/{}};
  1123. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1124. _impl_.nodeid_.InitDefault();
  1125. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1126. _impl_.nodeid_.Set("", GetArenaForAllocation());
  1127. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1128. if (!from._internal_nodeid().empty()) {
  1129. _this->_impl_.nodeid_.Set(from._internal_nodeid(), _this->GetArenaForAllocation());
  1130. }
  1131. _impl_.ip_.InitDefault();
  1132. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1133. _impl_.ip_.Set("", GetArenaForAllocation());
  1134. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1135. if (!from._internal_ip().empty()) {
  1136. _this->_impl_.ip_.Set(from._internal_ip(), _this->GetArenaForAllocation());
  1137. }
  1138. _impl_.subbrotherstatutopic_.InitDefault();
  1139. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1140. _impl_.subbrotherstatutopic_.Set("", GetArenaForAllocation());
  1141. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1142. if (!from._internal_subbrotherstatutopic().empty()) {
  1143. _this->_impl_.subbrotherstatutopic_.Set(from._internal_subbrotherstatutopic(), _this->GetArenaForAllocation());
  1144. }
  1145. _this->_impl_.port_ = from._impl_.port_;
  1146. // @@protoc_insertion_point(copy_constructor:NavParameter.BrotherEmqx)
  1147. }
  1148. inline void BrotherEmqx::SharedCtor(::_pb::Arena* arena) {
  1149. (void)arena;
  1150. new (&_impl_) Impl_{
  1151. decltype(_impl_.nodeid_) {}
  1152. , decltype(_impl_.ip_) {}
  1153. , decltype(_impl_.subbrotherstatutopic_) {}
  1154. , decltype(_impl_.port_) { 0 }
  1155. , /*decltype(_impl_._cached_size_)*/{}
  1156. };
  1157. _impl_.nodeid_.InitDefault();
  1158. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1159. _impl_.nodeid_.Set("", GetArenaForAllocation());
  1160. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1161. _impl_.ip_.InitDefault();
  1162. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1163. _impl_.ip_.Set("", GetArenaForAllocation());
  1164. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1165. _impl_.subbrotherstatutopic_.InitDefault();
  1166. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1167. _impl_.subbrotherstatutopic_.Set("", GetArenaForAllocation());
  1168. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1169. }
  1170. BrotherEmqx::~BrotherEmqx() {
  1171. // @@protoc_insertion_point(destructor:NavParameter.BrotherEmqx)
  1172. if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  1173. (void)arena;
  1174. return;
  1175. }
  1176. SharedDtor();
  1177. }
  1178. inline void BrotherEmqx::SharedDtor() {
  1179. ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  1180. _impl_.nodeid_.Destroy();
  1181. _impl_.ip_.Destroy();
  1182. _impl_.subbrotherstatutopic_.Destroy();
  1183. }
  1184. void BrotherEmqx::SetCachedSize(int size) const {
  1185. _impl_._cached_size_.Set(size);
  1186. }
  1187. void BrotherEmqx::Clear() {
  1188. // @@protoc_insertion_point(message_clear_start:NavParameter.BrotherEmqx)
  1189. ::uint32_t cached_has_bits = 0;
  1190. // Prevent compiler warnings about cached_has_bits being unused
  1191. (void) cached_has_bits;
  1192. _impl_.nodeid_.ClearToEmpty();
  1193. _impl_.ip_.ClearToEmpty();
  1194. _impl_.subbrotherstatutopic_.ClearToEmpty();
  1195. _impl_.port_ = 0;
  1196. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1197. }
  1198. const char* BrotherEmqx::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
  1199. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1200. while (!ctx->Done(&ptr)) {
  1201. ::uint32_t tag;
  1202. ptr = ::_pbi::ReadTag(ptr, &tag);
  1203. switch (tag >> 3) {
  1204. // string NodeId = 1;
  1205. case 1:
  1206. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
  1207. auto str = _internal_mutable_nodeid();
  1208. ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
  1209. CHK_(ptr);
  1210. CHK_(::_pbi::VerifyUTF8(str, "NavParameter.BrotherEmqx.NodeId"));
  1211. } else {
  1212. goto handle_unusual;
  1213. }
  1214. continue;
  1215. // string ip = 2;
  1216. case 2:
  1217. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
  1218. auto str = _internal_mutable_ip();
  1219. ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
  1220. CHK_(ptr);
  1221. CHK_(::_pbi::VerifyUTF8(str, "NavParameter.BrotherEmqx.ip"));
  1222. } else {
  1223. goto handle_unusual;
  1224. }
  1225. continue;
  1226. // int32 port = 3;
  1227. case 3:
  1228. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
  1229. _impl_.port_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1230. CHK_(ptr);
  1231. } else {
  1232. goto handle_unusual;
  1233. }
  1234. continue;
  1235. // string subBrotherStatuTopic = 4;
  1236. case 4:
  1237. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
  1238. auto str = _internal_mutable_subbrotherstatutopic();
  1239. ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
  1240. CHK_(ptr);
  1241. CHK_(::_pbi::VerifyUTF8(str, "NavParameter.BrotherEmqx.subBrotherStatuTopic"));
  1242. } else {
  1243. goto handle_unusual;
  1244. }
  1245. continue;
  1246. default:
  1247. goto handle_unusual;
  1248. } // switch
  1249. handle_unusual:
  1250. if ((tag == 0) || ((tag & 7) == 4)) {
  1251. CHK_(ptr);
  1252. ctx->SetLastTag(tag);
  1253. goto message_done;
  1254. }
  1255. ptr = UnknownFieldParse(
  1256. tag,
  1257. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1258. ptr, ctx);
  1259. CHK_(ptr != nullptr);
  1260. } // while
  1261. message_done:
  1262. return ptr;
  1263. failure:
  1264. ptr = nullptr;
  1265. goto message_done;
  1266. #undef CHK_
  1267. }
  1268. ::uint8_t* BrotherEmqx::_InternalSerialize(
  1269. ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  1270. // @@protoc_insertion_point(serialize_to_array_start:NavParameter.BrotherEmqx)
  1271. ::uint32_t cached_has_bits = 0;
  1272. (void) cached_has_bits;
  1273. // string NodeId = 1;
  1274. if (!this->_internal_nodeid().empty()) {
  1275. const std::string& _s = this->_internal_nodeid();
  1276. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  1277. _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "NavParameter.BrotherEmqx.NodeId");
  1278. target = stream->WriteStringMaybeAliased(1, _s, target);
  1279. }
  1280. // string ip = 2;
  1281. if (!this->_internal_ip().empty()) {
  1282. const std::string& _s = this->_internal_ip();
  1283. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  1284. _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "NavParameter.BrotherEmqx.ip");
  1285. target = stream->WriteStringMaybeAliased(2, _s, target);
  1286. }
  1287. // int32 port = 3;
  1288. if (this->_internal_port() != 0) {
  1289. target = stream->EnsureSpace(target);
  1290. target = ::_pbi::WireFormatLite::WriteInt32ToArray(
  1291. 3, this->_internal_port(), target);
  1292. }
  1293. // string subBrotherStatuTopic = 4;
  1294. if (!this->_internal_subbrotherstatutopic().empty()) {
  1295. const std::string& _s = this->_internal_subbrotherstatutopic();
  1296. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  1297. _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "NavParameter.BrotherEmqx.subBrotherStatuTopic");
  1298. target = stream->WriteStringMaybeAliased(4, _s, target);
  1299. }
  1300. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1301. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  1302. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  1303. }
  1304. // @@protoc_insertion_point(serialize_to_array_end:NavParameter.BrotherEmqx)
  1305. return target;
  1306. }
  1307. ::size_t BrotherEmqx::ByteSizeLong() const {
  1308. // @@protoc_insertion_point(message_byte_size_start:NavParameter.BrotherEmqx)
  1309. ::size_t total_size = 0;
  1310. ::uint32_t cached_has_bits = 0;
  1311. // Prevent compiler warnings about cached_has_bits being unused
  1312. (void) cached_has_bits;
  1313. // string NodeId = 1;
  1314. if (!this->_internal_nodeid().empty()) {
  1315. total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  1316. this->_internal_nodeid());
  1317. }
  1318. // string ip = 2;
  1319. if (!this->_internal_ip().empty()) {
  1320. total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  1321. this->_internal_ip());
  1322. }
  1323. // string subBrotherStatuTopic = 4;
  1324. if (!this->_internal_subbrotherstatutopic().empty()) {
  1325. total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  1326. this->_internal_subbrotherstatutopic());
  1327. }
  1328. // int32 port = 3;
  1329. if (this->_internal_port() != 0) {
  1330. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
  1331. this->_internal_port());
  1332. }
  1333. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  1334. }
  1335. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData BrotherEmqx::_class_data_ = {
  1336. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  1337. BrotherEmqx::MergeImpl
  1338. };
  1339. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*BrotherEmqx::GetClassData() const { return &_class_data_; }
  1340. void BrotherEmqx::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
  1341. auto* const _this = static_cast<BrotherEmqx*>(&to_msg);
  1342. auto& from = static_cast<const BrotherEmqx&>(from_msg);
  1343. // @@protoc_insertion_point(class_specific_merge_from_start:NavParameter.BrotherEmqx)
  1344. ABSL_DCHECK_NE(&from, _this);
  1345. ::uint32_t cached_has_bits = 0;
  1346. (void) cached_has_bits;
  1347. if (!from._internal_nodeid().empty()) {
  1348. _this->_internal_set_nodeid(from._internal_nodeid());
  1349. }
  1350. if (!from._internal_ip().empty()) {
  1351. _this->_internal_set_ip(from._internal_ip());
  1352. }
  1353. if (!from._internal_subbrotherstatutopic().empty()) {
  1354. _this->_internal_set_subbrotherstatutopic(from._internal_subbrotherstatutopic());
  1355. }
  1356. if (from._internal_port() != 0) {
  1357. _this->_internal_set_port(from._internal_port());
  1358. }
  1359. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1360. }
  1361. void BrotherEmqx::CopyFrom(const BrotherEmqx& from) {
  1362. // @@protoc_insertion_point(class_specific_copy_from_start:NavParameter.BrotherEmqx)
  1363. if (&from == this) return;
  1364. Clear();
  1365. MergeFrom(from);
  1366. }
  1367. bool BrotherEmqx::IsInitialized() const {
  1368. return true;
  1369. }
  1370. void BrotherEmqx::InternalSwap(BrotherEmqx* other) {
  1371. using std::swap;
  1372. auto* lhs_arena = GetArenaForAllocation();
  1373. auto* rhs_arena = other->GetArenaForAllocation();
  1374. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1375. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.nodeid_, lhs_arena,
  1376. &other->_impl_.nodeid_, rhs_arena);
  1377. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.ip_, lhs_arena,
  1378. &other->_impl_.ip_, rhs_arena);
  1379. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.subbrotherstatutopic_, lhs_arena,
  1380. &other->_impl_.subbrotherstatutopic_, rhs_arena);
  1381. swap(_impl_.port_, other->_impl_.port_);
  1382. }
  1383. ::PROTOBUF_NAMESPACE_ID::Metadata BrotherEmqx::GetMetadata() const {
  1384. return ::_pbi::AssignDescriptors(
  1385. &descriptor_table_parameter_2eproto_getter, &descriptor_table_parameter_2eproto_once,
  1386. file_level_metadata_parameter_2eproto[2]);
  1387. }
  1388. // ===================================================================
  1389. class MPC_parameter::_Internal {
  1390. public:
  1391. };
  1392. MPC_parameter::MPC_parameter(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  1393. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  1394. SharedCtor(arena);
  1395. // @@protoc_insertion_point(arena_constructor:NavParameter.MPC_parameter)
  1396. }
  1397. MPC_parameter::MPC_parameter(const MPC_parameter& from)
  1398. : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) {
  1399. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(
  1400. from._internal_metadata_);
  1401. // @@protoc_insertion_point(copy_constructor:NavParameter.MPC_parameter)
  1402. }
  1403. inline void MPC_parameter::SharedCtor(::_pb::Arena* arena) {
  1404. (void)arena;
  1405. new (&_impl_) Impl_{
  1406. decltype(_impl_.shortest_radius_) { 0 }
  1407. , decltype(_impl_.dt_) { 0 }
  1408. , decltype(_impl_.acc_velocity_) { 0 }
  1409. , decltype(_impl_.acc_angular_) { 0 }
  1410. , /*decltype(_impl_._cached_size_)*/{}
  1411. };
  1412. }
  1413. MPC_parameter::~MPC_parameter() {
  1414. // @@protoc_insertion_point(destructor:NavParameter.MPC_parameter)
  1415. if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  1416. (void)arena;
  1417. return;
  1418. }
  1419. SharedDtor();
  1420. }
  1421. inline void MPC_parameter::SharedDtor() {
  1422. ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  1423. }
  1424. void MPC_parameter::SetCachedSize(int size) const {
  1425. _impl_._cached_size_.Set(size);
  1426. }
  1427. void MPC_parameter::Clear() {
  1428. // @@protoc_insertion_point(message_clear_start:NavParameter.MPC_parameter)
  1429. ::uint32_t cached_has_bits = 0;
  1430. // Prevent compiler warnings about cached_has_bits being unused
  1431. (void) cached_has_bits;
  1432. ::memset(&_impl_.shortest_radius_, 0, static_cast<::size_t>(
  1433. reinterpret_cast<char*>(&_impl_.acc_angular_) -
  1434. reinterpret_cast<char*>(&_impl_.shortest_radius_)) + sizeof(_impl_.acc_angular_));
  1435. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1436. }
  1437. const char* MPC_parameter::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
  1438. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1439. while (!ctx->Done(&ptr)) {
  1440. ::uint32_t tag;
  1441. ptr = ::_pbi::ReadTag(ptr, &tag);
  1442. switch (tag >> 3) {
  1443. // float shortest_radius = 1;
  1444. case 1:
  1445. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 13)) {
  1446. _impl_.shortest_radius_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1447. ptr += sizeof(float);
  1448. } else {
  1449. goto handle_unusual;
  1450. }
  1451. continue;
  1452. // float dt = 2;
  1453. case 2:
  1454. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 21)) {
  1455. _impl_.dt_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1456. ptr += sizeof(float);
  1457. } else {
  1458. goto handle_unusual;
  1459. }
  1460. continue;
  1461. // float acc_velocity = 3;
  1462. case 3:
  1463. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 29)) {
  1464. _impl_.acc_velocity_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1465. ptr += sizeof(float);
  1466. } else {
  1467. goto handle_unusual;
  1468. }
  1469. continue;
  1470. // float acc_angular = 4;
  1471. case 4:
  1472. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 37)) {
  1473. _impl_.acc_angular_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1474. ptr += sizeof(float);
  1475. } else {
  1476. goto handle_unusual;
  1477. }
  1478. continue;
  1479. default:
  1480. goto handle_unusual;
  1481. } // switch
  1482. handle_unusual:
  1483. if ((tag == 0) || ((tag & 7) == 4)) {
  1484. CHK_(ptr);
  1485. ctx->SetLastTag(tag);
  1486. goto message_done;
  1487. }
  1488. ptr = UnknownFieldParse(
  1489. tag,
  1490. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1491. ptr, ctx);
  1492. CHK_(ptr != nullptr);
  1493. } // while
  1494. message_done:
  1495. return ptr;
  1496. failure:
  1497. ptr = nullptr;
  1498. goto message_done;
  1499. #undef CHK_
  1500. }
  1501. ::uint8_t* MPC_parameter::_InternalSerialize(
  1502. ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  1503. // @@protoc_insertion_point(serialize_to_array_start:NavParameter.MPC_parameter)
  1504. ::uint32_t cached_has_bits = 0;
  1505. (void) cached_has_bits;
  1506. // float shortest_radius = 1;
  1507. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1508. float tmp_shortest_radius = this->_internal_shortest_radius();
  1509. ::uint32_t raw_shortest_radius;
  1510. memcpy(&raw_shortest_radius, &tmp_shortest_radius, sizeof(tmp_shortest_radius));
  1511. if (raw_shortest_radius != 0) {
  1512. target = stream->EnsureSpace(target);
  1513. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  1514. 1, this->_internal_shortest_radius(), target);
  1515. }
  1516. // float dt = 2;
  1517. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1518. float tmp_dt = this->_internal_dt();
  1519. ::uint32_t raw_dt;
  1520. memcpy(&raw_dt, &tmp_dt, sizeof(tmp_dt));
  1521. if (raw_dt != 0) {
  1522. target = stream->EnsureSpace(target);
  1523. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  1524. 2, this->_internal_dt(), target);
  1525. }
  1526. // float acc_velocity = 3;
  1527. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1528. float tmp_acc_velocity = this->_internal_acc_velocity();
  1529. ::uint32_t raw_acc_velocity;
  1530. memcpy(&raw_acc_velocity, &tmp_acc_velocity, sizeof(tmp_acc_velocity));
  1531. if (raw_acc_velocity != 0) {
  1532. target = stream->EnsureSpace(target);
  1533. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  1534. 3, this->_internal_acc_velocity(), target);
  1535. }
  1536. // float acc_angular = 4;
  1537. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1538. float tmp_acc_angular = this->_internal_acc_angular();
  1539. ::uint32_t raw_acc_angular;
  1540. memcpy(&raw_acc_angular, &tmp_acc_angular, sizeof(tmp_acc_angular));
  1541. if (raw_acc_angular != 0) {
  1542. target = stream->EnsureSpace(target);
  1543. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  1544. 4, this->_internal_acc_angular(), target);
  1545. }
  1546. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1547. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  1548. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  1549. }
  1550. // @@protoc_insertion_point(serialize_to_array_end:NavParameter.MPC_parameter)
  1551. return target;
  1552. }
  1553. ::size_t MPC_parameter::ByteSizeLong() const {
  1554. // @@protoc_insertion_point(message_byte_size_start:NavParameter.MPC_parameter)
  1555. ::size_t total_size = 0;
  1556. ::uint32_t cached_has_bits = 0;
  1557. // Prevent compiler warnings about cached_has_bits being unused
  1558. (void) cached_has_bits;
  1559. // float shortest_radius = 1;
  1560. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1561. float tmp_shortest_radius = this->_internal_shortest_radius();
  1562. ::uint32_t raw_shortest_radius;
  1563. memcpy(&raw_shortest_radius, &tmp_shortest_radius, sizeof(tmp_shortest_radius));
  1564. if (raw_shortest_radius != 0) {
  1565. total_size += 5;
  1566. }
  1567. // float dt = 2;
  1568. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1569. float tmp_dt = this->_internal_dt();
  1570. ::uint32_t raw_dt;
  1571. memcpy(&raw_dt, &tmp_dt, sizeof(tmp_dt));
  1572. if (raw_dt != 0) {
  1573. total_size += 5;
  1574. }
  1575. // float acc_velocity = 3;
  1576. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1577. float tmp_acc_velocity = this->_internal_acc_velocity();
  1578. ::uint32_t raw_acc_velocity;
  1579. memcpy(&raw_acc_velocity, &tmp_acc_velocity, sizeof(tmp_acc_velocity));
  1580. if (raw_acc_velocity != 0) {
  1581. total_size += 5;
  1582. }
  1583. // float acc_angular = 4;
  1584. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1585. float tmp_acc_angular = this->_internal_acc_angular();
  1586. ::uint32_t raw_acc_angular;
  1587. memcpy(&raw_acc_angular, &tmp_acc_angular, sizeof(tmp_acc_angular));
  1588. if (raw_acc_angular != 0) {
  1589. total_size += 5;
  1590. }
  1591. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  1592. }
  1593. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MPC_parameter::_class_data_ = {
  1594. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  1595. MPC_parameter::MergeImpl
  1596. };
  1597. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MPC_parameter::GetClassData() const { return &_class_data_; }
  1598. void MPC_parameter::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
  1599. auto* const _this = static_cast<MPC_parameter*>(&to_msg);
  1600. auto& from = static_cast<const MPC_parameter&>(from_msg);
  1601. // @@protoc_insertion_point(class_specific_merge_from_start:NavParameter.MPC_parameter)
  1602. ABSL_DCHECK_NE(&from, _this);
  1603. ::uint32_t cached_has_bits = 0;
  1604. (void) cached_has_bits;
  1605. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1606. float tmp_shortest_radius = from._internal_shortest_radius();
  1607. ::uint32_t raw_shortest_radius;
  1608. memcpy(&raw_shortest_radius, &tmp_shortest_radius, sizeof(tmp_shortest_radius));
  1609. if (raw_shortest_radius != 0) {
  1610. _this->_internal_set_shortest_radius(from._internal_shortest_radius());
  1611. }
  1612. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1613. float tmp_dt = from._internal_dt();
  1614. ::uint32_t raw_dt;
  1615. memcpy(&raw_dt, &tmp_dt, sizeof(tmp_dt));
  1616. if (raw_dt != 0) {
  1617. _this->_internal_set_dt(from._internal_dt());
  1618. }
  1619. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1620. float tmp_acc_velocity = from._internal_acc_velocity();
  1621. ::uint32_t raw_acc_velocity;
  1622. memcpy(&raw_acc_velocity, &tmp_acc_velocity, sizeof(tmp_acc_velocity));
  1623. if (raw_acc_velocity != 0) {
  1624. _this->_internal_set_acc_velocity(from._internal_acc_velocity());
  1625. }
  1626. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1627. float tmp_acc_angular = from._internal_acc_angular();
  1628. ::uint32_t raw_acc_angular;
  1629. memcpy(&raw_acc_angular, &tmp_acc_angular, sizeof(tmp_acc_angular));
  1630. if (raw_acc_angular != 0) {
  1631. _this->_internal_set_acc_angular(from._internal_acc_angular());
  1632. }
  1633. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1634. }
  1635. void MPC_parameter::CopyFrom(const MPC_parameter& from) {
  1636. // @@protoc_insertion_point(class_specific_copy_from_start:NavParameter.MPC_parameter)
  1637. if (&from == this) return;
  1638. Clear();
  1639. MergeFrom(from);
  1640. }
  1641. bool MPC_parameter::IsInitialized() const {
  1642. return true;
  1643. }
  1644. void MPC_parameter::InternalSwap(MPC_parameter* other) {
  1645. using std::swap;
  1646. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1647. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  1648. PROTOBUF_FIELD_OFFSET(MPC_parameter, _impl_.acc_angular_)
  1649. + sizeof(MPC_parameter::_impl_.acc_angular_)
  1650. - PROTOBUF_FIELD_OFFSET(MPC_parameter, _impl_.shortest_radius_)>(
  1651. reinterpret_cast<char*>(&_impl_.shortest_radius_),
  1652. reinterpret_cast<char*>(&other->_impl_.shortest_radius_));
  1653. }
  1654. ::PROTOBUF_NAMESPACE_ID::Metadata MPC_parameter::GetMetadata() const {
  1655. return ::_pbi::AssignDescriptors(
  1656. &descriptor_table_parameter_2eproto_getter, &descriptor_table_parameter_2eproto_once,
  1657. file_level_metadata_parameter_2eproto[3]);
  1658. }
  1659. // ===================================================================
  1660. class SpeedLimit::_Internal {
  1661. public:
  1662. };
  1663. SpeedLimit::SpeedLimit(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  1664. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  1665. SharedCtor(arena);
  1666. // @@protoc_insertion_point(arena_constructor:NavParameter.SpeedLimit)
  1667. }
  1668. SpeedLimit::SpeedLimit(const SpeedLimit& from)
  1669. : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) {
  1670. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(
  1671. from._internal_metadata_);
  1672. // @@protoc_insertion_point(copy_constructor:NavParameter.SpeedLimit)
  1673. }
  1674. inline void SpeedLimit::SharedCtor(::_pb::Arena* arena) {
  1675. (void)arena;
  1676. new (&_impl_) Impl_{
  1677. decltype(_impl_.min_) { 0 }
  1678. , decltype(_impl_.max_) { 0 }
  1679. , /*decltype(_impl_._cached_size_)*/{}
  1680. };
  1681. }
  1682. SpeedLimit::~SpeedLimit() {
  1683. // @@protoc_insertion_point(destructor:NavParameter.SpeedLimit)
  1684. if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  1685. (void)arena;
  1686. return;
  1687. }
  1688. SharedDtor();
  1689. }
  1690. inline void SpeedLimit::SharedDtor() {
  1691. ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  1692. }
  1693. void SpeedLimit::SetCachedSize(int size) const {
  1694. _impl_._cached_size_.Set(size);
  1695. }
  1696. void SpeedLimit::Clear() {
  1697. // @@protoc_insertion_point(message_clear_start:NavParameter.SpeedLimit)
  1698. ::uint32_t cached_has_bits = 0;
  1699. // Prevent compiler warnings about cached_has_bits being unused
  1700. (void) cached_has_bits;
  1701. ::memset(&_impl_.min_, 0, static_cast<::size_t>(
  1702. reinterpret_cast<char*>(&_impl_.max_) -
  1703. reinterpret_cast<char*>(&_impl_.min_)) + sizeof(_impl_.max_));
  1704. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1705. }
  1706. const char* SpeedLimit::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
  1707. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1708. while (!ctx->Done(&ptr)) {
  1709. ::uint32_t tag;
  1710. ptr = ::_pbi::ReadTag(ptr, &tag);
  1711. switch (tag >> 3) {
  1712. // float min = 1;
  1713. case 1:
  1714. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 13)) {
  1715. _impl_.min_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1716. ptr += sizeof(float);
  1717. } else {
  1718. goto handle_unusual;
  1719. }
  1720. continue;
  1721. // float max = 2;
  1722. case 2:
  1723. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 21)) {
  1724. _impl_.max_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1725. ptr += sizeof(float);
  1726. } else {
  1727. goto handle_unusual;
  1728. }
  1729. continue;
  1730. default:
  1731. goto handle_unusual;
  1732. } // switch
  1733. handle_unusual:
  1734. if ((tag == 0) || ((tag & 7) == 4)) {
  1735. CHK_(ptr);
  1736. ctx->SetLastTag(tag);
  1737. goto message_done;
  1738. }
  1739. ptr = UnknownFieldParse(
  1740. tag,
  1741. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1742. ptr, ctx);
  1743. CHK_(ptr != nullptr);
  1744. } // while
  1745. message_done:
  1746. return ptr;
  1747. failure:
  1748. ptr = nullptr;
  1749. goto message_done;
  1750. #undef CHK_
  1751. }
  1752. ::uint8_t* SpeedLimit::_InternalSerialize(
  1753. ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  1754. // @@protoc_insertion_point(serialize_to_array_start:NavParameter.SpeedLimit)
  1755. ::uint32_t cached_has_bits = 0;
  1756. (void) cached_has_bits;
  1757. // float min = 1;
  1758. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1759. float tmp_min = this->_internal_min();
  1760. ::uint32_t raw_min;
  1761. memcpy(&raw_min, &tmp_min, sizeof(tmp_min));
  1762. if (raw_min != 0) {
  1763. target = stream->EnsureSpace(target);
  1764. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  1765. 1, this->_internal_min(), target);
  1766. }
  1767. // float max = 2;
  1768. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1769. float tmp_max = this->_internal_max();
  1770. ::uint32_t raw_max;
  1771. memcpy(&raw_max, &tmp_max, sizeof(tmp_max));
  1772. if (raw_max != 0) {
  1773. target = stream->EnsureSpace(target);
  1774. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  1775. 2, this->_internal_max(), target);
  1776. }
  1777. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1778. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  1779. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  1780. }
  1781. // @@protoc_insertion_point(serialize_to_array_end:NavParameter.SpeedLimit)
  1782. return target;
  1783. }
  1784. ::size_t SpeedLimit::ByteSizeLong() const {
  1785. // @@protoc_insertion_point(message_byte_size_start:NavParameter.SpeedLimit)
  1786. ::size_t total_size = 0;
  1787. ::uint32_t cached_has_bits = 0;
  1788. // Prevent compiler warnings about cached_has_bits being unused
  1789. (void) cached_has_bits;
  1790. // float min = 1;
  1791. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1792. float tmp_min = this->_internal_min();
  1793. ::uint32_t raw_min;
  1794. memcpy(&raw_min, &tmp_min, sizeof(tmp_min));
  1795. if (raw_min != 0) {
  1796. total_size += 5;
  1797. }
  1798. // float max = 2;
  1799. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1800. float tmp_max = this->_internal_max();
  1801. ::uint32_t raw_max;
  1802. memcpy(&raw_max, &tmp_max, sizeof(tmp_max));
  1803. if (raw_max != 0) {
  1804. total_size += 5;
  1805. }
  1806. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  1807. }
  1808. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SpeedLimit::_class_data_ = {
  1809. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  1810. SpeedLimit::MergeImpl
  1811. };
  1812. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SpeedLimit::GetClassData() const { return &_class_data_; }
  1813. void SpeedLimit::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
  1814. auto* const _this = static_cast<SpeedLimit*>(&to_msg);
  1815. auto& from = static_cast<const SpeedLimit&>(from_msg);
  1816. // @@protoc_insertion_point(class_specific_merge_from_start:NavParameter.SpeedLimit)
  1817. ABSL_DCHECK_NE(&from, _this);
  1818. ::uint32_t cached_has_bits = 0;
  1819. (void) cached_has_bits;
  1820. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1821. float tmp_min = from._internal_min();
  1822. ::uint32_t raw_min;
  1823. memcpy(&raw_min, &tmp_min, sizeof(tmp_min));
  1824. if (raw_min != 0) {
  1825. _this->_internal_set_min(from._internal_min());
  1826. }
  1827. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1828. float tmp_max = from._internal_max();
  1829. ::uint32_t raw_max;
  1830. memcpy(&raw_max, &tmp_max, sizeof(tmp_max));
  1831. if (raw_max != 0) {
  1832. _this->_internal_set_max(from._internal_max());
  1833. }
  1834. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1835. }
  1836. void SpeedLimit::CopyFrom(const SpeedLimit& from) {
  1837. // @@protoc_insertion_point(class_specific_copy_from_start:NavParameter.SpeedLimit)
  1838. if (&from == this) return;
  1839. Clear();
  1840. MergeFrom(from);
  1841. }
  1842. bool SpeedLimit::IsInitialized() const {
  1843. return true;
  1844. }
  1845. void SpeedLimit::InternalSwap(SpeedLimit* other) {
  1846. using std::swap;
  1847. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1848. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  1849. PROTOBUF_FIELD_OFFSET(SpeedLimit, _impl_.max_)
  1850. + sizeof(SpeedLimit::_impl_.max_)
  1851. - PROTOBUF_FIELD_OFFSET(SpeedLimit, _impl_.min_)>(
  1852. reinterpret_cast<char*>(&_impl_.min_),
  1853. reinterpret_cast<char*>(&other->_impl_.min_));
  1854. }
  1855. ::PROTOBUF_NAMESPACE_ID::Metadata SpeedLimit::GetMetadata() const {
  1856. return ::_pbi::AssignDescriptors(
  1857. &descriptor_table_parameter_2eproto_getter, &descriptor_table_parameter_2eproto_once,
  1858. file_level_metadata_parameter_2eproto[4]);
  1859. }
  1860. // ===================================================================
  1861. class Accuracy::_Internal {
  1862. public:
  1863. };
  1864. Accuracy::Accuracy(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  1865. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  1866. SharedCtor(arena);
  1867. // @@protoc_insertion_point(arena_constructor:NavParameter.Accuracy)
  1868. }
  1869. Accuracy::Accuracy(const Accuracy& from)
  1870. : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) {
  1871. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(
  1872. from._internal_metadata_);
  1873. // @@protoc_insertion_point(copy_constructor:NavParameter.Accuracy)
  1874. }
  1875. inline void Accuracy::SharedCtor(::_pb::Arena* arena) {
  1876. (void)arena;
  1877. new (&_impl_) Impl_{
  1878. decltype(_impl_.l_) { 0 }
  1879. , decltype(_impl_.w_) { 0 }
  1880. , /*decltype(_impl_._cached_size_)*/{}
  1881. };
  1882. }
  1883. Accuracy::~Accuracy() {
  1884. // @@protoc_insertion_point(destructor:NavParameter.Accuracy)
  1885. if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  1886. (void)arena;
  1887. return;
  1888. }
  1889. SharedDtor();
  1890. }
  1891. inline void Accuracy::SharedDtor() {
  1892. ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  1893. }
  1894. void Accuracy::SetCachedSize(int size) const {
  1895. _impl_._cached_size_.Set(size);
  1896. }
  1897. void Accuracy::Clear() {
  1898. // @@protoc_insertion_point(message_clear_start:NavParameter.Accuracy)
  1899. ::uint32_t cached_has_bits = 0;
  1900. // Prevent compiler warnings about cached_has_bits being unused
  1901. (void) cached_has_bits;
  1902. ::memset(&_impl_.l_, 0, static_cast<::size_t>(
  1903. reinterpret_cast<char*>(&_impl_.w_) -
  1904. reinterpret_cast<char*>(&_impl_.l_)) + sizeof(_impl_.w_));
  1905. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1906. }
  1907. const char* Accuracy::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
  1908. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1909. while (!ctx->Done(&ptr)) {
  1910. ::uint32_t tag;
  1911. ptr = ::_pbi::ReadTag(ptr, &tag);
  1912. switch (tag >> 3) {
  1913. // float l = 1;
  1914. case 1:
  1915. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 13)) {
  1916. _impl_.l_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1917. ptr += sizeof(float);
  1918. } else {
  1919. goto handle_unusual;
  1920. }
  1921. continue;
  1922. // float w = 2;
  1923. case 2:
  1924. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 21)) {
  1925. _impl_.w_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1926. ptr += sizeof(float);
  1927. } else {
  1928. goto handle_unusual;
  1929. }
  1930. continue;
  1931. default:
  1932. goto handle_unusual;
  1933. } // switch
  1934. handle_unusual:
  1935. if ((tag == 0) || ((tag & 7) == 4)) {
  1936. CHK_(ptr);
  1937. ctx->SetLastTag(tag);
  1938. goto message_done;
  1939. }
  1940. ptr = UnknownFieldParse(
  1941. tag,
  1942. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1943. ptr, ctx);
  1944. CHK_(ptr != nullptr);
  1945. } // while
  1946. message_done:
  1947. return ptr;
  1948. failure:
  1949. ptr = nullptr;
  1950. goto message_done;
  1951. #undef CHK_
  1952. }
  1953. ::uint8_t* Accuracy::_InternalSerialize(
  1954. ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  1955. // @@protoc_insertion_point(serialize_to_array_start:NavParameter.Accuracy)
  1956. ::uint32_t cached_has_bits = 0;
  1957. (void) cached_has_bits;
  1958. // float l = 1;
  1959. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1960. float tmp_l = this->_internal_l();
  1961. ::uint32_t raw_l;
  1962. memcpy(&raw_l, &tmp_l, sizeof(tmp_l));
  1963. if (raw_l != 0) {
  1964. target = stream->EnsureSpace(target);
  1965. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  1966. 1, this->_internal_l(), target);
  1967. }
  1968. // float w = 2;
  1969. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1970. float tmp_w = this->_internal_w();
  1971. ::uint32_t raw_w;
  1972. memcpy(&raw_w, &tmp_w, sizeof(tmp_w));
  1973. if (raw_w != 0) {
  1974. target = stream->EnsureSpace(target);
  1975. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  1976. 2, this->_internal_w(), target);
  1977. }
  1978. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1979. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  1980. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  1981. }
  1982. // @@protoc_insertion_point(serialize_to_array_end:NavParameter.Accuracy)
  1983. return target;
  1984. }
  1985. ::size_t Accuracy::ByteSizeLong() const {
  1986. // @@protoc_insertion_point(message_byte_size_start:NavParameter.Accuracy)
  1987. ::size_t total_size = 0;
  1988. ::uint32_t cached_has_bits = 0;
  1989. // Prevent compiler warnings about cached_has_bits being unused
  1990. (void) cached_has_bits;
  1991. // float l = 1;
  1992. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1993. float tmp_l = this->_internal_l();
  1994. ::uint32_t raw_l;
  1995. memcpy(&raw_l, &tmp_l, sizeof(tmp_l));
  1996. if (raw_l != 0) {
  1997. total_size += 5;
  1998. }
  1999. // float w = 2;
  2000. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  2001. float tmp_w = this->_internal_w();
  2002. ::uint32_t raw_w;
  2003. memcpy(&raw_w, &tmp_w, sizeof(tmp_w));
  2004. if (raw_w != 0) {
  2005. total_size += 5;
  2006. }
  2007. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  2008. }
  2009. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Accuracy::_class_data_ = {
  2010. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  2011. Accuracy::MergeImpl
  2012. };
  2013. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Accuracy::GetClassData() const { return &_class_data_; }
  2014. void Accuracy::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
  2015. auto* const _this = static_cast<Accuracy*>(&to_msg);
  2016. auto& from = static_cast<const Accuracy&>(from_msg);
  2017. // @@protoc_insertion_point(class_specific_merge_from_start:NavParameter.Accuracy)
  2018. ABSL_DCHECK_NE(&from, _this);
  2019. ::uint32_t cached_has_bits = 0;
  2020. (void) cached_has_bits;
  2021. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  2022. float tmp_l = from._internal_l();
  2023. ::uint32_t raw_l;
  2024. memcpy(&raw_l, &tmp_l, sizeof(tmp_l));
  2025. if (raw_l != 0) {
  2026. _this->_internal_set_l(from._internal_l());
  2027. }
  2028. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  2029. float tmp_w = from._internal_w();
  2030. ::uint32_t raw_w;
  2031. memcpy(&raw_w, &tmp_w, sizeof(tmp_w));
  2032. if (raw_w != 0) {
  2033. _this->_internal_set_w(from._internal_w());
  2034. }
  2035. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2036. }
  2037. void Accuracy::CopyFrom(const Accuracy& from) {
  2038. // @@protoc_insertion_point(class_specific_copy_from_start:NavParameter.Accuracy)
  2039. if (&from == this) return;
  2040. Clear();
  2041. MergeFrom(from);
  2042. }
  2043. bool Accuracy::IsInitialized() const {
  2044. return true;
  2045. }
  2046. void Accuracy::InternalSwap(Accuracy* other) {
  2047. using std::swap;
  2048. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2049. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  2050. PROTOBUF_FIELD_OFFSET(Accuracy, _impl_.w_)
  2051. + sizeof(Accuracy::_impl_.w_)
  2052. - PROTOBUF_FIELD_OFFSET(Accuracy, _impl_.l_)>(
  2053. reinterpret_cast<char*>(&_impl_.l_),
  2054. reinterpret_cast<char*>(&other->_impl_.l_));
  2055. }
  2056. ::PROTOBUF_NAMESPACE_ID::Metadata Accuracy::GetMetadata() const {
  2057. return ::_pbi::AssignDescriptors(
  2058. &descriptor_table_parameter_2eproto_getter, &descriptor_table_parameter_2eproto_once,
  2059. file_level_metadata_parameter_2eproto[5]);
  2060. }
  2061. // ===================================================================
  2062. class Navigation_parameter::_Internal {
  2063. public:
  2064. using HasBits = decltype(std::declval<Navigation_parameter>()._impl_._has_bits_);
  2065. static constexpr ::int32_t kHasBitsOffset =
  2066. 8 * PROTOBUF_FIELD_OFFSET(Navigation_parameter, _impl_._has_bits_);
  2067. static const ::NavParameter::AgvEmqx_parameter& agv_emqx(const Navigation_parameter* msg);
  2068. static void set_has_agv_emqx(HasBits* has_bits) {
  2069. (*has_bits)[0] |= 1u;
  2070. }
  2071. static const ::NavParameter::Emqx_parameter& terminal_emqx(const Navigation_parameter* msg);
  2072. static void set_has_terminal_emqx(HasBits* has_bits) {
  2073. (*has_bits)[0] |= 2u;
  2074. }
  2075. static const ::NavParameter::BrotherEmqx& brother_emqx(const Navigation_parameter* msg);
  2076. static void set_has_brother_emqx(HasBits* has_bits) {
  2077. (*has_bits)[0] |= 4u;
  2078. }
  2079. static const ::NavParameter::MPC_parameter& x_mpc_parameter(const Navigation_parameter* msg);
  2080. static void set_has_x_mpc_parameter(HasBits* has_bits) {
  2081. (*has_bits)[0] |= 8u;
  2082. }
  2083. static const ::NavParameter::MPC_parameter& y_mpc_parameter(const Navigation_parameter* msg);
  2084. static void set_has_y_mpc_parameter(HasBits* has_bits) {
  2085. (*has_bits)[0] |= 16u;
  2086. }
  2087. static const ::NavParameter::SpeedLimit& inoutvlimit(const Navigation_parameter* msg);
  2088. static void set_has_inoutvlimit(HasBits* has_bits) {
  2089. (*has_bits)[0] |= 32u;
  2090. }
  2091. static const ::NavParameter::SpeedLimit& nodevelocitylimit(const Navigation_parameter* msg);
  2092. static void set_has_nodevelocitylimit(HasBits* has_bits) {
  2093. (*has_bits)[0] |= 64u;
  2094. }
  2095. static const ::NavParameter::SpeedLimit& nodeangularlimit(const Navigation_parameter* msg);
  2096. static void set_has_nodeangularlimit(HasBits* has_bits) {
  2097. (*has_bits)[0] |= 128u;
  2098. }
  2099. };
  2100. const ::NavParameter::AgvEmqx_parameter&
  2101. Navigation_parameter::_Internal::agv_emqx(const Navigation_parameter* msg) {
  2102. return *msg->_impl_.agv_emqx_;
  2103. }
  2104. const ::NavParameter::Emqx_parameter&
  2105. Navigation_parameter::_Internal::terminal_emqx(const Navigation_parameter* msg) {
  2106. return *msg->_impl_.terminal_emqx_;
  2107. }
  2108. const ::NavParameter::BrotherEmqx&
  2109. Navigation_parameter::_Internal::brother_emqx(const Navigation_parameter* msg) {
  2110. return *msg->_impl_.brother_emqx_;
  2111. }
  2112. const ::NavParameter::MPC_parameter&
  2113. Navigation_parameter::_Internal::x_mpc_parameter(const Navigation_parameter* msg) {
  2114. return *msg->_impl_.x_mpc_parameter_;
  2115. }
  2116. const ::NavParameter::MPC_parameter&
  2117. Navigation_parameter::_Internal::y_mpc_parameter(const Navigation_parameter* msg) {
  2118. return *msg->_impl_.y_mpc_parameter_;
  2119. }
  2120. const ::NavParameter::SpeedLimit&
  2121. Navigation_parameter::_Internal::inoutvlimit(const Navigation_parameter* msg) {
  2122. return *msg->_impl_.inoutvlimit_;
  2123. }
  2124. const ::NavParameter::SpeedLimit&
  2125. Navigation_parameter::_Internal::nodevelocitylimit(const Navigation_parameter* msg) {
  2126. return *msg->_impl_.nodevelocitylimit_;
  2127. }
  2128. const ::NavParameter::SpeedLimit&
  2129. Navigation_parameter::_Internal::nodeangularlimit(const Navigation_parameter* msg) {
  2130. return *msg->_impl_.nodeangularlimit_;
  2131. }
  2132. Navigation_parameter::Navigation_parameter(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  2133. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  2134. SharedCtor(arena);
  2135. // @@protoc_insertion_point(arena_constructor:NavParameter.Navigation_parameter)
  2136. }
  2137. Navigation_parameter::Navigation_parameter(const Navigation_parameter& from)
  2138. : ::PROTOBUF_NAMESPACE_ID::Message() {
  2139. Navigation_parameter* const _this = this; (void)_this;
  2140. new (&_impl_) Impl_{
  2141. decltype(_impl_._has_bits_){from._impl_._has_bits_}
  2142. , /*decltype(_impl_._cached_size_)*/{}
  2143. , decltype(_impl_.rpc_ipport_) {}
  2144. , decltype(_impl_.agv_emqx_){nullptr}
  2145. , decltype(_impl_.terminal_emqx_){nullptr}
  2146. , decltype(_impl_.brother_emqx_){nullptr}
  2147. , decltype(_impl_.x_mpc_parameter_){nullptr}
  2148. , decltype(_impl_.y_mpc_parameter_){nullptr}
  2149. , decltype(_impl_.inoutvlimit_){nullptr}
  2150. , decltype(_impl_.nodevelocitylimit_){nullptr}
  2151. , decltype(_impl_.nodeangularlimit_){nullptr}
  2152. , decltype(_impl_.main_agv_) {}
  2153. };
  2154. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2155. _impl_.rpc_ipport_.InitDefault();
  2156. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2157. _impl_.rpc_ipport_.Set("", GetArenaForAllocation());
  2158. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2159. if (!from._internal_rpc_ipport().empty()) {
  2160. _this->_impl_.rpc_ipport_.Set(from._internal_rpc_ipport(), _this->GetArenaForAllocation());
  2161. }
  2162. if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
  2163. _this->_impl_.agv_emqx_ = new ::NavParameter::AgvEmqx_parameter(*from._impl_.agv_emqx_);
  2164. }
  2165. if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) {
  2166. _this->_impl_.terminal_emqx_ = new ::NavParameter::Emqx_parameter(*from._impl_.terminal_emqx_);
  2167. }
  2168. if ((from._impl_._has_bits_[0] & 0x00000004u) != 0) {
  2169. _this->_impl_.brother_emqx_ = new ::NavParameter::BrotherEmqx(*from._impl_.brother_emqx_);
  2170. }
  2171. if ((from._impl_._has_bits_[0] & 0x00000008u) != 0) {
  2172. _this->_impl_.x_mpc_parameter_ = new ::NavParameter::MPC_parameter(*from._impl_.x_mpc_parameter_);
  2173. }
  2174. if ((from._impl_._has_bits_[0] & 0x00000010u) != 0) {
  2175. _this->_impl_.y_mpc_parameter_ = new ::NavParameter::MPC_parameter(*from._impl_.y_mpc_parameter_);
  2176. }
  2177. if ((from._impl_._has_bits_[0] & 0x00000020u) != 0) {
  2178. _this->_impl_.inoutvlimit_ = new ::NavParameter::SpeedLimit(*from._impl_.inoutvlimit_);
  2179. }
  2180. if ((from._impl_._has_bits_[0] & 0x00000040u) != 0) {
  2181. _this->_impl_.nodevelocitylimit_ = new ::NavParameter::SpeedLimit(*from._impl_.nodevelocitylimit_);
  2182. }
  2183. if ((from._impl_._has_bits_[0] & 0x00000080u) != 0) {
  2184. _this->_impl_.nodeangularlimit_ = new ::NavParameter::SpeedLimit(*from._impl_.nodeangularlimit_);
  2185. }
  2186. _this->_impl_.main_agv_ = from._impl_.main_agv_;
  2187. // @@protoc_insertion_point(copy_constructor:NavParameter.Navigation_parameter)
  2188. }
  2189. inline void Navigation_parameter::SharedCtor(::_pb::Arena* arena) {
  2190. (void)arena;
  2191. new (&_impl_) Impl_{
  2192. decltype(_impl_._has_bits_){}
  2193. , /*decltype(_impl_._cached_size_)*/{}
  2194. , decltype(_impl_.rpc_ipport_) {}
  2195. , decltype(_impl_.agv_emqx_){nullptr}
  2196. , decltype(_impl_.terminal_emqx_){nullptr}
  2197. , decltype(_impl_.brother_emqx_){nullptr}
  2198. , decltype(_impl_.x_mpc_parameter_){nullptr}
  2199. , decltype(_impl_.y_mpc_parameter_){nullptr}
  2200. , decltype(_impl_.inoutvlimit_){nullptr}
  2201. , decltype(_impl_.nodevelocitylimit_){nullptr}
  2202. , decltype(_impl_.nodeangularlimit_){nullptr}
  2203. , decltype(_impl_.main_agv_) { false }
  2204. };
  2205. _impl_.rpc_ipport_.InitDefault();
  2206. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2207. _impl_.rpc_ipport_.Set("", GetArenaForAllocation());
  2208. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2209. }
  2210. Navigation_parameter::~Navigation_parameter() {
  2211. // @@protoc_insertion_point(destructor:NavParameter.Navigation_parameter)
  2212. if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  2213. (void)arena;
  2214. return;
  2215. }
  2216. SharedDtor();
  2217. }
  2218. inline void Navigation_parameter::SharedDtor() {
  2219. ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  2220. _impl_.rpc_ipport_.Destroy();
  2221. if (this != internal_default_instance()) delete _impl_.agv_emqx_;
  2222. if (this != internal_default_instance()) delete _impl_.terminal_emqx_;
  2223. if (this != internal_default_instance()) delete _impl_.brother_emqx_;
  2224. if (this != internal_default_instance()) delete _impl_.x_mpc_parameter_;
  2225. if (this != internal_default_instance()) delete _impl_.y_mpc_parameter_;
  2226. if (this != internal_default_instance()) delete _impl_.inoutvlimit_;
  2227. if (this != internal_default_instance()) delete _impl_.nodevelocitylimit_;
  2228. if (this != internal_default_instance()) delete _impl_.nodeangularlimit_;
  2229. }
  2230. void Navigation_parameter::SetCachedSize(int size) const {
  2231. _impl_._cached_size_.Set(size);
  2232. }
  2233. void Navigation_parameter::Clear() {
  2234. // @@protoc_insertion_point(message_clear_start:NavParameter.Navigation_parameter)
  2235. ::uint32_t cached_has_bits = 0;
  2236. // Prevent compiler warnings about cached_has_bits being unused
  2237. (void) cached_has_bits;
  2238. _impl_.rpc_ipport_.ClearToEmpty();
  2239. cached_has_bits = _impl_._has_bits_[0];
  2240. if (cached_has_bits & 0x000000ffu) {
  2241. if (cached_has_bits & 0x00000001u) {
  2242. ABSL_DCHECK(_impl_.agv_emqx_ != nullptr);
  2243. _impl_.agv_emqx_->Clear();
  2244. }
  2245. if (cached_has_bits & 0x00000002u) {
  2246. ABSL_DCHECK(_impl_.terminal_emqx_ != nullptr);
  2247. _impl_.terminal_emqx_->Clear();
  2248. }
  2249. if (cached_has_bits & 0x00000004u) {
  2250. ABSL_DCHECK(_impl_.brother_emqx_ != nullptr);
  2251. _impl_.brother_emqx_->Clear();
  2252. }
  2253. if (cached_has_bits & 0x00000008u) {
  2254. ABSL_DCHECK(_impl_.x_mpc_parameter_ != nullptr);
  2255. _impl_.x_mpc_parameter_->Clear();
  2256. }
  2257. if (cached_has_bits & 0x00000010u) {
  2258. ABSL_DCHECK(_impl_.y_mpc_parameter_ != nullptr);
  2259. _impl_.y_mpc_parameter_->Clear();
  2260. }
  2261. if (cached_has_bits & 0x00000020u) {
  2262. ABSL_DCHECK(_impl_.inoutvlimit_ != nullptr);
  2263. _impl_.inoutvlimit_->Clear();
  2264. }
  2265. if (cached_has_bits & 0x00000040u) {
  2266. ABSL_DCHECK(_impl_.nodevelocitylimit_ != nullptr);
  2267. _impl_.nodevelocitylimit_->Clear();
  2268. }
  2269. if (cached_has_bits & 0x00000080u) {
  2270. ABSL_DCHECK(_impl_.nodeangularlimit_ != nullptr);
  2271. _impl_.nodeangularlimit_->Clear();
  2272. }
  2273. }
  2274. _impl_.main_agv_ = false;
  2275. _impl_._has_bits_.Clear();
  2276. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2277. }
  2278. const char* Navigation_parameter::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
  2279. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  2280. _Internal::HasBits has_bits{};
  2281. while (!ctx->Done(&ptr)) {
  2282. ::uint32_t tag;
  2283. ptr = ::_pbi::ReadTag(ptr, &tag);
  2284. switch (tag >> 3) {
  2285. // bool main_agv = 1;
  2286. case 1:
  2287. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
  2288. _impl_.main_agv_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  2289. CHK_(ptr);
  2290. } else {
  2291. goto handle_unusual;
  2292. }
  2293. continue;
  2294. // .NavParameter.AgvEmqx_parameter Agv_emqx = 2;
  2295. case 2:
  2296. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
  2297. ptr = ctx->ParseMessage(_internal_mutable_agv_emqx(), ptr);
  2298. CHK_(ptr);
  2299. } else {
  2300. goto handle_unusual;
  2301. }
  2302. continue;
  2303. // .NavParameter.Emqx_parameter Terminal_emqx = 3;
  2304. case 3:
  2305. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
  2306. ptr = ctx->ParseMessage(_internal_mutable_terminal_emqx(), ptr);
  2307. CHK_(ptr);
  2308. } else {
  2309. goto handle_unusual;
  2310. }
  2311. continue;
  2312. // .NavParameter.BrotherEmqx brother_emqx = 4;
  2313. case 4:
  2314. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
  2315. ptr = ctx->ParseMessage(_internal_mutable_brother_emqx(), ptr);
  2316. CHK_(ptr);
  2317. } else {
  2318. goto handle_unusual;
  2319. }
  2320. continue;
  2321. // .NavParameter.MPC_parameter x_mpc_parameter = 5;
  2322. case 5:
  2323. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) {
  2324. ptr = ctx->ParseMessage(_internal_mutable_x_mpc_parameter(), ptr);
  2325. CHK_(ptr);
  2326. } else {
  2327. goto handle_unusual;
  2328. }
  2329. continue;
  2330. // .NavParameter.MPC_parameter y_mpc_parameter = 6;
  2331. case 6:
  2332. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 50)) {
  2333. ptr = ctx->ParseMessage(_internal_mutable_y_mpc_parameter(), ptr);
  2334. CHK_(ptr);
  2335. } else {
  2336. goto handle_unusual;
  2337. }
  2338. continue;
  2339. // .NavParameter.SpeedLimit InOutVLimit = 7;
  2340. case 7:
  2341. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 58)) {
  2342. ptr = ctx->ParseMessage(_internal_mutable_inoutvlimit(), ptr);
  2343. CHK_(ptr);
  2344. } else {
  2345. goto handle_unusual;
  2346. }
  2347. continue;
  2348. // .NavParameter.SpeedLimit NodeVelocityLimit = 8;
  2349. case 8:
  2350. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 66)) {
  2351. ptr = ctx->ParseMessage(_internal_mutable_nodevelocitylimit(), ptr);
  2352. CHK_(ptr);
  2353. } else {
  2354. goto handle_unusual;
  2355. }
  2356. continue;
  2357. // .NavParameter.SpeedLimit NodeAngularLimit = 9;
  2358. case 9:
  2359. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 74)) {
  2360. ptr = ctx->ParseMessage(_internal_mutable_nodeangularlimit(), ptr);
  2361. CHK_(ptr);
  2362. } else {
  2363. goto handle_unusual;
  2364. }
  2365. continue;
  2366. // string rpc_ipport = 10;
  2367. case 10:
  2368. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 82)) {
  2369. auto str = _internal_mutable_rpc_ipport();
  2370. ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
  2371. CHK_(ptr);
  2372. CHK_(::_pbi::VerifyUTF8(str, "NavParameter.Navigation_parameter.rpc_ipport"));
  2373. } else {
  2374. goto handle_unusual;
  2375. }
  2376. continue;
  2377. default:
  2378. goto handle_unusual;
  2379. } // switch
  2380. handle_unusual:
  2381. if ((tag == 0) || ((tag & 7) == 4)) {
  2382. CHK_(ptr);
  2383. ctx->SetLastTag(tag);
  2384. goto message_done;
  2385. }
  2386. ptr = UnknownFieldParse(
  2387. tag,
  2388. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2389. ptr, ctx);
  2390. CHK_(ptr != nullptr);
  2391. } // while
  2392. message_done:
  2393. _impl_._has_bits_.Or(has_bits);
  2394. return ptr;
  2395. failure:
  2396. ptr = nullptr;
  2397. goto message_done;
  2398. #undef CHK_
  2399. }
  2400. ::uint8_t* Navigation_parameter::_InternalSerialize(
  2401. ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  2402. // @@protoc_insertion_point(serialize_to_array_start:NavParameter.Navigation_parameter)
  2403. ::uint32_t cached_has_bits = 0;
  2404. (void) cached_has_bits;
  2405. // bool main_agv = 1;
  2406. if (this->_internal_main_agv() != 0) {
  2407. target = stream->EnsureSpace(target);
  2408. target = ::_pbi::WireFormatLite::WriteBoolToArray(
  2409. 1, this->_internal_main_agv(), target);
  2410. }
  2411. cached_has_bits = _impl_._has_bits_[0];
  2412. // .NavParameter.AgvEmqx_parameter Agv_emqx = 2;
  2413. if (cached_has_bits & 0x00000001u) {
  2414. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  2415. InternalWriteMessage(2, _Internal::agv_emqx(this),
  2416. _Internal::agv_emqx(this).GetCachedSize(), target, stream);
  2417. }
  2418. // .NavParameter.Emqx_parameter Terminal_emqx = 3;
  2419. if (cached_has_bits & 0x00000002u) {
  2420. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  2421. InternalWriteMessage(3, _Internal::terminal_emqx(this),
  2422. _Internal::terminal_emqx(this).GetCachedSize(), target, stream);
  2423. }
  2424. // .NavParameter.BrotherEmqx brother_emqx = 4;
  2425. if (cached_has_bits & 0x00000004u) {
  2426. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  2427. InternalWriteMessage(4, _Internal::brother_emqx(this),
  2428. _Internal::brother_emqx(this).GetCachedSize(), target, stream);
  2429. }
  2430. // .NavParameter.MPC_parameter x_mpc_parameter = 5;
  2431. if (cached_has_bits & 0x00000008u) {
  2432. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  2433. InternalWriteMessage(5, _Internal::x_mpc_parameter(this),
  2434. _Internal::x_mpc_parameter(this).GetCachedSize(), target, stream);
  2435. }
  2436. // .NavParameter.MPC_parameter y_mpc_parameter = 6;
  2437. if (cached_has_bits & 0x00000010u) {
  2438. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  2439. InternalWriteMessage(6, _Internal::y_mpc_parameter(this),
  2440. _Internal::y_mpc_parameter(this).GetCachedSize(), target, stream);
  2441. }
  2442. // .NavParameter.SpeedLimit InOutVLimit = 7;
  2443. if (cached_has_bits & 0x00000020u) {
  2444. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  2445. InternalWriteMessage(7, _Internal::inoutvlimit(this),
  2446. _Internal::inoutvlimit(this).GetCachedSize(), target, stream);
  2447. }
  2448. // .NavParameter.SpeedLimit NodeVelocityLimit = 8;
  2449. if (cached_has_bits & 0x00000040u) {
  2450. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  2451. InternalWriteMessage(8, _Internal::nodevelocitylimit(this),
  2452. _Internal::nodevelocitylimit(this).GetCachedSize(), target, stream);
  2453. }
  2454. // .NavParameter.SpeedLimit NodeAngularLimit = 9;
  2455. if (cached_has_bits & 0x00000080u) {
  2456. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  2457. InternalWriteMessage(9, _Internal::nodeangularlimit(this),
  2458. _Internal::nodeangularlimit(this).GetCachedSize(), target, stream);
  2459. }
  2460. // string rpc_ipport = 10;
  2461. if (!this->_internal_rpc_ipport().empty()) {
  2462. const std::string& _s = this->_internal_rpc_ipport();
  2463. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  2464. _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "NavParameter.Navigation_parameter.rpc_ipport");
  2465. target = stream->WriteStringMaybeAliased(10, _s, target);
  2466. }
  2467. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2468. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  2469. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  2470. }
  2471. // @@protoc_insertion_point(serialize_to_array_end:NavParameter.Navigation_parameter)
  2472. return target;
  2473. }
  2474. ::size_t Navigation_parameter::ByteSizeLong() const {
  2475. // @@protoc_insertion_point(message_byte_size_start:NavParameter.Navigation_parameter)
  2476. ::size_t total_size = 0;
  2477. ::uint32_t cached_has_bits = 0;
  2478. // Prevent compiler warnings about cached_has_bits being unused
  2479. (void) cached_has_bits;
  2480. // string rpc_ipport = 10;
  2481. if (!this->_internal_rpc_ipport().empty()) {
  2482. total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  2483. this->_internal_rpc_ipport());
  2484. }
  2485. cached_has_bits = _impl_._has_bits_[0];
  2486. if (cached_has_bits & 0x000000ffu) {
  2487. // .NavParameter.AgvEmqx_parameter Agv_emqx = 2;
  2488. if (cached_has_bits & 0x00000001u) {
  2489. total_size += 1 +
  2490. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  2491. *_impl_.agv_emqx_);
  2492. }
  2493. // .NavParameter.Emqx_parameter Terminal_emqx = 3;
  2494. if (cached_has_bits & 0x00000002u) {
  2495. total_size += 1 +
  2496. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  2497. *_impl_.terminal_emqx_);
  2498. }
  2499. // .NavParameter.BrotherEmqx brother_emqx = 4;
  2500. if (cached_has_bits & 0x00000004u) {
  2501. total_size += 1 +
  2502. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  2503. *_impl_.brother_emqx_);
  2504. }
  2505. // .NavParameter.MPC_parameter x_mpc_parameter = 5;
  2506. if (cached_has_bits & 0x00000008u) {
  2507. total_size += 1 +
  2508. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  2509. *_impl_.x_mpc_parameter_);
  2510. }
  2511. // .NavParameter.MPC_parameter y_mpc_parameter = 6;
  2512. if (cached_has_bits & 0x00000010u) {
  2513. total_size += 1 +
  2514. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  2515. *_impl_.y_mpc_parameter_);
  2516. }
  2517. // .NavParameter.SpeedLimit InOutVLimit = 7;
  2518. if (cached_has_bits & 0x00000020u) {
  2519. total_size += 1 +
  2520. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  2521. *_impl_.inoutvlimit_);
  2522. }
  2523. // .NavParameter.SpeedLimit NodeVelocityLimit = 8;
  2524. if (cached_has_bits & 0x00000040u) {
  2525. total_size += 1 +
  2526. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  2527. *_impl_.nodevelocitylimit_);
  2528. }
  2529. // .NavParameter.SpeedLimit NodeAngularLimit = 9;
  2530. if (cached_has_bits & 0x00000080u) {
  2531. total_size += 1 +
  2532. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  2533. *_impl_.nodeangularlimit_);
  2534. }
  2535. }
  2536. // bool main_agv = 1;
  2537. if (this->_internal_main_agv() != 0) {
  2538. total_size += 2;
  2539. }
  2540. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  2541. }
  2542. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Navigation_parameter::_class_data_ = {
  2543. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  2544. Navigation_parameter::MergeImpl
  2545. };
  2546. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Navigation_parameter::GetClassData() const { return &_class_data_; }
  2547. void Navigation_parameter::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
  2548. auto* const _this = static_cast<Navigation_parameter*>(&to_msg);
  2549. auto& from = static_cast<const Navigation_parameter&>(from_msg);
  2550. // @@protoc_insertion_point(class_specific_merge_from_start:NavParameter.Navigation_parameter)
  2551. ABSL_DCHECK_NE(&from, _this);
  2552. ::uint32_t cached_has_bits = 0;
  2553. (void) cached_has_bits;
  2554. if (!from._internal_rpc_ipport().empty()) {
  2555. _this->_internal_set_rpc_ipport(from._internal_rpc_ipport());
  2556. }
  2557. cached_has_bits = from._impl_._has_bits_[0];
  2558. if (cached_has_bits & 0x000000ffu) {
  2559. if (cached_has_bits & 0x00000001u) {
  2560. _this->_internal_mutable_agv_emqx()->::NavParameter::AgvEmqx_parameter::MergeFrom(
  2561. from._internal_agv_emqx());
  2562. }
  2563. if (cached_has_bits & 0x00000002u) {
  2564. _this->_internal_mutable_terminal_emqx()->::NavParameter::Emqx_parameter::MergeFrom(
  2565. from._internal_terminal_emqx());
  2566. }
  2567. if (cached_has_bits & 0x00000004u) {
  2568. _this->_internal_mutable_brother_emqx()->::NavParameter::BrotherEmqx::MergeFrom(
  2569. from._internal_brother_emqx());
  2570. }
  2571. if (cached_has_bits & 0x00000008u) {
  2572. _this->_internal_mutable_x_mpc_parameter()->::NavParameter::MPC_parameter::MergeFrom(
  2573. from._internal_x_mpc_parameter());
  2574. }
  2575. if (cached_has_bits & 0x00000010u) {
  2576. _this->_internal_mutable_y_mpc_parameter()->::NavParameter::MPC_parameter::MergeFrom(
  2577. from._internal_y_mpc_parameter());
  2578. }
  2579. if (cached_has_bits & 0x00000020u) {
  2580. _this->_internal_mutable_inoutvlimit()->::NavParameter::SpeedLimit::MergeFrom(
  2581. from._internal_inoutvlimit());
  2582. }
  2583. if (cached_has_bits & 0x00000040u) {
  2584. _this->_internal_mutable_nodevelocitylimit()->::NavParameter::SpeedLimit::MergeFrom(
  2585. from._internal_nodevelocitylimit());
  2586. }
  2587. if (cached_has_bits & 0x00000080u) {
  2588. _this->_internal_mutable_nodeangularlimit()->::NavParameter::SpeedLimit::MergeFrom(
  2589. from._internal_nodeangularlimit());
  2590. }
  2591. }
  2592. if (from._internal_main_agv() != 0) {
  2593. _this->_internal_set_main_agv(from._internal_main_agv());
  2594. }
  2595. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2596. }
  2597. void Navigation_parameter::CopyFrom(const Navigation_parameter& from) {
  2598. // @@protoc_insertion_point(class_specific_copy_from_start:NavParameter.Navigation_parameter)
  2599. if (&from == this) return;
  2600. Clear();
  2601. MergeFrom(from);
  2602. }
  2603. bool Navigation_parameter::IsInitialized() const {
  2604. return true;
  2605. }
  2606. void Navigation_parameter::InternalSwap(Navigation_parameter* other) {
  2607. using std::swap;
  2608. auto* lhs_arena = GetArenaForAllocation();
  2609. auto* rhs_arena = other->GetArenaForAllocation();
  2610. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2611. swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  2612. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.rpc_ipport_, lhs_arena,
  2613. &other->_impl_.rpc_ipport_, rhs_arena);
  2614. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  2615. PROTOBUF_FIELD_OFFSET(Navigation_parameter, _impl_.main_agv_)
  2616. + sizeof(Navigation_parameter::_impl_.main_agv_)
  2617. - PROTOBUF_FIELD_OFFSET(Navigation_parameter, _impl_.agv_emqx_)>(
  2618. reinterpret_cast<char*>(&_impl_.agv_emqx_),
  2619. reinterpret_cast<char*>(&other->_impl_.agv_emqx_));
  2620. }
  2621. ::PROTOBUF_NAMESPACE_ID::Metadata Navigation_parameter::GetMetadata() const {
  2622. return ::_pbi::AssignDescriptors(
  2623. &descriptor_table_parameter_2eproto_getter, &descriptor_table_parameter_2eproto_once,
  2624. file_level_metadata_parameter_2eproto[6]);
  2625. }
  2626. // @@protoc_insertion_point(namespace_scope)
  2627. } // namespace NavParameter
  2628. PROTOBUF_NAMESPACE_OPEN
  2629. template<> PROTOBUF_NOINLINE ::NavParameter::AgvEmqx_parameter*
  2630. Arena::CreateMaybeMessage< ::NavParameter::AgvEmqx_parameter >(Arena* arena) {
  2631. return Arena::CreateMessageInternal< ::NavParameter::AgvEmqx_parameter >(arena);
  2632. }
  2633. template<> PROTOBUF_NOINLINE ::NavParameter::Emqx_parameter*
  2634. Arena::CreateMaybeMessage< ::NavParameter::Emqx_parameter >(Arena* arena) {
  2635. return Arena::CreateMessageInternal< ::NavParameter::Emqx_parameter >(arena);
  2636. }
  2637. template<> PROTOBUF_NOINLINE ::NavParameter::BrotherEmqx*
  2638. Arena::CreateMaybeMessage< ::NavParameter::BrotherEmqx >(Arena* arena) {
  2639. return Arena::CreateMessageInternal< ::NavParameter::BrotherEmqx >(arena);
  2640. }
  2641. template<> PROTOBUF_NOINLINE ::NavParameter::MPC_parameter*
  2642. Arena::CreateMaybeMessage< ::NavParameter::MPC_parameter >(Arena* arena) {
  2643. return Arena::CreateMessageInternal< ::NavParameter::MPC_parameter >(arena);
  2644. }
  2645. template<> PROTOBUF_NOINLINE ::NavParameter::SpeedLimit*
  2646. Arena::CreateMaybeMessage< ::NavParameter::SpeedLimit >(Arena* arena) {
  2647. return Arena::CreateMessageInternal< ::NavParameter::SpeedLimit >(arena);
  2648. }
  2649. template<> PROTOBUF_NOINLINE ::NavParameter::Accuracy*
  2650. Arena::CreateMaybeMessage< ::NavParameter::Accuracy >(Arena* arena) {
  2651. return Arena::CreateMessageInternal< ::NavParameter::Accuracy >(arena);
  2652. }
  2653. template<> PROTOBUF_NOINLINE ::NavParameter::Navigation_parameter*
  2654. Arena::CreateMaybeMessage< ::NavParameter::Navigation_parameter >(Arena* arena) {
  2655. return Arena::CreateMessageInternal< ::NavParameter::Navigation_parameter >(arena);
  2656. }
  2657. PROTOBUF_NAMESPACE_CLOSE
  2658. // @@protoc_insertion_point(global_scope)
  2659. #include "google/protobuf/port_undef.inc"