message.pb.cc 169 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954
  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. // Must be included last.
  14. #include "google/protobuf/port_def.inc"
  15. PROTOBUF_PRAGMA_INIT_SEG
  16. namespace _pb = ::PROTOBUF_NAMESPACE_ID;
  17. namespace _pbi = ::PROTOBUF_NAMESPACE_ID::internal;
  18. namespace NavMessage {
  19. template <typename>
  20. PROTOBUF_CONSTEXPR LidarOdomStatu::LidarOdomStatu(
  21. ::_pbi::ConstantInitialized): _impl_{
  22. /*decltype(_impl_.x_)*/ 0
  23. , /*decltype(_impl_.y_)*/ 0
  24. , /*decltype(_impl_.theta_)*/ 0
  25. , /*decltype(_impl_.v_)*/ 0
  26. , /*decltype(_impl_.vth_)*/ 0
  27. , /*decltype(_impl_._cached_size_)*/{}} {}
  28. struct LidarOdomStatuDefaultTypeInternal {
  29. PROTOBUF_CONSTEXPR LidarOdomStatuDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  30. ~LidarOdomStatuDefaultTypeInternal() {}
  31. union {
  32. LidarOdomStatu _instance;
  33. };
  34. };
  35. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  36. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LidarOdomStatuDefaultTypeInternal _LidarOdomStatu_default_instance_;
  37. template <typename>
  38. PROTOBUF_CONSTEXPR AgvStatu::AgvStatu(
  39. ::_pbi::ConstantInitialized): _impl_{
  40. /*decltype(_impl_.v_)*/ 0
  41. , /*decltype(_impl_.w_)*/ 0
  42. , /*decltype(_impl_.clamp_)*/ 0
  43. , /*decltype(_impl_.clamp_other_)*/ 0
  44. , /*decltype(_impl_.lifter_)*/ 0
  45. , /*decltype(_impl_.lifter_other_)*/ 0
  46. , /*decltype(_impl_._cached_size_)*/{}} {}
  47. struct AgvStatuDefaultTypeInternal {
  48. PROTOBUF_CONSTEXPR AgvStatuDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  49. ~AgvStatuDefaultTypeInternal() {}
  50. union {
  51. AgvStatu _instance;
  52. };
  53. };
  54. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  55. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AgvStatuDefaultTypeInternal _AgvStatu_default_instance_;
  56. template <typename>
  57. PROTOBUF_CONSTEXPR ToAgvCmd::ToAgvCmd(
  58. ::_pbi::ConstantInitialized): _impl_{
  59. /*decltype(_impl_.h1_)*/ 0
  60. , /*decltype(_impl_.m1_)*/ 0
  61. , /*decltype(_impl_.t1_)*/ 0
  62. , /*decltype(_impl_.v1_)*/ 0
  63. , /*decltype(_impl_.w1_)*/ 0
  64. , /*decltype(_impl_.v2_)*/ 0
  65. , /*decltype(_impl_.w2_)*/ 0
  66. , /*decltype(_impl_.v3_)*/ 0
  67. , /*decltype(_impl_.w3_)*/ 0
  68. , /*decltype(_impl_.l1_)*/ 0
  69. , /*decltype(_impl_.p1_)*/ 0
  70. , /*decltype(_impl_.d1_)*/ 0
  71. , /*decltype(_impl_.y1_)*/ 0
  72. , /*decltype(_impl_.y2_)*/ 0
  73. , /*decltype(_impl_.end_)*/ 0
  74. , /*decltype(_impl_._cached_size_)*/{}} {}
  75. struct ToAgvCmdDefaultTypeInternal {
  76. PROTOBUF_CONSTEXPR ToAgvCmdDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  77. ~ToAgvCmdDefaultTypeInternal() {}
  78. union {
  79. ToAgvCmd _instance;
  80. };
  81. };
  82. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  83. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ToAgvCmdDefaultTypeInternal _ToAgvCmd_default_instance_;
  84. template <typename>
  85. PROTOBUF_CONSTEXPR Pose2d::Pose2d(
  86. ::_pbi::ConstantInitialized): _impl_{
  87. /*decltype(_impl_.x_)*/ 0
  88. , /*decltype(_impl_.y_)*/ 0
  89. , /*decltype(_impl_.theta_)*/ 0
  90. , /*decltype(_impl_._cached_size_)*/{}} {}
  91. struct Pose2dDefaultTypeInternal {
  92. PROTOBUF_CONSTEXPR Pose2dDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  93. ~Pose2dDefaultTypeInternal() {}
  94. union {
  95. Pose2d _instance;
  96. };
  97. };
  98. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  99. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Pose2dDefaultTypeInternal _Pose2d_default_instance_;
  100. template <typename>
  101. PROTOBUF_CONSTEXPR PathNode::PathNode(
  102. ::_pbi::ConstantInitialized): _impl_{
  103. /*decltype(_impl_.id_)*/ {
  104. &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  105. }
  106. , /*decltype(_impl_.x_)*/ 0
  107. , /*decltype(_impl_.y_)*/ 0
  108. , /*decltype(_impl_.l_)*/ 0
  109. , /*decltype(_impl_.w_)*/ 0
  110. , /*decltype(_impl_.theta_)*/ 0
  111. , /*decltype(_impl_._cached_size_)*/{}} {}
  112. struct PathNodeDefaultTypeInternal {
  113. PROTOBUF_CONSTEXPR PathNodeDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  114. ~PathNodeDefaultTypeInternal() {}
  115. union {
  116. PathNode _instance;
  117. };
  118. };
  119. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  120. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PathNodeDefaultTypeInternal _PathNode_default_instance_;
  121. template <typename>
  122. PROTOBUF_CONSTEXPR Trajectory::Trajectory(
  123. ::_pbi::ConstantInitialized): _impl_{
  124. /*decltype(_impl_.poses_)*/{}
  125. , /*decltype(_impl_._cached_size_)*/{}} {}
  126. struct TrajectoryDefaultTypeInternal {
  127. PROTOBUF_CONSTEXPR TrajectoryDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  128. ~TrajectoryDefaultTypeInternal() {}
  129. union {
  130. Trajectory _instance;
  131. };
  132. };
  133. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  134. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TrajectoryDefaultTypeInternal _Trajectory_default_instance_;
  135. template <typename>
  136. PROTOBUF_CONSTEXPR NewAction::NewAction(
  137. ::_pbi::ConstantInitialized): _impl_{
  138. /*decltype(_impl_._has_bits_)*/{}
  139. , /*decltype(_impl_._cached_size_)*/{}
  140. , /*decltype(_impl_.pathnodes_)*/{}
  141. , /*decltype(_impl_.spacenode_)*/nullptr
  142. , /*decltype(_impl_.passnode_)*/nullptr
  143. , /*decltype(_impl_.streetnode_)*/nullptr
  144. , /*decltype(_impl_.type_)*/ 0
  145. , /*decltype(_impl_.wheelbase_)*/ 0
  146. , /*decltype(_impl_.changedmode_)*/ 0
  147. } {}
  148. struct NewActionDefaultTypeInternal {
  149. PROTOBUF_CONSTEXPR NewActionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  150. ~NewActionDefaultTypeInternal() {}
  151. union {
  152. NewAction _instance;
  153. };
  154. };
  155. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  156. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NewActionDefaultTypeInternal _NewAction_default_instance_;
  157. template <typename>
  158. PROTOBUF_CONSTEXPR NavCmd::NavCmd(
  159. ::_pbi::ConstantInitialized): _impl_{
  160. /*decltype(_impl_.newactions_)*/{}
  161. , /*decltype(_impl_.key_)*/ {
  162. &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  163. }
  164. , /*decltype(_impl_.action_)*/ 0
  165. , /*decltype(_impl_._cached_size_)*/{}} {}
  166. struct NavCmdDefaultTypeInternal {
  167. PROTOBUF_CONSTEXPR NavCmdDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  168. ~NavCmdDefaultTypeInternal() {}
  169. union {
  170. NavCmd _instance;
  171. };
  172. };
  173. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  174. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NavCmdDefaultTypeInternal _NavCmd_default_instance_;
  175. template <typename>
  176. PROTOBUF_CONSTEXPR NavResponse::NavResponse(
  177. ::_pbi::ConstantInitialized): _impl_{
  178. /*decltype(_impl_.info_)*/ {
  179. &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  180. }
  181. , /*decltype(_impl_.ret_)*/ 0
  182. , /*decltype(_impl_._cached_size_)*/{}} {}
  183. struct NavResponseDefaultTypeInternal {
  184. PROTOBUF_CONSTEXPR NavResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  185. ~NavResponseDefaultTypeInternal() {}
  186. union {
  187. NavResponse _instance;
  188. };
  189. };
  190. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  191. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NavResponseDefaultTypeInternal _NavResponse_default_instance_;
  192. template <typename>
  193. PROTOBUF_CONSTEXPR ManualCmd::ManualCmd(
  194. ::_pbi::ConstantInitialized): _impl_{
  195. /*decltype(_impl_.key_)*/ {
  196. &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  197. }
  198. , /*decltype(_impl_.operation_type_)*/ 0
  199. , /*decltype(_impl_.velocity_)*/ 0
  200. , /*decltype(_impl_._cached_size_)*/{}} {}
  201. struct ManualCmdDefaultTypeInternal {
  202. PROTOBUF_CONSTEXPR ManualCmdDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  203. ~ManualCmdDefaultTypeInternal() {}
  204. union {
  205. ManualCmd _instance;
  206. };
  207. };
  208. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  209. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ManualCmdDefaultTypeInternal _ManualCmd_default_instance_;
  210. template <typename>
  211. PROTOBUF_CONSTEXPR NavStatu::NavStatu(
  212. ::_pbi::ConstantInitialized): _impl_{
  213. /*decltype(_impl_._has_bits_)*/{}
  214. , /*decltype(_impl_._cached_size_)*/{}
  215. , /*decltype(_impl_.key_)*/ {
  216. &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  217. }
  218. , /*decltype(_impl_.space_id_)*/ {
  219. &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  220. }
  221. , /*decltype(_impl_.odom_)*/nullptr
  222. , /*decltype(_impl_.selected_traj_)*/nullptr
  223. , /*decltype(_impl_.predict_traj_)*/nullptr
  224. , /*decltype(_impl_.statu_)*/ 0
  225. , /*decltype(_impl_.move_mode_)*/ 0
  226. , /*decltype(_impl_.main_agv_)*/ false
  227. , /*decltype(_impl_.in_space_)*/ false
  228. } {}
  229. struct NavStatuDefaultTypeInternal {
  230. PROTOBUF_CONSTEXPR NavStatuDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  231. ~NavStatuDefaultTypeInternal() {}
  232. union {
  233. NavStatu _instance;
  234. };
  235. };
  236. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  237. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NavStatuDefaultTypeInternal _NavStatu_default_instance_;
  238. template <typename>
  239. PROTOBUF_CONSTEXPR RobotStatu::RobotStatu(
  240. ::_pbi::ConstantInitialized): _impl_{
  241. /*decltype(_impl_._has_bits_)*/{}
  242. , /*decltype(_impl_._cached_size_)*/{}
  243. , /*decltype(_impl_.agvstatu_)*/nullptr
  244. , /*decltype(_impl_.x_)*/ 0
  245. , /*decltype(_impl_.y_)*/ 0
  246. , /*decltype(_impl_.theta_)*/ 0
  247. } {}
  248. struct RobotStatuDefaultTypeInternal {
  249. PROTOBUF_CONSTEXPR RobotStatuDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  250. ~RobotStatuDefaultTypeInternal() {}
  251. union {
  252. RobotStatu _instance;
  253. };
  254. };
  255. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  256. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RobotStatuDefaultTypeInternal _RobotStatu_default_instance_;
  257. } // namespace NavMessage
  258. static ::_pb::Metadata file_level_metadata_message_2eproto[12];
  259. static constexpr const ::_pb::EnumDescriptor**
  260. file_level_enum_descriptors_message_2eproto = nullptr;
  261. static constexpr const ::_pb::ServiceDescriptor**
  262. file_level_service_descriptors_message_2eproto = nullptr;
  263. const ::uint32_t TableStruct_message_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(
  264. protodesc_cold) = {
  265. ~0u, // no _has_bits_
  266. PROTOBUF_FIELD_OFFSET(::NavMessage::LidarOdomStatu, _internal_metadata_),
  267. ~0u, // no _extensions_
  268. ~0u, // no _oneof_case_
  269. ~0u, // no _weak_field_map_
  270. ~0u, // no _inlined_string_donated_
  271. ~0u, // no _split_
  272. ~0u, // no sizeof(Split)
  273. PROTOBUF_FIELD_OFFSET(::NavMessage::LidarOdomStatu, _impl_.x_),
  274. PROTOBUF_FIELD_OFFSET(::NavMessage::LidarOdomStatu, _impl_.y_),
  275. PROTOBUF_FIELD_OFFSET(::NavMessage::LidarOdomStatu, _impl_.theta_),
  276. PROTOBUF_FIELD_OFFSET(::NavMessage::LidarOdomStatu, _impl_.v_),
  277. PROTOBUF_FIELD_OFFSET(::NavMessage::LidarOdomStatu, _impl_.vth_),
  278. ~0u, // no _has_bits_
  279. PROTOBUF_FIELD_OFFSET(::NavMessage::AgvStatu, _internal_metadata_),
  280. ~0u, // no _extensions_
  281. ~0u, // no _oneof_case_
  282. ~0u, // no _weak_field_map_
  283. ~0u, // no _inlined_string_donated_
  284. ~0u, // no _split_
  285. ~0u, // no sizeof(Split)
  286. PROTOBUF_FIELD_OFFSET(::NavMessage::AgvStatu, _impl_.v_),
  287. PROTOBUF_FIELD_OFFSET(::NavMessage::AgvStatu, _impl_.w_),
  288. PROTOBUF_FIELD_OFFSET(::NavMessage::AgvStatu, _impl_.clamp_),
  289. PROTOBUF_FIELD_OFFSET(::NavMessage::AgvStatu, _impl_.clamp_other_),
  290. PROTOBUF_FIELD_OFFSET(::NavMessage::AgvStatu, _impl_.lifter_),
  291. PROTOBUF_FIELD_OFFSET(::NavMessage::AgvStatu, _impl_.lifter_other_),
  292. ~0u, // no _has_bits_
  293. PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _internal_metadata_),
  294. ~0u, // no _extensions_
  295. ~0u, // no _oneof_case_
  296. ~0u, // no _weak_field_map_
  297. ~0u, // no _inlined_string_donated_
  298. ~0u, // no _split_
  299. ~0u, // no sizeof(Split)
  300. PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _impl_.h1_),
  301. PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _impl_.m1_),
  302. PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _impl_.t1_),
  303. PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _impl_.v1_),
  304. PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _impl_.w1_),
  305. PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _impl_.v2_),
  306. PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _impl_.w2_),
  307. PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _impl_.v3_),
  308. PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _impl_.w3_),
  309. PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _impl_.l1_),
  310. PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _impl_.p1_),
  311. PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _impl_.d1_),
  312. PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _impl_.y1_),
  313. PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _impl_.y2_),
  314. PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _impl_.end_),
  315. ~0u, // no _has_bits_
  316. PROTOBUF_FIELD_OFFSET(::NavMessage::Pose2d, _internal_metadata_),
  317. ~0u, // no _extensions_
  318. ~0u, // no _oneof_case_
  319. ~0u, // no _weak_field_map_
  320. ~0u, // no _inlined_string_donated_
  321. ~0u, // no _split_
  322. ~0u, // no sizeof(Split)
  323. PROTOBUF_FIELD_OFFSET(::NavMessage::Pose2d, _impl_.x_),
  324. PROTOBUF_FIELD_OFFSET(::NavMessage::Pose2d, _impl_.y_),
  325. PROTOBUF_FIELD_OFFSET(::NavMessage::Pose2d, _impl_.theta_),
  326. ~0u, // no _has_bits_
  327. PROTOBUF_FIELD_OFFSET(::NavMessage::PathNode, _internal_metadata_),
  328. ~0u, // no _extensions_
  329. ~0u, // no _oneof_case_
  330. ~0u, // no _weak_field_map_
  331. ~0u, // no _inlined_string_donated_
  332. ~0u, // no _split_
  333. ~0u, // no sizeof(Split)
  334. PROTOBUF_FIELD_OFFSET(::NavMessage::PathNode, _impl_.x_),
  335. PROTOBUF_FIELD_OFFSET(::NavMessage::PathNode, _impl_.y_),
  336. PROTOBUF_FIELD_OFFSET(::NavMessage::PathNode, _impl_.l_),
  337. PROTOBUF_FIELD_OFFSET(::NavMessage::PathNode, _impl_.w_),
  338. PROTOBUF_FIELD_OFFSET(::NavMessage::PathNode, _impl_.theta_),
  339. PROTOBUF_FIELD_OFFSET(::NavMessage::PathNode, _impl_.id_),
  340. ~0u, // no _has_bits_
  341. PROTOBUF_FIELD_OFFSET(::NavMessage::Trajectory, _internal_metadata_),
  342. ~0u, // no _extensions_
  343. ~0u, // no _oneof_case_
  344. ~0u, // no _weak_field_map_
  345. ~0u, // no _inlined_string_donated_
  346. ~0u, // no _split_
  347. ~0u, // no sizeof(Split)
  348. PROTOBUF_FIELD_OFFSET(::NavMessage::Trajectory, _impl_.poses_),
  349. PROTOBUF_FIELD_OFFSET(::NavMessage::NewAction, _impl_._has_bits_),
  350. PROTOBUF_FIELD_OFFSET(::NavMessage::NewAction, _internal_metadata_),
  351. ~0u, // no _extensions_
  352. ~0u, // no _oneof_case_
  353. ~0u, // no _weak_field_map_
  354. ~0u, // no _inlined_string_donated_
  355. ~0u, // no _split_
  356. ~0u, // no sizeof(Split)
  357. PROTOBUF_FIELD_OFFSET(::NavMessage::NewAction, _impl_.type_),
  358. PROTOBUF_FIELD_OFFSET(::NavMessage::NewAction, _impl_.spacenode_),
  359. PROTOBUF_FIELD_OFFSET(::NavMessage::NewAction, _impl_.passnode_),
  360. PROTOBUF_FIELD_OFFSET(::NavMessage::NewAction, _impl_.streetnode_),
  361. PROTOBUF_FIELD_OFFSET(::NavMessage::NewAction, _impl_.pathnodes_),
  362. PROTOBUF_FIELD_OFFSET(::NavMessage::NewAction, _impl_.wheelbase_),
  363. PROTOBUF_FIELD_OFFSET(::NavMessage::NewAction, _impl_.changedmode_),
  364. ~0u,
  365. 0,
  366. 1,
  367. 2,
  368. ~0u,
  369. ~0u,
  370. ~0u,
  371. ~0u, // no _has_bits_
  372. PROTOBUF_FIELD_OFFSET(::NavMessage::NavCmd, _internal_metadata_),
  373. ~0u, // no _extensions_
  374. ~0u, // no _oneof_case_
  375. ~0u, // no _weak_field_map_
  376. ~0u, // no _inlined_string_donated_
  377. ~0u, // no _split_
  378. ~0u, // no sizeof(Split)
  379. PROTOBUF_FIELD_OFFSET(::NavMessage::NavCmd, _impl_.action_),
  380. PROTOBUF_FIELD_OFFSET(::NavMessage::NavCmd, _impl_.key_),
  381. PROTOBUF_FIELD_OFFSET(::NavMessage::NavCmd, _impl_.newactions_),
  382. ~0u, // no _has_bits_
  383. PROTOBUF_FIELD_OFFSET(::NavMessage::NavResponse, _internal_metadata_),
  384. ~0u, // no _extensions_
  385. ~0u, // no _oneof_case_
  386. ~0u, // no _weak_field_map_
  387. ~0u, // no _inlined_string_donated_
  388. ~0u, // no _split_
  389. ~0u, // no sizeof(Split)
  390. PROTOBUF_FIELD_OFFSET(::NavMessage::NavResponse, _impl_.ret_),
  391. PROTOBUF_FIELD_OFFSET(::NavMessage::NavResponse, _impl_.info_),
  392. ~0u, // no _has_bits_
  393. PROTOBUF_FIELD_OFFSET(::NavMessage::ManualCmd, _internal_metadata_),
  394. ~0u, // no _extensions_
  395. ~0u, // no _oneof_case_
  396. ~0u, // no _weak_field_map_
  397. ~0u, // no _inlined_string_donated_
  398. ~0u, // no _split_
  399. ~0u, // no sizeof(Split)
  400. PROTOBUF_FIELD_OFFSET(::NavMessage::ManualCmd, _impl_.key_),
  401. PROTOBUF_FIELD_OFFSET(::NavMessage::ManualCmd, _impl_.operation_type_),
  402. PROTOBUF_FIELD_OFFSET(::NavMessage::ManualCmd, _impl_.velocity_),
  403. PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, _impl_._has_bits_),
  404. PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, _internal_metadata_),
  405. ~0u, // no _extensions_
  406. ~0u, // no _oneof_case_
  407. ~0u, // no _weak_field_map_
  408. ~0u, // no _inlined_string_donated_
  409. ~0u, // no _split_
  410. ~0u, // no sizeof(Split)
  411. PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, _impl_.statu_),
  412. PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, _impl_.main_agv_),
  413. PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, _impl_.move_mode_),
  414. PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, _impl_.odom_),
  415. PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, _impl_.key_),
  416. PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, _impl_.selected_traj_),
  417. PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, _impl_.predict_traj_),
  418. PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, _impl_.in_space_),
  419. PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, _impl_.space_id_),
  420. ~0u,
  421. ~0u,
  422. ~0u,
  423. 0,
  424. ~0u,
  425. 1,
  426. 2,
  427. ~0u,
  428. ~0u,
  429. PROTOBUF_FIELD_OFFSET(::NavMessage::RobotStatu, _impl_._has_bits_),
  430. PROTOBUF_FIELD_OFFSET(::NavMessage::RobotStatu, _internal_metadata_),
  431. ~0u, // no _extensions_
  432. ~0u, // no _oneof_case_
  433. ~0u, // no _weak_field_map_
  434. ~0u, // no _inlined_string_donated_
  435. ~0u, // no _split_
  436. ~0u, // no sizeof(Split)
  437. PROTOBUF_FIELD_OFFSET(::NavMessage::RobotStatu, _impl_.x_),
  438. PROTOBUF_FIELD_OFFSET(::NavMessage::RobotStatu, _impl_.y_),
  439. PROTOBUF_FIELD_OFFSET(::NavMessage::RobotStatu, _impl_.theta_),
  440. PROTOBUF_FIELD_OFFSET(::NavMessage::RobotStatu, _impl_.agvstatu_),
  441. ~0u,
  442. ~0u,
  443. ~0u,
  444. 0,
  445. };
  446. static const ::_pbi::MigrationSchema
  447. schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  448. { 0, -1, -1, sizeof(::NavMessage::LidarOdomStatu)},
  449. { 13, -1, -1, sizeof(::NavMessage::AgvStatu)},
  450. { 27, -1, -1, sizeof(::NavMessage::ToAgvCmd)},
  451. { 50, -1, -1, sizeof(::NavMessage::Pose2d)},
  452. { 61, -1, -1, sizeof(::NavMessage::PathNode)},
  453. { 75, -1, -1, sizeof(::NavMessage::Trajectory)},
  454. { 84, 99, -1, sizeof(::NavMessage::NewAction)},
  455. { 106, -1, -1, sizeof(::NavMessage::NavCmd)},
  456. { 117, -1, -1, sizeof(::NavMessage::NavResponse)},
  457. { 127, -1, -1, sizeof(::NavMessage::ManualCmd)},
  458. { 138, 155, -1, sizeof(::NavMessage::NavStatu)},
  459. { 164, 176, -1, sizeof(::NavMessage::RobotStatu)},
  460. };
  461. static const ::_pb::Message* const file_default_instances[] = {
  462. &::NavMessage::_LidarOdomStatu_default_instance_._instance,
  463. &::NavMessage::_AgvStatu_default_instance_._instance,
  464. &::NavMessage::_ToAgvCmd_default_instance_._instance,
  465. &::NavMessage::_Pose2d_default_instance_._instance,
  466. &::NavMessage::_PathNode_default_instance_._instance,
  467. &::NavMessage::_Trajectory_default_instance_._instance,
  468. &::NavMessage::_NewAction_default_instance_._instance,
  469. &::NavMessage::_NavCmd_default_instance_._instance,
  470. &::NavMessage::_NavResponse_default_instance_._instance,
  471. &::NavMessage::_ManualCmd_default_instance_._instance,
  472. &::NavMessage::_NavStatu_default_instance_._instance,
  473. &::NavMessage::_RobotStatu_default_instance_._instance,
  474. };
  475. const char descriptor_table_protodef_message_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  476. "\n\rmessage.proto\022\nNavMessage\"M\n\016LidarOdom"
  477. "Statu\022\t\n\001x\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\022\r\n\005theta\030\003 \001"
  478. "(\002\022\t\n\001v\030\004 \001(\002\022\013\n\003vth\030\005 \001(\002\"j\n\010AgvStatu\022\t"
  479. "\n\001v\030\001 \001(\002\022\t\n\001w\030\002 \001(\002\022\r\n\005clamp\030\003 \001(\005\022\023\n\013c"
  480. "lamp_other\030\004 \001(\005\022\016\n\006lifter\030\005 \001(\005\022\024\n\014lift"
  481. "er_other\030\006 \001(\005\"\277\001\n\010ToAgvCmd\022\n\n\002H1\030\001 \001(\005\022"
  482. "\n\n\002M1\030\002 \001(\005\022\n\n\002T1\030\003 \001(\005\022\n\n\002V1\030\004 \001(\002\022\n\n\002W"
  483. "1\030\005 \001(\002\022\n\n\002V2\030\006 \001(\002\022\n\n\002W2\030\007 \001(\002\022\n\n\002V3\030\010 "
  484. "\001(\002\022\n\n\002W3\030\t \001(\002\022\n\n\002L1\030\n \001(\002\022\n\n\002P1\030\013 \001(\005\022"
  485. "\n\n\002D1\030\014 \001(\002\022\n\n\002Y1\030\r \001(\002\022\n\n\002Y2\030\016 \001(\002\022\013\n\003e"
  486. "nd\030\017 \001(\005\"-\n\006Pose2d\022\t\n\001x\030\001 \001(\002\022\t\n\001y\030\002 \001(\002"
  487. "\022\r\n\005theta\030\003 \001(\002\"Q\n\010PathNode\022\t\n\001x\030\001 \001(\002\022\t"
  488. "\n\001y\030\002 \001(\002\022\t\n\001l\030\003 \001(\002\022\t\n\001w\030\004 \001(\002\022\r\n\005theta"
  489. "\030\005 \001(\002\022\n\n\002id\030\006 \001(\t\"/\n\nTrajectory\022!\n\005pose"
  490. "s\030\001 \003(\0132\022.NavMessage.Pose2d\"\345\001\n\tNewActio"
  491. "n\022\014\n\004type\030\001 \001(\005\022\'\n\tspaceNode\030\002 \001(\0132\024.Nav"
  492. "Message.PathNode\022&\n\010passNode\030\003 \001(\0132\024.Nav"
  493. "Message.PathNode\022(\n\nstreetNode\030\004 \001(\0132\024.N"
  494. "avMessage.PathNode\022\'\n\tpathNodes\030\005 \003(\0132\024."
  495. "NavMessage.PathNode\022\021\n\twheelbase\030\006 \001(\002\022\023"
  496. "\n\013changedMode\030\007 \001(\005\"P\n\006NavCmd\022\016\n\006action\030"
  497. "\001 \001(\005\022\013\n\003key\030\002 \001(\t\022)\n\nnewActions\030\005 \003(\0132\025"
  498. ".NavMessage.NewAction\"(\n\013NavResponse\022\013\n\003"
  499. "ret\030\001 \001(\005\022\014\n\004info\030\002 \001(\t\"B\n\tManualCmd\022\013\n\003"
  500. "key\030\001 \001(\t\022\026\n\016operation_type\030\002 \001(\005\022\020\n\010vel"
  501. "ocity\030\003 \001(\002\"\366\001\n\010NavStatu\022\r\n\005statu\030\001 \001(\005\022"
  502. "\020\n\010main_agv\030\002 \001(\010\022\021\n\tmove_mode\030\003 \001(\005\022(\n\004"
  503. "odom\030\004 \001(\0132\032.NavMessage.LidarOdomStatu\022\013"
  504. "\n\003key\030\005 \001(\t\022-\n\rselected_traj\030\006 \001(\0132\026.Nav"
  505. "Message.Trajectory\022,\n\014predict_traj\030\007 \001(\013"
  506. "2\026.NavMessage.Trajectory\022\020\n\010in_space\030\010 \001"
  507. "(\010\022\020\n\010space_id\030\t \001(\t\"Y\n\nRobotStatu\022\t\n\001x\030"
  508. "\001 \001(\002\022\t\n\001y\030\002 \001(\002\022\r\n\005theta\030\003 \001(\002\022&\n\010agvSt"
  509. "atu\030\004 \001(\0132\024.NavMessage.AgvStatu2\302\001\n\nNavE"
  510. "xcutor\0226\n\005Start\022\022.NavMessage.NavCmd\032\027.Na"
  511. "vMessage.NavResponse\"\000\0227\n\006Cancel\022\022.NavMe"
  512. "ssage.NavCmd\032\027.NavMessage.NavResponse\"\000\022"
  513. "C\n\017ManualOperation\022\025.NavMessage.ManualCm"
  514. "d\032\027.NavMessage.NavResponse\"\000b\006proto3"
  515. };
  516. static ::absl::once_flag descriptor_table_message_2eproto_once;
  517. const ::_pbi::DescriptorTable descriptor_table_message_2eproto = {
  518. false,
  519. false,
  520. 1556,
  521. descriptor_table_protodef_message_2eproto,
  522. "message.proto",
  523. &descriptor_table_message_2eproto_once,
  524. nullptr,
  525. 0,
  526. 12,
  527. schemas,
  528. file_default_instances,
  529. TableStruct_message_2eproto::offsets,
  530. file_level_metadata_message_2eproto,
  531. file_level_enum_descriptors_message_2eproto,
  532. file_level_service_descriptors_message_2eproto,
  533. };
  534. // This function exists to be marked as weak.
  535. // It can significantly speed up compilation by breaking up LLVM's SCC
  536. // in the .pb.cc translation units. Large translation units see a
  537. // reduction of more than 35% of walltime for optimized builds. Without
  538. // the weak attribute all the messages in the file, including all the
  539. // vtables and everything they use become part of the same SCC through
  540. // a cycle like:
  541. // GetMetadata -> descriptor table -> default instances ->
  542. // vtables -> GetMetadata
  543. // By adding a weak function here we break the connection from the
  544. // individual vtables back into the descriptor table.
  545. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_message_2eproto_getter() {
  546. return &descriptor_table_message_2eproto;
  547. }
  548. // Force running AddDescriptors() at dynamic initialization time.
  549. PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
  550. static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_message_2eproto(&descriptor_table_message_2eproto);
  551. namespace NavMessage {
  552. // ===================================================================
  553. class LidarOdomStatu::_Internal {
  554. public:
  555. };
  556. LidarOdomStatu::LidarOdomStatu(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  557. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  558. SharedCtor(arena);
  559. // @@protoc_insertion_point(arena_constructor:NavMessage.LidarOdomStatu)
  560. }
  561. LidarOdomStatu::LidarOdomStatu(const LidarOdomStatu& from)
  562. : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) {
  563. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(
  564. from._internal_metadata_);
  565. // @@protoc_insertion_point(copy_constructor:NavMessage.LidarOdomStatu)
  566. }
  567. inline void LidarOdomStatu::SharedCtor(::_pb::Arena* arena) {
  568. (void)arena;
  569. new (&_impl_) Impl_{
  570. decltype(_impl_.x_) { 0 }
  571. , decltype(_impl_.y_) { 0 }
  572. , decltype(_impl_.theta_) { 0 }
  573. , decltype(_impl_.v_) { 0 }
  574. , decltype(_impl_.vth_) { 0 }
  575. , /*decltype(_impl_._cached_size_)*/{}
  576. };
  577. }
  578. LidarOdomStatu::~LidarOdomStatu() {
  579. // @@protoc_insertion_point(destructor:NavMessage.LidarOdomStatu)
  580. if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  581. (void)arena;
  582. return;
  583. }
  584. SharedDtor();
  585. }
  586. inline void LidarOdomStatu::SharedDtor() {
  587. ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  588. }
  589. void LidarOdomStatu::SetCachedSize(int size) const {
  590. _impl_._cached_size_.Set(size);
  591. }
  592. void LidarOdomStatu::Clear() {
  593. // @@protoc_insertion_point(message_clear_start:NavMessage.LidarOdomStatu)
  594. ::uint32_t cached_has_bits = 0;
  595. // Prevent compiler warnings about cached_has_bits being unused
  596. (void) cached_has_bits;
  597. ::memset(&_impl_.x_, 0, static_cast<::size_t>(
  598. reinterpret_cast<char*>(&_impl_.vth_) -
  599. reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.vth_));
  600. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  601. }
  602. const char* LidarOdomStatu::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
  603. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  604. while (!ctx->Done(&ptr)) {
  605. ::uint32_t tag;
  606. ptr = ::_pbi::ReadTag(ptr, &tag);
  607. switch (tag >> 3) {
  608. // float x = 1;
  609. case 1:
  610. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 13)) {
  611. _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  612. ptr += sizeof(float);
  613. } else {
  614. goto handle_unusual;
  615. }
  616. continue;
  617. // float y = 2;
  618. case 2:
  619. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 21)) {
  620. _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  621. ptr += sizeof(float);
  622. } else {
  623. goto handle_unusual;
  624. }
  625. continue;
  626. // float theta = 3;
  627. case 3:
  628. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 29)) {
  629. _impl_.theta_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  630. ptr += sizeof(float);
  631. } else {
  632. goto handle_unusual;
  633. }
  634. continue;
  635. // float v = 4;
  636. case 4:
  637. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 37)) {
  638. _impl_.v_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  639. ptr += sizeof(float);
  640. } else {
  641. goto handle_unusual;
  642. }
  643. continue;
  644. // float vth = 5;
  645. case 5:
  646. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 45)) {
  647. _impl_.vth_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  648. ptr += sizeof(float);
  649. } else {
  650. goto handle_unusual;
  651. }
  652. continue;
  653. default:
  654. goto handle_unusual;
  655. } // switch
  656. handle_unusual:
  657. if ((tag == 0) || ((tag & 7) == 4)) {
  658. CHK_(ptr);
  659. ctx->SetLastTag(tag);
  660. goto message_done;
  661. }
  662. ptr = UnknownFieldParse(
  663. tag,
  664. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  665. ptr, ctx);
  666. CHK_(ptr != nullptr);
  667. } // while
  668. message_done:
  669. return ptr;
  670. failure:
  671. ptr = nullptr;
  672. goto message_done;
  673. #undef CHK_
  674. }
  675. ::uint8_t* LidarOdomStatu::_InternalSerialize(
  676. ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  677. // @@protoc_insertion_point(serialize_to_array_start:NavMessage.LidarOdomStatu)
  678. ::uint32_t cached_has_bits = 0;
  679. (void) cached_has_bits;
  680. // float x = 1;
  681. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  682. float tmp_x = this->_internal_x();
  683. ::uint32_t raw_x;
  684. memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
  685. if (raw_x != 0) {
  686. target = stream->EnsureSpace(target);
  687. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  688. 1, this->_internal_x(), target);
  689. }
  690. // float y = 2;
  691. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  692. float tmp_y = this->_internal_y();
  693. ::uint32_t raw_y;
  694. memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
  695. if (raw_y != 0) {
  696. target = stream->EnsureSpace(target);
  697. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  698. 2, this->_internal_y(), target);
  699. }
  700. // float theta = 3;
  701. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  702. float tmp_theta = this->_internal_theta();
  703. ::uint32_t raw_theta;
  704. memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta));
  705. if (raw_theta != 0) {
  706. target = stream->EnsureSpace(target);
  707. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  708. 3, this->_internal_theta(), target);
  709. }
  710. // float v = 4;
  711. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  712. float tmp_v = this->_internal_v();
  713. ::uint32_t raw_v;
  714. memcpy(&raw_v, &tmp_v, sizeof(tmp_v));
  715. if (raw_v != 0) {
  716. target = stream->EnsureSpace(target);
  717. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  718. 4, this->_internal_v(), target);
  719. }
  720. // float vth = 5;
  721. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  722. float tmp_vth = this->_internal_vth();
  723. ::uint32_t raw_vth;
  724. memcpy(&raw_vth, &tmp_vth, sizeof(tmp_vth));
  725. if (raw_vth != 0) {
  726. target = stream->EnsureSpace(target);
  727. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  728. 5, this->_internal_vth(), target);
  729. }
  730. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  731. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  732. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  733. }
  734. // @@protoc_insertion_point(serialize_to_array_end:NavMessage.LidarOdomStatu)
  735. return target;
  736. }
  737. ::size_t LidarOdomStatu::ByteSizeLong() const {
  738. // @@protoc_insertion_point(message_byte_size_start:NavMessage.LidarOdomStatu)
  739. ::size_t total_size = 0;
  740. ::uint32_t cached_has_bits = 0;
  741. // Prevent compiler warnings about cached_has_bits being unused
  742. (void) cached_has_bits;
  743. // float x = 1;
  744. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  745. float tmp_x = this->_internal_x();
  746. ::uint32_t raw_x;
  747. memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
  748. if (raw_x != 0) {
  749. total_size += 5;
  750. }
  751. // float y = 2;
  752. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  753. float tmp_y = this->_internal_y();
  754. ::uint32_t raw_y;
  755. memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
  756. if (raw_y != 0) {
  757. total_size += 5;
  758. }
  759. // float theta = 3;
  760. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  761. float tmp_theta = this->_internal_theta();
  762. ::uint32_t raw_theta;
  763. memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta));
  764. if (raw_theta != 0) {
  765. total_size += 5;
  766. }
  767. // float v = 4;
  768. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  769. float tmp_v = this->_internal_v();
  770. ::uint32_t raw_v;
  771. memcpy(&raw_v, &tmp_v, sizeof(tmp_v));
  772. if (raw_v != 0) {
  773. total_size += 5;
  774. }
  775. // float vth = 5;
  776. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  777. float tmp_vth = this->_internal_vth();
  778. ::uint32_t raw_vth;
  779. memcpy(&raw_vth, &tmp_vth, sizeof(tmp_vth));
  780. if (raw_vth != 0) {
  781. total_size += 5;
  782. }
  783. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  784. }
  785. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LidarOdomStatu::_class_data_ = {
  786. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  787. LidarOdomStatu::MergeImpl
  788. };
  789. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LidarOdomStatu::GetClassData() const { return &_class_data_; }
  790. void LidarOdomStatu::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
  791. auto* const _this = static_cast<LidarOdomStatu*>(&to_msg);
  792. auto& from = static_cast<const LidarOdomStatu&>(from_msg);
  793. // @@protoc_insertion_point(class_specific_merge_from_start:NavMessage.LidarOdomStatu)
  794. ABSL_DCHECK_NE(&from, _this);
  795. ::uint32_t cached_has_bits = 0;
  796. (void) cached_has_bits;
  797. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  798. float tmp_x = from._internal_x();
  799. ::uint32_t raw_x;
  800. memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
  801. if (raw_x != 0) {
  802. _this->_internal_set_x(from._internal_x());
  803. }
  804. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  805. float tmp_y = from._internal_y();
  806. ::uint32_t raw_y;
  807. memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
  808. if (raw_y != 0) {
  809. _this->_internal_set_y(from._internal_y());
  810. }
  811. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  812. float tmp_theta = from._internal_theta();
  813. ::uint32_t raw_theta;
  814. memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta));
  815. if (raw_theta != 0) {
  816. _this->_internal_set_theta(from._internal_theta());
  817. }
  818. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  819. float tmp_v = from._internal_v();
  820. ::uint32_t raw_v;
  821. memcpy(&raw_v, &tmp_v, sizeof(tmp_v));
  822. if (raw_v != 0) {
  823. _this->_internal_set_v(from._internal_v());
  824. }
  825. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  826. float tmp_vth = from._internal_vth();
  827. ::uint32_t raw_vth;
  828. memcpy(&raw_vth, &tmp_vth, sizeof(tmp_vth));
  829. if (raw_vth != 0) {
  830. _this->_internal_set_vth(from._internal_vth());
  831. }
  832. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  833. }
  834. void LidarOdomStatu::CopyFrom(const LidarOdomStatu& from) {
  835. // @@protoc_insertion_point(class_specific_copy_from_start:NavMessage.LidarOdomStatu)
  836. if (&from == this) return;
  837. Clear();
  838. MergeFrom(from);
  839. }
  840. bool LidarOdomStatu::IsInitialized() const {
  841. return true;
  842. }
  843. void LidarOdomStatu::InternalSwap(LidarOdomStatu* other) {
  844. using std::swap;
  845. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  846. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  847. PROTOBUF_FIELD_OFFSET(LidarOdomStatu, _impl_.vth_)
  848. + sizeof(LidarOdomStatu::_impl_.vth_)
  849. - PROTOBUF_FIELD_OFFSET(LidarOdomStatu, _impl_.x_)>(
  850. reinterpret_cast<char*>(&_impl_.x_),
  851. reinterpret_cast<char*>(&other->_impl_.x_));
  852. }
  853. ::PROTOBUF_NAMESPACE_ID::Metadata LidarOdomStatu::GetMetadata() const {
  854. return ::_pbi::AssignDescriptors(
  855. &descriptor_table_message_2eproto_getter, &descriptor_table_message_2eproto_once,
  856. file_level_metadata_message_2eproto[0]);
  857. }
  858. // ===================================================================
  859. class AgvStatu::_Internal {
  860. public:
  861. };
  862. AgvStatu::AgvStatu(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  863. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  864. SharedCtor(arena);
  865. // @@protoc_insertion_point(arena_constructor:NavMessage.AgvStatu)
  866. }
  867. AgvStatu::AgvStatu(const AgvStatu& from)
  868. : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) {
  869. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(
  870. from._internal_metadata_);
  871. // @@protoc_insertion_point(copy_constructor:NavMessage.AgvStatu)
  872. }
  873. inline void AgvStatu::SharedCtor(::_pb::Arena* arena) {
  874. (void)arena;
  875. new (&_impl_) Impl_{
  876. decltype(_impl_.v_) { 0 }
  877. , decltype(_impl_.w_) { 0 }
  878. , decltype(_impl_.clamp_) { 0 }
  879. , decltype(_impl_.clamp_other_) { 0 }
  880. , decltype(_impl_.lifter_) { 0 }
  881. , decltype(_impl_.lifter_other_) { 0 }
  882. , /*decltype(_impl_._cached_size_)*/{}
  883. };
  884. }
  885. AgvStatu::~AgvStatu() {
  886. // @@protoc_insertion_point(destructor:NavMessage.AgvStatu)
  887. if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  888. (void)arena;
  889. return;
  890. }
  891. SharedDtor();
  892. }
  893. inline void AgvStatu::SharedDtor() {
  894. ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  895. }
  896. void AgvStatu::SetCachedSize(int size) const {
  897. _impl_._cached_size_.Set(size);
  898. }
  899. void AgvStatu::Clear() {
  900. // @@protoc_insertion_point(message_clear_start:NavMessage.AgvStatu)
  901. ::uint32_t cached_has_bits = 0;
  902. // Prevent compiler warnings about cached_has_bits being unused
  903. (void) cached_has_bits;
  904. ::memset(&_impl_.v_, 0, static_cast<::size_t>(
  905. reinterpret_cast<char*>(&_impl_.lifter_other_) -
  906. reinterpret_cast<char*>(&_impl_.v_)) + sizeof(_impl_.lifter_other_));
  907. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  908. }
  909. const char* AgvStatu::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
  910. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  911. while (!ctx->Done(&ptr)) {
  912. ::uint32_t tag;
  913. ptr = ::_pbi::ReadTag(ptr, &tag);
  914. switch (tag >> 3) {
  915. // float v = 1;
  916. case 1:
  917. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 13)) {
  918. _impl_.v_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  919. ptr += sizeof(float);
  920. } else {
  921. goto handle_unusual;
  922. }
  923. continue;
  924. // float w = 2;
  925. case 2:
  926. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 21)) {
  927. _impl_.w_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  928. ptr += sizeof(float);
  929. } else {
  930. goto handle_unusual;
  931. }
  932. continue;
  933. // int32 clamp = 3;
  934. case 3:
  935. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
  936. _impl_.clamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  937. CHK_(ptr);
  938. } else {
  939. goto handle_unusual;
  940. }
  941. continue;
  942. // int32 clamp_other = 4;
  943. case 4:
  944. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
  945. _impl_.clamp_other_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  946. CHK_(ptr);
  947. } else {
  948. goto handle_unusual;
  949. }
  950. continue;
  951. // int32 lifter = 5;
  952. case 5:
  953. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) {
  954. _impl_.lifter_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  955. CHK_(ptr);
  956. } else {
  957. goto handle_unusual;
  958. }
  959. continue;
  960. // int32 lifter_other = 6;
  961. case 6:
  962. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 48)) {
  963. _impl_.lifter_other_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  964. CHK_(ptr);
  965. } else {
  966. goto handle_unusual;
  967. }
  968. continue;
  969. default:
  970. goto handle_unusual;
  971. } // switch
  972. handle_unusual:
  973. if ((tag == 0) || ((tag & 7) == 4)) {
  974. CHK_(ptr);
  975. ctx->SetLastTag(tag);
  976. goto message_done;
  977. }
  978. ptr = UnknownFieldParse(
  979. tag,
  980. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  981. ptr, ctx);
  982. CHK_(ptr != nullptr);
  983. } // while
  984. message_done:
  985. return ptr;
  986. failure:
  987. ptr = nullptr;
  988. goto message_done;
  989. #undef CHK_
  990. }
  991. ::uint8_t* AgvStatu::_InternalSerialize(
  992. ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  993. // @@protoc_insertion_point(serialize_to_array_start:NavMessage.AgvStatu)
  994. ::uint32_t cached_has_bits = 0;
  995. (void) cached_has_bits;
  996. // float v = 1;
  997. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  998. float tmp_v = this->_internal_v();
  999. ::uint32_t raw_v;
  1000. memcpy(&raw_v, &tmp_v, sizeof(tmp_v));
  1001. if (raw_v != 0) {
  1002. target = stream->EnsureSpace(target);
  1003. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  1004. 1, this->_internal_v(), target);
  1005. }
  1006. // float w = 2;
  1007. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1008. float tmp_w = this->_internal_w();
  1009. ::uint32_t raw_w;
  1010. memcpy(&raw_w, &tmp_w, sizeof(tmp_w));
  1011. if (raw_w != 0) {
  1012. target = stream->EnsureSpace(target);
  1013. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  1014. 2, this->_internal_w(), target);
  1015. }
  1016. // int32 clamp = 3;
  1017. if (this->_internal_clamp() != 0) {
  1018. target = stream->EnsureSpace(target);
  1019. target = ::_pbi::WireFormatLite::WriteInt32ToArray(
  1020. 3, this->_internal_clamp(), target);
  1021. }
  1022. // int32 clamp_other = 4;
  1023. if (this->_internal_clamp_other() != 0) {
  1024. target = stream->EnsureSpace(target);
  1025. target = ::_pbi::WireFormatLite::WriteInt32ToArray(
  1026. 4, this->_internal_clamp_other(), target);
  1027. }
  1028. // int32 lifter = 5;
  1029. if (this->_internal_lifter() != 0) {
  1030. target = stream->EnsureSpace(target);
  1031. target = ::_pbi::WireFormatLite::WriteInt32ToArray(
  1032. 5, this->_internal_lifter(), target);
  1033. }
  1034. // int32 lifter_other = 6;
  1035. if (this->_internal_lifter_other() != 0) {
  1036. target = stream->EnsureSpace(target);
  1037. target = ::_pbi::WireFormatLite::WriteInt32ToArray(
  1038. 6, this->_internal_lifter_other(), target);
  1039. }
  1040. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1041. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  1042. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  1043. }
  1044. // @@protoc_insertion_point(serialize_to_array_end:NavMessage.AgvStatu)
  1045. return target;
  1046. }
  1047. ::size_t AgvStatu::ByteSizeLong() const {
  1048. // @@protoc_insertion_point(message_byte_size_start:NavMessage.AgvStatu)
  1049. ::size_t total_size = 0;
  1050. ::uint32_t cached_has_bits = 0;
  1051. // Prevent compiler warnings about cached_has_bits being unused
  1052. (void) cached_has_bits;
  1053. // float v = 1;
  1054. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1055. float tmp_v = this->_internal_v();
  1056. ::uint32_t raw_v;
  1057. memcpy(&raw_v, &tmp_v, sizeof(tmp_v));
  1058. if (raw_v != 0) {
  1059. total_size += 5;
  1060. }
  1061. // float w = 2;
  1062. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1063. float tmp_w = this->_internal_w();
  1064. ::uint32_t raw_w;
  1065. memcpy(&raw_w, &tmp_w, sizeof(tmp_w));
  1066. if (raw_w != 0) {
  1067. total_size += 5;
  1068. }
  1069. // int32 clamp = 3;
  1070. if (this->_internal_clamp() != 0) {
  1071. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
  1072. this->_internal_clamp());
  1073. }
  1074. // int32 clamp_other = 4;
  1075. if (this->_internal_clamp_other() != 0) {
  1076. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
  1077. this->_internal_clamp_other());
  1078. }
  1079. // int32 lifter = 5;
  1080. if (this->_internal_lifter() != 0) {
  1081. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
  1082. this->_internal_lifter());
  1083. }
  1084. // int32 lifter_other = 6;
  1085. if (this->_internal_lifter_other() != 0) {
  1086. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
  1087. this->_internal_lifter_other());
  1088. }
  1089. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  1090. }
  1091. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AgvStatu::_class_data_ = {
  1092. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  1093. AgvStatu::MergeImpl
  1094. };
  1095. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AgvStatu::GetClassData() const { return &_class_data_; }
  1096. void AgvStatu::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
  1097. auto* const _this = static_cast<AgvStatu*>(&to_msg);
  1098. auto& from = static_cast<const AgvStatu&>(from_msg);
  1099. // @@protoc_insertion_point(class_specific_merge_from_start:NavMessage.AgvStatu)
  1100. ABSL_DCHECK_NE(&from, _this);
  1101. ::uint32_t cached_has_bits = 0;
  1102. (void) cached_has_bits;
  1103. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1104. float tmp_v = from._internal_v();
  1105. ::uint32_t raw_v;
  1106. memcpy(&raw_v, &tmp_v, sizeof(tmp_v));
  1107. if (raw_v != 0) {
  1108. _this->_internal_set_v(from._internal_v());
  1109. }
  1110. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1111. float tmp_w = from._internal_w();
  1112. ::uint32_t raw_w;
  1113. memcpy(&raw_w, &tmp_w, sizeof(tmp_w));
  1114. if (raw_w != 0) {
  1115. _this->_internal_set_w(from._internal_w());
  1116. }
  1117. if (from._internal_clamp() != 0) {
  1118. _this->_internal_set_clamp(from._internal_clamp());
  1119. }
  1120. if (from._internal_clamp_other() != 0) {
  1121. _this->_internal_set_clamp_other(from._internal_clamp_other());
  1122. }
  1123. if (from._internal_lifter() != 0) {
  1124. _this->_internal_set_lifter(from._internal_lifter());
  1125. }
  1126. if (from._internal_lifter_other() != 0) {
  1127. _this->_internal_set_lifter_other(from._internal_lifter_other());
  1128. }
  1129. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1130. }
  1131. void AgvStatu::CopyFrom(const AgvStatu& from) {
  1132. // @@protoc_insertion_point(class_specific_copy_from_start:NavMessage.AgvStatu)
  1133. if (&from == this) return;
  1134. Clear();
  1135. MergeFrom(from);
  1136. }
  1137. bool AgvStatu::IsInitialized() const {
  1138. return true;
  1139. }
  1140. void AgvStatu::InternalSwap(AgvStatu* other) {
  1141. using std::swap;
  1142. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1143. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  1144. PROTOBUF_FIELD_OFFSET(AgvStatu, _impl_.lifter_other_)
  1145. + sizeof(AgvStatu::_impl_.lifter_other_)
  1146. - PROTOBUF_FIELD_OFFSET(AgvStatu, _impl_.v_)>(
  1147. reinterpret_cast<char*>(&_impl_.v_),
  1148. reinterpret_cast<char*>(&other->_impl_.v_));
  1149. }
  1150. ::PROTOBUF_NAMESPACE_ID::Metadata AgvStatu::GetMetadata() const {
  1151. return ::_pbi::AssignDescriptors(
  1152. &descriptor_table_message_2eproto_getter, &descriptor_table_message_2eproto_once,
  1153. file_level_metadata_message_2eproto[1]);
  1154. }
  1155. // ===================================================================
  1156. class ToAgvCmd::_Internal {
  1157. public:
  1158. };
  1159. ToAgvCmd::ToAgvCmd(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  1160. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  1161. SharedCtor(arena);
  1162. // @@protoc_insertion_point(arena_constructor:NavMessage.ToAgvCmd)
  1163. }
  1164. ToAgvCmd::ToAgvCmd(const ToAgvCmd& from)
  1165. : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) {
  1166. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(
  1167. from._internal_metadata_);
  1168. // @@protoc_insertion_point(copy_constructor:NavMessage.ToAgvCmd)
  1169. }
  1170. inline void ToAgvCmd::SharedCtor(::_pb::Arena* arena) {
  1171. (void)arena;
  1172. new (&_impl_) Impl_{
  1173. decltype(_impl_.h1_) { 0 }
  1174. , decltype(_impl_.m1_) { 0 }
  1175. , decltype(_impl_.t1_) { 0 }
  1176. , decltype(_impl_.v1_) { 0 }
  1177. , decltype(_impl_.w1_) { 0 }
  1178. , decltype(_impl_.v2_) { 0 }
  1179. , decltype(_impl_.w2_) { 0 }
  1180. , decltype(_impl_.v3_) { 0 }
  1181. , decltype(_impl_.w3_) { 0 }
  1182. , decltype(_impl_.l1_) { 0 }
  1183. , decltype(_impl_.p1_) { 0 }
  1184. , decltype(_impl_.d1_) { 0 }
  1185. , decltype(_impl_.y1_) { 0 }
  1186. , decltype(_impl_.y2_) { 0 }
  1187. , decltype(_impl_.end_) { 0 }
  1188. , /*decltype(_impl_._cached_size_)*/{}
  1189. };
  1190. }
  1191. ToAgvCmd::~ToAgvCmd() {
  1192. // @@protoc_insertion_point(destructor:NavMessage.ToAgvCmd)
  1193. if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  1194. (void)arena;
  1195. return;
  1196. }
  1197. SharedDtor();
  1198. }
  1199. inline void ToAgvCmd::SharedDtor() {
  1200. ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  1201. }
  1202. void ToAgvCmd::SetCachedSize(int size) const {
  1203. _impl_._cached_size_.Set(size);
  1204. }
  1205. void ToAgvCmd::Clear() {
  1206. // @@protoc_insertion_point(message_clear_start:NavMessage.ToAgvCmd)
  1207. ::uint32_t cached_has_bits = 0;
  1208. // Prevent compiler warnings about cached_has_bits being unused
  1209. (void) cached_has_bits;
  1210. ::memset(&_impl_.h1_, 0, static_cast<::size_t>(
  1211. reinterpret_cast<char*>(&_impl_.end_) -
  1212. reinterpret_cast<char*>(&_impl_.h1_)) + sizeof(_impl_.end_));
  1213. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1214. }
  1215. const char* ToAgvCmd::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
  1216. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1217. while (!ctx->Done(&ptr)) {
  1218. ::uint32_t tag;
  1219. ptr = ::_pbi::ReadTag(ptr, &tag);
  1220. switch (tag >> 3) {
  1221. // int32 H1 = 1;
  1222. case 1:
  1223. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
  1224. _impl_.h1_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1225. CHK_(ptr);
  1226. } else {
  1227. goto handle_unusual;
  1228. }
  1229. continue;
  1230. // int32 M1 = 2;
  1231. case 2:
  1232. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
  1233. _impl_.m1_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1234. CHK_(ptr);
  1235. } else {
  1236. goto handle_unusual;
  1237. }
  1238. continue;
  1239. // int32 T1 = 3;
  1240. case 3:
  1241. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
  1242. _impl_.t1_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1243. CHK_(ptr);
  1244. } else {
  1245. goto handle_unusual;
  1246. }
  1247. continue;
  1248. // float V1 = 4;
  1249. case 4:
  1250. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 37)) {
  1251. _impl_.v1_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1252. ptr += sizeof(float);
  1253. } else {
  1254. goto handle_unusual;
  1255. }
  1256. continue;
  1257. // float W1 = 5;
  1258. case 5:
  1259. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 45)) {
  1260. _impl_.w1_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1261. ptr += sizeof(float);
  1262. } else {
  1263. goto handle_unusual;
  1264. }
  1265. continue;
  1266. // float V2 = 6;
  1267. case 6:
  1268. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 53)) {
  1269. _impl_.v2_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1270. ptr += sizeof(float);
  1271. } else {
  1272. goto handle_unusual;
  1273. }
  1274. continue;
  1275. // float W2 = 7;
  1276. case 7:
  1277. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 61)) {
  1278. _impl_.w2_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1279. ptr += sizeof(float);
  1280. } else {
  1281. goto handle_unusual;
  1282. }
  1283. continue;
  1284. // float V3 = 8;
  1285. case 8:
  1286. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 69)) {
  1287. _impl_.v3_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1288. ptr += sizeof(float);
  1289. } else {
  1290. goto handle_unusual;
  1291. }
  1292. continue;
  1293. // float W3 = 9;
  1294. case 9:
  1295. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 77)) {
  1296. _impl_.w3_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1297. ptr += sizeof(float);
  1298. } else {
  1299. goto handle_unusual;
  1300. }
  1301. continue;
  1302. // float L1 = 10;
  1303. case 10:
  1304. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 85)) {
  1305. _impl_.l1_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1306. ptr += sizeof(float);
  1307. } else {
  1308. goto handle_unusual;
  1309. }
  1310. continue;
  1311. // int32 P1 = 11;
  1312. case 11:
  1313. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 88)) {
  1314. _impl_.p1_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1315. CHK_(ptr);
  1316. } else {
  1317. goto handle_unusual;
  1318. }
  1319. continue;
  1320. // float D1 = 12;
  1321. case 12:
  1322. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 101)) {
  1323. _impl_.d1_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1324. ptr += sizeof(float);
  1325. } else {
  1326. goto handle_unusual;
  1327. }
  1328. continue;
  1329. // float Y1 = 13;
  1330. case 13:
  1331. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 109)) {
  1332. _impl_.y1_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1333. ptr += sizeof(float);
  1334. } else {
  1335. goto handle_unusual;
  1336. }
  1337. continue;
  1338. // float Y2 = 14;
  1339. case 14:
  1340. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 117)) {
  1341. _impl_.y2_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1342. ptr += sizeof(float);
  1343. } else {
  1344. goto handle_unusual;
  1345. }
  1346. continue;
  1347. // int32 end = 15;
  1348. case 15:
  1349. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 120)) {
  1350. _impl_.end_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1351. CHK_(ptr);
  1352. } else {
  1353. goto handle_unusual;
  1354. }
  1355. continue;
  1356. default:
  1357. goto handle_unusual;
  1358. } // switch
  1359. handle_unusual:
  1360. if ((tag == 0) || ((tag & 7) == 4)) {
  1361. CHK_(ptr);
  1362. ctx->SetLastTag(tag);
  1363. goto message_done;
  1364. }
  1365. ptr = UnknownFieldParse(
  1366. tag,
  1367. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1368. ptr, ctx);
  1369. CHK_(ptr != nullptr);
  1370. } // while
  1371. message_done:
  1372. return ptr;
  1373. failure:
  1374. ptr = nullptr;
  1375. goto message_done;
  1376. #undef CHK_
  1377. }
  1378. ::uint8_t* ToAgvCmd::_InternalSerialize(
  1379. ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  1380. // @@protoc_insertion_point(serialize_to_array_start:NavMessage.ToAgvCmd)
  1381. ::uint32_t cached_has_bits = 0;
  1382. (void) cached_has_bits;
  1383. // int32 H1 = 1;
  1384. if (this->_internal_h1() != 0) {
  1385. target = stream->EnsureSpace(target);
  1386. target = ::_pbi::WireFormatLite::WriteInt32ToArray(
  1387. 1, this->_internal_h1(), target);
  1388. }
  1389. // int32 M1 = 2;
  1390. if (this->_internal_m1() != 0) {
  1391. target = stream->EnsureSpace(target);
  1392. target = ::_pbi::WireFormatLite::WriteInt32ToArray(
  1393. 2, this->_internal_m1(), target);
  1394. }
  1395. // int32 T1 = 3;
  1396. if (this->_internal_t1() != 0) {
  1397. target = stream->EnsureSpace(target);
  1398. target = ::_pbi::WireFormatLite::WriteInt32ToArray(
  1399. 3, this->_internal_t1(), target);
  1400. }
  1401. // float V1 = 4;
  1402. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1403. float tmp_v1 = this->_internal_v1();
  1404. ::uint32_t raw_v1;
  1405. memcpy(&raw_v1, &tmp_v1, sizeof(tmp_v1));
  1406. if (raw_v1 != 0) {
  1407. target = stream->EnsureSpace(target);
  1408. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  1409. 4, this->_internal_v1(), target);
  1410. }
  1411. // float W1 = 5;
  1412. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1413. float tmp_w1 = this->_internal_w1();
  1414. ::uint32_t raw_w1;
  1415. memcpy(&raw_w1, &tmp_w1, sizeof(tmp_w1));
  1416. if (raw_w1 != 0) {
  1417. target = stream->EnsureSpace(target);
  1418. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  1419. 5, this->_internal_w1(), target);
  1420. }
  1421. // float V2 = 6;
  1422. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1423. float tmp_v2 = this->_internal_v2();
  1424. ::uint32_t raw_v2;
  1425. memcpy(&raw_v2, &tmp_v2, sizeof(tmp_v2));
  1426. if (raw_v2 != 0) {
  1427. target = stream->EnsureSpace(target);
  1428. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  1429. 6, this->_internal_v2(), target);
  1430. }
  1431. // float W2 = 7;
  1432. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1433. float tmp_w2 = this->_internal_w2();
  1434. ::uint32_t raw_w2;
  1435. memcpy(&raw_w2, &tmp_w2, sizeof(tmp_w2));
  1436. if (raw_w2 != 0) {
  1437. target = stream->EnsureSpace(target);
  1438. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  1439. 7, this->_internal_w2(), target);
  1440. }
  1441. // float V3 = 8;
  1442. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1443. float tmp_v3 = this->_internal_v3();
  1444. ::uint32_t raw_v3;
  1445. memcpy(&raw_v3, &tmp_v3, sizeof(tmp_v3));
  1446. if (raw_v3 != 0) {
  1447. target = stream->EnsureSpace(target);
  1448. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  1449. 8, this->_internal_v3(), target);
  1450. }
  1451. // float W3 = 9;
  1452. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1453. float tmp_w3 = this->_internal_w3();
  1454. ::uint32_t raw_w3;
  1455. memcpy(&raw_w3, &tmp_w3, sizeof(tmp_w3));
  1456. if (raw_w3 != 0) {
  1457. target = stream->EnsureSpace(target);
  1458. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  1459. 9, this->_internal_w3(), target);
  1460. }
  1461. // float L1 = 10;
  1462. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1463. float tmp_l1 = this->_internal_l1();
  1464. ::uint32_t raw_l1;
  1465. memcpy(&raw_l1, &tmp_l1, sizeof(tmp_l1));
  1466. if (raw_l1 != 0) {
  1467. target = stream->EnsureSpace(target);
  1468. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  1469. 10, this->_internal_l1(), target);
  1470. }
  1471. // int32 P1 = 11;
  1472. if (this->_internal_p1() != 0) {
  1473. target = stream->EnsureSpace(target);
  1474. target = ::_pbi::WireFormatLite::WriteInt32ToArray(
  1475. 11, this->_internal_p1(), target);
  1476. }
  1477. // float D1 = 12;
  1478. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1479. float tmp_d1 = this->_internal_d1();
  1480. ::uint32_t raw_d1;
  1481. memcpy(&raw_d1, &tmp_d1, sizeof(tmp_d1));
  1482. if (raw_d1 != 0) {
  1483. target = stream->EnsureSpace(target);
  1484. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  1485. 12, this->_internal_d1(), target);
  1486. }
  1487. // float Y1 = 13;
  1488. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1489. float tmp_y1 = this->_internal_y1();
  1490. ::uint32_t raw_y1;
  1491. memcpy(&raw_y1, &tmp_y1, sizeof(tmp_y1));
  1492. if (raw_y1 != 0) {
  1493. target = stream->EnsureSpace(target);
  1494. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  1495. 13, this->_internal_y1(), target);
  1496. }
  1497. // float Y2 = 14;
  1498. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1499. float tmp_y2 = this->_internal_y2();
  1500. ::uint32_t raw_y2;
  1501. memcpy(&raw_y2, &tmp_y2, sizeof(tmp_y2));
  1502. if (raw_y2 != 0) {
  1503. target = stream->EnsureSpace(target);
  1504. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  1505. 14, this->_internal_y2(), target);
  1506. }
  1507. // int32 end = 15;
  1508. if (this->_internal_end() != 0) {
  1509. target = stream->EnsureSpace(target);
  1510. target = ::_pbi::WireFormatLite::WriteInt32ToArray(
  1511. 15, this->_internal_end(), target);
  1512. }
  1513. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1514. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  1515. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  1516. }
  1517. // @@protoc_insertion_point(serialize_to_array_end:NavMessage.ToAgvCmd)
  1518. return target;
  1519. }
  1520. ::size_t ToAgvCmd::ByteSizeLong() const {
  1521. // @@protoc_insertion_point(message_byte_size_start:NavMessage.ToAgvCmd)
  1522. ::size_t total_size = 0;
  1523. ::uint32_t cached_has_bits = 0;
  1524. // Prevent compiler warnings about cached_has_bits being unused
  1525. (void) cached_has_bits;
  1526. // int32 H1 = 1;
  1527. if (this->_internal_h1() != 0) {
  1528. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
  1529. this->_internal_h1());
  1530. }
  1531. // int32 M1 = 2;
  1532. if (this->_internal_m1() != 0) {
  1533. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
  1534. this->_internal_m1());
  1535. }
  1536. // int32 T1 = 3;
  1537. if (this->_internal_t1() != 0) {
  1538. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
  1539. this->_internal_t1());
  1540. }
  1541. // float V1 = 4;
  1542. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1543. float tmp_v1 = this->_internal_v1();
  1544. ::uint32_t raw_v1;
  1545. memcpy(&raw_v1, &tmp_v1, sizeof(tmp_v1));
  1546. if (raw_v1 != 0) {
  1547. total_size += 5;
  1548. }
  1549. // float W1 = 5;
  1550. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1551. float tmp_w1 = this->_internal_w1();
  1552. ::uint32_t raw_w1;
  1553. memcpy(&raw_w1, &tmp_w1, sizeof(tmp_w1));
  1554. if (raw_w1 != 0) {
  1555. total_size += 5;
  1556. }
  1557. // float V2 = 6;
  1558. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1559. float tmp_v2 = this->_internal_v2();
  1560. ::uint32_t raw_v2;
  1561. memcpy(&raw_v2, &tmp_v2, sizeof(tmp_v2));
  1562. if (raw_v2 != 0) {
  1563. total_size += 5;
  1564. }
  1565. // float W2 = 7;
  1566. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1567. float tmp_w2 = this->_internal_w2();
  1568. ::uint32_t raw_w2;
  1569. memcpy(&raw_w2, &tmp_w2, sizeof(tmp_w2));
  1570. if (raw_w2 != 0) {
  1571. total_size += 5;
  1572. }
  1573. // float V3 = 8;
  1574. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1575. float tmp_v3 = this->_internal_v3();
  1576. ::uint32_t raw_v3;
  1577. memcpy(&raw_v3, &tmp_v3, sizeof(tmp_v3));
  1578. if (raw_v3 != 0) {
  1579. total_size += 5;
  1580. }
  1581. // float W3 = 9;
  1582. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1583. float tmp_w3 = this->_internal_w3();
  1584. ::uint32_t raw_w3;
  1585. memcpy(&raw_w3, &tmp_w3, sizeof(tmp_w3));
  1586. if (raw_w3 != 0) {
  1587. total_size += 5;
  1588. }
  1589. // float L1 = 10;
  1590. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1591. float tmp_l1 = this->_internal_l1();
  1592. ::uint32_t raw_l1;
  1593. memcpy(&raw_l1, &tmp_l1, sizeof(tmp_l1));
  1594. if (raw_l1 != 0) {
  1595. total_size += 5;
  1596. }
  1597. // int32 P1 = 11;
  1598. if (this->_internal_p1() != 0) {
  1599. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
  1600. this->_internal_p1());
  1601. }
  1602. // float D1 = 12;
  1603. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1604. float tmp_d1 = this->_internal_d1();
  1605. ::uint32_t raw_d1;
  1606. memcpy(&raw_d1, &tmp_d1, sizeof(tmp_d1));
  1607. if (raw_d1 != 0) {
  1608. total_size += 5;
  1609. }
  1610. // float Y1 = 13;
  1611. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1612. float tmp_y1 = this->_internal_y1();
  1613. ::uint32_t raw_y1;
  1614. memcpy(&raw_y1, &tmp_y1, sizeof(tmp_y1));
  1615. if (raw_y1 != 0) {
  1616. total_size += 5;
  1617. }
  1618. // float Y2 = 14;
  1619. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1620. float tmp_y2 = this->_internal_y2();
  1621. ::uint32_t raw_y2;
  1622. memcpy(&raw_y2, &tmp_y2, sizeof(tmp_y2));
  1623. if (raw_y2 != 0) {
  1624. total_size += 5;
  1625. }
  1626. // int32 end = 15;
  1627. if (this->_internal_end() != 0) {
  1628. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
  1629. this->_internal_end());
  1630. }
  1631. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  1632. }
  1633. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ToAgvCmd::_class_data_ = {
  1634. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  1635. ToAgvCmd::MergeImpl
  1636. };
  1637. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ToAgvCmd::GetClassData() const { return &_class_data_; }
  1638. void ToAgvCmd::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
  1639. auto* const _this = static_cast<ToAgvCmd*>(&to_msg);
  1640. auto& from = static_cast<const ToAgvCmd&>(from_msg);
  1641. // @@protoc_insertion_point(class_specific_merge_from_start:NavMessage.ToAgvCmd)
  1642. ABSL_DCHECK_NE(&from, _this);
  1643. ::uint32_t cached_has_bits = 0;
  1644. (void) cached_has_bits;
  1645. if (from._internal_h1() != 0) {
  1646. _this->_internal_set_h1(from._internal_h1());
  1647. }
  1648. if (from._internal_m1() != 0) {
  1649. _this->_internal_set_m1(from._internal_m1());
  1650. }
  1651. if (from._internal_t1() != 0) {
  1652. _this->_internal_set_t1(from._internal_t1());
  1653. }
  1654. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1655. float tmp_v1 = from._internal_v1();
  1656. ::uint32_t raw_v1;
  1657. memcpy(&raw_v1, &tmp_v1, sizeof(tmp_v1));
  1658. if (raw_v1 != 0) {
  1659. _this->_internal_set_v1(from._internal_v1());
  1660. }
  1661. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1662. float tmp_w1 = from._internal_w1();
  1663. ::uint32_t raw_w1;
  1664. memcpy(&raw_w1, &tmp_w1, sizeof(tmp_w1));
  1665. if (raw_w1 != 0) {
  1666. _this->_internal_set_w1(from._internal_w1());
  1667. }
  1668. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1669. float tmp_v2 = from._internal_v2();
  1670. ::uint32_t raw_v2;
  1671. memcpy(&raw_v2, &tmp_v2, sizeof(tmp_v2));
  1672. if (raw_v2 != 0) {
  1673. _this->_internal_set_v2(from._internal_v2());
  1674. }
  1675. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1676. float tmp_w2 = from._internal_w2();
  1677. ::uint32_t raw_w2;
  1678. memcpy(&raw_w2, &tmp_w2, sizeof(tmp_w2));
  1679. if (raw_w2 != 0) {
  1680. _this->_internal_set_w2(from._internal_w2());
  1681. }
  1682. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1683. float tmp_v3 = from._internal_v3();
  1684. ::uint32_t raw_v3;
  1685. memcpy(&raw_v3, &tmp_v3, sizeof(tmp_v3));
  1686. if (raw_v3 != 0) {
  1687. _this->_internal_set_v3(from._internal_v3());
  1688. }
  1689. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1690. float tmp_w3 = from._internal_w3();
  1691. ::uint32_t raw_w3;
  1692. memcpy(&raw_w3, &tmp_w3, sizeof(tmp_w3));
  1693. if (raw_w3 != 0) {
  1694. _this->_internal_set_w3(from._internal_w3());
  1695. }
  1696. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1697. float tmp_l1 = from._internal_l1();
  1698. ::uint32_t raw_l1;
  1699. memcpy(&raw_l1, &tmp_l1, sizeof(tmp_l1));
  1700. if (raw_l1 != 0) {
  1701. _this->_internal_set_l1(from._internal_l1());
  1702. }
  1703. if (from._internal_p1() != 0) {
  1704. _this->_internal_set_p1(from._internal_p1());
  1705. }
  1706. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1707. float tmp_d1 = from._internal_d1();
  1708. ::uint32_t raw_d1;
  1709. memcpy(&raw_d1, &tmp_d1, sizeof(tmp_d1));
  1710. if (raw_d1 != 0) {
  1711. _this->_internal_set_d1(from._internal_d1());
  1712. }
  1713. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1714. float tmp_y1 = from._internal_y1();
  1715. ::uint32_t raw_y1;
  1716. memcpy(&raw_y1, &tmp_y1, sizeof(tmp_y1));
  1717. if (raw_y1 != 0) {
  1718. _this->_internal_set_y1(from._internal_y1());
  1719. }
  1720. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1721. float tmp_y2 = from._internal_y2();
  1722. ::uint32_t raw_y2;
  1723. memcpy(&raw_y2, &tmp_y2, sizeof(tmp_y2));
  1724. if (raw_y2 != 0) {
  1725. _this->_internal_set_y2(from._internal_y2());
  1726. }
  1727. if (from._internal_end() != 0) {
  1728. _this->_internal_set_end(from._internal_end());
  1729. }
  1730. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1731. }
  1732. void ToAgvCmd::CopyFrom(const ToAgvCmd& from) {
  1733. // @@protoc_insertion_point(class_specific_copy_from_start:NavMessage.ToAgvCmd)
  1734. if (&from == this) return;
  1735. Clear();
  1736. MergeFrom(from);
  1737. }
  1738. bool ToAgvCmd::IsInitialized() const {
  1739. return true;
  1740. }
  1741. void ToAgvCmd::InternalSwap(ToAgvCmd* other) {
  1742. using std::swap;
  1743. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1744. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  1745. PROTOBUF_FIELD_OFFSET(ToAgvCmd, _impl_.end_)
  1746. + sizeof(ToAgvCmd::_impl_.end_)
  1747. - PROTOBUF_FIELD_OFFSET(ToAgvCmd, _impl_.h1_)>(
  1748. reinterpret_cast<char*>(&_impl_.h1_),
  1749. reinterpret_cast<char*>(&other->_impl_.h1_));
  1750. }
  1751. ::PROTOBUF_NAMESPACE_ID::Metadata ToAgvCmd::GetMetadata() const {
  1752. return ::_pbi::AssignDescriptors(
  1753. &descriptor_table_message_2eproto_getter, &descriptor_table_message_2eproto_once,
  1754. file_level_metadata_message_2eproto[2]);
  1755. }
  1756. // ===================================================================
  1757. class Pose2d::_Internal {
  1758. public:
  1759. };
  1760. Pose2d::Pose2d(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  1761. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  1762. SharedCtor(arena);
  1763. // @@protoc_insertion_point(arena_constructor:NavMessage.Pose2d)
  1764. }
  1765. Pose2d::Pose2d(const Pose2d& from)
  1766. : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) {
  1767. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(
  1768. from._internal_metadata_);
  1769. // @@protoc_insertion_point(copy_constructor:NavMessage.Pose2d)
  1770. }
  1771. inline void Pose2d::SharedCtor(::_pb::Arena* arena) {
  1772. (void)arena;
  1773. new (&_impl_) Impl_{
  1774. decltype(_impl_.x_) { 0 }
  1775. , decltype(_impl_.y_) { 0 }
  1776. , decltype(_impl_.theta_) { 0 }
  1777. , /*decltype(_impl_._cached_size_)*/{}
  1778. };
  1779. }
  1780. Pose2d::~Pose2d() {
  1781. // @@protoc_insertion_point(destructor:NavMessage.Pose2d)
  1782. if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  1783. (void)arena;
  1784. return;
  1785. }
  1786. SharedDtor();
  1787. }
  1788. inline void Pose2d::SharedDtor() {
  1789. ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  1790. }
  1791. void Pose2d::SetCachedSize(int size) const {
  1792. _impl_._cached_size_.Set(size);
  1793. }
  1794. void Pose2d::Clear() {
  1795. // @@protoc_insertion_point(message_clear_start:NavMessage.Pose2d)
  1796. ::uint32_t cached_has_bits = 0;
  1797. // Prevent compiler warnings about cached_has_bits being unused
  1798. (void) cached_has_bits;
  1799. ::memset(&_impl_.x_, 0, static_cast<::size_t>(
  1800. reinterpret_cast<char*>(&_impl_.theta_) -
  1801. reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.theta_));
  1802. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1803. }
  1804. const char* Pose2d::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
  1805. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1806. while (!ctx->Done(&ptr)) {
  1807. ::uint32_t tag;
  1808. ptr = ::_pbi::ReadTag(ptr, &tag);
  1809. switch (tag >> 3) {
  1810. // float x = 1;
  1811. case 1:
  1812. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 13)) {
  1813. _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1814. ptr += sizeof(float);
  1815. } else {
  1816. goto handle_unusual;
  1817. }
  1818. continue;
  1819. // float y = 2;
  1820. case 2:
  1821. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 21)) {
  1822. _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1823. ptr += sizeof(float);
  1824. } else {
  1825. goto handle_unusual;
  1826. }
  1827. continue;
  1828. // float theta = 3;
  1829. case 3:
  1830. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 29)) {
  1831. _impl_.theta_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1832. ptr += sizeof(float);
  1833. } else {
  1834. goto handle_unusual;
  1835. }
  1836. continue;
  1837. default:
  1838. goto handle_unusual;
  1839. } // switch
  1840. handle_unusual:
  1841. if ((tag == 0) || ((tag & 7) == 4)) {
  1842. CHK_(ptr);
  1843. ctx->SetLastTag(tag);
  1844. goto message_done;
  1845. }
  1846. ptr = UnknownFieldParse(
  1847. tag,
  1848. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1849. ptr, ctx);
  1850. CHK_(ptr != nullptr);
  1851. } // while
  1852. message_done:
  1853. return ptr;
  1854. failure:
  1855. ptr = nullptr;
  1856. goto message_done;
  1857. #undef CHK_
  1858. }
  1859. ::uint8_t* Pose2d::_InternalSerialize(
  1860. ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  1861. // @@protoc_insertion_point(serialize_to_array_start:NavMessage.Pose2d)
  1862. ::uint32_t cached_has_bits = 0;
  1863. (void) cached_has_bits;
  1864. // float x = 1;
  1865. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1866. float tmp_x = this->_internal_x();
  1867. ::uint32_t raw_x;
  1868. memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
  1869. if (raw_x != 0) {
  1870. target = stream->EnsureSpace(target);
  1871. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  1872. 1, this->_internal_x(), target);
  1873. }
  1874. // float y = 2;
  1875. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1876. float tmp_y = this->_internal_y();
  1877. ::uint32_t raw_y;
  1878. memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
  1879. if (raw_y != 0) {
  1880. target = stream->EnsureSpace(target);
  1881. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  1882. 2, this->_internal_y(), target);
  1883. }
  1884. // float theta = 3;
  1885. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1886. float tmp_theta = this->_internal_theta();
  1887. ::uint32_t raw_theta;
  1888. memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta));
  1889. if (raw_theta != 0) {
  1890. target = stream->EnsureSpace(target);
  1891. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  1892. 3, this->_internal_theta(), target);
  1893. }
  1894. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1895. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  1896. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  1897. }
  1898. // @@protoc_insertion_point(serialize_to_array_end:NavMessage.Pose2d)
  1899. return target;
  1900. }
  1901. ::size_t Pose2d::ByteSizeLong() const {
  1902. // @@protoc_insertion_point(message_byte_size_start:NavMessage.Pose2d)
  1903. ::size_t total_size = 0;
  1904. ::uint32_t cached_has_bits = 0;
  1905. // Prevent compiler warnings about cached_has_bits being unused
  1906. (void) cached_has_bits;
  1907. // float x = 1;
  1908. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1909. float tmp_x = this->_internal_x();
  1910. ::uint32_t raw_x;
  1911. memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
  1912. if (raw_x != 0) {
  1913. total_size += 5;
  1914. }
  1915. // float y = 2;
  1916. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1917. float tmp_y = this->_internal_y();
  1918. ::uint32_t raw_y;
  1919. memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
  1920. if (raw_y != 0) {
  1921. total_size += 5;
  1922. }
  1923. // float theta = 3;
  1924. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1925. float tmp_theta = this->_internal_theta();
  1926. ::uint32_t raw_theta;
  1927. memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta));
  1928. if (raw_theta != 0) {
  1929. total_size += 5;
  1930. }
  1931. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  1932. }
  1933. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Pose2d::_class_data_ = {
  1934. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  1935. Pose2d::MergeImpl
  1936. };
  1937. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Pose2d::GetClassData() const { return &_class_data_; }
  1938. void Pose2d::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
  1939. auto* const _this = static_cast<Pose2d*>(&to_msg);
  1940. auto& from = static_cast<const Pose2d&>(from_msg);
  1941. // @@protoc_insertion_point(class_specific_merge_from_start:NavMessage.Pose2d)
  1942. ABSL_DCHECK_NE(&from, _this);
  1943. ::uint32_t cached_has_bits = 0;
  1944. (void) cached_has_bits;
  1945. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1946. float tmp_x = from._internal_x();
  1947. ::uint32_t raw_x;
  1948. memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
  1949. if (raw_x != 0) {
  1950. _this->_internal_set_x(from._internal_x());
  1951. }
  1952. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1953. float tmp_y = from._internal_y();
  1954. ::uint32_t raw_y;
  1955. memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
  1956. if (raw_y != 0) {
  1957. _this->_internal_set_y(from._internal_y());
  1958. }
  1959. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1960. float tmp_theta = from._internal_theta();
  1961. ::uint32_t raw_theta;
  1962. memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta));
  1963. if (raw_theta != 0) {
  1964. _this->_internal_set_theta(from._internal_theta());
  1965. }
  1966. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1967. }
  1968. void Pose2d::CopyFrom(const Pose2d& from) {
  1969. // @@protoc_insertion_point(class_specific_copy_from_start:NavMessage.Pose2d)
  1970. if (&from == this) return;
  1971. Clear();
  1972. MergeFrom(from);
  1973. }
  1974. bool Pose2d::IsInitialized() const {
  1975. return true;
  1976. }
  1977. void Pose2d::InternalSwap(Pose2d* other) {
  1978. using std::swap;
  1979. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1980. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  1981. PROTOBUF_FIELD_OFFSET(Pose2d, _impl_.theta_)
  1982. + sizeof(Pose2d::_impl_.theta_)
  1983. - PROTOBUF_FIELD_OFFSET(Pose2d, _impl_.x_)>(
  1984. reinterpret_cast<char*>(&_impl_.x_),
  1985. reinterpret_cast<char*>(&other->_impl_.x_));
  1986. }
  1987. ::PROTOBUF_NAMESPACE_ID::Metadata Pose2d::GetMetadata() const {
  1988. return ::_pbi::AssignDescriptors(
  1989. &descriptor_table_message_2eproto_getter, &descriptor_table_message_2eproto_once,
  1990. file_level_metadata_message_2eproto[3]);
  1991. }
  1992. // ===================================================================
  1993. class PathNode::_Internal {
  1994. public:
  1995. };
  1996. PathNode::PathNode(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  1997. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  1998. SharedCtor(arena);
  1999. // @@protoc_insertion_point(arena_constructor:NavMessage.PathNode)
  2000. }
  2001. PathNode::PathNode(const PathNode& from)
  2002. : ::PROTOBUF_NAMESPACE_ID::Message() {
  2003. PathNode* const _this = this; (void)_this;
  2004. new (&_impl_) Impl_{
  2005. decltype(_impl_.id_) {}
  2006. , decltype(_impl_.x_) {}
  2007. , decltype(_impl_.y_) {}
  2008. , decltype(_impl_.l_) {}
  2009. , decltype(_impl_.w_) {}
  2010. , decltype(_impl_.theta_) {}
  2011. , /*decltype(_impl_._cached_size_)*/{}};
  2012. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2013. _impl_.id_.InitDefault();
  2014. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2015. _impl_.id_.Set("", GetArenaForAllocation());
  2016. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2017. if (!from._internal_id().empty()) {
  2018. _this->_impl_.id_.Set(from._internal_id(), _this->GetArenaForAllocation());
  2019. }
  2020. ::memcpy(&_impl_.x_, &from._impl_.x_,
  2021. static_cast<::size_t>(reinterpret_cast<char*>(&_impl_.theta_) -
  2022. reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.theta_));
  2023. // @@protoc_insertion_point(copy_constructor:NavMessage.PathNode)
  2024. }
  2025. inline void PathNode::SharedCtor(::_pb::Arena* arena) {
  2026. (void)arena;
  2027. new (&_impl_) Impl_{
  2028. decltype(_impl_.id_) {}
  2029. , decltype(_impl_.x_) { 0 }
  2030. , decltype(_impl_.y_) { 0 }
  2031. , decltype(_impl_.l_) { 0 }
  2032. , decltype(_impl_.w_) { 0 }
  2033. , decltype(_impl_.theta_) { 0 }
  2034. , /*decltype(_impl_._cached_size_)*/{}
  2035. };
  2036. _impl_.id_.InitDefault();
  2037. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2038. _impl_.id_.Set("", GetArenaForAllocation());
  2039. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2040. }
  2041. PathNode::~PathNode() {
  2042. // @@protoc_insertion_point(destructor:NavMessage.PathNode)
  2043. if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  2044. (void)arena;
  2045. return;
  2046. }
  2047. SharedDtor();
  2048. }
  2049. inline void PathNode::SharedDtor() {
  2050. ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  2051. _impl_.id_.Destroy();
  2052. }
  2053. void PathNode::SetCachedSize(int size) const {
  2054. _impl_._cached_size_.Set(size);
  2055. }
  2056. void PathNode::Clear() {
  2057. // @@protoc_insertion_point(message_clear_start:NavMessage.PathNode)
  2058. ::uint32_t cached_has_bits = 0;
  2059. // Prevent compiler warnings about cached_has_bits being unused
  2060. (void) cached_has_bits;
  2061. _impl_.id_.ClearToEmpty();
  2062. ::memset(&_impl_.x_, 0, static_cast<::size_t>(
  2063. reinterpret_cast<char*>(&_impl_.theta_) -
  2064. reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.theta_));
  2065. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2066. }
  2067. const char* PathNode::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
  2068. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  2069. while (!ctx->Done(&ptr)) {
  2070. ::uint32_t tag;
  2071. ptr = ::_pbi::ReadTag(ptr, &tag);
  2072. switch (tag >> 3) {
  2073. // float x = 1;
  2074. case 1:
  2075. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 13)) {
  2076. _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  2077. ptr += sizeof(float);
  2078. } else {
  2079. goto handle_unusual;
  2080. }
  2081. continue;
  2082. // float y = 2;
  2083. case 2:
  2084. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 21)) {
  2085. _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  2086. ptr += sizeof(float);
  2087. } else {
  2088. goto handle_unusual;
  2089. }
  2090. continue;
  2091. // float l = 3;
  2092. case 3:
  2093. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 29)) {
  2094. _impl_.l_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  2095. ptr += sizeof(float);
  2096. } else {
  2097. goto handle_unusual;
  2098. }
  2099. continue;
  2100. // float w = 4;
  2101. case 4:
  2102. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 37)) {
  2103. _impl_.w_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  2104. ptr += sizeof(float);
  2105. } else {
  2106. goto handle_unusual;
  2107. }
  2108. continue;
  2109. // float theta = 5;
  2110. case 5:
  2111. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 45)) {
  2112. _impl_.theta_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  2113. ptr += sizeof(float);
  2114. } else {
  2115. goto handle_unusual;
  2116. }
  2117. continue;
  2118. // string id = 6;
  2119. case 6:
  2120. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 50)) {
  2121. auto str = _internal_mutable_id();
  2122. ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
  2123. CHK_(ptr);
  2124. CHK_(::_pbi::VerifyUTF8(str, "NavMessage.PathNode.id"));
  2125. } else {
  2126. goto handle_unusual;
  2127. }
  2128. continue;
  2129. default:
  2130. goto handle_unusual;
  2131. } // switch
  2132. handle_unusual:
  2133. if ((tag == 0) || ((tag & 7) == 4)) {
  2134. CHK_(ptr);
  2135. ctx->SetLastTag(tag);
  2136. goto message_done;
  2137. }
  2138. ptr = UnknownFieldParse(
  2139. tag,
  2140. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2141. ptr, ctx);
  2142. CHK_(ptr != nullptr);
  2143. } // while
  2144. message_done:
  2145. return ptr;
  2146. failure:
  2147. ptr = nullptr;
  2148. goto message_done;
  2149. #undef CHK_
  2150. }
  2151. ::uint8_t* PathNode::_InternalSerialize(
  2152. ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  2153. // @@protoc_insertion_point(serialize_to_array_start:NavMessage.PathNode)
  2154. ::uint32_t cached_has_bits = 0;
  2155. (void) cached_has_bits;
  2156. // float x = 1;
  2157. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  2158. float tmp_x = this->_internal_x();
  2159. ::uint32_t raw_x;
  2160. memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
  2161. if (raw_x != 0) {
  2162. target = stream->EnsureSpace(target);
  2163. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  2164. 1, this->_internal_x(), target);
  2165. }
  2166. // float y = 2;
  2167. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  2168. float tmp_y = this->_internal_y();
  2169. ::uint32_t raw_y;
  2170. memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
  2171. if (raw_y != 0) {
  2172. target = stream->EnsureSpace(target);
  2173. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  2174. 2, this->_internal_y(), target);
  2175. }
  2176. // float l = 3;
  2177. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  2178. float tmp_l = this->_internal_l();
  2179. ::uint32_t raw_l;
  2180. memcpy(&raw_l, &tmp_l, sizeof(tmp_l));
  2181. if (raw_l != 0) {
  2182. target = stream->EnsureSpace(target);
  2183. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  2184. 3, this->_internal_l(), target);
  2185. }
  2186. // float w = 4;
  2187. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  2188. float tmp_w = this->_internal_w();
  2189. ::uint32_t raw_w;
  2190. memcpy(&raw_w, &tmp_w, sizeof(tmp_w));
  2191. if (raw_w != 0) {
  2192. target = stream->EnsureSpace(target);
  2193. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  2194. 4, this->_internal_w(), target);
  2195. }
  2196. // float theta = 5;
  2197. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  2198. float tmp_theta = this->_internal_theta();
  2199. ::uint32_t raw_theta;
  2200. memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta));
  2201. if (raw_theta != 0) {
  2202. target = stream->EnsureSpace(target);
  2203. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  2204. 5, this->_internal_theta(), target);
  2205. }
  2206. // string id = 6;
  2207. if (!this->_internal_id().empty()) {
  2208. const std::string& _s = this->_internal_id();
  2209. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  2210. _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "NavMessage.PathNode.id");
  2211. target = stream->WriteStringMaybeAliased(6, _s, target);
  2212. }
  2213. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2214. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  2215. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  2216. }
  2217. // @@protoc_insertion_point(serialize_to_array_end:NavMessage.PathNode)
  2218. return target;
  2219. }
  2220. ::size_t PathNode::ByteSizeLong() const {
  2221. // @@protoc_insertion_point(message_byte_size_start:NavMessage.PathNode)
  2222. ::size_t total_size = 0;
  2223. ::uint32_t cached_has_bits = 0;
  2224. // Prevent compiler warnings about cached_has_bits being unused
  2225. (void) cached_has_bits;
  2226. // string id = 6;
  2227. if (!this->_internal_id().empty()) {
  2228. total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  2229. this->_internal_id());
  2230. }
  2231. // float x = 1;
  2232. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  2233. float tmp_x = this->_internal_x();
  2234. ::uint32_t raw_x;
  2235. memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
  2236. if (raw_x != 0) {
  2237. total_size += 5;
  2238. }
  2239. // float y = 2;
  2240. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  2241. float tmp_y = this->_internal_y();
  2242. ::uint32_t raw_y;
  2243. memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
  2244. if (raw_y != 0) {
  2245. total_size += 5;
  2246. }
  2247. // float l = 3;
  2248. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  2249. float tmp_l = this->_internal_l();
  2250. ::uint32_t raw_l;
  2251. memcpy(&raw_l, &tmp_l, sizeof(tmp_l));
  2252. if (raw_l != 0) {
  2253. total_size += 5;
  2254. }
  2255. // float w = 4;
  2256. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  2257. float tmp_w = this->_internal_w();
  2258. ::uint32_t raw_w;
  2259. memcpy(&raw_w, &tmp_w, sizeof(tmp_w));
  2260. if (raw_w != 0) {
  2261. total_size += 5;
  2262. }
  2263. // float theta = 5;
  2264. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  2265. float tmp_theta = this->_internal_theta();
  2266. ::uint32_t raw_theta;
  2267. memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta));
  2268. if (raw_theta != 0) {
  2269. total_size += 5;
  2270. }
  2271. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  2272. }
  2273. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PathNode::_class_data_ = {
  2274. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  2275. PathNode::MergeImpl
  2276. };
  2277. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PathNode::GetClassData() const { return &_class_data_; }
  2278. void PathNode::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
  2279. auto* const _this = static_cast<PathNode*>(&to_msg);
  2280. auto& from = static_cast<const PathNode&>(from_msg);
  2281. // @@protoc_insertion_point(class_specific_merge_from_start:NavMessage.PathNode)
  2282. ABSL_DCHECK_NE(&from, _this);
  2283. ::uint32_t cached_has_bits = 0;
  2284. (void) cached_has_bits;
  2285. if (!from._internal_id().empty()) {
  2286. _this->_internal_set_id(from._internal_id());
  2287. }
  2288. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  2289. float tmp_x = from._internal_x();
  2290. ::uint32_t raw_x;
  2291. memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
  2292. if (raw_x != 0) {
  2293. _this->_internal_set_x(from._internal_x());
  2294. }
  2295. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  2296. float tmp_y = from._internal_y();
  2297. ::uint32_t raw_y;
  2298. memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
  2299. if (raw_y != 0) {
  2300. _this->_internal_set_y(from._internal_y());
  2301. }
  2302. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  2303. float tmp_l = from._internal_l();
  2304. ::uint32_t raw_l;
  2305. memcpy(&raw_l, &tmp_l, sizeof(tmp_l));
  2306. if (raw_l != 0) {
  2307. _this->_internal_set_l(from._internal_l());
  2308. }
  2309. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  2310. float tmp_w = from._internal_w();
  2311. ::uint32_t raw_w;
  2312. memcpy(&raw_w, &tmp_w, sizeof(tmp_w));
  2313. if (raw_w != 0) {
  2314. _this->_internal_set_w(from._internal_w());
  2315. }
  2316. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  2317. float tmp_theta = from._internal_theta();
  2318. ::uint32_t raw_theta;
  2319. memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta));
  2320. if (raw_theta != 0) {
  2321. _this->_internal_set_theta(from._internal_theta());
  2322. }
  2323. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2324. }
  2325. void PathNode::CopyFrom(const PathNode& from) {
  2326. // @@protoc_insertion_point(class_specific_copy_from_start:NavMessage.PathNode)
  2327. if (&from == this) return;
  2328. Clear();
  2329. MergeFrom(from);
  2330. }
  2331. bool PathNode::IsInitialized() const {
  2332. return true;
  2333. }
  2334. void PathNode::InternalSwap(PathNode* other) {
  2335. using std::swap;
  2336. auto* lhs_arena = GetArenaForAllocation();
  2337. auto* rhs_arena = other->GetArenaForAllocation();
  2338. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2339. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, lhs_arena,
  2340. &other->_impl_.id_, rhs_arena);
  2341. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  2342. PROTOBUF_FIELD_OFFSET(PathNode, _impl_.theta_)
  2343. + sizeof(PathNode::_impl_.theta_)
  2344. - PROTOBUF_FIELD_OFFSET(PathNode, _impl_.x_)>(
  2345. reinterpret_cast<char*>(&_impl_.x_),
  2346. reinterpret_cast<char*>(&other->_impl_.x_));
  2347. }
  2348. ::PROTOBUF_NAMESPACE_ID::Metadata PathNode::GetMetadata() const {
  2349. return ::_pbi::AssignDescriptors(
  2350. &descriptor_table_message_2eproto_getter, &descriptor_table_message_2eproto_once,
  2351. file_level_metadata_message_2eproto[4]);
  2352. }
  2353. // ===================================================================
  2354. class Trajectory::_Internal {
  2355. public:
  2356. };
  2357. Trajectory::Trajectory(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  2358. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  2359. SharedCtor(arena);
  2360. // @@protoc_insertion_point(arena_constructor:NavMessage.Trajectory)
  2361. }
  2362. Trajectory::Trajectory(const Trajectory& from)
  2363. : ::PROTOBUF_NAMESPACE_ID::Message() {
  2364. Trajectory* const _this = this; (void)_this;
  2365. new (&_impl_) Impl_{
  2366. decltype(_impl_.poses_){from._impl_.poses_}
  2367. , /*decltype(_impl_._cached_size_)*/{}};
  2368. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2369. // @@protoc_insertion_point(copy_constructor:NavMessage.Trajectory)
  2370. }
  2371. inline void Trajectory::SharedCtor(::_pb::Arena* arena) {
  2372. (void)arena;
  2373. new (&_impl_) Impl_{
  2374. decltype(_impl_.poses_){arena}
  2375. , /*decltype(_impl_._cached_size_)*/{}
  2376. };
  2377. }
  2378. Trajectory::~Trajectory() {
  2379. // @@protoc_insertion_point(destructor:NavMessage.Trajectory)
  2380. if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  2381. (void)arena;
  2382. return;
  2383. }
  2384. SharedDtor();
  2385. }
  2386. inline void Trajectory::SharedDtor() {
  2387. ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  2388. _internal_mutable_poses()->~RepeatedPtrField();
  2389. }
  2390. void Trajectory::SetCachedSize(int size) const {
  2391. _impl_._cached_size_.Set(size);
  2392. }
  2393. void Trajectory::Clear() {
  2394. // @@protoc_insertion_point(message_clear_start:NavMessage.Trajectory)
  2395. ::uint32_t cached_has_bits = 0;
  2396. // Prevent compiler warnings about cached_has_bits being unused
  2397. (void) cached_has_bits;
  2398. _internal_mutable_poses()->Clear();
  2399. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2400. }
  2401. const char* Trajectory::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
  2402. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  2403. while (!ctx->Done(&ptr)) {
  2404. ::uint32_t tag;
  2405. ptr = ::_pbi::ReadTag(ptr, &tag);
  2406. switch (tag >> 3) {
  2407. // repeated .NavMessage.Pose2d poses = 1;
  2408. case 1:
  2409. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
  2410. ptr -= 1;
  2411. do {
  2412. ptr += 1;
  2413. ptr = ctx->ParseMessage(_internal_add_poses(), ptr);
  2414. CHK_(ptr);
  2415. if (!ctx->DataAvailable(ptr)) break;
  2416. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
  2417. } else {
  2418. goto handle_unusual;
  2419. }
  2420. continue;
  2421. default:
  2422. goto handle_unusual;
  2423. } // switch
  2424. handle_unusual:
  2425. if ((tag == 0) || ((tag & 7) == 4)) {
  2426. CHK_(ptr);
  2427. ctx->SetLastTag(tag);
  2428. goto message_done;
  2429. }
  2430. ptr = UnknownFieldParse(
  2431. tag,
  2432. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2433. ptr, ctx);
  2434. CHK_(ptr != nullptr);
  2435. } // while
  2436. message_done:
  2437. return ptr;
  2438. failure:
  2439. ptr = nullptr;
  2440. goto message_done;
  2441. #undef CHK_
  2442. }
  2443. ::uint8_t* Trajectory::_InternalSerialize(
  2444. ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  2445. // @@protoc_insertion_point(serialize_to_array_start:NavMessage.Trajectory)
  2446. ::uint32_t cached_has_bits = 0;
  2447. (void) cached_has_bits;
  2448. // repeated .NavMessage.Pose2d poses = 1;
  2449. for (unsigned i = 0,
  2450. n = static_cast<unsigned>(this->_internal_poses_size()); i < n; i++) {
  2451. const auto& repfield = this->_internal_poses(i);
  2452. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  2453. InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
  2454. }
  2455. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2456. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  2457. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  2458. }
  2459. // @@protoc_insertion_point(serialize_to_array_end:NavMessage.Trajectory)
  2460. return target;
  2461. }
  2462. ::size_t Trajectory::ByteSizeLong() const {
  2463. // @@protoc_insertion_point(message_byte_size_start:NavMessage.Trajectory)
  2464. ::size_t total_size = 0;
  2465. ::uint32_t cached_has_bits = 0;
  2466. // Prevent compiler warnings about cached_has_bits being unused
  2467. (void) cached_has_bits;
  2468. // repeated .NavMessage.Pose2d poses = 1;
  2469. total_size += 1UL * this->_internal_poses_size();
  2470. for (const auto& msg : this->_internal_poses()) {
  2471. total_size +=
  2472. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  2473. }
  2474. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  2475. }
  2476. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Trajectory::_class_data_ = {
  2477. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  2478. Trajectory::MergeImpl
  2479. };
  2480. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Trajectory::GetClassData() const { return &_class_data_; }
  2481. void Trajectory::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
  2482. auto* const _this = static_cast<Trajectory*>(&to_msg);
  2483. auto& from = static_cast<const Trajectory&>(from_msg);
  2484. // @@protoc_insertion_point(class_specific_merge_from_start:NavMessage.Trajectory)
  2485. ABSL_DCHECK_NE(&from, _this);
  2486. ::uint32_t cached_has_bits = 0;
  2487. (void) cached_has_bits;
  2488. _this->_internal_mutable_poses()->MergeFrom(from._internal_poses());
  2489. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2490. }
  2491. void Trajectory::CopyFrom(const Trajectory& from) {
  2492. // @@protoc_insertion_point(class_specific_copy_from_start:NavMessage.Trajectory)
  2493. if (&from == this) return;
  2494. Clear();
  2495. MergeFrom(from);
  2496. }
  2497. bool Trajectory::IsInitialized() const {
  2498. return true;
  2499. }
  2500. void Trajectory::InternalSwap(Trajectory* other) {
  2501. using std::swap;
  2502. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2503. _internal_mutable_poses()->InternalSwap(other->_internal_mutable_poses());
  2504. }
  2505. ::PROTOBUF_NAMESPACE_ID::Metadata Trajectory::GetMetadata() const {
  2506. return ::_pbi::AssignDescriptors(
  2507. &descriptor_table_message_2eproto_getter, &descriptor_table_message_2eproto_once,
  2508. file_level_metadata_message_2eproto[5]);
  2509. }
  2510. // ===================================================================
  2511. class NewAction::_Internal {
  2512. public:
  2513. using HasBits = decltype(std::declval<NewAction>()._impl_._has_bits_);
  2514. static constexpr ::int32_t kHasBitsOffset =
  2515. 8 * PROTOBUF_FIELD_OFFSET(NewAction, _impl_._has_bits_);
  2516. static const ::NavMessage::PathNode& spacenode(const NewAction* msg);
  2517. static void set_has_spacenode(HasBits* has_bits) {
  2518. (*has_bits)[0] |= 1u;
  2519. }
  2520. static const ::NavMessage::PathNode& passnode(const NewAction* msg);
  2521. static void set_has_passnode(HasBits* has_bits) {
  2522. (*has_bits)[0] |= 2u;
  2523. }
  2524. static const ::NavMessage::PathNode& streetnode(const NewAction* msg);
  2525. static void set_has_streetnode(HasBits* has_bits) {
  2526. (*has_bits)[0] |= 4u;
  2527. }
  2528. };
  2529. const ::NavMessage::PathNode&
  2530. NewAction::_Internal::spacenode(const NewAction* msg) {
  2531. return *msg->_impl_.spacenode_;
  2532. }
  2533. const ::NavMessage::PathNode&
  2534. NewAction::_Internal::passnode(const NewAction* msg) {
  2535. return *msg->_impl_.passnode_;
  2536. }
  2537. const ::NavMessage::PathNode&
  2538. NewAction::_Internal::streetnode(const NewAction* msg) {
  2539. return *msg->_impl_.streetnode_;
  2540. }
  2541. NewAction::NewAction(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  2542. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  2543. SharedCtor(arena);
  2544. // @@protoc_insertion_point(arena_constructor:NavMessage.NewAction)
  2545. }
  2546. NewAction::NewAction(const NewAction& from)
  2547. : ::PROTOBUF_NAMESPACE_ID::Message() {
  2548. NewAction* const _this = this; (void)_this;
  2549. new (&_impl_) Impl_{
  2550. decltype(_impl_._has_bits_){from._impl_._has_bits_}
  2551. , /*decltype(_impl_._cached_size_)*/{}
  2552. , decltype(_impl_.pathnodes_){from._impl_.pathnodes_}
  2553. , decltype(_impl_.spacenode_){nullptr}
  2554. , decltype(_impl_.passnode_){nullptr}
  2555. , decltype(_impl_.streetnode_){nullptr}
  2556. , decltype(_impl_.type_) {}
  2557. , decltype(_impl_.wheelbase_) {}
  2558. , decltype(_impl_.changedmode_) {}
  2559. };
  2560. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2561. if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
  2562. _this->_impl_.spacenode_ = new ::NavMessage::PathNode(*from._impl_.spacenode_);
  2563. }
  2564. if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) {
  2565. _this->_impl_.passnode_ = new ::NavMessage::PathNode(*from._impl_.passnode_);
  2566. }
  2567. if ((from._impl_._has_bits_[0] & 0x00000004u) != 0) {
  2568. _this->_impl_.streetnode_ = new ::NavMessage::PathNode(*from._impl_.streetnode_);
  2569. }
  2570. ::memcpy(&_impl_.type_, &from._impl_.type_,
  2571. static_cast<::size_t>(reinterpret_cast<char*>(&_impl_.changedmode_) -
  2572. reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.changedmode_));
  2573. // @@protoc_insertion_point(copy_constructor:NavMessage.NewAction)
  2574. }
  2575. inline void NewAction::SharedCtor(::_pb::Arena* arena) {
  2576. (void)arena;
  2577. new (&_impl_) Impl_{
  2578. decltype(_impl_._has_bits_){}
  2579. , /*decltype(_impl_._cached_size_)*/{}
  2580. , decltype(_impl_.pathnodes_){arena}
  2581. , decltype(_impl_.spacenode_){nullptr}
  2582. , decltype(_impl_.passnode_){nullptr}
  2583. , decltype(_impl_.streetnode_){nullptr}
  2584. , decltype(_impl_.type_) { 0 }
  2585. , decltype(_impl_.wheelbase_) { 0 }
  2586. , decltype(_impl_.changedmode_) { 0 }
  2587. };
  2588. }
  2589. NewAction::~NewAction() {
  2590. // @@protoc_insertion_point(destructor:NavMessage.NewAction)
  2591. if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  2592. (void)arena;
  2593. return;
  2594. }
  2595. SharedDtor();
  2596. }
  2597. inline void NewAction::SharedDtor() {
  2598. ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  2599. _internal_mutable_pathnodes()->~RepeatedPtrField();
  2600. if (this != internal_default_instance()) delete _impl_.spacenode_;
  2601. if (this != internal_default_instance()) delete _impl_.passnode_;
  2602. if (this != internal_default_instance()) delete _impl_.streetnode_;
  2603. }
  2604. void NewAction::SetCachedSize(int size) const {
  2605. _impl_._cached_size_.Set(size);
  2606. }
  2607. void NewAction::Clear() {
  2608. // @@protoc_insertion_point(message_clear_start:NavMessage.NewAction)
  2609. ::uint32_t cached_has_bits = 0;
  2610. // Prevent compiler warnings about cached_has_bits being unused
  2611. (void) cached_has_bits;
  2612. _internal_mutable_pathnodes()->Clear();
  2613. cached_has_bits = _impl_._has_bits_[0];
  2614. if (cached_has_bits & 0x00000007u) {
  2615. if (cached_has_bits & 0x00000001u) {
  2616. ABSL_DCHECK(_impl_.spacenode_ != nullptr);
  2617. _impl_.spacenode_->Clear();
  2618. }
  2619. if (cached_has_bits & 0x00000002u) {
  2620. ABSL_DCHECK(_impl_.passnode_ != nullptr);
  2621. _impl_.passnode_->Clear();
  2622. }
  2623. if (cached_has_bits & 0x00000004u) {
  2624. ABSL_DCHECK(_impl_.streetnode_ != nullptr);
  2625. _impl_.streetnode_->Clear();
  2626. }
  2627. }
  2628. ::memset(&_impl_.type_, 0, static_cast<::size_t>(
  2629. reinterpret_cast<char*>(&_impl_.changedmode_) -
  2630. reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.changedmode_));
  2631. _impl_._has_bits_.Clear();
  2632. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2633. }
  2634. const char* NewAction::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
  2635. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  2636. _Internal::HasBits has_bits{};
  2637. while (!ctx->Done(&ptr)) {
  2638. ::uint32_t tag;
  2639. ptr = ::_pbi::ReadTag(ptr, &tag);
  2640. switch (tag >> 3) {
  2641. // int32 type = 1;
  2642. case 1:
  2643. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
  2644. _impl_.type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2645. CHK_(ptr);
  2646. } else {
  2647. goto handle_unusual;
  2648. }
  2649. continue;
  2650. // .NavMessage.PathNode spaceNode = 2;
  2651. case 2:
  2652. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
  2653. ptr = ctx->ParseMessage(_internal_mutable_spacenode(), ptr);
  2654. CHK_(ptr);
  2655. } else {
  2656. goto handle_unusual;
  2657. }
  2658. continue;
  2659. // .NavMessage.PathNode passNode = 3;
  2660. case 3:
  2661. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
  2662. ptr = ctx->ParseMessage(_internal_mutable_passnode(), ptr);
  2663. CHK_(ptr);
  2664. } else {
  2665. goto handle_unusual;
  2666. }
  2667. continue;
  2668. // .NavMessage.PathNode streetNode = 4;
  2669. case 4:
  2670. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
  2671. ptr = ctx->ParseMessage(_internal_mutable_streetnode(), ptr);
  2672. CHK_(ptr);
  2673. } else {
  2674. goto handle_unusual;
  2675. }
  2676. continue;
  2677. // repeated .NavMessage.PathNode pathNodes = 5;
  2678. case 5:
  2679. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) {
  2680. ptr -= 1;
  2681. do {
  2682. ptr += 1;
  2683. ptr = ctx->ParseMessage(_internal_add_pathnodes(), ptr);
  2684. CHK_(ptr);
  2685. if (!ctx->DataAvailable(ptr)) break;
  2686. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr));
  2687. } else {
  2688. goto handle_unusual;
  2689. }
  2690. continue;
  2691. // float wheelbase = 6;
  2692. case 6:
  2693. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 53)) {
  2694. _impl_.wheelbase_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  2695. ptr += sizeof(float);
  2696. } else {
  2697. goto handle_unusual;
  2698. }
  2699. continue;
  2700. // int32 changedMode = 7;
  2701. case 7:
  2702. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 56)) {
  2703. _impl_.changedmode_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2704. CHK_(ptr);
  2705. } else {
  2706. goto handle_unusual;
  2707. }
  2708. continue;
  2709. default:
  2710. goto handle_unusual;
  2711. } // switch
  2712. handle_unusual:
  2713. if ((tag == 0) || ((tag & 7) == 4)) {
  2714. CHK_(ptr);
  2715. ctx->SetLastTag(tag);
  2716. goto message_done;
  2717. }
  2718. ptr = UnknownFieldParse(
  2719. tag,
  2720. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2721. ptr, ctx);
  2722. CHK_(ptr != nullptr);
  2723. } // while
  2724. message_done:
  2725. _impl_._has_bits_.Or(has_bits);
  2726. return ptr;
  2727. failure:
  2728. ptr = nullptr;
  2729. goto message_done;
  2730. #undef CHK_
  2731. }
  2732. ::uint8_t* NewAction::_InternalSerialize(
  2733. ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  2734. // @@protoc_insertion_point(serialize_to_array_start:NavMessage.NewAction)
  2735. ::uint32_t cached_has_bits = 0;
  2736. (void) cached_has_bits;
  2737. // int32 type = 1;
  2738. if (this->_internal_type() != 0) {
  2739. target = stream->EnsureSpace(target);
  2740. target = ::_pbi::WireFormatLite::WriteInt32ToArray(
  2741. 1, this->_internal_type(), target);
  2742. }
  2743. cached_has_bits = _impl_._has_bits_[0];
  2744. // .NavMessage.PathNode spaceNode = 2;
  2745. if (cached_has_bits & 0x00000001u) {
  2746. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  2747. InternalWriteMessage(2, _Internal::spacenode(this),
  2748. _Internal::spacenode(this).GetCachedSize(), target, stream);
  2749. }
  2750. // .NavMessage.PathNode passNode = 3;
  2751. if (cached_has_bits & 0x00000002u) {
  2752. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  2753. InternalWriteMessage(3, _Internal::passnode(this),
  2754. _Internal::passnode(this).GetCachedSize(), target, stream);
  2755. }
  2756. // .NavMessage.PathNode streetNode = 4;
  2757. if (cached_has_bits & 0x00000004u) {
  2758. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  2759. InternalWriteMessage(4, _Internal::streetnode(this),
  2760. _Internal::streetnode(this).GetCachedSize(), target, stream);
  2761. }
  2762. // repeated .NavMessage.PathNode pathNodes = 5;
  2763. for (unsigned i = 0,
  2764. n = static_cast<unsigned>(this->_internal_pathnodes_size()); i < n; i++) {
  2765. const auto& repfield = this->_internal_pathnodes(i);
  2766. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  2767. InternalWriteMessage(5, repfield, repfield.GetCachedSize(), target, stream);
  2768. }
  2769. // float wheelbase = 6;
  2770. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  2771. float tmp_wheelbase = this->_internal_wheelbase();
  2772. ::uint32_t raw_wheelbase;
  2773. memcpy(&raw_wheelbase, &tmp_wheelbase, sizeof(tmp_wheelbase));
  2774. if (raw_wheelbase != 0) {
  2775. target = stream->EnsureSpace(target);
  2776. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  2777. 6, this->_internal_wheelbase(), target);
  2778. }
  2779. // int32 changedMode = 7;
  2780. if (this->_internal_changedmode() != 0) {
  2781. target = stream->EnsureSpace(target);
  2782. target = ::_pbi::WireFormatLite::WriteInt32ToArray(
  2783. 7, this->_internal_changedmode(), target);
  2784. }
  2785. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2786. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  2787. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  2788. }
  2789. // @@protoc_insertion_point(serialize_to_array_end:NavMessage.NewAction)
  2790. return target;
  2791. }
  2792. ::size_t NewAction::ByteSizeLong() const {
  2793. // @@protoc_insertion_point(message_byte_size_start:NavMessage.NewAction)
  2794. ::size_t total_size = 0;
  2795. ::uint32_t cached_has_bits = 0;
  2796. // Prevent compiler warnings about cached_has_bits being unused
  2797. (void) cached_has_bits;
  2798. // repeated .NavMessage.PathNode pathNodes = 5;
  2799. total_size += 1UL * this->_internal_pathnodes_size();
  2800. for (const auto& msg : this->_internal_pathnodes()) {
  2801. total_size +=
  2802. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  2803. }
  2804. cached_has_bits = _impl_._has_bits_[0];
  2805. if (cached_has_bits & 0x00000007u) {
  2806. // .NavMessage.PathNode spaceNode = 2;
  2807. if (cached_has_bits & 0x00000001u) {
  2808. total_size += 1 +
  2809. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  2810. *_impl_.spacenode_);
  2811. }
  2812. // .NavMessage.PathNode passNode = 3;
  2813. if (cached_has_bits & 0x00000002u) {
  2814. total_size += 1 +
  2815. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  2816. *_impl_.passnode_);
  2817. }
  2818. // .NavMessage.PathNode streetNode = 4;
  2819. if (cached_has_bits & 0x00000004u) {
  2820. total_size += 1 +
  2821. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  2822. *_impl_.streetnode_);
  2823. }
  2824. }
  2825. // int32 type = 1;
  2826. if (this->_internal_type() != 0) {
  2827. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
  2828. this->_internal_type());
  2829. }
  2830. // float wheelbase = 6;
  2831. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  2832. float tmp_wheelbase = this->_internal_wheelbase();
  2833. ::uint32_t raw_wheelbase;
  2834. memcpy(&raw_wheelbase, &tmp_wheelbase, sizeof(tmp_wheelbase));
  2835. if (raw_wheelbase != 0) {
  2836. total_size += 5;
  2837. }
  2838. // int32 changedMode = 7;
  2839. if (this->_internal_changedmode() != 0) {
  2840. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
  2841. this->_internal_changedmode());
  2842. }
  2843. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  2844. }
  2845. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData NewAction::_class_data_ = {
  2846. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  2847. NewAction::MergeImpl
  2848. };
  2849. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*NewAction::GetClassData() const { return &_class_data_; }
  2850. void NewAction::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
  2851. auto* const _this = static_cast<NewAction*>(&to_msg);
  2852. auto& from = static_cast<const NewAction&>(from_msg);
  2853. // @@protoc_insertion_point(class_specific_merge_from_start:NavMessage.NewAction)
  2854. ABSL_DCHECK_NE(&from, _this);
  2855. ::uint32_t cached_has_bits = 0;
  2856. (void) cached_has_bits;
  2857. _this->_internal_mutable_pathnodes()->MergeFrom(from._internal_pathnodes());
  2858. cached_has_bits = from._impl_._has_bits_[0];
  2859. if (cached_has_bits & 0x00000007u) {
  2860. if (cached_has_bits & 0x00000001u) {
  2861. _this->_internal_mutable_spacenode()->::NavMessage::PathNode::MergeFrom(
  2862. from._internal_spacenode());
  2863. }
  2864. if (cached_has_bits & 0x00000002u) {
  2865. _this->_internal_mutable_passnode()->::NavMessage::PathNode::MergeFrom(
  2866. from._internal_passnode());
  2867. }
  2868. if (cached_has_bits & 0x00000004u) {
  2869. _this->_internal_mutable_streetnode()->::NavMessage::PathNode::MergeFrom(
  2870. from._internal_streetnode());
  2871. }
  2872. }
  2873. if (from._internal_type() != 0) {
  2874. _this->_internal_set_type(from._internal_type());
  2875. }
  2876. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  2877. float tmp_wheelbase = from._internal_wheelbase();
  2878. ::uint32_t raw_wheelbase;
  2879. memcpy(&raw_wheelbase, &tmp_wheelbase, sizeof(tmp_wheelbase));
  2880. if (raw_wheelbase != 0) {
  2881. _this->_internal_set_wheelbase(from._internal_wheelbase());
  2882. }
  2883. if (from._internal_changedmode() != 0) {
  2884. _this->_internal_set_changedmode(from._internal_changedmode());
  2885. }
  2886. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2887. }
  2888. void NewAction::CopyFrom(const NewAction& from) {
  2889. // @@protoc_insertion_point(class_specific_copy_from_start:NavMessage.NewAction)
  2890. if (&from == this) return;
  2891. Clear();
  2892. MergeFrom(from);
  2893. }
  2894. bool NewAction::IsInitialized() const {
  2895. return true;
  2896. }
  2897. void NewAction::InternalSwap(NewAction* other) {
  2898. using std::swap;
  2899. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2900. swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  2901. _internal_mutable_pathnodes()->InternalSwap(other->_internal_mutable_pathnodes());
  2902. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  2903. PROTOBUF_FIELD_OFFSET(NewAction, _impl_.changedmode_)
  2904. + sizeof(NewAction::_impl_.changedmode_)
  2905. - PROTOBUF_FIELD_OFFSET(NewAction, _impl_.spacenode_)>(
  2906. reinterpret_cast<char*>(&_impl_.spacenode_),
  2907. reinterpret_cast<char*>(&other->_impl_.spacenode_));
  2908. }
  2909. ::PROTOBUF_NAMESPACE_ID::Metadata NewAction::GetMetadata() const {
  2910. return ::_pbi::AssignDescriptors(
  2911. &descriptor_table_message_2eproto_getter, &descriptor_table_message_2eproto_once,
  2912. file_level_metadata_message_2eproto[6]);
  2913. }
  2914. // ===================================================================
  2915. class NavCmd::_Internal {
  2916. public:
  2917. };
  2918. NavCmd::NavCmd(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  2919. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  2920. SharedCtor(arena);
  2921. // @@protoc_insertion_point(arena_constructor:NavMessage.NavCmd)
  2922. }
  2923. NavCmd::NavCmd(const NavCmd& from)
  2924. : ::PROTOBUF_NAMESPACE_ID::Message() {
  2925. NavCmd* const _this = this; (void)_this;
  2926. new (&_impl_) Impl_{
  2927. decltype(_impl_.newactions_){from._impl_.newactions_}
  2928. , decltype(_impl_.key_) {}
  2929. , decltype(_impl_.action_) {}
  2930. , /*decltype(_impl_._cached_size_)*/{}};
  2931. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2932. _impl_.key_.InitDefault();
  2933. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2934. _impl_.key_.Set("", GetArenaForAllocation());
  2935. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2936. if (!from._internal_key().empty()) {
  2937. _this->_impl_.key_.Set(from._internal_key(), _this->GetArenaForAllocation());
  2938. }
  2939. _this->_impl_.action_ = from._impl_.action_;
  2940. // @@protoc_insertion_point(copy_constructor:NavMessage.NavCmd)
  2941. }
  2942. inline void NavCmd::SharedCtor(::_pb::Arena* arena) {
  2943. (void)arena;
  2944. new (&_impl_) Impl_{
  2945. decltype(_impl_.newactions_){arena}
  2946. , decltype(_impl_.key_) {}
  2947. , decltype(_impl_.action_) { 0 }
  2948. , /*decltype(_impl_._cached_size_)*/{}
  2949. };
  2950. _impl_.key_.InitDefault();
  2951. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2952. _impl_.key_.Set("", GetArenaForAllocation());
  2953. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2954. }
  2955. NavCmd::~NavCmd() {
  2956. // @@protoc_insertion_point(destructor:NavMessage.NavCmd)
  2957. if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  2958. (void)arena;
  2959. return;
  2960. }
  2961. SharedDtor();
  2962. }
  2963. inline void NavCmd::SharedDtor() {
  2964. ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  2965. _internal_mutable_newactions()->~RepeatedPtrField();
  2966. _impl_.key_.Destroy();
  2967. }
  2968. void NavCmd::SetCachedSize(int size) const {
  2969. _impl_._cached_size_.Set(size);
  2970. }
  2971. void NavCmd::Clear() {
  2972. // @@protoc_insertion_point(message_clear_start:NavMessage.NavCmd)
  2973. ::uint32_t cached_has_bits = 0;
  2974. // Prevent compiler warnings about cached_has_bits being unused
  2975. (void) cached_has_bits;
  2976. _internal_mutable_newactions()->Clear();
  2977. _impl_.key_.ClearToEmpty();
  2978. _impl_.action_ = 0;
  2979. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2980. }
  2981. const char* NavCmd::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
  2982. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  2983. while (!ctx->Done(&ptr)) {
  2984. ::uint32_t tag;
  2985. ptr = ::_pbi::ReadTag(ptr, &tag);
  2986. switch (tag >> 3) {
  2987. // int32 action = 1;
  2988. case 1:
  2989. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
  2990. _impl_.action_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2991. CHK_(ptr);
  2992. } else {
  2993. goto handle_unusual;
  2994. }
  2995. continue;
  2996. // string key = 2;
  2997. case 2:
  2998. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
  2999. auto str = _internal_mutable_key();
  3000. ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
  3001. CHK_(ptr);
  3002. CHK_(::_pbi::VerifyUTF8(str, "NavMessage.NavCmd.key"));
  3003. } else {
  3004. goto handle_unusual;
  3005. }
  3006. continue;
  3007. // repeated .NavMessage.NewAction newActions = 5;
  3008. case 5:
  3009. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) {
  3010. ptr -= 1;
  3011. do {
  3012. ptr += 1;
  3013. ptr = ctx->ParseMessage(_internal_add_newactions(), ptr);
  3014. CHK_(ptr);
  3015. if (!ctx->DataAvailable(ptr)) break;
  3016. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr));
  3017. } else {
  3018. goto handle_unusual;
  3019. }
  3020. continue;
  3021. default:
  3022. goto handle_unusual;
  3023. } // switch
  3024. handle_unusual:
  3025. if ((tag == 0) || ((tag & 7) == 4)) {
  3026. CHK_(ptr);
  3027. ctx->SetLastTag(tag);
  3028. goto message_done;
  3029. }
  3030. ptr = UnknownFieldParse(
  3031. tag,
  3032. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3033. ptr, ctx);
  3034. CHK_(ptr != nullptr);
  3035. } // while
  3036. message_done:
  3037. return ptr;
  3038. failure:
  3039. ptr = nullptr;
  3040. goto message_done;
  3041. #undef CHK_
  3042. }
  3043. ::uint8_t* NavCmd::_InternalSerialize(
  3044. ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  3045. // @@protoc_insertion_point(serialize_to_array_start:NavMessage.NavCmd)
  3046. ::uint32_t cached_has_bits = 0;
  3047. (void) cached_has_bits;
  3048. // int32 action = 1;
  3049. if (this->_internal_action() != 0) {
  3050. target = stream->EnsureSpace(target);
  3051. target = ::_pbi::WireFormatLite::WriteInt32ToArray(
  3052. 1, this->_internal_action(), target);
  3053. }
  3054. // string key = 2;
  3055. if (!this->_internal_key().empty()) {
  3056. const std::string& _s = this->_internal_key();
  3057. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  3058. _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "NavMessage.NavCmd.key");
  3059. target = stream->WriteStringMaybeAliased(2, _s, target);
  3060. }
  3061. // repeated .NavMessage.NewAction newActions = 5;
  3062. for (unsigned i = 0,
  3063. n = static_cast<unsigned>(this->_internal_newactions_size()); i < n; i++) {
  3064. const auto& repfield = this->_internal_newactions(i);
  3065. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  3066. InternalWriteMessage(5, repfield, repfield.GetCachedSize(), target, stream);
  3067. }
  3068. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  3069. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  3070. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  3071. }
  3072. // @@protoc_insertion_point(serialize_to_array_end:NavMessage.NavCmd)
  3073. return target;
  3074. }
  3075. ::size_t NavCmd::ByteSizeLong() const {
  3076. // @@protoc_insertion_point(message_byte_size_start:NavMessage.NavCmd)
  3077. ::size_t total_size = 0;
  3078. ::uint32_t cached_has_bits = 0;
  3079. // Prevent compiler warnings about cached_has_bits being unused
  3080. (void) cached_has_bits;
  3081. // repeated .NavMessage.NewAction newActions = 5;
  3082. total_size += 1UL * this->_internal_newactions_size();
  3083. for (const auto& msg : this->_internal_newactions()) {
  3084. total_size +=
  3085. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  3086. }
  3087. // string key = 2;
  3088. if (!this->_internal_key().empty()) {
  3089. total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  3090. this->_internal_key());
  3091. }
  3092. // int32 action = 1;
  3093. if (this->_internal_action() != 0) {
  3094. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
  3095. this->_internal_action());
  3096. }
  3097. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  3098. }
  3099. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData NavCmd::_class_data_ = {
  3100. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  3101. NavCmd::MergeImpl
  3102. };
  3103. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*NavCmd::GetClassData() const { return &_class_data_; }
  3104. void NavCmd::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
  3105. auto* const _this = static_cast<NavCmd*>(&to_msg);
  3106. auto& from = static_cast<const NavCmd&>(from_msg);
  3107. // @@protoc_insertion_point(class_specific_merge_from_start:NavMessage.NavCmd)
  3108. ABSL_DCHECK_NE(&from, _this);
  3109. ::uint32_t cached_has_bits = 0;
  3110. (void) cached_has_bits;
  3111. _this->_internal_mutable_newactions()->MergeFrom(from._internal_newactions());
  3112. if (!from._internal_key().empty()) {
  3113. _this->_internal_set_key(from._internal_key());
  3114. }
  3115. if (from._internal_action() != 0) {
  3116. _this->_internal_set_action(from._internal_action());
  3117. }
  3118. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3119. }
  3120. void NavCmd::CopyFrom(const NavCmd& from) {
  3121. // @@protoc_insertion_point(class_specific_copy_from_start:NavMessage.NavCmd)
  3122. if (&from == this) return;
  3123. Clear();
  3124. MergeFrom(from);
  3125. }
  3126. bool NavCmd::IsInitialized() const {
  3127. return true;
  3128. }
  3129. void NavCmd::InternalSwap(NavCmd* other) {
  3130. using std::swap;
  3131. auto* lhs_arena = GetArenaForAllocation();
  3132. auto* rhs_arena = other->GetArenaForAllocation();
  3133. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3134. _internal_mutable_newactions()->InternalSwap(other->_internal_mutable_newactions());
  3135. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.key_, lhs_arena,
  3136. &other->_impl_.key_, rhs_arena);
  3137. swap(_impl_.action_, other->_impl_.action_);
  3138. }
  3139. ::PROTOBUF_NAMESPACE_ID::Metadata NavCmd::GetMetadata() const {
  3140. return ::_pbi::AssignDescriptors(
  3141. &descriptor_table_message_2eproto_getter, &descriptor_table_message_2eproto_once,
  3142. file_level_metadata_message_2eproto[7]);
  3143. }
  3144. // ===================================================================
  3145. class NavResponse::_Internal {
  3146. public:
  3147. };
  3148. NavResponse::NavResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  3149. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  3150. SharedCtor(arena);
  3151. // @@protoc_insertion_point(arena_constructor:NavMessage.NavResponse)
  3152. }
  3153. NavResponse::NavResponse(const NavResponse& from)
  3154. : ::PROTOBUF_NAMESPACE_ID::Message() {
  3155. NavResponse* const _this = this; (void)_this;
  3156. new (&_impl_) Impl_{
  3157. decltype(_impl_.info_) {}
  3158. , decltype(_impl_.ret_) {}
  3159. , /*decltype(_impl_._cached_size_)*/{}};
  3160. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3161. _impl_.info_.InitDefault();
  3162. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3163. _impl_.info_.Set("", GetArenaForAllocation());
  3164. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3165. if (!from._internal_info().empty()) {
  3166. _this->_impl_.info_.Set(from._internal_info(), _this->GetArenaForAllocation());
  3167. }
  3168. _this->_impl_.ret_ = from._impl_.ret_;
  3169. // @@protoc_insertion_point(copy_constructor:NavMessage.NavResponse)
  3170. }
  3171. inline void NavResponse::SharedCtor(::_pb::Arena* arena) {
  3172. (void)arena;
  3173. new (&_impl_) Impl_{
  3174. decltype(_impl_.info_) {}
  3175. , decltype(_impl_.ret_) { 0 }
  3176. , /*decltype(_impl_._cached_size_)*/{}
  3177. };
  3178. _impl_.info_.InitDefault();
  3179. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3180. _impl_.info_.Set("", GetArenaForAllocation());
  3181. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3182. }
  3183. NavResponse::~NavResponse() {
  3184. // @@protoc_insertion_point(destructor:NavMessage.NavResponse)
  3185. if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  3186. (void)arena;
  3187. return;
  3188. }
  3189. SharedDtor();
  3190. }
  3191. inline void NavResponse::SharedDtor() {
  3192. ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  3193. _impl_.info_.Destroy();
  3194. }
  3195. void NavResponse::SetCachedSize(int size) const {
  3196. _impl_._cached_size_.Set(size);
  3197. }
  3198. void NavResponse::Clear() {
  3199. // @@protoc_insertion_point(message_clear_start:NavMessage.NavResponse)
  3200. ::uint32_t cached_has_bits = 0;
  3201. // Prevent compiler warnings about cached_has_bits being unused
  3202. (void) cached_has_bits;
  3203. _impl_.info_.ClearToEmpty();
  3204. _impl_.ret_ = 0;
  3205. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3206. }
  3207. const char* NavResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
  3208. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  3209. while (!ctx->Done(&ptr)) {
  3210. ::uint32_t tag;
  3211. ptr = ::_pbi::ReadTag(ptr, &tag);
  3212. switch (tag >> 3) {
  3213. // int32 ret = 1;
  3214. case 1:
  3215. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
  3216. _impl_.ret_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3217. CHK_(ptr);
  3218. } else {
  3219. goto handle_unusual;
  3220. }
  3221. continue;
  3222. // string info = 2;
  3223. case 2:
  3224. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
  3225. auto str = _internal_mutable_info();
  3226. ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
  3227. CHK_(ptr);
  3228. CHK_(::_pbi::VerifyUTF8(str, "NavMessage.NavResponse.info"));
  3229. } else {
  3230. goto handle_unusual;
  3231. }
  3232. continue;
  3233. default:
  3234. goto handle_unusual;
  3235. } // switch
  3236. handle_unusual:
  3237. if ((tag == 0) || ((tag & 7) == 4)) {
  3238. CHK_(ptr);
  3239. ctx->SetLastTag(tag);
  3240. goto message_done;
  3241. }
  3242. ptr = UnknownFieldParse(
  3243. tag,
  3244. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3245. ptr, ctx);
  3246. CHK_(ptr != nullptr);
  3247. } // while
  3248. message_done:
  3249. return ptr;
  3250. failure:
  3251. ptr = nullptr;
  3252. goto message_done;
  3253. #undef CHK_
  3254. }
  3255. ::uint8_t* NavResponse::_InternalSerialize(
  3256. ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  3257. // @@protoc_insertion_point(serialize_to_array_start:NavMessage.NavResponse)
  3258. ::uint32_t cached_has_bits = 0;
  3259. (void) cached_has_bits;
  3260. // int32 ret = 1;
  3261. if (this->_internal_ret() != 0) {
  3262. target = stream->EnsureSpace(target);
  3263. target = ::_pbi::WireFormatLite::WriteInt32ToArray(
  3264. 1, this->_internal_ret(), target);
  3265. }
  3266. // string info = 2;
  3267. if (!this->_internal_info().empty()) {
  3268. const std::string& _s = this->_internal_info();
  3269. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  3270. _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "NavMessage.NavResponse.info");
  3271. target = stream->WriteStringMaybeAliased(2, _s, target);
  3272. }
  3273. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  3274. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  3275. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  3276. }
  3277. // @@protoc_insertion_point(serialize_to_array_end:NavMessage.NavResponse)
  3278. return target;
  3279. }
  3280. ::size_t NavResponse::ByteSizeLong() const {
  3281. // @@protoc_insertion_point(message_byte_size_start:NavMessage.NavResponse)
  3282. ::size_t total_size = 0;
  3283. ::uint32_t cached_has_bits = 0;
  3284. // Prevent compiler warnings about cached_has_bits being unused
  3285. (void) cached_has_bits;
  3286. // string info = 2;
  3287. if (!this->_internal_info().empty()) {
  3288. total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  3289. this->_internal_info());
  3290. }
  3291. // int32 ret = 1;
  3292. if (this->_internal_ret() != 0) {
  3293. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
  3294. this->_internal_ret());
  3295. }
  3296. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  3297. }
  3298. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData NavResponse::_class_data_ = {
  3299. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  3300. NavResponse::MergeImpl
  3301. };
  3302. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*NavResponse::GetClassData() const { return &_class_data_; }
  3303. void NavResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
  3304. auto* const _this = static_cast<NavResponse*>(&to_msg);
  3305. auto& from = static_cast<const NavResponse&>(from_msg);
  3306. // @@protoc_insertion_point(class_specific_merge_from_start:NavMessage.NavResponse)
  3307. ABSL_DCHECK_NE(&from, _this);
  3308. ::uint32_t cached_has_bits = 0;
  3309. (void) cached_has_bits;
  3310. if (!from._internal_info().empty()) {
  3311. _this->_internal_set_info(from._internal_info());
  3312. }
  3313. if (from._internal_ret() != 0) {
  3314. _this->_internal_set_ret(from._internal_ret());
  3315. }
  3316. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3317. }
  3318. void NavResponse::CopyFrom(const NavResponse& from) {
  3319. // @@protoc_insertion_point(class_specific_copy_from_start:NavMessage.NavResponse)
  3320. if (&from == this) return;
  3321. Clear();
  3322. MergeFrom(from);
  3323. }
  3324. bool NavResponse::IsInitialized() const {
  3325. return true;
  3326. }
  3327. void NavResponse::InternalSwap(NavResponse* other) {
  3328. using std::swap;
  3329. auto* lhs_arena = GetArenaForAllocation();
  3330. auto* rhs_arena = other->GetArenaForAllocation();
  3331. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3332. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.info_, lhs_arena,
  3333. &other->_impl_.info_, rhs_arena);
  3334. swap(_impl_.ret_, other->_impl_.ret_);
  3335. }
  3336. ::PROTOBUF_NAMESPACE_ID::Metadata NavResponse::GetMetadata() const {
  3337. return ::_pbi::AssignDescriptors(
  3338. &descriptor_table_message_2eproto_getter, &descriptor_table_message_2eproto_once,
  3339. file_level_metadata_message_2eproto[8]);
  3340. }
  3341. // ===================================================================
  3342. class ManualCmd::_Internal {
  3343. public:
  3344. };
  3345. ManualCmd::ManualCmd(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  3346. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  3347. SharedCtor(arena);
  3348. // @@protoc_insertion_point(arena_constructor:NavMessage.ManualCmd)
  3349. }
  3350. ManualCmd::ManualCmd(const ManualCmd& from)
  3351. : ::PROTOBUF_NAMESPACE_ID::Message() {
  3352. ManualCmd* const _this = this; (void)_this;
  3353. new (&_impl_) Impl_{
  3354. decltype(_impl_.key_) {}
  3355. , decltype(_impl_.operation_type_) {}
  3356. , decltype(_impl_.velocity_) {}
  3357. , /*decltype(_impl_._cached_size_)*/{}};
  3358. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3359. _impl_.key_.InitDefault();
  3360. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3361. _impl_.key_.Set("", GetArenaForAllocation());
  3362. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3363. if (!from._internal_key().empty()) {
  3364. _this->_impl_.key_.Set(from._internal_key(), _this->GetArenaForAllocation());
  3365. }
  3366. ::memcpy(&_impl_.operation_type_, &from._impl_.operation_type_,
  3367. static_cast<::size_t>(reinterpret_cast<char*>(&_impl_.velocity_) -
  3368. reinterpret_cast<char*>(&_impl_.operation_type_)) + sizeof(_impl_.velocity_));
  3369. // @@protoc_insertion_point(copy_constructor:NavMessage.ManualCmd)
  3370. }
  3371. inline void ManualCmd::SharedCtor(::_pb::Arena* arena) {
  3372. (void)arena;
  3373. new (&_impl_) Impl_{
  3374. decltype(_impl_.key_) {}
  3375. , decltype(_impl_.operation_type_) { 0 }
  3376. , decltype(_impl_.velocity_) { 0 }
  3377. , /*decltype(_impl_._cached_size_)*/{}
  3378. };
  3379. _impl_.key_.InitDefault();
  3380. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3381. _impl_.key_.Set("", GetArenaForAllocation());
  3382. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3383. }
  3384. ManualCmd::~ManualCmd() {
  3385. // @@protoc_insertion_point(destructor:NavMessage.ManualCmd)
  3386. if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  3387. (void)arena;
  3388. return;
  3389. }
  3390. SharedDtor();
  3391. }
  3392. inline void ManualCmd::SharedDtor() {
  3393. ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  3394. _impl_.key_.Destroy();
  3395. }
  3396. void ManualCmd::SetCachedSize(int size) const {
  3397. _impl_._cached_size_.Set(size);
  3398. }
  3399. void ManualCmd::Clear() {
  3400. // @@protoc_insertion_point(message_clear_start:NavMessage.ManualCmd)
  3401. ::uint32_t cached_has_bits = 0;
  3402. // Prevent compiler warnings about cached_has_bits being unused
  3403. (void) cached_has_bits;
  3404. _impl_.key_.ClearToEmpty();
  3405. ::memset(&_impl_.operation_type_, 0, static_cast<::size_t>(
  3406. reinterpret_cast<char*>(&_impl_.velocity_) -
  3407. reinterpret_cast<char*>(&_impl_.operation_type_)) + sizeof(_impl_.velocity_));
  3408. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3409. }
  3410. const char* ManualCmd::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
  3411. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  3412. while (!ctx->Done(&ptr)) {
  3413. ::uint32_t tag;
  3414. ptr = ::_pbi::ReadTag(ptr, &tag);
  3415. switch (tag >> 3) {
  3416. // string key = 1;
  3417. case 1:
  3418. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
  3419. auto str = _internal_mutable_key();
  3420. ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
  3421. CHK_(ptr);
  3422. CHK_(::_pbi::VerifyUTF8(str, "NavMessage.ManualCmd.key"));
  3423. } else {
  3424. goto handle_unusual;
  3425. }
  3426. continue;
  3427. // int32 operation_type = 2;
  3428. case 2:
  3429. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
  3430. _impl_.operation_type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3431. CHK_(ptr);
  3432. } else {
  3433. goto handle_unusual;
  3434. }
  3435. continue;
  3436. // float velocity = 3;
  3437. case 3:
  3438. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 29)) {
  3439. _impl_.velocity_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  3440. ptr += sizeof(float);
  3441. } else {
  3442. goto handle_unusual;
  3443. }
  3444. continue;
  3445. default:
  3446. goto handle_unusual;
  3447. } // switch
  3448. handle_unusual:
  3449. if ((tag == 0) || ((tag & 7) == 4)) {
  3450. CHK_(ptr);
  3451. ctx->SetLastTag(tag);
  3452. goto message_done;
  3453. }
  3454. ptr = UnknownFieldParse(
  3455. tag,
  3456. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3457. ptr, ctx);
  3458. CHK_(ptr != nullptr);
  3459. } // while
  3460. message_done:
  3461. return ptr;
  3462. failure:
  3463. ptr = nullptr;
  3464. goto message_done;
  3465. #undef CHK_
  3466. }
  3467. ::uint8_t* ManualCmd::_InternalSerialize(
  3468. ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  3469. // @@protoc_insertion_point(serialize_to_array_start:NavMessage.ManualCmd)
  3470. ::uint32_t cached_has_bits = 0;
  3471. (void) cached_has_bits;
  3472. // string key = 1;
  3473. if (!this->_internal_key().empty()) {
  3474. const std::string& _s = this->_internal_key();
  3475. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  3476. _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "NavMessage.ManualCmd.key");
  3477. target = stream->WriteStringMaybeAliased(1, _s, target);
  3478. }
  3479. // int32 operation_type = 2;
  3480. if (this->_internal_operation_type() != 0) {
  3481. target = stream->EnsureSpace(target);
  3482. target = ::_pbi::WireFormatLite::WriteInt32ToArray(
  3483. 2, this->_internal_operation_type(), target);
  3484. }
  3485. // float velocity = 3;
  3486. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  3487. float tmp_velocity = this->_internal_velocity();
  3488. ::uint32_t raw_velocity;
  3489. memcpy(&raw_velocity, &tmp_velocity, sizeof(tmp_velocity));
  3490. if (raw_velocity != 0) {
  3491. target = stream->EnsureSpace(target);
  3492. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  3493. 3, this->_internal_velocity(), target);
  3494. }
  3495. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  3496. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  3497. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  3498. }
  3499. // @@protoc_insertion_point(serialize_to_array_end:NavMessage.ManualCmd)
  3500. return target;
  3501. }
  3502. ::size_t ManualCmd::ByteSizeLong() const {
  3503. // @@protoc_insertion_point(message_byte_size_start:NavMessage.ManualCmd)
  3504. ::size_t total_size = 0;
  3505. ::uint32_t cached_has_bits = 0;
  3506. // Prevent compiler warnings about cached_has_bits being unused
  3507. (void) cached_has_bits;
  3508. // string key = 1;
  3509. if (!this->_internal_key().empty()) {
  3510. total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  3511. this->_internal_key());
  3512. }
  3513. // int32 operation_type = 2;
  3514. if (this->_internal_operation_type() != 0) {
  3515. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
  3516. this->_internal_operation_type());
  3517. }
  3518. // float velocity = 3;
  3519. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  3520. float tmp_velocity = this->_internal_velocity();
  3521. ::uint32_t raw_velocity;
  3522. memcpy(&raw_velocity, &tmp_velocity, sizeof(tmp_velocity));
  3523. if (raw_velocity != 0) {
  3524. total_size += 5;
  3525. }
  3526. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  3527. }
  3528. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ManualCmd::_class_data_ = {
  3529. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  3530. ManualCmd::MergeImpl
  3531. };
  3532. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ManualCmd::GetClassData() const { return &_class_data_; }
  3533. void ManualCmd::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
  3534. auto* const _this = static_cast<ManualCmd*>(&to_msg);
  3535. auto& from = static_cast<const ManualCmd&>(from_msg);
  3536. // @@protoc_insertion_point(class_specific_merge_from_start:NavMessage.ManualCmd)
  3537. ABSL_DCHECK_NE(&from, _this);
  3538. ::uint32_t cached_has_bits = 0;
  3539. (void) cached_has_bits;
  3540. if (!from._internal_key().empty()) {
  3541. _this->_internal_set_key(from._internal_key());
  3542. }
  3543. if (from._internal_operation_type() != 0) {
  3544. _this->_internal_set_operation_type(from._internal_operation_type());
  3545. }
  3546. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  3547. float tmp_velocity = from._internal_velocity();
  3548. ::uint32_t raw_velocity;
  3549. memcpy(&raw_velocity, &tmp_velocity, sizeof(tmp_velocity));
  3550. if (raw_velocity != 0) {
  3551. _this->_internal_set_velocity(from._internal_velocity());
  3552. }
  3553. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3554. }
  3555. void ManualCmd::CopyFrom(const ManualCmd& from) {
  3556. // @@protoc_insertion_point(class_specific_copy_from_start:NavMessage.ManualCmd)
  3557. if (&from == this) return;
  3558. Clear();
  3559. MergeFrom(from);
  3560. }
  3561. bool ManualCmd::IsInitialized() const {
  3562. return true;
  3563. }
  3564. void ManualCmd::InternalSwap(ManualCmd* other) {
  3565. using std::swap;
  3566. auto* lhs_arena = GetArenaForAllocation();
  3567. auto* rhs_arena = other->GetArenaForAllocation();
  3568. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3569. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.key_, lhs_arena,
  3570. &other->_impl_.key_, rhs_arena);
  3571. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  3572. PROTOBUF_FIELD_OFFSET(ManualCmd, _impl_.velocity_)
  3573. + sizeof(ManualCmd::_impl_.velocity_)
  3574. - PROTOBUF_FIELD_OFFSET(ManualCmd, _impl_.operation_type_)>(
  3575. reinterpret_cast<char*>(&_impl_.operation_type_),
  3576. reinterpret_cast<char*>(&other->_impl_.operation_type_));
  3577. }
  3578. ::PROTOBUF_NAMESPACE_ID::Metadata ManualCmd::GetMetadata() const {
  3579. return ::_pbi::AssignDescriptors(
  3580. &descriptor_table_message_2eproto_getter, &descriptor_table_message_2eproto_once,
  3581. file_level_metadata_message_2eproto[9]);
  3582. }
  3583. // ===================================================================
  3584. class NavStatu::_Internal {
  3585. public:
  3586. using HasBits = decltype(std::declval<NavStatu>()._impl_._has_bits_);
  3587. static constexpr ::int32_t kHasBitsOffset =
  3588. 8 * PROTOBUF_FIELD_OFFSET(NavStatu, _impl_._has_bits_);
  3589. static const ::NavMessage::LidarOdomStatu& odom(const NavStatu* msg);
  3590. static void set_has_odom(HasBits* has_bits) {
  3591. (*has_bits)[0] |= 1u;
  3592. }
  3593. static const ::NavMessage::Trajectory& selected_traj(const NavStatu* msg);
  3594. static void set_has_selected_traj(HasBits* has_bits) {
  3595. (*has_bits)[0] |= 2u;
  3596. }
  3597. static const ::NavMessage::Trajectory& predict_traj(const NavStatu* msg);
  3598. static void set_has_predict_traj(HasBits* has_bits) {
  3599. (*has_bits)[0] |= 4u;
  3600. }
  3601. };
  3602. const ::NavMessage::LidarOdomStatu&
  3603. NavStatu::_Internal::odom(const NavStatu* msg) {
  3604. return *msg->_impl_.odom_;
  3605. }
  3606. const ::NavMessage::Trajectory&
  3607. NavStatu::_Internal::selected_traj(const NavStatu* msg) {
  3608. return *msg->_impl_.selected_traj_;
  3609. }
  3610. const ::NavMessage::Trajectory&
  3611. NavStatu::_Internal::predict_traj(const NavStatu* msg) {
  3612. return *msg->_impl_.predict_traj_;
  3613. }
  3614. NavStatu::NavStatu(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  3615. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  3616. SharedCtor(arena);
  3617. // @@protoc_insertion_point(arena_constructor:NavMessage.NavStatu)
  3618. }
  3619. NavStatu::NavStatu(const NavStatu& from)
  3620. : ::PROTOBUF_NAMESPACE_ID::Message() {
  3621. NavStatu* const _this = this; (void)_this;
  3622. new (&_impl_) Impl_{
  3623. decltype(_impl_._has_bits_){from._impl_._has_bits_}
  3624. , /*decltype(_impl_._cached_size_)*/{}
  3625. , decltype(_impl_.key_) {}
  3626. , decltype(_impl_.space_id_) {}
  3627. , decltype(_impl_.odom_){nullptr}
  3628. , decltype(_impl_.selected_traj_){nullptr}
  3629. , decltype(_impl_.predict_traj_){nullptr}
  3630. , decltype(_impl_.statu_) {}
  3631. , decltype(_impl_.move_mode_) {}
  3632. , decltype(_impl_.main_agv_) {}
  3633. , decltype(_impl_.in_space_) {}
  3634. };
  3635. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3636. _impl_.key_.InitDefault();
  3637. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3638. _impl_.key_.Set("", GetArenaForAllocation());
  3639. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3640. if (!from._internal_key().empty()) {
  3641. _this->_impl_.key_.Set(from._internal_key(), _this->GetArenaForAllocation());
  3642. }
  3643. _impl_.space_id_.InitDefault();
  3644. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3645. _impl_.space_id_.Set("", GetArenaForAllocation());
  3646. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3647. if (!from._internal_space_id().empty()) {
  3648. _this->_impl_.space_id_.Set(from._internal_space_id(), _this->GetArenaForAllocation());
  3649. }
  3650. if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
  3651. _this->_impl_.odom_ = new ::NavMessage::LidarOdomStatu(*from._impl_.odom_);
  3652. }
  3653. if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) {
  3654. _this->_impl_.selected_traj_ = new ::NavMessage::Trajectory(*from._impl_.selected_traj_);
  3655. }
  3656. if ((from._impl_._has_bits_[0] & 0x00000004u) != 0) {
  3657. _this->_impl_.predict_traj_ = new ::NavMessage::Trajectory(*from._impl_.predict_traj_);
  3658. }
  3659. ::memcpy(&_impl_.statu_, &from._impl_.statu_,
  3660. static_cast<::size_t>(reinterpret_cast<char*>(&_impl_.in_space_) -
  3661. reinterpret_cast<char*>(&_impl_.statu_)) + sizeof(_impl_.in_space_));
  3662. // @@protoc_insertion_point(copy_constructor:NavMessage.NavStatu)
  3663. }
  3664. inline void NavStatu::SharedCtor(::_pb::Arena* arena) {
  3665. (void)arena;
  3666. new (&_impl_) Impl_{
  3667. decltype(_impl_._has_bits_){}
  3668. , /*decltype(_impl_._cached_size_)*/{}
  3669. , decltype(_impl_.key_) {}
  3670. , decltype(_impl_.space_id_) {}
  3671. , decltype(_impl_.odom_){nullptr}
  3672. , decltype(_impl_.selected_traj_){nullptr}
  3673. , decltype(_impl_.predict_traj_){nullptr}
  3674. , decltype(_impl_.statu_) { 0 }
  3675. , decltype(_impl_.move_mode_) { 0 }
  3676. , decltype(_impl_.main_agv_) { false }
  3677. , decltype(_impl_.in_space_) { false }
  3678. };
  3679. _impl_.key_.InitDefault();
  3680. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3681. _impl_.key_.Set("", GetArenaForAllocation());
  3682. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3683. _impl_.space_id_.InitDefault();
  3684. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3685. _impl_.space_id_.Set("", GetArenaForAllocation());
  3686. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3687. }
  3688. NavStatu::~NavStatu() {
  3689. // @@protoc_insertion_point(destructor:NavMessage.NavStatu)
  3690. if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  3691. (void)arena;
  3692. return;
  3693. }
  3694. SharedDtor();
  3695. }
  3696. inline void NavStatu::SharedDtor() {
  3697. ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  3698. _impl_.key_.Destroy();
  3699. _impl_.space_id_.Destroy();
  3700. if (this != internal_default_instance()) delete _impl_.odom_;
  3701. if (this != internal_default_instance()) delete _impl_.selected_traj_;
  3702. if (this != internal_default_instance()) delete _impl_.predict_traj_;
  3703. }
  3704. void NavStatu::SetCachedSize(int size) const {
  3705. _impl_._cached_size_.Set(size);
  3706. }
  3707. void NavStatu::Clear() {
  3708. // @@protoc_insertion_point(message_clear_start:NavMessage.NavStatu)
  3709. ::uint32_t cached_has_bits = 0;
  3710. // Prevent compiler warnings about cached_has_bits being unused
  3711. (void) cached_has_bits;
  3712. _impl_.key_.ClearToEmpty();
  3713. _impl_.space_id_.ClearToEmpty();
  3714. cached_has_bits = _impl_._has_bits_[0];
  3715. if (cached_has_bits & 0x00000007u) {
  3716. if (cached_has_bits & 0x00000001u) {
  3717. ABSL_DCHECK(_impl_.odom_ != nullptr);
  3718. _impl_.odom_->Clear();
  3719. }
  3720. if (cached_has_bits & 0x00000002u) {
  3721. ABSL_DCHECK(_impl_.selected_traj_ != nullptr);
  3722. _impl_.selected_traj_->Clear();
  3723. }
  3724. if (cached_has_bits & 0x00000004u) {
  3725. ABSL_DCHECK(_impl_.predict_traj_ != nullptr);
  3726. _impl_.predict_traj_->Clear();
  3727. }
  3728. }
  3729. ::memset(&_impl_.statu_, 0, static_cast<::size_t>(
  3730. reinterpret_cast<char*>(&_impl_.in_space_) -
  3731. reinterpret_cast<char*>(&_impl_.statu_)) + sizeof(_impl_.in_space_));
  3732. _impl_._has_bits_.Clear();
  3733. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3734. }
  3735. const char* NavStatu::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
  3736. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  3737. _Internal::HasBits has_bits{};
  3738. while (!ctx->Done(&ptr)) {
  3739. ::uint32_t tag;
  3740. ptr = ::_pbi::ReadTag(ptr, &tag);
  3741. switch (tag >> 3) {
  3742. // int32 statu = 1;
  3743. case 1:
  3744. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
  3745. _impl_.statu_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3746. CHK_(ptr);
  3747. } else {
  3748. goto handle_unusual;
  3749. }
  3750. continue;
  3751. // bool main_agv = 2;
  3752. case 2:
  3753. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
  3754. _impl_.main_agv_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  3755. CHK_(ptr);
  3756. } else {
  3757. goto handle_unusual;
  3758. }
  3759. continue;
  3760. // int32 move_mode = 3;
  3761. case 3:
  3762. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
  3763. _impl_.move_mode_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3764. CHK_(ptr);
  3765. } else {
  3766. goto handle_unusual;
  3767. }
  3768. continue;
  3769. // .NavMessage.LidarOdomStatu odom = 4;
  3770. case 4:
  3771. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
  3772. ptr = ctx->ParseMessage(_internal_mutable_odom(), ptr);
  3773. CHK_(ptr);
  3774. } else {
  3775. goto handle_unusual;
  3776. }
  3777. continue;
  3778. // string key = 5;
  3779. case 5:
  3780. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) {
  3781. auto str = _internal_mutable_key();
  3782. ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
  3783. CHK_(ptr);
  3784. CHK_(::_pbi::VerifyUTF8(str, "NavMessage.NavStatu.key"));
  3785. } else {
  3786. goto handle_unusual;
  3787. }
  3788. continue;
  3789. // .NavMessage.Trajectory selected_traj = 6;
  3790. case 6:
  3791. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 50)) {
  3792. ptr = ctx->ParseMessage(_internal_mutable_selected_traj(), ptr);
  3793. CHK_(ptr);
  3794. } else {
  3795. goto handle_unusual;
  3796. }
  3797. continue;
  3798. // .NavMessage.Trajectory predict_traj = 7;
  3799. case 7:
  3800. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 58)) {
  3801. ptr = ctx->ParseMessage(_internal_mutable_predict_traj(), ptr);
  3802. CHK_(ptr);
  3803. } else {
  3804. goto handle_unusual;
  3805. }
  3806. continue;
  3807. // bool in_space = 8;
  3808. case 8:
  3809. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 64)) {
  3810. _impl_.in_space_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  3811. CHK_(ptr);
  3812. } else {
  3813. goto handle_unusual;
  3814. }
  3815. continue;
  3816. // string space_id = 9;
  3817. case 9:
  3818. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 74)) {
  3819. auto str = _internal_mutable_space_id();
  3820. ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
  3821. CHK_(ptr);
  3822. CHK_(::_pbi::VerifyUTF8(str, "NavMessage.NavStatu.space_id"));
  3823. } else {
  3824. goto handle_unusual;
  3825. }
  3826. continue;
  3827. default:
  3828. goto handle_unusual;
  3829. } // switch
  3830. handle_unusual:
  3831. if ((tag == 0) || ((tag & 7) == 4)) {
  3832. CHK_(ptr);
  3833. ctx->SetLastTag(tag);
  3834. goto message_done;
  3835. }
  3836. ptr = UnknownFieldParse(
  3837. tag,
  3838. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3839. ptr, ctx);
  3840. CHK_(ptr != nullptr);
  3841. } // while
  3842. message_done:
  3843. _impl_._has_bits_.Or(has_bits);
  3844. return ptr;
  3845. failure:
  3846. ptr = nullptr;
  3847. goto message_done;
  3848. #undef CHK_
  3849. }
  3850. ::uint8_t* NavStatu::_InternalSerialize(
  3851. ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  3852. // @@protoc_insertion_point(serialize_to_array_start:NavMessage.NavStatu)
  3853. ::uint32_t cached_has_bits = 0;
  3854. (void) cached_has_bits;
  3855. // int32 statu = 1;
  3856. if (this->_internal_statu() != 0) {
  3857. target = stream->EnsureSpace(target);
  3858. target = ::_pbi::WireFormatLite::WriteInt32ToArray(
  3859. 1, this->_internal_statu(), target);
  3860. }
  3861. // bool main_agv = 2;
  3862. if (this->_internal_main_agv() != 0) {
  3863. target = stream->EnsureSpace(target);
  3864. target = ::_pbi::WireFormatLite::WriteBoolToArray(
  3865. 2, this->_internal_main_agv(), target);
  3866. }
  3867. // int32 move_mode = 3;
  3868. if (this->_internal_move_mode() != 0) {
  3869. target = stream->EnsureSpace(target);
  3870. target = ::_pbi::WireFormatLite::WriteInt32ToArray(
  3871. 3, this->_internal_move_mode(), target);
  3872. }
  3873. cached_has_bits = _impl_._has_bits_[0];
  3874. // .NavMessage.LidarOdomStatu odom = 4;
  3875. if (cached_has_bits & 0x00000001u) {
  3876. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  3877. InternalWriteMessage(4, _Internal::odom(this),
  3878. _Internal::odom(this).GetCachedSize(), target, stream);
  3879. }
  3880. // string key = 5;
  3881. if (!this->_internal_key().empty()) {
  3882. const std::string& _s = this->_internal_key();
  3883. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  3884. _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "NavMessage.NavStatu.key");
  3885. target = stream->WriteStringMaybeAliased(5, _s, target);
  3886. }
  3887. // .NavMessage.Trajectory selected_traj = 6;
  3888. if (cached_has_bits & 0x00000002u) {
  3889. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  3890. InternalWriteMessage(6, _Internal::selected_traj(this),
  3891. _Internal::selected_traj(this).GetCachedSize(), target, stream);
  3892. }
  3893. // .NavMessage.Trajectory predict_traj = 7;
  3894. if (cached_has_bits & 0x00000004u) {
  3895. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  3896. InternalWriteMessage(7, _Internal::predict_traj(this),
  3897. _Internal::predict_traj(this).GetCachedSize(), target, stream);
  3898. }
  3899. // bool in_space = 8;
  3900. if (this->_internal_in_space() != 0) {
  3901. target = stream->EnsureSpace(target);
  3902. target = ::_pbi::WireFormatLite::WriteBoolToArray(
  3903. 8, this->_internal_in_space(), target);
  3904. }
  3905. // string space_id = 9;
  3906. if (!this->_internal_space_id().empty()) {
  3907. const std::string& _s = this->_internal_space_id();
  3908. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  3909. _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "NavMessage.NavStatu.space_id");
  3910. target = stream->WriteStringMaybeAliased(9, _s, target);
  3911. }
  3912. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  3913. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  3914. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  3915. }
  3916. // @@protoc_insertion_point(serialize_to_array_end:NavMessage.NavStatu)
  3917. return target;
  3918. }
  3919. ::size_t NavStatu::ByteSizeLong() const {
  3920. // @@protoc_insertion_point(message_byte_size_start:NavMessage.NavStatu)
  3921. ::size_t total_size = 0;
  3922. ::uint32_t cached_has_bits = 0;
  3923. // Prevent compiler warnings about cached_has_bits being unused
  3924. (void) cached_has_bits;
  3925. // string key = 5;
  3926. if (!this->_internal_key().empty()) {
  3927. total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  3928. this->_internal_key());
  3929. }
  3930. // string space_id = 9;
  3931. if (!this->_internal_space_id().empty()) {
  3932. total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  3933. this->_internal_space_id());
  3934. }
  3935. cached_has_bits = _impl_._has_bits_[0];
  3936. if (cached_has_bits & 0x00000007u) {
  3937. // .NavMessage.LidarOdomStatu odom = 4;
  3938. if (cached_has_bits & 0x00000001u) {
  3939. total_size += 1 +
  3940. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  3941. *_impl_.odom_);
  3942. }
  3943. // .NavMessage.Trajectory selected_traj = 6;
  3944. if (cached_has_bits & 0x00000002u) {
  3945. total_size += 1 +
  3946. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  3947. *_impl_.selected_traj_);
  3948. }
  3949. // .NavMessage.Trajectory predict_traj = 7;
  3950. if (cached_has_bits & 0x00000004u) {
  3951. total_size += 1 +
  3952. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  3953. *_impl_.predict_traj_);
  3954. }
  3955. }
  3956. // int32 statu = 1;
  3957. if (this->_internal_statu() != 0) {
  3958. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
  3959. this->_internal_statu());
  3960. }
  3961. // int32 move_mode = 3;
  3962. if (this->_internal_move_mode() != 0) {
  3963. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
  3964. this->_internal_move_mode());
  3965. }
  3966. // bool main_agv = 2;
  3967. if (this->_internal_main_agv() != 0) {
  3968. total_size += 2;
  3969. }
  3970. // bool in_space = 8;
  3971. if (this->_internal_in_space() != 0) {
  3972. total_size += 2;
  3973. }
  3974. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  3975. }
  3976. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData NavStatu::_class_data_ = {
  3977. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  3978. NavStatu::MergeImpl
  3979. };
  3980. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*NavStatu::GetClassData() const { return &_class_data_; }
  3981. void NavStatu::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
  3982. auto* const _this = static_cast<NavStatu*>(&to_msg);
  3983. auto& from = static_cast<const NavStatu&>(from_msg);
  3984. // @@protoc_insertion_point(class_specific_merge_from_start:NavMessage.NavStatu)
  3985. ABSL_DCHECK_NE(&from, _this);
  3986. ::uint32_t cached_has_bits = 0;
  3987. (void) cached_has_bits;
  3988. if (!from._internal_key().empty()) {
  3989. _this->_internal_set_key(from._internal_key());
  3990. }
  3991. if (!from._internal_space_id().empty()) {
  3992. _this->_internal_set_space_id(from._internal_space_id());
  3993. }
  3994. cached_has_bits = from._impl_._has_bits_[0];
  3995. if (cached_has_bits & 0x00000007u) {
  3996. if (cached_has_bits & 0x00000001u) {
  3997. _this->_internal_mutable_odom()->::NavMessage::LidarOdomStatu::MergeFrom(
  3998. from._internal_odom());
  3999. }
  4000. if (cached_has_bits & 0x00000002u) {
  4001. _this->_internal_mutable_selected_traj()->::NavMessage::Trajectory::MergeFrom(
  4002. from._internal_selected_traj());
  4003. }
  4004. if (cached_has_bits & 0x00000004u) {
  4005. _this->_internal_mutable_predict_traj()->::NavMessage::Trajectory::MergeFrom(
  4006. from._internal_predict_traj());
  4007. }
  4008. }
  4009. if (from._internal_statu() != 0) {
  4010. _this->_internal_set_statu(from._internal_statu());
  4011. }
  4012. if (from._internal_move_mode() != 0) {
  4013. _this->_internal_set_move_mode(from._internal_move_mode());
  4014. }
  4015. if (from._internal_main_agv() != 0) {
  4016. _this->_internal_set_main_agv(from._internal_main_agv());
  4017. }
  4018. if (from._internal_in_space() != 0) {
  4019. _this->_internal_set_in_space(from._internal_in_space());
  4020. }
  4021. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4022. }
  4023. void NavStatu::CopyFrom(const NavStatu& from) {
  4024. // @@protoc_insertion_point(class_specific_copy_from_start:NavMessage.NavStatu)
  4025. if (&from == this) return;
  4026. Clear();
  4027. MergeFrom(from);
  4028. }
  4029. bool NavStatu::IsInitialized() const {
  4030. return true;
  4031. }
  4032. void NavStatu::InternalSwap(NavStatu* other) {
  4033. using std::swap;
  4034. auto* lhs_arena = GetArenaForAllocation();
  4035. auto* rhs_arena = other->GetArenaForAllocation();
  4036. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  4037. swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  4038. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.key_, lhs_arena,
  4039. &other->_impl_.key_, rhs_arena);
  4040. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.space_id_, lhs_arena,
  4041. &other->_impl_.space_id_, rhs_arena);
  4042. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  4043. PROTOBUF_FIELD_OFFSET(NavStatu, _impl_.in_space_)
  4044. + sizeof(NavStatu::_impl_.in_space_)
  4045. - PROTOBUF_FIELD_OFFSET(NavStatu, _impl_.odom_)>(
  4046. reinterpret_cast<char*>(&_impl_.odom_),
  4047. reinterpret_cast<char*>(&other->_impl_.odom_));
  4048. }
  4049. ::PROTOBUF_NAMESPACE_ID::Metadata NavStatu::GetMetadata() const {
  4050. return ::_pbi::AssignDescriptors(
  4051. &descriptor_table_message_2eproto_getter, &descriptor_table_message_2eproto_once,
  4052. file_level_metadata_message_2eproto[10]);
  4053. }
  4054. // ===================================================================
  4055. class RobotStatu::_Internal {
  4056. public:
  4057. using HasBits = decltype(std::declval<RobotStatu>()._impl_._has_bits_);
  4058. static constexpr ::int32_t kHasBitsOffset =
  4059. 8 * PROTOBUF_FIELD_OFFSET(RobotStatu, _impl_._has_bits_);
  4060. static const ::NavMessage::AgvStatu& agvstatu(const RobotStatu* msg);
  4061. static void set_has_agvstatu(HasBits* has_bits) {
  4062. (*has_bits)[0] |= 1u;
  4063. }
  4064. };
  4065. const ::NavMessage::AgvStatu&
  4066. RobotStatu::_Internal::agvstatu(const RobotStatu* msg) {
  4067. return *msg->_impl_.agvstatu_;
  4068. }
  4069. RobotStatu::RobotStatu(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  4070. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  4071. SharedCtor(arena);
  4072. // @@protoc_insertion_point(arena_constructor:NavMessage.RobotStatu)
  4073. }
  4074. RobotStatu::RobotStatu(const RobotStatu& from)
  4075. : ::PROTOBUF_NAMESPACE_ID::Message() {
  4076. RobotStatu* const _this = this; (void)_this;
  4077. new (&_impl_) Impl_{
  4078. decltype(_impl_._has_bits_){from._impl_._has_bits_}
  4079. , /*decltype(_impl_._cached_size_)*/{}
  4080. , decltype(_impl_.agvstatu_){nullptr}
  4081. , decltype(_impl_.x_) {}
  4082. , decltype(_impl_.y_) {}
  4083. , decltype(_impl_.theta_) {}
  4084. };
  4085. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4086. if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
  4087. _this->_impl_.agvstatu_ = new ::NavMessage::AgvStatu(*from._impl_.agvstatu_);
  4088. }
  4089. ::memcpy(&_impl_.x_, &from._impl_.x_,
  4090. static_cast<::size_t>(reinterpret_cast<char*>(&_impl_.theta_) -
  4091. reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.theta_));
  4092. // @@protoc_insertion_point(copy_constructor:NavMessage.RobotStatu)
  4093. }
  4094. inline void RobotStatu::SharedCtor(::_pb::Arena* arena) {
  4095. (void)arena;
  4096. new (&_impl_) Impl_{
  4097. decltype(_impl_._has_bits_){}
  4098. , /*decltype(_impl_._cached_size_)*/{}
  4099. , decltype(_impl_.agvstatu_){nullptr}
  4100. , decltype(_impl_.x_) { 0 }
  4101. , decltype(_impl_.y_) { 0 }
  4102. , decltype(_impl_.theta_) { 0 }
  4103. };
  4104. }
  4105. RobotStatu::~RobotStatu() {
  4106. // @@protoc_insertion_point(destructor:NavMessage.RobotStatu)
  4107. if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  4108. (void)arena;
  4109. return;
  4110. }
  4111. SharedDtor();
  4112. }
  4113. inline void RobotStatu::SharedDtor() {
  4114. ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  4115. if (this != internal_default_instance()) delete _impl_.agvstatu_;
  4116. }
  4117. void RobotStatu::SetCachedSize(int size) const {
  4118. _impl_._cached_size_.Set(size);
  4119. }
  4120. void RobotStatu::Clear() {
  4121. // @@protoc_insertion_point(message_clear_start:NavMessage.RobotStatu)
  4122. ::uint32_t cached_has_bits = 0;
  4123. // Prevent compiler warnings about cached_has_bits being unused
  4124. (void) cached_has_bits;
  4125. cached_has_bits = _impl_._has_bits_[0];
  4126. if (cached_has_bits & 0x00000001u) {
  4127. ABSL_DCHECK(_impl_.agvstatu_ != nullptr);
  4128. _impl_.agvstatu_->Clear();
  4129. }
  4130. ::memset(&_impl_.x_, 0, static_cast<::size_t>(
  4131. reinterpret_cast<char*>(&_impl_.theta_) -
  4132. reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.theta_));
  4133. _impl_._has_bits_.Clear();
  4134. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4135. }
  4136. const char* RobotStatu::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
  4137. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  4138. _Internal::HasBits has_bits{};
  4139. while (!ctx->Done(&ptr)) {
  4140. ::uint32_t tag;
  4141. ptr = ::_pbi::ReadTag(ptr, &tag);
  4142. switch (tag >> 3) {
  4143. // float x = 1;
  4144. case 1:
  4145. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 13)) {
  4146. _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  4147. ptr += sizeof(float);
  4148. } else {
  4149. goto handle_unusual;
  4150. }
  4151. continue;
  4152. // float y = 2;
  4153. case 2:
  4154. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 21)) {
  4155. _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  4156. ptr += sizeof(float);
  4157. } else {
  4158. goto handle_unusual;
  4159. }
  4160. continue;
  4161. // float theta = 3;
  4162. case 3:
  4163. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 29)) {
  4164. _impl_.theta_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  4165. ptr += sizeof(float);
  4166. } else {
  4167. goto handle_unusual;
  4168. }
  4169. continue;
  4170. // .NavMessage.AgvStatu agvStatu = 4;
  4171. case 4:
  4172. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
  4173. ptr = ctx->ParseMessage(_internal_mutable_agvstatu(), ptr);
  4174. CHK_(ptr);
  4175. } else {
  4176. goto handle_unusual;
  4177. }
  4178. continue;
  4179. default:
  4180. goto handle_unusual;
  4181. } // switch
  4182. handle_unusual:
  4183. if ((tag == 0) || ((tag & 7) == 4)) {
  4184. CHK_(ptr);
  4185. ctx->SetLastTag(tag);
  4186. goto message_done;
  4187. }
  4188. ptr = UnknownFieldParse(
  4189. tag,
  4190. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  4191. ptr, ctx);
  4192. CHK_(ptr != nullptr);
  4193. } // while
  4194. message_done:
  4195. _impl_._has_bits_.Or(has_bits);
  4196. return ptr;
  4197. failure:
  4198. ptr = nullptr;
  4199. goto message_done;
  4200. #undef CHK_
  4201. }
  4202. ::uint8_t* RobotStatu::_InternalSerialize(
  4203. ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  4204. // @@protoc_insertion_point(serialize_to_array_start:NavMessage.RobotStatu)
  4205. ::uint32_t cached_has_bits = 0;
  4206. (void) cached_has_bits;
  4207. // float x = 1;
  4208. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  4209. float tmp_x = this->_internal_x();
  4210. ::uint32_t raw_x;
  4211. memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
  4212. if (raw_x != 0) {
  4213. target = stream->EnsureSpace(target);
  4214. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  4215. 1, this->_internal_x(), target);
  4216. }
  4217. // float y = 2;
  4218. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  4219. float tmp_y = this->_internal_y();
  4220. ::uint32_t raw_y;
  4221. memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
  4222. if (raw_y != 0) {
  4223. target = stream->EnsureSpace(target);
  4224. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  4225. 2, this->_internal_y(), target);
  4226. }
  4227. // float theta = 3;
  4228. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  4229. float tmp_theta = this->_internal_theta();
  4230. ::uint32_t raw_theta;
  4231. memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta));
  4232. if (raw_theta != 0) {
  4233. target = stream->EnsureSpace(target);
  4234. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  4235. 3, this->_internal_theta(), target);
  4236. }
  4237. cached_has_bits = _impl_._has_bits_[0];
  4238. // .NavMessage.AgvStatu agvStatu = 4;
  4239. if (cached_has_bits & 0x00000001u) {
  4240. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  4241. InternalWriteMessage(4, _Internal::agvstatu(this),
  4242. _Internal::agvstatu(this).GetCachedSize(), target, stream);
  4243. }
  4244. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  4245. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  4246. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  4247. }
  4248. // @@protoc_insertion_point(serialize_to_array_end:NavMessage.RobotStatu)
  4249. return target;
  4250. }
  4251. ::size_t RobotStatu::ByteSizeLong() const {
  4252. // @@protoc_insertion_point(message_byte_size_start:NavMessage.RobotStatu)
  4253. ::size_t total_size = 0;
  4254. ::uint32_t cached_has_bits = 0;
  4255. // Prevent compiler warnings about cached_has_bits being unused
  4256. (void) cached_has_bits;
  4257. // .NavMessage.AgvStatu agvStatu = 4;
  4258. cached_has_bits = _impl_._has_bits_[0];
  4259. if (cached_has_bits & 0x00000001u) {
  4260. total_size += 1 +
  4261. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  4262. *_impl_.agvstatu_);
  4263. }
  4264. // float x = 1;
  4265. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  4266. float tmp_x = this->_internal_x();
  4267. ::uint32_t raw_x;
  4268. memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
  4269. if (raw_x != 0) {
  4270. total_size += 5;
  4271. }
  4272. // float y = 2;
  4273. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  4274. float tmp_y = this->_internal_y();
  4275. ::uint32_t raw_y;
  4276. memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
  4277. if (raw_y != 0) {
  4278. total_size += 5;
  4279. }
  4280. // float theta = 3;
  4281. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  4282. float tmp_theta = this->_internal_theta();
  4283. ::uint32_t raw_theta;
  4284. memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta));
  4285. if (raw_theta != 0) {
  4286. total_size += 5;
  4287. }
  4288. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  4289. }
  4290. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RobotStatu::_class_data_ = {
  4291. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  4292. RobotStatu::MergeImpl
  4293. };
  4294. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RobotStatu::GetClassData() const { return &_class_data_; }
  4295. void RobotStatu::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
  4296. auto* const _this = static_cast<RobotStatu*>(&to_msg);
  4297. auto& from = static_cast<const RobotStatu&>(from_msg);
  4298. // @@protoc_insertion_point(class_specific_merge_from_start:NavMessage.RobotStatu)
  4299. ABSL_DCHECK_NE(&from, _this);
  4300. ::uint32_t cached_has_bits = 0;
  4301. (void) cached_has_bits;
  4302. if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
  4303. _this->_internal_mutable_agvstatu()->::NavMessage::AgvStatu::MergeFrom(
  4304. from._internal_agvstatu());
  4305. }
  4306. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  4307. float tmp_x = from._internal_x();
  4308. ::uint32_t raw_x;
  4309. memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
  4310. if (raw_x != 0) {
  4311. _this->_internal_set_x(from._internal_x());
  4312. }
  4313. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  4314. float tmp_y = from._internal_y();
  4315. ::uint32_t raw_y;
  4316. memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
  4317. if (raw_y != 0) {
  4318. _this->_internal_set_y(from._internal_y());
  4319. }
  4320. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  4321. float tmp_theta = from._internal_theta();
  4322. ::uint32_t raw_theta;
  4323. memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta));
  4324. if (raw_theta != 0) {
  4325. _this->_internal_set_theta(from._internal_theta());
  4326. }
  4327. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4328. }
  4329. void RobotStatu::CopyFrom(const RobotStatu& from) {
  4330. // @@protoc_insertion_point(class_specific_copy_from_start:NavMessage.RobotStatu)
  4331. if (&from == this) return;
  4332. Clear();
  4333. MergeFrom(from);
  4334. }
  4335. bool RobotStatu::IsInitialized() const {
  4336. return true;
  4337. }
  4338. void RobotStatu::InternalSwap(RobotStatu* other) {
  4339. using std::swap;
  4340. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  4341. swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  4342. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  4343. PROTOBUF_FIELD_OFFSET(RobotStatu, _impl_.theta_)
  4344. + sizeof(RobotStatu::_impl_.theta_)
  4345. - PROTOBUF_FIELD_OFFSET(RobotStatu, _impl_.agvstatu_)>(
  4346. reinterpret_cast<char*>(&_impl_.agvstatu_),
  4347. reinterpret_cast<char*>(&other->_impl_.agvstatu_));
  4348. }
  4349. ::PROTOBUF_NAMESPACE_ID::Metadata RobotStatu::GetMetadata() const {
  4350. return ::_pbi::AssignDescriptors(
  4351. &descriptor_table_message_2eproto_getter, &descriptor_table_message_2eproto_once,
  4352. file_level_metadata_message_2eproto[11]);
  4353. }
  4354. // @@protoc_insertion_point(namespace_scope)
  4355. } // namespace NavMessage
  4356. PROTOBUF_NAMESPACE_OPEN
  4357. template<> PROTOBUF_NOINLINE ::NavMessage::LidarOdomStatu*
  4358. Arena::CreateMaybeMessage< ::NavMessage::LidarOdomStatu >(Arena* arena) {
  4359. return Arena::CreateMessageInternal< ::NavMessage::LidarOdomStatu >(arena);
  4360. }
  4361. template<> PROTOBUF_NOINLINE ::NavMessage::AgvStatu*
  4362. Arena::CreateMaybeMessage< ::NavMessage::AgvStatu >(Arena* arena) {
  4363. return Arena::CreateMessageInternal< ::NavMessage::AgvStatu >(arena);
  4364. }
  4365. template<> PROTOBUF_NOINLINE ::NavMessage::ToAgvCmd*
  4366. Arena::CreateMaybeMessage< ::NavMessage::ToAgvCmd >(Arena* arena) {
  4367. return Arena::CreateMessageInternal< ::NavMessage::ToAgvCmd >(arena);
  4368. }
  4369. template<> PROTOBUF_NOINLINE ::NavMessage::Pose2d*
  4370. Arena::CreateMaybeMessage< ::NavMessage::Pose2d >(Arena* arena) {
  4371. return Arena::CreateMessageInternal< ::NavMessage::Pose2d >(arena);
  4372. }
  4373. template<> PROTOBUF_NOINLINE ::NavMessage::PathNode*
  4374. Arena::CreateMaybeMessage< ::NavMessage::PathNode >(Arena* arena) {
  4375. return Arena::CreateMessageInternal< ::NavMessage::PathNode >(arena);
  4376. }
  4377. template<> PROTOBUF_NOINLINE ::NavMessage::Trajectory*
  4378. Arena::CreateMaybeMessage< ::NavMessage::Trajectory >(Arena* arena) {
  4379. return Arena::CreateMessageInternal< ::NavMessage::Trajectory >(arena);
  4380. }
  4381. template<> PROTOBUF_NOINLINE ::NavMessage::NewAction*
  4382. Arena::CreateMaybeMessage< ::NavMessage::NewAction >(Arena* arena) {
  4383. return Arena::CreateMessageInternal< ::NavMessage::NewAction >(arena);
  4384. }
  4385. template<> PROTOBUF_NOINLINE ::NavMessage::NavCmd*
  4386. Arena::CreateMaybeMessage< ::NavMessage::NavCmd >(Arena* arena) {
  4387. return Arena::CreateMessageInternal< ::NavMessage::NavCmd >(arena);
  4388. }
  4389. template<> PROTOBUF_NOINLINE ::NavMessage::NavResponse*
  4390. Arena::CreateMaybeMessage< ::NavMessage::NavResponse >(Arena* arena) {
  4391. return Arena::CreateMessageInternal< ::NavMessage::NavResponse >(arena);
  4392. }
  4393. template<> PROTOBUF_NOINLINE ::NavMessage::ManualCmd*
  4394. Arena::CreateMaybeMessage< ::NavMessage::ManualCmd >(Arena* arena) {
  4395. return Arena::CreateMessageInternal< ::NavMessage::ManualCmd >(arena);
  4396. }
  4397. template<> PROTOBUF_NOINLINE ::NavMessage::NavStatu*
  4398. Arena::CreateMaybeMessage< ::NavMessage::NavStatu >(Arena* arena) {
  4399. return Arena::CreateMessageInternal< ::NavMessage::NavStatu >(arena);
  4400. }
  4401. template<> PROTOBUF_NOINLINE ::NavMessage::RobotStatu*
  4402. Arena::CreateMaybeMessage< ::NavMessage::RobotStatu >(Arena* arena) {
  4403. return Arena::CreateMessageInternal< ::NavMessage::RobotStatu >(arena);
  4404. }
  4405. PROTOBUF_NAMESPACE_CLOSE
  4406. // @@protoc_insertion_point(global_scope)
  4407. #include "google/protobuf/port_undef.inc"