message.pb.cc 97 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: message.proto
  3. #include "message.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. #include <google/protobuf/port_def.inc>
  14. extern PROTOBUF_INTERNAL_EXPORT_message_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_Action_message_2eproto;
  15. extern PROTOBUF_INTERNAL_EXPORT_message_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Pose2d_message_2eproto;
  16. extern PROTOBUF_INTERNAL_EXPORT_message_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SpeedLimit_message_2eproto;
  17. extern PROTOBUF_INTERNAL_EXPORT_message_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Trajectory_message_2eproto;
  18. namespace NavMessage {
  19. class AGVStatuDefaultTypeInternal {
  20. public:
  21. ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<AGVStatu> _instance;
  22. } _AGVStatu_default_instance_;
  23. class SpeedDefaultTypeInternal {
  24. public:
  25. ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Speed> _instance;
  26. } _Speed_default_instance_;
  27. class SpeedLimitDefaultTypeInternal {
  28. public:
  29. ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<SpeedLimit> _instance;
  30. } _SpeedLimit_default_instance_;
  31. class Pose2dDefaultTypeInternal {
  32. public:
  33. ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Pose2d> _instance;
  34. } _Pose2d_default_instance_;
  35. class TrajectoryDefaultTypeInternal {
  36. public:
  37. ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Trajectory> _instance;
  38. } _Trajectory_default_instance_;
  39. class ActionDefaultTypeInternal {
  40. public:
  41. ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Action> _instance;
  42. } _Action_default_instance_;
  43. class NavCmdDefaultTypeInternal {
  44. public:
  45. ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<NavCmd> _instance;
  46. } _NavCmd_default_instance_;
  47. class NavStatuDefaultTypeInternal {
  48. public:
  49. ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<NavStatu> _instance;
  50. } _NavStatu_default_instance_;
  51. } // namespace NavMessage
  52. static void InitDefaultsscc_info_AGVStatu_message_2eproto() {
  53. GOOGLE_PROTOBUF_VERIFY_VERSION;
  54. {
  55. void* ptr = &::NavMessage::_AGVStatu_default_instance_;
  56. new (ptr) ::NavMessage::AGVStatu();
  57. ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  58. }
  59. ::NavMessage::AGVStatu::InitAsDefaultInstance();
  60. }
  61. ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AGVStatu_message_2eproto =
  62. {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_AGVStatu_message_2eproto}, {}};
  63. static void InitDefaultsscc_info_Action_message_2eproto() {
  64. GOOGLE_PROTOBUF_VERIFY_VERSION;
  65. {
  66. void* ptr = &::NavMessage::_Action_default_instance_;
  67. new (ptr) ::NavMessage::Action();
  68. ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  69. }
  70. ::NavMessage::Action::InitAsDefaultInstance();
  71. }
  72. ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_Action_message_2eproto =
  73. {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_Action_message_2eproto}, {
  74. &scc_info_Pose2d_message_2eproto.base,
  75. &scc_info_SpeedLimit_message_2eproto.base,}};
  76. static void InitDefaultsscc_info_NavCmd_message_2eproto() {
  77. GOOGLE_PROTOBUF_VERIFY_VERSION;
  78. {
  79. void* ptr = &::NavMessage::_NavCmd_default_instance_;
  80. new (ptr) ::NavMessage::NavCmd();
  81. ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  82. }
  83. ::NavMessage::NavCmd::InitAsDefaultInstance();
  84. }
  85. ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_NavCmd_message_2eproto =
  86. {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_NavCmd_message_2eproto}, {
  87. &scc_info_Action_message_2eproto.base,}};
  88. static void InitDefaultsscc_info_NavStatu_message_2eproto() {
  89. GOOGLE_PROTOBUF_VERIFY_VERSION;
  90. {
  91. void* ptr = &::NavMessage::_NavStatu_default_instance_;
  92. new (ptr) ::NavMessage::NavStatu();
  93. ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  94. }
  95. ::NavMessage::NavStatu::InitAsDefaultInstance();
  96. }
  97. ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_NavStatu_message_2eproto =
  98. {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_NavStatu_message_2eproto}, {
  99. &scc_info_Action_message_2eproto.base,
  100. &scc_info_Trajectory_message_2eproto.base,}};
  101. static void InitDefaultsscc_info_Pose2d_message_2eproto() {
  102. GOOGLE_PROTOBUF_VERIFY_VERSION;
  103. {
  104. void* ptr = &::NavMessage::_Pose2d_default_instance_;
  105. new (ptr) ::NavMessage::Pose2d();
  106. ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  107. }
  108. ::NavMessage::Pose2d::InitAsDefaultInstance();
  109. }
  110. ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Pose2d_message_2eproto =
  111. {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Pose2d_message_2eproto}, {}};
  112. static void InitDefaultsscc_info_Speed_message_2eproto() {
  113. GOOGLE_PROTOBUF_VERIFY_VERSION;
  114. {
  115. void* ptr = &::NavMessage::_Speed_default_instance_;
  116. new (ptr) ::NavMessage::Speed();
  117. ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  118. }
  119. ::NavMessage::Speed::InitAsDefaultInstance();
  120. }
  121. ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Speed_message_2eproto =
  122. {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Speed_message_2eproto}, {}};
  123. static void InitDefaultsscc_info_SpeedLimit_message_2eproto() {
  124. GOOGLE_PROTOBUF_VERIFY_VERSION;
  125. {
  126. void* ptr = &::NavMessage::_SpeedLimit_default_instance_;
  127. new (ptr) ::NavMessage::SpeedLimit();
  128. ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  129. }
  130. ::NavMessage::SpeedLimit::InitAsDefaultInstance();
  131. }
  132. ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SpeedLimit_message_2eproto =
  133. {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_SpeedLimit_message_2eproto}, {}};
  134. static void InitDefaultsscc_info_Trajectory_message_2eproto() {
  135. GOOGLE_PROTOBUF_VERIFY_VERSION;
  136. {
  137. void* ptr = &::NavMessage::_Trajectory_default_instance_;
  138. new (ptr) ::NavMessage::Trajectory();
  139. ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  140. }
  141. ::NavMessage::Trajectory::InitAsDefaultInstance();
  142. }
  143. ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Trajectory_message_2eproto =
  144. {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_Trajectory_message_2eproto}, {
  145. &scc_info_Pose2d_message_2eproto.base,}};
  146. static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_message_2eproto[8];
  147. static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_message_2eproto = nullptr;
  148. static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_message_2eproto = nullptr;
  149. const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_message_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  150. ~0u, // no _has_bits_
  151. PROTOBUF_FIELD_OFFSET(::NavMessage::AGVStatu, _internal_metadata_),
  152. ~0u, // no _extensions_
  153. ~0u, // no _oneof_case_
  154. ~0u, // no _weak_field_map_
  155. PROTOBUF_FIELD_OFFSET(::NavMessage::AGVStatu, x_),
  156. PROTOBUF_FIELD_OFFSET(::NavMessage::AGVStatu, y_),
  157. PROTOBUF_FIELD_OFFSET(::NavMessage::AGVStatu, theta_),
  158. PROTOBUF_FIELD_OFFSET(::NavMessage::AGVStatu, v_),
  159. PROTOBUF_FIELD_OFFSET(::NavMessage::AGVStatu, vth_),
  160. ~0u, // no _has_bits_
  161. PROTOBUF_FIELD_OFFSET(::NavMessage::Speed, _internal_metadata_),
  162. ~0u, // no _extensions_
  163. ~0u, // no _oneof_case_
  164. ~0u, // no _weak_field_map_
  165. PROTOBUF_FIELD_OFFSET(::NavMessage::Speed, h_),
  166. PROTOBUF_FIELD_OFFSET(::NavMessage::Speed, t_),
  167. PROTOBUF_FIELD_OFFSET(::NavMessage::Speed, v_),
  168. PROTOBUF_FIELD_OFFSET(::NavMessage::Speed, w_),
  169. PROTOBUF_FIELD_OFFSET(::NavMessage::Speed, end_),
  170. ~0u, // no _has_bits_
  171. PROTOBUF_FIELD_OFFSET(::NavMessage::SpeedLimit, _internal_metadata_),
  172. ~0u, // no _extensions_
  173. ~0u, // no _oneof_case_
  174. ~0u, // no _weak_field_map_
  175. PROTOBUF_FIELD_OFFSET(::NavMessage::SpeedLimit, min_),
  176. PROTOBUF_FIELD_OFFSET(::NavMessage::SpeedLimit, max_),
  177. ~0u, // no _has_bits_
  178. PROTOBUF_FIELD_OFFSET(::NavMessage::Pose2d, _internal_metadata_),
  179. ~0u, // no _extensions_
  180. ~0u, // no _oneof_case_
  181. ~0u, // no _weak_field_map_
  182. PROTOBUF_FIELD_OFFSET(::NavMessage::Pose2d, x_),
  183. PROTOBUF_FIELD_OFFSET(::NavMessage::Pose2d, y_),
  184. PROTOBUF_FIELD_OFFSET(::NavMessage::Pose2d, theta_),
  185. ~0u, // no _has_bits_
  186. PROTOBUF_FIELD_OFFSET(::NavMessage::Trajectory, _internal_metadata_),
  187. ~0u, // no _extensions_
  188. ~0u, // no _oneof_case_
  189. ~0u, // no _weak_field_map_
  190. PROTOBUF_FIELD_OFFSET(::NavMessage::Trajectory, poses_),
  191. ~0u, // no _has_bits_
  192. PROTOBUF_FIELD_OFFSET(::NavMessage::Action, _internal_metadata_),
  193. ~0u, // no _extensions_
  194. ~0u, // no _oneof_case_
  195. ~0u, // no _weak_field_map_
  196. PROTOBUF_FIELD_OFFSET(::NavMessage::Action, type_),
  197. PROTOBUF_FIELD_OFFSET(::NavMessage::Action, begin_),
  198. PROTOBUF_FIELD_OFFSET(::NavMessage::Action, target_),
  199. PROTOBUF_FIELD_OFFSET(::NavMessage::Action, target_diff_),
  200. PROTOBUF_FIELD_OFFSET(::NavMessage::Action, velocity_limit_),
  201. PROTOBUF_FIELD_OFFSET(::NavMessage::Action, angular_limit_),
  202. PROTOBUF_FIELD_OFFSET(::NavMessage::Action, horize_limit_),
  203. ~0u, // no _has_bits_
  204. PROTOBUF_FIELD_OFFSET(::NavMessage::NavCmd, _internal_metadata_),
  205. ~0u, // no _extensions_
  206. ~0u, // no _oneof_case_
  207. ~0u, // no _weak_field_map_
  208. PROTOBUF_FIELD_OFFSET(::NavMessage::NavCmd, action_),
  209. PROTOBUF_FIELD_OFFSET(::NavMessage::NavCmd, key_),
  210. PROTOBUF_FIELD_OFFSET(::NavMessage::NavCmd, actions_),
  211. ~0u, // no _has_bits_
  212. PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, _internal_metadata_),
  213. ~0u, // no _extensions_
  214. ~0u, // no _oneof_case_
  215. ~0u, // no _weak_field_map_
  216. PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, statu_),
  217. PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, key_),
  218. PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, unfinished_actions_),
  219. PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, selected_traj_),
  220. PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, predict_traj_),
  221. };
  222. static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  223. { 0, -1, sizeof(::NavMessage::AGVStatu)},
  224. { 10, -1, sizeof(::NavMessage::Speed)},
  225. { 20, -1, sizeof(::NavMessage::SpeedLimit)},
  226. { 27, -1, sizeof(::NavMessage::Pose2d)},
  227. { 35, -1, sizeof(::NavMessage::Trajectory)},
  228. { 41, -1, sizeof(::NavMessage::Action)},
  229. { 53, -1, sizeof(::NavMessage::NavCmd)},
  230. { 61, -1, sizeof(::NavMessage::NavStatu)},
  231. };
  232. static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
  233. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::NavMessage::_AGVStatu_default_instance_),
  234. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::NavMessage::_Speed_default_instance_),
  235. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::NavMessage::_SpeedLimit_default_instance_),
  236. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::NavMessage::_Pose2d_default_instance_),
  237. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::NavMessage::_Trajectory_default_instance_),
  238. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::NavMessage::_Action_default_instance_),
  239. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::NavMessage::_NavCmd_default_instance_),
  240. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::NavMessage::_NavStatu_default_instance_),
  241. };
  242. const char descriptor_table_protodef_message_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
  243. "\n\rmessage.proto\022\nNavMessage\"G\n\010AGVStatu\022"
  244. "\t\n\001x\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\022\r\n\005theta\030\003 \001(\002\022\t\n\001"
  245. "v\030\004 \001(\002\022\013\n\003vth\030\005 \001(\002\"@\n\005Speed\022\t\n\001H\030\001 \001(\005"
  246. "\022\t\n\001T\030\002 \001(\005\022\t\n\001V\030\003 \001(\002\022\t\n\001W\030\004 \001(\002\022\013\n\003end"
  247. "\030\005 \001(\005\"&\n\nSpeedLimit\022\013\n\003min\030\001 \001(\002\022\013\n\003max"
  248. "\030\002 \001(\002\"-\n\006Pose2d\022\t\n\001x\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\022\r"
  249. "\n\005theta\030\003 \001(\002\"/\n\nTrajectory\022!\n\005poses\030\001 \003"
  250. "(\0132\022.NavMessage.Pose2d\"\223\002\n\006Action\022\014\n\004typ"
  251. "e\030\001 \001(\005\022!\n\005begin\030\002 \001(\0132\022.NavMessage.Pose"
  252. "2d\022\"\n\006target\030\003 \001(\0132\022.NavMessage.Pose2d\022\'"
  253. "\n\013target_diff\030\004 \001(\0132\022.NavMessage.Pose2d\022"
  254. ".\n\016velocity_limit\030\005 \001(\0132\026.NavMessage.Spe"
  255. "edLimit\022-\n\rangular_limit\030\006 \001(\0132\026.NavMess"
  256. "age.SpeedLimit\022,\n\014horize_limit\030\007 \001(\0132\026.N"
  257. "avMessage.SpeedLimit\"J\n\006NavCmd\022\016\n\006action"
  258. "\030\001 \001(\005\022\013\n\003key\030\002 \001(\t\022#\n\007actions\030\003 \003(\0132\022.N"
  259. "avMessage.Action\"\263\001\n\010NavStatu\022\r\n\005statu\030\001"
  260. " \001(\010\022\013\n\003key\030\002 \001(\t\022.\n\022unfinished_actions\030"
  261. "\003 \003(\0132\022.NavMessage.Action\022-\n\rselected_tr"
  262. "aj\030\004 \001(\0132\026.NavMessage.Trajectory\022,\n\014pred"
  263. "ict_traj\030\005 \001(\0132\026.NavMessage.Trajectoryb\006"
  264. "proto3"
  265. ;
  266. static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_message_2eproto_deps[1] = {
  267. };
  268. static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_message_2eproto_sccs[8] = {
  269. &scc_info_AGVStatu_message_2eproto.base,
  270. &scc_info_Action_message_2eproto.base,
  271. &scc_info_NavCmd_message_2eproto.base,
  272. &scc_info_NavStatu_message_2eproto.base,
  273. &scc_info_Pose2d_message_2eproto.base,
  274. &scc_info_Speed_message_2eproto.base,
  275. &scc_info_SpeedLimit_message_2eproto.base,
  276. &scc_info_Trajectory_message_2eproto.base,
  277. };
  278. static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_message_2eproto_once;
  279. const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_message_2eproto = {
  280. false, false, descriptor_table_protodef_message_2eproto, "message.proto", 846,
  281. &descriptor_table_message_2eproto_once, descriptor_table_message_2eproto_sccs, descriptor_table_message_2eproto_deps, 8, 0,
  282. schemas, file_default_instances, TableStruct_message_2eproto::offsets,
  283. file_level_metadata_message_2eproto, 8, file_level_enum_descriptors_message_2eproto, file_level_service_descriptors_message_2eproto,
  284. };
  285. // Force running AddDescriptors() at dynamic initialization time.
  286. static bool dynamic_init_dummy_message_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_message_2eproto)), true);
  287. namespace NavMessage {
  288. // ===================================================================
  289. void AGVStatu::InitAsDefaultInstance() {
  290. }
  291. class AGVStatu::_Internal {
  292. public:
  293. };
  294. AGVStatu::AGVStatu(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  295. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  296. SharedCtor();
  297. RegisterArenaDtor(arena);
  298. // @@protoc_insertion_point(arena_constructor:NavMessage.AGVStatu)
  299. }
  300. AGVStatu::AGVStatu(const AGVStatu& from)
  301. : ::PROTOBUF_NAMESPACE_ID::Message() {
  302. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  303. ::memcpy(&x_, &from.x_,
  304. static_cast<size_t>(reinterpret_cast<char*>(&vth_) -
  305. reinterpret_cast<char*>(&x_)) + sizeof(vth_));
  306. // @@protoc_insertion_point(copy_constructor:NavMessage.AGVStatu)
  307. }
  308. void AGVStatu::SharedCtor() {
  309. ::memset(&x_, 0, static_cast<size_t>(
  310. reinterpret_cast<char*>(&vth_) -
  311. reinterpret_cast<char*>(&x_)) + sizeof(vth_));
  312. }
  313. AGVStatu::~AGVStatu() {
  314. // @@protoc_insertion_point(destructor:NavMessage.AGVStatu)
  315. SharedDtor();
  316. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  317. }
  318. void AGVStatu::SharedDtor() {
  319. GOOGLE_DCHECK(GetArena() == nullptr);
  320. }
  321. void AGVStatu::ArenaDtor(void* object) {
  322. AGVStatu* _this = reinterpret_cast< AGVStatu* >(object);
  323. (void)_this;
  324. }
  325. void AGVStatu::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  326. }
  327. void AGVStatu::SetCachedSize(int size) const {
  328. _cached_size_.Set(size);
  329. }
  330. const AGVStatu& AGVStatu::default_instance() {
  331. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_AGVStatu_message_2eproto.base);
  332. return *internal_default_instance();
  333. }
  334. void AGVStatu::Clear() {
  335. // @@protoc_insertion_point(message_clear_start:NavMessage.AGVStatu)
  336. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  337. // Prevent compiler warnings about cached_has_bits being unused
  338. (void) cached_has_bits;
  339. ::memset(&x_, 0, static_cast<size_t>(
  340. reinterpret_cast<char*>(&vth_) -
  341. reinterpret_cast<char*>(&x_)) + sizeof(vth_));
  342. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  343. }
  344. const char* AGVStatu::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  345. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  346. ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
  347. while (!ctx->Done(&ptr)) {
  348. ::PROTOBUF_NAMESPACE_ID::uint32 tag;
  349. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  350. CHK_(ptr);
  351. switch (tag >> 3) {
  352. // float x = 1;
  353. case 1:
  354. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 13)) {
  355. x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  356. ptr += sizeof(float);
  357. } else goto handle_unusual;
  358. continue;
  359. // float y = 2;
  360. case 2:
  361. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 21)) {
  362. y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  363. ptr += sizeof(float);
  364. } else goto handle_unusual;
  365. continue;
  366. // float theta = 3;
  367. case 3:
  368. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 29)) {
  369. theta_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  370. ptr += sizeof(float);
  371. } else goto handle_unusual;
  372. continue;
  373. // float v = 4;
  374. case 4:
  375. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 37)) {
  376. v_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  377. ptr += sizeof(float);
  378. } else goto handle_unusual;
  379. continue;
  380. // float vth = 5;
  381. case 5:
  382. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 45)) {
  383. vth_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  384. ptr += sizeof(float);
  385. } else goto handle_unusual;
  386. continue;
  387. default: {
  388. handle_unusual:
  389. if ((tag & 7) == 4 || tag == 0) {
  390. ctx->SetLastTag(tag);
  391. goto success;
  392. }
  393. ptr = UnknownFieldParse(tag,
  394. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  395. ptr, ctx);
  396. CHK_(ptr != nullptr);
  397. continue;
  398. }
  399. } // switch
  400. } // while
  401. success:
  402. return ptr;
  403. failure:
  404. ptr = nullptr;
  405. goto success;
  406. #undef CHK_
  407. }
  408. ::PROTOBUF_NAMESPACE_ID::uint8* AGVStatu::_InternalSerialize(
  409. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  410. // @@protoc_insertion_point(serialize_to_array_start:NavMessage.AGVStatu)
  411. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  412. (void) cached_has_bits;
  413. // float x = 1;
  414. if (!(this->x() <= 0 && this->x() >= 0)) {
  415. target = stream->EnsureSpace(target);
  416. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(1, this->_internal_x(), target);
  417. }
  418. // float y = 2;
  419. if (!(this->y() <= 0 && this->y() >= 0)) {
  420. target = stream->EnsureSpace(target);
  421. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(2, this->_internal_y(), target);
  422. }
  423. // float theta = 3;
  424. if (!(this->theta() <= 0 && this->theta() >= 0)) {
  425. target = stream->EnsureSpace(target);
  426. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(3, this->_internal_theta(), target);
  427. }
  428. // float v = 4;
  429. if (!(this->v() <= 0 && this->v() >= 0)) {
  430. target = stream->EnsureSpace(target);
  431. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(4, this->_internal_v(), target);
  432. }
  433. // float vth = 5;
  434. if (!(this->vth() <= 0 && this->vth() >= 0)) {
  435. target = stream->EnsureSpace(target);
  436. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(5, this->_internal_vth(), target);
  437. }
  438. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  439. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  440. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  441. }
  442. // @@protoc_insertion_point(serialize_to_array_end:NavMessage.AGVStatu)
  443. return target;
  444. }
  445. size_t AGVStatu::ByteSizeLong() const {
  446. // @@protoc_insertion_point(message_byte_size_start:NavMessage.AGVStatu)
  447. size_t total_size = 0;
  448. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  449. // Prevent compiler warnings about cached_has_bits being unused
  450. (void) cached_has_bits;
  451. // float x = 1;
  452. if (!(this->x() <= 0 && this->x() >= 0)) {
  453. total_size += 1 + 4;
  454. }
  455. // float y = 2;
  456. if (!(this->y() <= 0 && this->y() >= 0)) {
  457. total_size += 1 + 4;
  458. }
  459. // float theta = 3;
  460. if (!(this->theta() <= 0 && this->theta() >= 0)) {
  461. total_size += 1 + 4;
  462. }
  463. // float v = 4;
  464. if (!(this->v() <= 0 && this->v() >= 0)) {
  465. total_size += 1 + 4;
  466. }
  467. // float vth = 5;
  468. if (!(this->vth() <= 0 && this->vth() >= 0)) {
  469. total_size += 1 + 4;
  470. }
  471. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  472. return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
  473. _internal_metadata_, total_size, &_cached_size_);
  474. }
  475. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  476. SetCachedSize(cached_size);
  477. return total_size;
  478. }
  479. void AGVStatu::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  480. // @@protoc_insertion_point(generalized_merge_from_start:NavMessage.AGVStatu)
  481. GOOGLE_DCHECK_NE(&from, this);
  482. const AGVStatu* source =
  483. ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<AGVStatu>(
  484. &from);
  485. if (source == nullptr) {
  486. // @@protoc_insertion_point(generalized_merge_from_cast_fail:NavMessage.AGVStatu)
  487. ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  488. } else {
  489. // @@protoc_insertion_point(generalized_merge_from_cast_success:NavMessage.AGVStatu)
  490. MergeFrom(*source);
  491. }
  492. }
  493. void AGVStatu::MergeFrom(const AGVStatu& from) {
  494. // @@protoc_insertion_point(class_specific_merge_from_start:NavMessage.AGVStatu)
  495. GOOGLE_DCHECK_NE(&from, this);
  496. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  497. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  498. (void) cached_has_bits;
  499. if (!(from.x() <= 0 && from.x() >= 0)) {
  500. _internal_set_x(from._internal_x());
  501. }
  502. if (!(from.y() <= 0 && from.y() >= 0)) {
  503. _internal_set_y(from._internal_y());
  504. }
  505. if (!(from.theta() <= 0 && from.theta() >= 0)) {
  506. _internal_set_theta(from._internal_theta());
  507. }
  508. if (!(from.v() <= 0 && from.v() >= 0)) {
  509. _internal_set_v(from._internal_v());
  510. }
  511. if (!(from.vth() <= 0 && from.vth() >= 0)) {
  512. _internal_set_vth(from._internal_vth());
  513. }
  514. }
  515. void AGVStatu::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  516. // @@protoc_insertion_point(generalized_copy_from_start:NavMessage.AGVStatu)
  517. if (&from == this) return;
  518. Clear();
  519. MergeFrom(from);
  520. }
  521. void AGVStatu::CopyFrom(const AGVStatu& from) {
  522. // @@protoc_insertion_point(class_specific_copy_from_start:NavMessage.AGVStatu)
  523. if (&from == this) return;
  524. Clear();
  525. MergeFrom(from);
  526. }
  527. bool AGVStatu::IsInitialized() const {
  528. return true;
  529. }
  530. void AGVStatu::InternalSwap(AGVStatu* other) {
  531. using std::swap;
  532. _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
  533. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  534. PROTOBUF_FIELD_OFFSET(AGVStatu, vth_)
  535. + sizeof(AGVStatu::vth_)
  536. - PROTOBUF_FIELD_OFFSET(AGVStatu, x_)>(
  537. reinterpret_cast<char*>(&x_),
  538. reinterpret_cast<char*>(&other->x_));
  539. }
  540. ::PROTOBUF_NAMESPACE_ID::Metadata AGVStatu::GetMetadata() const {
  541. return GetMetadataStatic();
  542. }
  543. // ===================================================================
  544. void Speed::InitAsDefaultInstance() {
  545. }
  546. class Speed::_Internal {
  547. public:
  548. };
  549. Speed::Speed(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  550. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  551. SharedCtor();
  552. RegisterArenaDtor(arena);
  553. // @@protoc_insertion_point(arena_constructor:NavMessage.Speed)
  554. }
  555. Speed::Speed(const Speed& from)
  556. : ::PROTOBUF_NAMESPACE_ID::Message() {
  557. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  558. ::memcpy(&h_, &from.h_,
  559. static_cast<size_t>(reinterpret_cast<char*>(&end_) -
  560. reinterpret_cast<char*>(&h_)) + sizeof(end_));
  561. // @@protoc_insertion_point(copy_constructor:NavMessage.Speed)
  562. }
  563. void Speed::SharedCtor() {
  564. ::memset(&h_, 0, static_cast<size_t>(
  565. reinterpret_cast<char*>(&end_) -
  566. reinterpret_cast<char*>(&h_)) + sizeof(end_));
  567. }
  568. Speed::~Speed() {
  569. // @@protoc_insertion_point(destructor:NavMessage.Speed)
  570. SharedDtor();
  571. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  572. }
  573. void Speed::SharedDtor() {
  574. GOOGLE_DCHECK(GetArena() == nullptr);
  575. }
  576. void Speed::ArenaDtor(void* object) {
  577. Speed* _this = reinterpret_cast< Speed* >(object);
  578. (void)_this;
  579. }
  580. void Speed::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  581. }
  582. void Speed::SetCachedSize(int size) const {
  583. _cached_size_.Set(size);
  584. }
  585. const Speed& Speed::default_instance() {
  586. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Speed_message_2eproto.base);
  587. return *internal_default_instance();
  588. }
  589. void Speed::Clear() {
  590. // @@protoc_insertion_point(message_clear_start:NavMessage.Speed)
  591. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  592. // Prevent compiler warnings about cached_has_bits being unused
  593. (void) cached_has_bits;
  594. ::memset(&h_, 0, static_cast<size_t>(
  595. reinterpret_cast<char*>(&end_) -
  596. reinterpret_cast<char*>(&h_)) + sizeof(end_));
  597. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  598. }
  599. const char* Speed::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  600. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  601. ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
  602. while (!ctx->Done(&ptr)) {
  603. ::PROTOBUF_NAMESPACE_ID::uint32 tag;
  604. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  605. CHK_(ptr);
  606. switch (tag >> 3) {
  607. // int32 H = 1;
  608. case 1:
  609. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
  610. h_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  611. CHK_(ptr);
  612. } else goto handle_unusual;
  613. continue;
  614. // int32 T = 2;
  615. case 2:
  616. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
  617. t_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  618. CHK_(ptr);
  619. } else goto handle_unusual;
  620. continue;
  621. // float V = 3;
  622. case 3:
  623. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 29)) {
  624. v_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  625. ptr += sizeof(float);
  626. } else goto handle_unusual;
  627. continue;
  628. // float W = 4;
  629. case 4:
  630. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 37)) {
  631. w_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  632. ptr += sizeof(float);
  633. } else goto handle_unusual;
  634. continue;
  635. // int32 end = 5;
  636. case 5:
  637. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
  638. end_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  639. CHK_(ptr);
  640. } else goto handle_unusual;
  641. continue;
  642. default: {
  643. handle_unusual:
  644. if ((tag & 7) == 4 || tag == 0) {
  645. ctx->SetLastTag(tag);
  646. goto success;
  647. }
  648. ptr = UnknownFieldParse(tag,
  649. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  650. ptr, ctx);
  651. CHK_(ptr != nullptr);
  652. continue;
  653. }
  654. } // switch
  655. } // while
  656. success:
  657. return ptr;
  658. failure:
  659. ptr = nullptr;
  660. goto success;
  661. #undef CHK_
  662. }
  663. ::PROTOBUF_NAMESPACE_ID::uint8* Speed::_InternalSerialize(
  664. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  665. // @@protoc_insertion_point(serialize_to_array_start:NavMessage.Speed)
  666. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  667. (void) cached_has_bits;
  668. // int32 H = 1;
  669. if (this->h() != 0) {
  670. target = stream->EnsureSpace(target);
  671. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_h(), target);
  672. }
  673. // int32 T = 2;
  674. if (this->t() != 0) {
  675. target = stream->EnsureSpace(target);
  676. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_t(), target);
  677. }
  678. // float V = 3;
  679. if (!(this->v() <= 0 && this->v() >= 0)) {
  680. target = stream->EnsureSpace(target);
  681. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(3, this->_internal_v(), target);
  682. }
  683. // float W = 4;
  684. if (!(this->w() <= 0 && this->w() >= 0)) {
  685. target = stream->EnsureSpace(target);
  686. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(4, this->_internal_w(), target);
  687. }
  688. // int32 end = 5;
  689. if (this->end() != 0) {
  690. target = stream->EnsureSpace(target);
  691. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_end(), target);
  692. }
  693. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  694. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  695. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  696. }
  697. // @@protoc_insertion_point(serialize_to_array_end:NavMessage.Speed)
  698. return target;
  699. }
  700. size_t Speed::ByteSizeLong() const {
  701. // @@protoc_insertion_point(message_byte_size_start:NavMessage.Speed)
  702. size_t total_size = 0;
  703. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  704. // Prevent compiler warnings about cached_has_bits being unused
  705. (void) cached_has_bits;
  706. // int32 H = 1;
  707. if (this->h() != 0) {
  708. total_size += 1 +
  709. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  710. this->_internal_h());
  711. }
  712. // int32 T = 2;
  713. if (this->t() != 0) {
  714. total_size += 1 +
  715. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  716. this->_internal_t());
  717. }
  718. // float V = 3;
  719. if (!(this->v() <= 0 && this->v() >= 0)) {
  720. total_size += 1 + 4;
  721. }
  722. // float W = 4;
  723. if (!(this->w() <= 0 && this->w() >= 0)) {
  724. total_size += 1 + 4;
  725. }
  726. // int32 end = 5;
  727. if (this->end() != 0) {
  728. total_size += 1 +
  729. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  730. this->_internal_end());
  731. }
  732. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  733. return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
  734. _internal_metadata_, total_size, &_cached_size_);
  735. }
  736. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  737. SetCachedSize(cached_size);
  738. return total_size;
  739. }
  740. void Speed::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  741. // @@protoc_insertion_point(generalized_merge_from_start:NavMessage.Speed)
  742. GOOGLE_DCHECK_NE(&from, this);
  743. const Speed* source =
  744. ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Speed>(
  745. &from);
  746. if (source == nullptr) {
  747. // @@protoc_insertion_point(generalized_merge_from_cast_fail:NavMessage.Speed)
  748. ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  749. } else {
  750. // @@protoc_insertion_point(generalized_merge_from_cast_success:NavMessage.Speed)
  751. MergeFrom(*source);
  752. }
  753. }
  754. void Speed::MergeFrom(const Speed& from) {
  755. // @@protoc_insertion_point(class_specific_merge_from_start:NavMessage.Speed)
  756. GOOGLE_DCHECK_NE(&from, this);
  757. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  758. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  759. (void) cached_has_bits;
  760. if (from.h() != 0) {
  761. _internal_set_h(from._internal_h());
  762. }
  763. if (from.t() != 0) {
  764. _internal_set_t(from._internal_t());
  765. }
  766. if (!(from.v() <= 0 && from.v() >= 0)) {
  767. _internal_set_v(from._internal_v());
  768. }
  769. if (!(from.w() <= 0 && from.w() >= 0)) {
  770. _internal_set_w(from._internal_w());
  771. }
  772. if (from.end() != 0) {
  773. _internal_set_end(from._internal_end());
  774. }
  775. }
  776. void Speed::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  777. // @@protoc_insertion_point(generalized_copy_from_start:NavMessage.Speed)
  778. if (&from == this) return;
  779. Clear();
  780. MergeFrom(from);
  781. }
  782. void Speed::CopyFrom(const Speed& from) {
  783. // @@protoc_insertion_point(class_specific_copy_from_start:NavMessage.Speed)
  784. if (&from == this) return;
  785. Clear();
  786. MergeFrom(from);
  787. }
  788. bool Speed::IsInitialized() const {
  789. return true;
  790. }
  791. void Speed::InternalSwap(Speed* other) {
  792. using std::swap;
  793. _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
  794. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  795. PROTOBUF_FIELD_OFFSET(Speed, end_)
  796. + sizeof(Speed::end_)
  797. - PROTOBUF_FIELD_OFFSET(Speed, h_)>(
  798. reinterpret_cast<char*>(&h_),
  799. reinterpret_cast<char*>(&other->h_));
  800. }
  801. ::PROTOBUF_NAMESPACE_ID::Metadata Speed::GetMetadata() const {
  802. return GetMetadataStatic();
  803. }
  804. // ===================================================================
  805. void SpeedLimit::InitAsDefaultInstance() {
  806. }
  807. class SpeedLimit::_Internal {
  808. public:
  809. };
  810. SpeedLimit::SpeedLimit(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  811. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  812. SharedCtor();
  813. RegisterArenaDtor(arena);
  814. // @@protoc_insertion_point(arena_constructor:NavMessage.SpeedLimit)
  815. }
  816. SpeedLimit::SpeedLimit(const SpeedLimit& from)
  817. : ::PROTOBUF_NAMESPACE_ID::Message() {
  818. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  819. ::memcpy(&min_, &from.min_,
  820. static_cast<size_t>(reinterpret_cast<char*>(&max_) -
  821. reinterpret_cast<char*>(&min_)) + sizeof(max_));
  822. // @@protoc_insertion_point(copy_constructor:NavMessage.SpeedLimit)
  823. }
  824. void SpeedLimit::SharedCtor() {
  825. ::memset(&min_, 0, static_cast<size_t>(
  826. reinterpret_cast<char*>(&max_) -
  827. reinterpret_cast<char*>(&min_)) + sizeof(max_));
  828. }
  829. SpeedLimit::~SpeedLimit() {
  830. // @@protoc_insertion_point(destructor:NavMessage.SpeedLimit)
  831. SharedDtor();
  832. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  833. }
  834. void SpeedLimit::SharedDtor() {
  835. GOOGLE_DCHECK(GetArena() == nullptr);
  836. }
  837. void SpeedLimit::ArenaDtor(void* object) {
  838. SpeedLimit* _this = reinterpret_cast< SpeedLimit* >(object);
  839. (void)_this;
  840. }
  841. void SpeedLimit::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  842. }
  843. void SpeedLimit::SetCachedSize(int size) const {
  844. _cached_size_.Set(size);
  845. }
  846. const SpeedLimit& SpeedLimit::default_instance() {
  847. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SpeedLimit_message_2eproto.base);
  848. return *internal_default_instance();
  849. }
  850. void SpeedLimit::Clear() {
  851. // @@protoc_insertion_point(message_clear_start:NavMessage.SpeedLimit)
  852. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  853. // Prevent compiler warnings about cached_has_bits being unused
  854. (void) cached_has_bits;
  855. ::memset(&min_, 0, static_cast<size_t>(
  856. reinterpret_cast<char*>(&max_) -
  857. reinterpret_cast<char*>(&min_)) + sizeof(max_));
  858. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  859. }
  860. const char* SpeedLimit::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  861. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  862. ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
  863. while (!ctx->Done(&ptr)) {
  864. ::PROTOBUF_NAMESPACE_ID::uint32 tag;
  865. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  866. CHK_(ptr);
  867. switch (tag >> 3) {
  868. // float min = 1;
  869. case 1:
  870. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 13)) {
  871. min_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  872. ptr += sizeof(float);
  873. } else goto handle_unusual;
  874. continue;
  875. // float max = 2;
  876. case 2:
  877. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 21)) {
  878. max_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  879. ptr += sizeof(float);
  880. } else goto handle_unusual;
  881. continue;
  882. default: {
  883. handle_unusual:
  884. if ((tag & 7) == 4 || tag == 0) {
  885. ctx->SetLastTag(tag);
  886. goto success;
  887. }
  888. ptr = UnknownFieldParse(tag,
  889. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  890. ptr, ctx);
  891. CHK_(ptr != nullptr);
  892. continue;
  893. }
  894. } // switch
  895. } // while
  896. success:
  897. return ptr;
  898. failure:
  899. ptr = nullptr;
  900. goto success;
  901. #undef CHK_
  902. }
  903. ::PROTOBUF_NAMESPACE_ID::uint8* SpeedLimit::_InternalSerialize(
  904. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  905. // @@protoc_insertion_point(serialize_to_array_start:NavMessage.SpeedLimit)
  906. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  907. (void) cached_has_bits;
  908. // float min = 1;
  909. if (!(this->min() <= 0 && this->min() >= 0)) {
  910. target = stream->EnsureSpace(target);
  911. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(1, this->_internal_min(), target);
  912. }
  913. // float max = 2;
  914. if (!(this->max() <= 0 && this->max() >= 0)) {
  915. target = stream->EnsureSpace(target);
  916. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(2, this->_internal_max(), target);
  917. }
  918. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  919. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  920. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  921. }
  922. // @@protoc_insertion_point(serialize_to_array_end:NavMessage.SpeedLimit)
  923. return target;
  924. }
  925. size_t SpeedLimit::ByteSizeLong() const {
  926. // @@protoc_insertion_point(message_byte_size_start:NavMessage.SpeedLimit)
  927. size_t total_size = 0;
  928. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  929. // Prevent compiler warnings about cached_has_bits being unused
  930. (void) cached_has_bits;
  931. // float min = 1;
  932. if (!(this->min() <= 0 && this->min() >= 0)) {
  933. total_size += 1 + 4;
  934. }
  935. // float max = 2;
  936. if (!(this->max() <= 0 && this->max() >= 0)) {
  937. total_size += 1 + 4;
  938. }
  939. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  940. return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
  941. _internal_metadata_, total_size, &_cached_size_);
  942. }
  943. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  944. SetCachedSize(cached_size);
  945. return total_size;
  946. }
  947. void SpeedLimit::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  948. // @@protoc_insertion_point(generalized_merge_from_start:NavMessage.SpeedLimit)
  949. GOOGLE_DCHECK_NE(&from, this);
  950. const SpeedLimit* source =
  951. ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<SpeedLimit>(
  952. &from);
  953. if (source == nullptr) {
  954. // @@protoc_insertion_point(generalized_merge_from_cast_fail:NavMessage.SpeedLimit)
  955. ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  956. } else {
  957. // @@protoc_insertion_point(generalized_merge_from_cast_success:NavMessage.SpeedLimit)
  958. MergeFrom(*source);
  959. }
  960. }
  961. void SpeedLimit::MergeFrom(const SpeedLimit& from) {
  962. // @@protoc_insertion_point(class_specific_merge_from_start:NavMessage.SpeedLimit)
  963. GOOGLE_DCHECK_NE(&from, this);
  964. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  965. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  966. (void) cached_has_bits;
  967. if (!(from.min() <= 0 && from.min() >= 0)) {
  968. _internal_set_min(from._internal_min());
  969. }
  970. if (!(from.max() <= 0 && from.max() >= 0)) {
  971. _internal_set_max(from._internal_max());
  972. }
  973. }
  974. void SpeedLimit::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  975. // @@protoc_insertion_point(generalized_copy_from_start:NavMessage.SpeedLimit)
  976. if (&from == this) return;
  977. Clear();
  978. MergeFrom(from);
  979. }
  980. void SpeedLimit::CopyFrom(const SpeedLimit& from) {
  981. // @@protoc_insertion_point(class_specific_copy_from_start:NavMessage.SpeedLimit)
  982. if (&from == this) return;
  983. Clear();
  984. MergeFrom(from);
  985. }
  986. bool SpeedLimit::IsInitialized() const {
  987. return true;
  988. }
  989. void SpeedLimit::InternalSwap(SpeedLimit* other) {
  990. using std::swap;
  991. _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
  992. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  993. PROTOBUF_FIELD_OFFSET(SpeedLimit, max_)
  994. + sizeof(SpeedLimit::max_)
  995. - PROTOBUF_FIELD_OFFSET(SpeedLimit, min_)>(
  996. reinterpret_cast<char*>(&min_),
  997. reinterpret_cast<char*>(&other->min_));
  998. }
  999. ::PROTOBUF_NAMESPACE_ID::Metadata SpeedLimit::GetMetadata() const {
  1000. return GetMetadataStatic();
  1001. }
  1002. // ===================================================================
  1003. void Pose2d::InitAsDefaultInstance() {
  1004. }
  1005. class Pose2d::_Internal {
  1006. public:
  1007. };
  1008. Pose2d::Pose2d(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  1009. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  1010. SharedCtor();
  1011. RegisterArenaDtor(arena);
  1012. // @@protoc_insertion_point(arena_constructor:NavMessage.Pose2d)
  1013. }
  1014. Pose2d::Pose2d(const Pose2d& from)
  1015. : ::PROTOBUF_NAMESPACE_ID::Message() {
  1016. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1017. ::memcpy(&x_, &from.x_,
  1018. static_cast<size_t>(reinterpret_cast<char*>(&theta_) -
  1019. reinterpret_cast<char*>(&x_)) + sizeof(theta_));
  1020. // @@protoc_insertion_point(copy_constructor:NavMessage.Pose2d)
  1021. }
  1022. void Pose2d::SharedCtor() {
  1023. ::memset(&x_, 0, static_cast<size_t>(
  1024. reinterpret_cast<char*>(&theta_) -
  1025. reinterpret_cast<char*>(&x_)) + sizeof(theta_));
  1026. }
  1027. Pose2d::~Pose2d() {
  1028. // @@protoc_insertion_point(destructor:NavMessage.Pose2d)
  1029. SharedDtor();
  1030. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1031. }
  1032. void Pose2d::SharedDtor() {
  1033. GOOGLE_DCHECK(GetArena() == nullptr);
  1034. }
  1035. void Pose2d::ArenaDtor(void* object) {
  1036. Pose2d* _this = reinterpret_cast< Pose2d* >(object);
  1037. (void)_this;
  1038. }
  1039. void Pose2d::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  1040. }
  1041. void Pose2d::SetCachedSize(int size) const {
  1042. _cached_size_.Set(size);
  1043. }
  1044. const Pose2d& Pose2d::default_instance() {
  1045. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Pose2d_message_2eproto.base);
  1046. return *internal_default_instance();
  1047. }
  1048. void Pose2d::Clear() {
  1049. // @@protoc_insertion_point(message_clear_start:NavMessage.Pose2d)
  1050. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1051. // Prevent compiler warnings about cached_has_bits being unused
  1052. (void) cached_has_bits;
  1053. ::memset(&x_, 0, static_cast<size_t>(
  1054. reinterpret_cast<char*>(&theta_) -
  1055. reinterpret_cast<char*>(&x_)) + sizeof(theta_));
  1056. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1057. }
  1058. const char* Pose2d::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  1059. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1060. ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
  1061. while (!ctx->Done(&ptr)) {
  1062. ::PROTOBUF_NAMESPACE_ID::uint32 tag;
  1063. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  1064. CHK_(ptr);
  1065. switch (tag >> 3) {
  1066. // float x = 1;
  1067. case 1:
  1068. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 13)) {
  1069. x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1070. ptr += sizeof(float);
  1071. } else goto handle_unusual;
  1072. continue;
  1073. // float y = 2;
  1074. case 2:
  1075. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 21)) {
  1076. y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1077. ptr += sizeof(float);
  1078. } else goto handle_unusual;
  1079. continue;
  1080. // float theta = 3;
  1081. case 3:
  1082. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 29)) {
  1083. theta_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1084. ptr += sizeof(float);
  1085. } else goto handle_unusual;
  1086. continue;
  1087. default: {
  1088. handle_unusual:
  1089. if ((tag & 7) == 4 || tag == 0) {
  1090. ctx->SetLastTag(tag);
  1091. goto success;
  1092. }
  1093. ptr = UnknownFieldParse(tag,
  1094. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1095. ptr, ctx);
  1096. CHK_(ptr != nullptr);
  1097. continue;
  1098. }
  1099. } // switch
  1100. } // while
  1101. success:
  1102. return ptr;
  1103. failure:
  1104. ptr = nullptr;
  1105. goto success;
  1106. #undef CHK_
  1107. }
  1108. ::PROTOBUF_NAMESPACE_ID::uint8* Pose2d::_InternalSerialize(
  1109. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  1110. // @@protoc_insertion_point(serialize_to_array_start:NavMessage.Pose2d)
  1111. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1112. (void) cached_has_bits;
  1113. // float x = 1;
  1114. if (!(this->x() <= 0 && this->x() >= 0)) {
  1115. target = stream->EnsureSpace(target);
  1116. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(1, this->_internal_x(), target);
  1117. }
  1118. // float y = 2;
  1119. if (!(this->y() <= 0 && this->y() >= 0)) {
  1120. target = stream->EnsureSpace(target);
  1121. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(2, this->_internal_y(), target);
  1122. }
  1123. // float theta = 3;
  1124. if (!(this->theta() <= 0 && this->theta() >= 0)) {
  1125. target = stream->EnsureSpace(target);
  1126. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(3, this->_internal_theta(), target);
  1127. }
  1128. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1129. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  1130. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  1131. }
  1132. // @@protoc_insertion_point(serialize_to_array_end:NavMessage.Pose2d)
  1133. return target;
  1134. }
  1135. size_t Pose2d::ByteSizeLong() const {
  1136. // @@protoc_insertion_point(message_byte_size_start:NavMessage.Pose2d)
  1137. size_t total_size = 0;
  1138. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1139. // Prevent compiler warnings about cached_has_bits being unused
  1140. (void) cached_has_bits;
  1141. // float x = 1;
  1142. if (!(this->x() <= 0 && this->x() >= 0)) {
  1143. total_size += 1 + 4;
  1144. }
  1145. // float y = 2;
  1146. if (!(this->y() <= 0 && this->y() >= 0)) {
  1147. total_size += 1 + 4;
  1148. }
  1149. // float theta = 3;
  1150. if (!(this->theta() <= 0 && this->theta() >= 0)) {
  1151. total_size += 1 + 4;
  1152. }
  1153. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1154. return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
  1155. _internal_metadata_, total_size, &_cached_size_);
  1156. }
  1157. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  1158. SetCachedSize(cached_size);
  1159. return total_size;
  1160. }
  1161. void Pose2d::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1162. // @@protoc_insertion_point(generalized_merge_from_start:NavMessage.Pose2d)
  1163. GOOGLE_DCHECK_NE(&from, this);
  1164. const Pose2d* source =
  1165. ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Pose2d>(
  1166. &from);
  1167. if (source == nullptr) {
  1168. // @@protoc_insertion_point(generalized_merge_from_cast_fail:NavMessage.Pose2d)
  1169. ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  1170. } else {
  1171. // @@protoc_insertion_point(generalized_merge_from_cast_success:NavMessage.Pose2d)
  1172. MergeFrom(*source);
  1173. }
  1174. }
  1175. void Pose2d::MergeFrom(const Pose2d& from) {
  1176. // @@protoc_insertion_point(class_specific_merge_from_start:NavMessage.Pose2d)
  1177. GOOGLE_DCHECK_NE(&from, this);
  1178. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1179. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1180. (void) cached_has_bits;
  1181. if (!(from.x() <= 0 && from.x() >= 0)) {
  1182. _internal_set_x(from._internal_x());
  1183. }
  1184. if (!(from.y() <= 0 && from.y() >= 0)) {
  1185. _internal_set_y(from._internal_y());
  1186. }
  1187. if (!(from.theta() <= 0 && from.theta() >= 0)) {
  1188. _internal_set_theta(from._internal_theta());
  1189. }
  1190. }
  1191. void Pose2d::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1192. // @@protoc_insertion_point(generalized_copy_from_start:NavMessage.Pose2d)
  1193. if (&from == this) return;
  1194. Clear();
  1195. MergeFrom(from);
  1196. }
  1197. void Pose2d::CopyFrom(const Pose2d& from) {
  1198. // @@protoc_insertion_point(class_specific_copy_from_start:NavMessage.Pose2d)
  1199. if (&from == this) return;
  1200. Clear();
  1201. MergeFrom(from);
  1202. }
  1203. bool Pose2d::IsInitialized() const {
  1204. return true;
  1205. }
  1206. void Pose2d::InternalSwap(Pose2d* other) {
  1207. using std::swap;
  1208. _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
  1209. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  1210. PROTOBUF_FIELD_OFFSET(Pose2d, theta_)
  1211. + sizeof(Pose2d::theta_)
  1212. - PROTOBUF_FIELD_OFFSET(Pose2d, x_)>(
  1213. reinterpret_cast<char*>(&x_),
  1214. reinterpret_cast<char*>(&other->x_));
  1215. }
  1216. ::PROTOBUF_NAMESPACE_ID::Metadata Pose2d::GetMetadata() const {
  1217. return GetMetadataStatic();
  1218. }
  1219. // ===================================================================
  1220. void Trajectory::InitAsDefaultInstance() {
  1221. }
  1222. class Trajectory::_Internal {
  1223. public:
  1224. };
  1225. Trajectory::Trajectory(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  1226. : ::PROTOBUF_NAMESPACE_ID::Message(arena),
  1227. poses_(arena) {
  1228. SharedCtor();
  1229. RegisterArenaDtor(arena);
  1230. // @@protoc_insertion_point(arena_constructor:NavMessage.Trajectory)
  1231. }
  1232. Trajectory::Trajectory(const Trajectory& from)
  1233. : ::PROTOBUF_NAMESPACE_ID::Message(),
  1234. poses_(from.poses_) {
  1235. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1236. // @@protoc_insertion_point(copy_constructor:NavMessage.Trajectory)
  1237. }
  1238. void Trajectory::SharedCtor() {
  1239. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Trajectory_message_2eproto.base);
  1240. }
  1241. Trajectory::~Trajectory() {
  1242. // @@protoc_insertion_point(destructor:NavMessage.Trajectory)
  1243. SharedDtor();
  1244. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1245. }
  1246. void Trajectory::SharedDtor() {
  1247. GOOGLE_DCHECK(GetArena() == nullptr);
  1248. }
  1249. void Trajectory::ArenaDtor(void* object) {
  1250. Trajectory* _this = reinterpret_cast< Trajectory* >(object);
  1251. (void)_this;
  1252. }
  1253. void Trajectory::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  1254. }
  1255. void Trajectory::SetCachedSize(int size) const {
  1256. _cached_size_.Set(size);
  1257. }
  1258. const Trajectory& Trajectory::default_instance() {
  1259. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Trajectory_message_2eproto.base);
  1260. return *internal_default_instance();
  1261. }
  1262. void Trajectory::Clear() {
  1263. // @@protoc_insertion_point(message_clear_start:NavMessage.Trajectory)
  1264. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1265. // Prevent compiler warnings about cached_has_bits being unused
  1266. (void) cached_has_bits;
  1267. poses_.Clear();
  1268. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1269. }
  1270. const char* Trajectory::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  1271. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1272. ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
  1273. while (!ctx->Done(&ptr)) {
  1274. ::PROTOBUF_NAMESPACE_ID::uint32 tag;
  1275. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  1276. CHK_(ptr);
  1277. switch (tag >> 3) {
  1278. // repeated .NavMessage.Pose2d poses = 1;
  1279. case 1:
  1280. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
  1281. ptr -= 1;
  1282. do {
  1283. ptr += 1;
  1284. ptr = ctx->ParseMessage(_internal_add_poses(), ptr);
  1285. CHK_(ptr);
  1286. if (!ctx->DataAvailable(ptr)) break;
  1287. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
  1288. } else goto handle_unusual;
  1289. continue;
  1290. default: {
  1291. handle_unusual:
  1292. if ((tag & 7) == 4 || tag == 0) {
  1293. ctx->SetLastTag(tag);
  1294. goto success;
  1295. }
  1296. ptr = UnknownFieldParse(tag,
  1297. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1298. ptr, ctx);
  1299. CHK_(ptr != nullptr);
  1300. continue;
  1301. }
  1302. } // switch
  1303. } // while
  1304. success:
  1305. return ptr;
  1306. failure:
  1307. ptr = nullptr;
  1308. goto success;
  1309. #undef CHK_
  1310. }
  1311. ::PROTOBUF_NAMESPACE_ID::uint8* Trajectory::_InternalSerialize(
  1312. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  1313. // @@protoc_insertion_point(serialize_to_array_start:NavMessage.Trajectory)
  1314. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1315. (void) cached_has_bits;
  1316. // repeated .NavMessage.Pose2d poses = 1;
  1317. for (unsigned int i = 0,
  1318. n = static_cast<unsigned int>(this->_internal_poses_size()); i < n; i++) {
  1319. target = stream->EnsureSpace(target);
  1320. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  1321. InternalWriteMessage(1, this->_internal_poses(i), target, stream);
  1322. }
  1323. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1324. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  1325. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  1326. }
  1327. // @@protoc_insertion_point(serialize_to_array_end:NavMessage.Trajectory)
  1328. return target;
  1329. }
  1330. size_t Trajectory::ByteSizeLong() const {
  1331. // @@protoc_insertion_point(message_byte_size_start:NavMessage.Trajectory)
  1332. size_t total_size = 0;
  1333. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1334. // Prevent compiler warnings about cached_has_bits being unused
  1335. (void) cached_has_bits;
  1336. // repeated .NavMessage.Pose2d poses = 1;
  1337. total_size += 1UL * this->_internal_poses_size();
  1338. for (const auto& msg : this->poses_) {
  1339. total_size +=
  1340. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  1341. }
  1342. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1343. return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
  1344. _internal_metadata_, total_size, &_cached_size_);
  1345. }
  1346. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  1347. SetCachedSize(cached_size);
  1348. return total_size;
  1349. }
  1350. void Trajectory::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1351. // @@protoc_insertion_point(generalized_merge_from_start:NavMessage.Trajectory)
  1352. GOOGLE_DCHECK_NE(&from, this);
  1353. const Trajectory* source =
  1354. ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Trajectory>(
  1355. &from);
  1356. if (source == nullptr) {
  1357. // @@protoc_insertion_point(generalized_merge_from_cast_fail:NavMessage.Trajectory)
  1358. ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  1359. } else {
  1360. // @@protoc_insertion_point(generalized_merge_from_cast_success:NavMessage.Trajectory)
  1361. MergeFrom(*source);
  1362. }
  1363. }
  1364. void Trajectory::MergeFrom(const Trajectory& from) {
  1365. // @@protoc_insertion_point(class_specific_merge_from_start:NavMessage.Trajectory)
  1366. GOOGLE_DCHECK_NE(&from, this);
  1367. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1368. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1369. (void) cached_has_bits;
  1370. poses_.MergeFrom(from.poses_);
  1371. }
  1372. void Trajectory::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1373. // @@protoc_insertion_point(generalized_copy_from_start:NavMessage.Trajectory)
  1374. if (&from == this) return;
  1375. Clear();
  1376. MergeFrom(from);
  1377. }
  1378. void Trajectory::CopyFrom(const Trajectory& from) {
  1379. // @@protoc_insertion_point(class_specific_copy_from_start:NavMessage.Trajectory)
  1380. if (&from == this) return;
  1381. Clear();
  1382. MergeFrom(from);
  1383. }
  1384. bool Trajectory::IsInitialized() const {
  1385. return true;
  1386. }
  1387. void Trajectory::InternalSwap(Trajectory* other) {
  1388. using std::swap;
  1389. _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
  1390. poses_.InternalSwap(&other->poses_);
  1391. }
  1392. ::PROTOBUF_NAMESPACE_ID::Metadata Trajectory::GetMetadata() const {
  1393. return GetMetadataStatic();
  1394. }
  1395. // ===================================================================
  1396. void Action::InitAsDefaultInstance() {
  1397. ::NavMessage::_Action_default_instance_._instance.get_mutable()->begin_ = const_cast< ::NavMessage::Pose2d*>(
  1398. ::NavMessage::Pose2d::internal_default_instance());
  1399. ::NavMessage::_Action_default_instance_._instance.get_mutable()->target_ = const_cast< ::NavMessage::Pose2d*>(
  1400. ::NavMessage::Pose2d::internal_default_instance());
  1401. ::NavMessage::_Action_default_instance_._instance.get_mutable()->target_diff_ = const_cast< ::NavMessage::Pose2d*>(
  1402. ::NavMessage::Pose2d::internal_default_instance());
  1403. ::NavMessage::_Action_default_instance_._instance.get_mutable()->velocity_limit_ = const_cast< ::NavMessage::SpeedLimit*>(
  1404. ::NavMessage::SpeedLimit::internal_default_instance());
  1405. ::NavMessage::_Action_default_instance_._instance.get_mutable()->angular_limit_ = const_cast< ::NavMessage::SpeedLimit*>(
  1406. ::NavMessage::SpeedLimit::internal_default_instance());
  1407. ::NavMessage::_Action_default_instance_._instance.get_mutable()->horize_limit_ = const_cast< ::NavMessage::SpeedLimit*>(
  1408. ::NavMessage::SpeedLimit::internal_default_instance());
  1409. }
  1410. class Action::_Internal {
  1411. public:
  1412. static const ::NavMessage::Pose2d& begin(const Action* msg);
  1413. static const ::NavMessage::Pose2d& target(const Action* msg);
  1414. static const ::NavMessage::Pose2d& target_diff(const Action* msg);
  1415. static const ::NavMessage::SpeedLimit& velocity_limit(const Action* msg);
  1416. static const ::NavMessage::SpeedLimit& angular_limit(const Action* msg);
  1417. static const ::NavMessage::SpeedLimit& horize_limit(const Action* msg);
  1418. };
  1419. const ::NavMessage::Pose2d&
  1420. Action::_Internal::begin(const Action* msg) {
  1421. return *msg->begin_;
  1422. }
  1423. const ::NavMessage::Pose2d&
  1424. Action::_Internal::target(const Action* msg) {
  1425. return *msg->target_;
  1426. }
  1427. const ::NavMessage::Pose2d&
  1428. Action::_Internal::target_diff(const Action* msg) {
  1429. return *msg->target_diff_;
  1430. }
  1431. const ::NavMessage::SpeedLimit&
  1432. Action::_Internal::velocity_limit(const Action* msg) {
  1433. return *msg->velocity_limit_;
  1434. }
  1435. const ::NavMessage::SpeedLimit&
  1436. Action::_Internal::angular_limit(const Action* msg) {
  1437. return *msg->angular_limit_;
  1438. }
  1439. const ::NavMessage::SpeedLimit&
  1440. Action::_Internal::horize_limit(const Action* msg) {
  1441. return *msg->horize_limit_;
  1442. }
  1443. Action::Action(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  1444. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  1445. SharedCtor();
  1446. RegisterArenaDtor(arena);
  1447. // @@protoc_insertion_point(arena_constructor:NavMessage.Action)
  1448. }
  1449. Action::Action(const Action& from)
  1450. : ::PROTOBUF_NAMESPACE_ID::Message() {
  1451. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1452. if (from._internal_has_begin()) {
  1453. begin_ = new ::NavMessage::Pose2d(*from.begin_);
  1454. } else {
  1455. begin_ = nullptr;
  1456. }
  1457. if (from._internal_has_target()) {
  1458. target_ = new ::NavMessage::Pose2d(*from.target_);
  1459. } else {
  1460. target_ = nullptr;
  1461. }
  1462. if (from._internal_has_target_diff()) {
  1463. target_diff_ = new ::NavMessage::Pose2d(*from.target_diff_);
  1464. } else {
  1465. target_diff_ = nullptr;
  1466. }
  1467. if (from._internal_has_velocity_limit()) {
  1468. velocity_limit_ = new ::NavMessage::SpeedLimit(*from.velocity_limit_);
  1469. } else {
  1470. velocity_limit_ = nullptr;
  1471. }
  1472. if (from._internal_has_angular_limit()) {
  1473. angular_limit_ = new ::NavMessage::SpeedLimit(*from.angular_limit_);
  1474. } else {
  1475. angular_limit_ = nullptr;
  1476. }
  1477. if (from._internal_has_horize_limit()) {
  1478. horize_limit_ = new ::NavMessage::SpeedLimit(*from.horize_limit_);
  1479. } else {
  1480. horize_limit_ = nullptr;
  1481. }
  1482. type_ = from.type_;
  1483. // @@protoc_insertion_point(copy_constructor:NavMessage.Action)
  1484. }
  1485. void Action::SharedCtor() {
  1486. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Action_message_2eproto.base);
  1487. ::memset(&begin_, 0, static_cast<size_t>(
  1488. reinterpret_cast<char*>(&type_) -
  1489. reinterpret_cast<char*>(&begin_)) + sizeof(type_));
  1490. }
  1491. Action::~Action() {
  1492. // @@protoc_insertion_point(destructor:NavMessage.Action)
  1493. SharedDtor();
  1494. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1495. }
  1496. void Action::SharedDtor() {
  1497. GOOGLE_DCHECK(GetArena() == nullptr);
  1498. if (this != internal_default_instance()) delete begin_;
  1499. if (this != internal_default_instance()) delete target_;
  1500. if (this != internal_default_instance()) delete target_diff_;
  1501. if (this != internal_default_instance()) delete velocity_limit_;
  1502. if (this != internal_default_instance()) delete angular_limit_;
  1503. if (this != internal_default_instance()) delete horize_limit_;
  1504. }
  1505. void Action::ArenaDtor(void* object) {
  1506. Action* _this = reinterpret_cast< Action* >(object);
  1507. (void)_this;
  1508. }
  1509. void Action::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  1510. }
  1511. void Action::SetCachedSize(int size) const {
  1512. _cached_size_.Set(size);
  1513. }
  1514. const Action& Action::default_instance() {
  1515. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Action_message_2eproto.base);
  1516. return *internal_default_instance();
  1517. }
  1518. void Action::Clear() {
  1519. // @@protoc_insertion_point(message_clear_start:NavMessage.Action)
  1520. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1521. // Prevent compiler warnings about cached_has_bits being unused
  1522. (void) cached_has_bits;
  1523. if (GetArena() == nullptr && begin_ != nullptr) {
  1524. delete begin_;
  1525. }
  1526. begin_ = nullptr;
  1527. if (GetArena() == nullptr && target_ != nullptr) {
  1528. delete target_;
  1529. }
  1530. target_ = nullptr;
  1531. if (GetArena() == nullptr && target_diff_ != nullptr) {
  1532. delete target_diff_;
  1533. }
  1534. target_diff_ = nullptr;
  1535. if (GetArena() == nullptr && velocity_limit_ != nullptr) {
  1536. delete velocity_limit_;
  1537. }
  1538. velocity_limit_ = nullptr;
  1539. if (GetArena() == nullptr && angular_limit_ != nullptr) {
  1540. delete angular_limit_;
  1541. }
  1542. angular_limit_ = nullptr;
  1543. if (GetArena() == nullptr && horize_limit_ != nullptr) {
  1544. delete horize_limit_;
  1545. }
  1546. horize_limit_ = nullptr;
  1547. type_ = 0;
  1548. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1549. }
  1550. const char* Action::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  1551. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1552. ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
  1553. while (!ctx->Done(&ptr)) {
  1554. ::PROTOBUF_NAMESPACE_ID::uint32 tag;
  1555. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  1556. CHK_(ptr);
  1557. switch (tag >> 3) {
  1558. // int32 type = 1;
  1559. case 1:
  1560. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
  1561. type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1562. CHK_(ptr);
  1563. } else goto handle_unusual;
  1564. continue;
  1565. // .NavMessage.Pose2d begin = 2;
  1566. case 2:
  1567. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
  1568. ptr = ctx->ParseMessage(_internal_mutable_begin(), ptr);
  1569. CHK_(ptr);
  1570. } else goto handle_unusual;
  1571. continue;
  1572. // .NavMessage.Pose2d target = 3;
  1573. case 3:
  1574. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
  1575. ptr = ctx->ParseMessage(_internal_mutable_target(), ptr);
  1576. CHK_(ptr);
  1577. } else goto handle_unusual;
  1578. continue;
  1579. // .NavMessage.Pose2d target_diff = 4;
  1580. case 4:
  1581. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
  1582. ptr = ctx->ParseMessage(_internal_mutable_target_diff(), ptr);
  1583. CHK_(ptr);
  1584. } else goto handle_unusual;
  1585. continue;
  1586. // .NavMessage.SpeedLimit velocity_limit = 5;
  1587. case 5:
  1588. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
  1589. ptr = ctx->ParseMessage(_internal_mutable_velocity_limit(), ptr);
  1590. CHK_(ptr);
  1591. } else goto handle_unusual;
  1592. continue;
  1593. // .NavMessage.SpeedLimit angular_limit = 6;
  1594. case 6:
  1595. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) {
  1596. ptr = ctx->ParseMessage(_internal_mutable_angular_limit(), ptr);
  1597. CHK_(ptr);
  1598. } else goto handle_unusual;
  1599. continue;
  1600. // .NavMessage.SpeedLimit horize_limit = 7;
  1601. case 7:
  1602. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) {
  1603. ptr = ctx->ParseMessage(_internal_mutable_horize_limit(), ptr);
  1604. CHK_(ptr);
  1605. } else goto handle_unusual;
  1606. continue;
  1607. default: {
  1608. handle_unusual:
  1609. if ((tag & 7) == 4 || tag == 0) {
  1610. ctx->SetLastTag(tag);
  1611. goto success;
  1612. }
  1613. ptr = UnknownFieldParse(tag,
  1614. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1615. ptr, ctx);
  1616. CHK_(ptr != nullptr);
  1617. continue;
  1618. }
  1619. } // switch
  1620. } // while
  1621. success:
  1622. return ptr;
  1623. failure:
  1624. ptr = nullptr;
  1625. goto success;
  1626. #undef CHK_
  1627. }
  1628. ::PROTOBUF_NAMESPACE_ID::uint8* Action::_InternalSerialize(
  1629. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  1630. // @@protoc_insertion_point(serialize_to_array_start:NavMessage.Action)
  1631. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1632. (void) cached_has_bits;
  1633. // int32 type = 1;
  1634. if (this->type() != 0) {
  1635. target = stream->EnsureSpace(target);
  1636. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_type(), target);
  1637. }
  1638. // .NavMessage.Pose2d begin = 2;
  1639. if (this->has_begin()) {
  1640. target = stream->EnsureSpace(target);
  1641. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  1642. InternalWriteMessage(
  1643. 2, _Internal::begin(this), target, stream);
  1644. }
  1645. // .NavMessage.Pose2d target = 3;
  1646. if (this->has_target()) {
  1647. target = stream->EnsureSpace(target);
  1648. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  1649. InternalWriteMessage(
  1650. 3, _Internal::target(this), target, stream);
  1651. }
  1652. // .NavMessage.Pose2d target_diff = 4;
  1653. if (this->has_target_diff()) {
  1654. target = stream->EnsureSpace(target);
  1655. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  1656. InternalWriteMessage(
  1657. 4, _Internal::target_diff(this), target, stream);
  1658. }
  1659. // .NavMessage.SpeedLimit velocity_limit = 5;
  1660. if (this->has_velocity_limit()) {
  1661. target = stream->EnsureSpace(target);
  1662. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  1663. InternalWriteMessage(
  1664. 5, _Internal::velocity_limit(this), target, stream);
  1665. }
  1666. // .NavMessage.SpeedLimit angular_limit = 6;
  1667. if (this->has_angular_limit()) {
  1668. target = stream->EnsureSpace(target);
  1669. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  1670. InternalWriteMessage(
  1671. 6, _Internal::angular_limit(this), target, stream);
  1672. }
  1673. // .NavMessage.SpeedLimit horize_limit = 7;
  1674. if (this->has_horize_limit()) {
  1675. target = stream->EnsureSpace(target);
  1676. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  1677. InternalWriteMessage(
  1678. 7, _Internal::horize_limit(this), target, stream);
  1679. }
  1680. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1681. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  1682. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  1683. }
  1684. // @@protoc_insertion_point(serialize_to_array_end:NavMessage.Action)
  1685. return target;
  1686. }
  1687. size_t Action::ByteSizeLong() const {
  1688. // @@protoc_insertion_point(message_byte_size_start:NavMessage.Action)
  1689. size_t total_size = 0;
  1690. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1691. // Prevent compiler warnings about cached_has_bits being unused
  1692. (void) cached_has_bits;
  1693. // .NavMessage.Pose2d begin = 2;
  1694. if (this->has_begin()) {
  1695. total_size += 1 +
  1696. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  1697. *begin_);
  1698. }
  1699. // .NavMessage.Pose2d target = 3;
  1700. if (this->has_target()) {
  1701. total_size += 1 +
  1702. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  1703. *target_);
  1704. }
  1705. // .NavMessage.Pose2d target_diff = 4;
  1706. if (this->has_target_diff()) {
  1707. total_size += 1 +
  1708. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  1709. *target_diff_);
  1710. }
  1711. // .NavMessage.SpeedLimit velocity_limit = 5;
  1712. if (this->has_velocity_limit()) {
  1713. total_size += 1 +
  1714. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  1715. *velocity_limit_);
  1716. }
  1717. // .NavMessage.SpeedLimit angular_limit = 6;
  1718. if (this->has_angular_limit()) {
  1719. total_size += 1 +
  1720. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  1721. *angular_limit_);
  1722. }
  1723. // .NavMessage.SpeedLimit horize_limit = 7;
  1724. if (this->has_horize_limit()) {
  1725. total_size += 1 +
  1726. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  1727. *horize_limit_);
  1728. }
  1729. // int32 type = 1;
  1730. if (this->type() != 0) {
  1731. total_size += 1 +
  1732. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  1733. this->_internal_type());
  1734. }
  1735. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1736. return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
  1737. _internal_metadata_, total_size, &_cached_size_);
  1738. }
  1739. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  1740. SetCachedSize(cached_size);
  1741. return total_size;
  1742. }
  1743. void Action::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1744. // @@protoc_insertion_point(generalized_merge_from_start:NavMessage.Action)
  1745. GOOGLE_DCHECK_NE(&from, this);
  1746. const Action* source =
  1747. ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Action>(
  1748. &from);
  1749. if (source == nullptr) {
  1750. // @@protoc_insertion_point(generalized_merge_from_cast_fail:NavMessage.Action)
  1751. ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  1752. } else {
  1753. // @@protoc_insertion_point(generalized_merge_from_cast_success:NavMessage.Action)
  1754. MergeFrom(*source);
  1755. }
  1756. }
  1757. void Action::MergeFrom(const Action& from) {
  1758. // @@protoc_insertion_point(class_specific_merge_from_start:NavMessage.Action)
  1759. GOOGLE_DCHECK_NE(&from, this);
  1760. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1761. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1762. (void) cached_has_bits;
  1763. if (from.has_begin()) {
  1764. _internal_mutable_begin()->::NavMessage::Pose2d::MergeFrom(from._internal_begin());
  1765. }
  1766. if (from.has_target()) {
  1767. _internal_mutable_target()->::NavMessage::Pose2d::MergeFrom(from._internal_target());
  1768. }
  1769. if (from.has_target_diff()) {
  1770. _internal_mutable_target_diff()->::NavMessage::Pose2d::MergeFrom(from._internal_target_diff());
  1771. }
  1772. if (from.has_velocity_limit()) {
  1773. _internal_mutable_velocity_limit()->::NavMessage::SpeedLimit::MergeFrom(from._internal_velocity_limit());
  1774. }
  1775. if (from.has_angular_limit()) {
  1776. _internal_mutable_angular_limit()->::NavMessage::SpeedLimit::MergeFrom(from._internal_angular_limit());
  1777. }
  1778. if (from.has_horize_limit()) {
  1779. _internal_mutable_horize_limit()->::NavMessage::SpeedLimit::MergeFrom(from._internal_horize_limit());
  1780. }
  1781. if (from.type() != 0) {
  1782. _internal_set_type(from._internal_type());
  1783. }
  1784. }
  1785. void Action::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1786. // @@protoc_insertion_point(generalized_copy_from_start:NavMessage.Action)
  1787. if (&from == this) return;
  1788. Clear();
  1789. MergeFrom(from);
  1790. }
  1791. void Action::CopyFrom(const Action& from) {
  1792. // @@protoc_insertion_point(class_specific_copy_from_start:NavMessage.Action)
  1793. if (&from == this) return;
  1794. Clear();
  1795. MergeFrom(from);
  1796. }
  1797. bool Action::IsInitialized() const {
  1798. return true;
  1799. }
  1800. void Action::InternalSwap(Action* other) {
  1801. using std::swap;
  1802. _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
  1803. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  1804. PROTOBUF_FIELD_OFFSET(Action, type_)
  1805. + sizeof(Action::type_)
  1806. - PROTOBUF_FIELD_OFFSET(Action, begin_)>(
  1807. reinterpret_cast<char*>(&begin_),
  1808. reinterpret_cast<char*>(&other->begin_));
  1809. }
  1810. ::PROTOBUF_NAMESPACE_ID::Metadata Action::GetMetadata() const {
  1811. return GetMetadataStatic();
  1812. }
  1813. // ===================================================================
  1814. void NavCmd::InitAsDefaultInstance() {
  1815. }
  1816. class NavCmd::_Internal {
  1817. public:
  1818. };
  1819. NavCmd::NavCmd(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  1820. : ::PROTOBUF_NAMESPACE_ID::Message(arena),
  1821. actions_(arena) {
  1822. SharedCtor();
  1823. RegisterArenaDtor(arena);
  1824. // @@protoc_insertion_point(arena_constructor:NavMessage.NavCmd)
  1825. }
  1826. NavCmd::NavCmd(const NavCmd& from)
  1827. : ::PROTOBUF_NAMESPACE_ID::Message(),
  1828. actions_(from.actions_) {
  1829. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1830. key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1831. if (!from._internal_key().empty()) {
  1832. key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_key(),
  1833. GetArena());
  1834. }
  1835. action_ = from.action_;
  1836. // @@protoc_insertion_point(copy_constructor:NavMessage.NavCmd)
  1837. }
  1838. void NavCmd::SharedCtor() {
  1839. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_NavCmd_message_2eproto.base);
  1840. key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1841. action_ = 0;
  1842. }
  1843. NavCmd::~NavCmd() {
  1844. // @@protoc_insertion_point(destructor:NavMessage.NavCmd)
  1845. SharedDtor();
  1846. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1847. }
  1848. void NavCmd::SharedDtor() {
  1849. GOOGLE_DCHECK(GetArena() == nullptr);
  1850. key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1851. }
  1852. void NavCmd::ArenaDtor(void* object) {
  1853. NavCmd* _this = reinterpret_cast< NavCmd* >(object);
  1854. (void)_this;
  1855. }
  1856. void NavCmd::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  1857. }
  1858. void NavCmd::SetCachedSize(int size) const {
  1859. _cached_size_.Set(size);
  1860. }
  1861. const NavCmd& NavCmd::default_instance() {
  1862. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_NavCmd_message_2eproto.base);
  1863. return *internal_default_instance();
  1864. }
  1865. void NavCmd::Clear() {
  1866. // @@protoc_insertion_point(message_clear_start:NavMessage.NavCmd)
  1867. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1868. // Prevent compiler warnings about cached_has_bits being unused
  1869. (void) cached_has_bits;
  1870. actions_.Clear();
  1871. key_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  1872. action_ = 0;
  1873. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1874. }
  1875. const char* NavCmd::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  1876. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1877. ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
  1878. while (!ctx->Done(&ptr)) {
  1879. ::PROTOBUF_NAMESPACE_ID::uint32 tag;
  1880. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  1881. CHK_(ptr);
  1882. switch (tag >> 3) {
  1883. // int32 action = 1;
  1884. case 1:
  1885. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
  1886. action_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1887. CHK_(ptr);
  1888. } else goto handle_unusual;
  1889. continue;
  1890. // string key = 2;
  1891. case 2:
  1892. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
  1893. auto str = _internal_mutable_key();
  1894. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  1895. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "NavMessage.NavCmd.key"));
  1896. CHK_(ptr);
  1897. } else goto handle_unusual;
  1898. continue;
  1899. // repeated .NavMessage.Action actions = 3;
  1900. case 3:
  1901. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
  1902. ptr -= 1;
  1903. do {
  1904. ptr += 1;
  1905. ptr = ctx->ParseMessage(_internal_add_actions(), ptr);
  1906. CHK_(ptr);
  1907. if (!ctx->DataAvailable(ptr)) break;
  1908. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr));
  1909. } else goto handle_unusual;
  1910. continue;
  1911. default: {
  1912. handle_unusual:
  1913. if ((tag & 7) == 4 || tag == 0) {
  1914. ctx->SetLastTag(tag);
  1915. goto success;
  1916. }
  1917. ptr = UnknownFieldParse(tag,
  1918. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1919. ptr, ctx);
  1920. CHK_(ptr != nullptr);
  1921. continue;
  1922. }
  1923. } // switch
  1924. } // while
  1925. success:
  1926. return ptr;
  1927. failure:
  1928. ptr = nullptr;
  1929. goto success;
  1930. #undef CHK_
  1931. }
  1932. ::PROTOBUF_NAMESPACE_ID::uint8* NavCmd::_InternalSerialize(
  1933. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  1934. // @@protoc_insertion_point(serialize_to_array_start:NavMessage.NavCmd)
  1935. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1936. (void) cached_has_bits;
  1937. // int32 action = 1;
  1938. if (this->action() != 0) {
  1939. target = stream->EnsureSpace(target);
  1940. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_action(), target);
  1941. }
  1942. // string key = 2;
  1943. if (this->key().size() > 0) {
  1944. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  1945. this->_internal_key().data(), static_cast<int>(this->_internal_key().length()),
  1946. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  1947. "NavMessage.NavCmd.key");
  1948. target = stream->WriteStringMaybeAliased(
  1949. 2, this->_internal_key(), target);
  1950. }
  1951. // repeated .NavMessage.Action actions = 3;
  1952. for (unsigned int i = 0,
  1953. n = static_cast<unsigned int>(this->_internal_actions_size()); i < n; i++) {
  1954. target = stream->EnsureSpace(target);
  1955. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  1956. InternalWriteMessage(3, this->_internal_actions(i), target, stream);
  1957. }
  1958. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1959. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  1960. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  1961. }
  1962. // @@protoc_insertion_point(serialize_to_array_end:NavMessage.NavCmd)
  1963. return target;
  1964. }
  1965. size_t NavCmd::ByteSizeLong() const {
  1966. // @@protoc_insertion_point(message_byte_size_start:NavMessage.NavCmd)
  1967. size_t total_size = 0;
  1968. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1969. // Prevent compiler warnings about cached_has_bits being unused
  1970. (void) cached_has_bits;
  1971. // repeated .NavMessage.Action actions = 3;
  1972. total_size += 1UL * this->_internal_actions_size();
  1973. for (const auto& msg : this->actions_) {
  1974. total_size +=
  1975. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  1976. }
  1977. // string key = 2;
  1978. if (this->key().size() > 0) {
  1979. total_size += 1 +
  1980. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  1981. this->_internal_key());
  1982. }
  1983. // int32 action = 1;
  1984. if (this->action() != 0) {
  1985. total_size += 1 +
  1986. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  1987. this->_internal_action());
  1988. }
  1989. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1990. return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
  1991. _internal_metadata_, total_size, &_cached_size_);
  1992. }
  1993. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  1994. SetCachedSize(cached_size);
  1995. return total_size;
  1996. }
  1997. void NavCmd::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1998. // @@protoc_insertion_point(generalized_merge_from_start:NavMessage.NavCmd)
  1999. GOOGLE_DCHECK_NE(&from, this);
  2000. const NavCmd* source =
  2001. ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<NavCmd>(
  2002. &from);
  2003. if (source == nullptr) {
  2004. // @@protoc_insertion_point(generalized_merge_from_cast_fail:NavMessage.NavCmd)
  2005. ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  2006. } else {
  2007. // @@protoc_insertion_point(generalized_merge_from_cast_success:NavMessage.NavCmd)
  2008. MergeFrom(*source);
  2009. }
  2010. }
  2011. void NavCmd::MergeFrom(const NavCmd& from) {
  2012. // @@protoc_insertion_point(class_specific_merge_from_start:NavMessage.NavCmd)
  2013. GOOGLE_DCHECK_NE(&from, this);
  2014. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2015. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  2016. (void) cached_has_bits;
  2017. actions_.MergeFrom(from.actions_);
  2018. if (from.key().size() > 0) {
  2019. _internal_set_key(from._internal_key());
  2020. }
  2021. if (from.action() != 0) {
  2022. _internal_set_action(from._internal_action());
  2023. }
  2024. }
  2025. void NavCmd::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  2026. // @@protoc_insertion_point(generalized_copy_from_start:NavMessage.NavCmd)
  2027. if (&from == this) return;
  2028. Clear();
  2029. MergeFrom(from);
  2030. }
  2031. void NavCmd::CopyFrom(const NavCmd& from) {
  2032. // @@protoc_insertion_point(class_specific_copy_from_start:NavMessage.NavCmd)
  2033. if (&from == this) return;
  2034. Clear();
  2035. MergeFrom(from);
  2036. }
  2037. bool NavCmd::IsInitialized() const {
  2038. return true;
  2039. }
  2040. void NavCmd::InternalSwap(NavCmd* other) {
  2041. using std::swap;
  2042. _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
  2043. actions_.InternalSwap(&other->actions_);
  2044. key_.Swap(&other->key_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  2045. swap(action_, other->action_);
  2046. }
  2047. ::PROTOBUF_NAMESPACE_ID::Metadata NavCmd::GetMetadata() const {
  2048. return GetMetadataStatic();
  2049. }
  2050. // ===================================================================
  2051. void NavStatu::InitAsDefaultInstance() {
  2052. ::NavMessage::_NavStatu_default_instance_._instance.get_mutable()->selected_traj_ = const_cast< ::NavMessage::Trajectory*>(
  2053. ::NavMessage::Trajectory::internal_default_instance());
  2054. ::NavMessage::_NavStatu_default_instance_._instance.get_mutable()->predict_traj_ = const_cast< ::NavMessage::Trajectory*>(
  2055. ::NavMessage::Trajectory::internal_default_instance());
  2056. }
  2057. class NavStatu::_Internal {
  2058. public:
  2059. static const ::NavMessage::Trajectory& selected_traj(const NavStatu* msg);
  2060. static const ::NavMessage::Trajectory& predict_traj(const NavStatu* msg);
  2061. };
  2062. const ::NavMessage::Trajectory&
  2063. NavStatu::_Internal::selected_traj(const NavStatu* msg) {
  2064. return *msg->selected_traj_;
  2065. }
  2066. const ::NavMessage::Trajectory&
  2067. NavStatu::_Internal::predict_traj(const NavStatu* msg) {
  2068. return *msg->predict_traj_;
  2069. }
  2070. NavStatu::NavStatu(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  2071. : ::PROTOBUF_NAMESPACE_ID::Message(arena),
  2072. unfinished_actions_(arena) {
  2073. SharedCtor();
  2074. RegisterArenaDtor(arena);
  2075. // @@protoc_insertion_point(arena_constructor:NavMessage.NavStatu)
  2076. }
  2077. NavStatu::NavStatu(const NavStatu& from)
  2078. : ::PROTOBUF_NAMESPACE_ID::Message(),
  2079. unfinished_actions_(from.unfinished_actions_) {
  2080. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2081. key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2082. if (!from._internal_key().empty()) {
  2083. key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_key(),
  2084. GetArena());
  2085. }
  2086. if (from._internal_has_selected_traj()) {
  2087. selected_traj_ = new ::NavMessage::Trajectory(*from.selected_traj_);
  2088. } else {
  2089. selected_traj_ = nullptr;
  2090. }
  2091. if (from._internal_has_predict_traj()) {
  2092. predict_traj_ = new ::NavMessage::Trajectory(*from.predict_traj_);
  2093. } else {
  2094. predict_traj_ = nullptr;
  2095. }
  2096. statu_ = from.statu_;
  2097. // @@protoc_insertion_point(copy_constructor:NavMessage.NavStatu)
  2098. }
  2099. void NavStatu::SharedCtor() {
  2100. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_NavStatu_message_2eproto.base);
  2101. key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2102. ::memset(&selected_traj_, 0, static_cast<size_t>(
  2103. reinterpret_cast<char*>(&statu_) -
  2104. reinterpret_cast<char*>(&selected_traj_)) + sizeof(statu_));
  2105. }
  2106. NavStatu::~NavStatu() {
  2107. // @@protoc_insertion_point(destructor:NavMessage.NavStatu)
  2108. SharedDtor();
  2109. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2110. }
  2111. void NavStatu::SharedDtor() {
  2112. GOOGLE_DCHECK(GetArena() == nullptr);
  2113. key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2114. if (this != internal_default_instance()) delete selected_traj_;
  2115. if (this != internal_default_instance()) delete predict_traj_;
  2116. }
  2117. void NavStatu::ArenaDtor(void* object) {
  2118. NavStatu* _this = reinterpret_cast< NavStatu* >(object);
  2119. (void)_this;
  2120. }
  2121. void NavStatu::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  2122. }
  2123. void NavStatu::SetCachedSize(int size) const {
  2124. _cached_size_.Set(size);
  2125. }
  2126. const NavStatu& NavStatu::default_instance() {
  2127. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_NavStatu_message_2eproto.base);
  2128. return *internal_default_instance();
  2129. }
  2130. void NavStatu::Clear() {
  2131. // @@protoc_insertion_point(message_clear_start:NavMessage.NavStatu)
  2132. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  2133. // Prevent compiler warnings about cached_has_bits being unused
  2134. (void) cached_has_bits;
  2135. unfinished_actions_.Clear();
  2136. key_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  2137. if (GetArena() == nullptr && selected_traj_ != nullptr) {
  2138. delete selected_traj_;
  2139. }
  2140. selected_traj_ = nullptr;
  2141. if (GetArena() == nullptr && predict_traj_ != nullptr) {
  2142. delete predict_traj_;
  2143. }
  2144. predict_traj_ = nullptr;
  2145. statu_ = false;
  2146. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2147. }
  2148. const char* NavStatu::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  2149. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  2150. ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
  2151. while (!ctx->Done(&ptr)) {
  2152. ::PROTOBUF_NAMESPACE_ID::uint32 tag;
  2153. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  2154. CHK_(ptr);
  2155. switch (tag >> 3) {
  2156. // bool statu = 1;
  2157. case 1:
  2158. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
  2159. statu_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  2160. CHK_(ptr);
  2161. } else goto handle_unusual;
  2162. continue;
  2163. // string key = 2;
  2164. case 2:
  2165. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
  2166. auto str = _internal_mutable_key();
  2167. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  2168. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "NavMessage.NavStatu.key"));
  2169. CHK_(ptr);
  2170. } else goto handle_unusual;
  2171. continue;
  2172. // repeated .NavMessage.Action unfinished_actions = 3;
  2173. case 3:
  2174. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
  2175. ptr -= 1;
  2176. do {
  2177. ptr += 1;
  2178. ptr = ctx->ParseMessage(_internal_add_unfinished_actions(), ptr);
  2179. CHK_(ptr);
  2180. if (!ctx->DataAvailable(ptr)) break;
  2181. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr));
  2182. } else goto handle_unusual;
  2183. continue;
  2184. // .NavMessage.Trajectory selected_traj = 4;
  2185. case 4:
  2186. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
  2187. ptr = ctx->ParseMessage(_internal_mutable_selected_traj(), ptr);
  2188. CHK_(ptr);
  2189. } else goto handle_unusual;
  2190. continue;
  2191. // .NavMessage.Trajectory predict_traj = 5;
  2192. case 5:
  2193. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
  2194. ptr = ctx->ParseMessage(_internal_mutable_predict_traj(), ptr);
  2195. CHK_(ptr);
  2196. } else goto handle_unusual;
  2197. continue;
  2198. default: {
  2199. handle_unusual:
  2200. if ((tag & 7) == 4 || tag == 0) {
  2201. ctx->SetLastTag(tag);
  2202. goto success;
  2203. }
  2204. ptr = UnknownFieldParse(tag,
  2205. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2206. ptr, ctx);
  2207. CHK_(ptr != nullptr);
  2208. continue;
  2209. }
  2210. } // switch
  2211. } // while
  2212. success:
  2213. return ptr;
  2214. failure:
  2215. ptr = nullptr;
  2216. goto success;
  2217. #undef CHK_
  2218. }
  2219. ::PROTOBUF_NAMESPACE_ID::uint8* NavStatu::_InternalSerialize(
  2220. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  2221. // @@protoc_insertion_point(serialize_to_array_start:NavMessage.NavStatu)
  2222. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  2223. (void) cached_has_bits;
  2224. // bool statu = 1;
  2225. if (this->statu() != 0) {
  2226. target = stream->EnsureSpace(target);
  2227. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_statu(), target);
  2228. }
  2229. // string key = 2;
  2230. if (this->key().size() > 0) {
  2231. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  2232. this->_internal_key().data(), static_cast<int>(this->_internal_key().length()),
  2233. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  2234. "NavMessage.NavStatu.key");
  2235. target = stream->WriteStringMaybeAliased(
  2236. 2, this->_internal_key(), target);
  2237. }
  2238. // repeated .NavMessage.Action unfinished_actions = 3;
  2239. for (unsigned int i = 0,
  2240. n = static_cast<unsigned int>(this->_internal_unfinished_actions_size()); i < n; i++) {
  2241. target = stream->EnsureSpace(target);
  2242. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  2243. InternalWriteMessage(3, this->_internal_unfinished_actions(i), target, stream);
  2244. }
  2245. // .NavMessage.Trajectory selected_traj = 4;
  2246. if (this->has_selected_traj()) {
  2247. target = stream->EnsureSpace(target);
  2248. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  2249. InternalWriteMessage(
  2250. 4, _Internal::selected_traj(this), target, stream);
  2251. }
  2252. // .NavMessage.Trajectory predict_traj = 5;
  2253. if (this->has_predict_traj()) {
  2254. target = stream->EnsureSpace(target);
  2255. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  2256. InternalWriteMessage(
  2257. 5, _Internal::predict_traj(this), target, stream);
  2258. }
  2259. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2260. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  2261. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  2262. }
  2263. // @@protoc_insertion_point(serialize_to_array_end:NavMessage.NavStatu)
  2264. return target;
  2265. }
  2266. size_t NavStatu::ByteSizeLong() const {
  2267. // @@protoc_insertion_point(message_byte_size_start:NavMessage.NavStatu)
  2268. size_t total_size = 0;
  2269. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  2270. // Prevent compiler warnings about cached_has_bits being unused
  2271. (void) cached_has_bits;
  2272. // repeated .NavMessage.Action unfinished_actions = 3;
  2273. total_size += 1UL * this->_internal_unfinished_actions_size();
  2274. for (const auto& msg : this->unfinished_actions_) {
  2275. total_size +=
  2276. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  2277. }
  2278. // string key = 2;
  2279. if (this->key().size() > 0) {
  2280. total_size += 1 +
  2281. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  2282. this->_internal_key());
  2283. }
  2284. // .NavMessage.Trajectory selected_traj = 4;
  2285. if (this->has_selected_traj()) {
  2286. total_size += 1 +
  2287. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  2288. *selected_traj_);
  2289. }
  2290. // .NavMessage.Trajectory predict_traj = 5;
  2291. if (this->has_predict_traj()) {
  2292. total_size += 1 +
  2293. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  2294. *predict_traj_);
  2295. }
  2296. // bool statu = 1;
  2297. if (this->statu() != 0) {
  2298. total_size += 1 + 1;
  2299. }
  2300. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2301. return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
  2302. _internal_metadata_, total_size, &_cached_size_);
  2303. }
  2304. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  2305. SetCachedSize(cached_size);
  2306. return total_size;
  2307. }
  2308. void NavStatu::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  2309. // @@protoc_insertion_point(generalized_merge_from_start:NavMessage.NavStatu)
  2310. GOOGLE_DCHECK_NE(&from, this);
  2311. const NavStatu* source =
  2312. ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<NavStatu>(
  2313. &from);
  2314. if (source == nullptr) {
  2315. // @@protoc_insertion_point(generalized_merge_from_cast_fail:NavMessage.NavStatu)
  2316. ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  2317. } else {
  2318. // @@protoc_insertion_point(generalized_merge_from_cast_success:NavMessage.NavStatu)
  2319. MergeFrom(*source);
  2320. }
  2321. }
  2322. void NavStatu::MergeFrom(const NavStatu& from) {
  2323. // @@protoc_insertion_point(class_specific_merge_from_start:NavMessage.NavStatu)
  2324. GOOGLE_DCHECK_NE(&from, this);
  2325. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2326. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  2327. (void) cached_has_bits;
  2328. unfinished_actions_.MergeFrom(from.unfinished_actions_);
  2329. if (from.key().size() > 0) {
  2330. _internal_set_key(from._internal_key());
  2331. }
  2332. if (from.has_selected_traj()) {
  2333. _internal_mutable_selected_traj()->::NavMessage::Trajectory::MergeFrom(from._internal_selected_traj());
  2334. }
  2335. if (from.has_predict_traj()) {
  2336. _internal_mutable_predict_traj()->::NavMessage::Trajectory::MergeFrom(from._internal_predict_traj());
  2337. }
  2338. if (from.statu() != 0) {
  2339. _internal_set_statu(from._internal_statu());
  2340. }
  2341. }
  2342. void NavStatu::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  2343. // @@protoc_insertion_point(generalized_copy_from_start:NavMessage.NavStatu)
  2344. if (&from == this) return;
  2345. Clear();
  2346. MergeFrom(from);
  2347. }
  2348. void NavStatu::CopyFrom(const NavStatu& from) {
  2349. // @@protoc_insertion_point(class_specific_copy_from_start:NavMessage.NavStatu)
  2350. if (&from == this) return;
  2351. Clear();
  2352. MergeFrom(from);
  2353. }
  2354. bool NavStatu::IsInitialized() const {
  2355. return true;
  2356. }
  2357. void NavStatu::InternalSwap(NavStatu* other) {
  2358. using std::swap;
  2359. _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
  2360. unfinished_actions_.InternalSwap(&other->unfinished_actions_);
  2361. key_.Swap(&other->key_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  2362. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  2363. PROTOBUF_FIELD_OFFSET(NavStatu, statu_)
  2364. + sizeof(NavStatu::statu_)
  2365. - PROTOBUF_FIELD_OFFSET(NavStatu, selected_traj_)>(
  2366. reinterpret_cast<char*>(&selected_traj_),
  2367. reinterpret_cast<char*>(&other->selected_traj_));
  2368. }
  2369. ::PROTOBUF_NAMESPACE_ID::Metadata NavStatu::GetMetadata() const {
  2370. return GetMetadataStatic();
  2371. }
  2372. // @@protoc_insertion_point(namespace_scope)
  2373. } // namespace NavMessage
  2374. PROTOBUF_NAMESPACE_OPEN
  2375. template<> PROTOBUF_NOINLINE ::NavMessage::AGVStatu* Arena::CreateMaybeMessage< ::NavMessage::AGVStatu >(Arena* arena) {
  2376. return Arena::CreateMessageInternal< ::NavMessage::AGVStatu >(arena);
  2377. }
  2378. template<> PROTOBUF_NOINLINE ::NavMessage::Speed* Arena::CreateMaybeMessage< ::NavMessage::Speed >(Arena* arena) {
  2379. return Arena::CreateMessageInternal< ::NavMessage::Speed >(arena);
  2380. }
  2381. template<> PROTOBUF_NOINLINE ::NavMessage::SpeedLimit* Arena::CreateMaybeMessage< ::NavMessage::SpeedLimit >(Arena* arena) {
  2382. return Arena::CreateMessageInternal< ::NavMessage::SpeedLimit >(arena);
  2383. }
  2384. template<> PROTOBUF_NOINLINE ::NavMessage::Pose2d* Arena::CreateMaybeMessage< ::NavMessage::Pose2d >(Arena* arena) {
  2385. return Arena::CreateMessageInternal< ::NavMessage::Pose2d >(arena);
  2386. }
  2387. template<> PROTOBUF_NOINLINE ::NavMessage::Trajectory* Arena::CreateMaybeMessage< ::NavMessage::Trajectory >(Arena* arena) {
  2388. return Arena::CreateMessageInternal< ::NavMessage::Trajectory >(arena);
  2389. }
  2390. template<> PROTOBUF_NOINLINE ::NavMessage::Action* Arena::CreateMaybeMessage< ::NavMessage::Action >(Arena* arena) {
  2391. return Arena::CreateMessageInternal< ::NavMessage::Action >(arena);
  2392. }
  2393. template<> PROTOBUF_NOINLINE ::NavMessage::NavCmd* Arena::CreateMaybeMessage< ::NavMessage::NavCmd >(Arena* arena) {
  2394. return Arena::CreateMessageInternal< ::NavMessage::NavCmd >(arena);
  2395. }
  2396. template<> PROTOBUF_NOINLINE ::NavMessage::NavStatu* Arena::CreateMaybeMessage< ::NavMessage::NavStatu >(Arena* arena) {
  2397. return Arena::CreateMessageInternal< ::NavMessage::NavStatu >(arena);
  2398. }
  2399. PROTOBUF_NAMESPACE_CLOSE
  2400. // @@protoc_insertion_point(global_scope)
  2401. #include <google/protobuf/port_undef.inc>