1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: message.proto
- #include "message.pb.h"
- #include <algorithm>
- #include "google/protobuf/io/coded_stream.h"
- #include "google/protobuf/extension_set.h"
- #include "google/protobuf/wire_format_lite.h"
- #include "google/protobuf/descriptor.h"
- #include "google/protobuf/generated_message_reflection.h"
- #include "google/protobuf/reflection_ops.h"
- #include "google/protobuf/wire_format.h"
- // @@protoc_insertion_point(includes)
- // Must be included last.
- #include "google/protobuf/port_def.inc"
- PROTOBUF_PRAGMA_INIT_SEG
- namespace _pb = ::PROTOBUF_NAMESPACE_ID;
- namespace _pbi = ::PROTOBUF_NAMESPACE_ID::internal;
- namespace NavMessage {
- template <typename>
- PROTOBUF_CONSTEXPR LidarOdomStatu::LidarOdomStatu(
- ::_pbi::ConstantInitialized): _impl_{
- /*decltype(_impl_.x_)*/ 0
- , /*decltype(_impl_.y_)*/ 0
- , /*decltype(_impl_.theta_)*/ 0
- , /*decltype(_impl_.v_)*/ 0
- , /*decltype(_impl_.vth_)*/ 0
- , /*decltype(_impl_._cached_size_)*/{}} {}
- struct LidarOdomStatuDefaultTypeInternal {
- PROTOBUF_CONSTEXPR LidarOdomStatuDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~LidarOdomStatuDefaultTypeInternal() {}
- union {
- LidarOdomStatu _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LidarOdomStatuDefaultTypeInternal _LidarOdomStatu_default_instance_;
- template <typename>
- PROTOBUF_CONSTEXPR AgvStatu::AgvStatu(
- ::_pbi::ConstantInitialized): _impl_{
- /*decltype(_impl_.v_)*/ 0
- , /*decltype(_impl_.w_)*/ 0
- , /*decltype(_impl_.clamp_)*/ 0
- , /*decltype(_impl_.clamp_other_)*/ 0
- , /*decltype(_impl_.lifter_)*/ 0
- , /*decltype(_impl_.lifter_other_)*/ 0
- , /*decltype(_impl_._cached_size_)*/{}} {}
- struct AgvStatuDefaultTypeInternal {
- PROTOBUF_CONSTEXPR AgvStatuDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~AgvStatuDefaultTypeInternal() {}
- union {
- AgvStatu _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AgvStatuDefaultTypeInternal _AgvStatu_default_instance_;
- template <typename>
- PROTOBUF_CONSTEXPR ToAgvCmd::ToAgvCmd(
- ::_pbi::ConstantInitialized): _impl_{
- /*decltype(_impl_.h1_)*/ 0
- , /*decltype(_impl_.m1_)*/ 0
- , /*decltype(_impl_.t1_)*/ 0
- , /*decltype(_impl_.v1_)*/ 0
- , /*decltype(_impl_.w1_)*/ 0
- , /*decltype(_impl_.v2_)*/ 0
- , /*decltype(_impl_.w2_)*/ 0
- , /*decltype(_impl_.v3_)*/ 0
- , /*decltype(_impl_.w3_)*/ 0
- , /*decltype(_impl_.l1_)*/ 0
- , /*decltype(_impl_.p1_)*/ 0
- , /*decltype(_impl_.d1_)*/ 0
- , /*decltype(_impl_.y1_)*/ 0
- , /*decltype(_impl_.y2_)*/ 0
- , /*decltype(_impl_.end_)*/ 0
- , /*decltype(_impl_._cached_size_)*/{}} {}
- struct ToAgvCmdDefaultTypeInternal {
- PROTOBUF_CONSTEXPR ToAgvCmdDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~ToAgvCmdDefaultTypeInternal() {}
- union {
- ToAgvCmd _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ToAgvCmdDefaultTypeInternal _ToAgvCmd_default_instance_;
- template <typename>
- PROTOBUF_CONSTEXPR Pose2d::Pose2d(
- ::_pbi::ConstantInitialized): _impl_{
- /*decltype(_impl_.x_)*/ 0
- , /*decltype(_impl_.y_)*/ 0
- , /*decltype(_impl_.theta_)*/ 0
- , /*decltype(_impl_._cached_size_)*/{}} {}
- struct Pose2dDefaultTypeInternal {
- PROTOBUF_CONSTEXPR Pose2dDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~Pose2dDefaultTypeInternal() {}
- union {
- Pose2d _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Pose2dDefaultTypeInternal _Pose2d_default_instance_;
- template <typename>
- PROTOBUF_CONSTEXPR PathNode::PathNode(
- ::_pbi::ConstantInitialized): _impl_{
- /*decltype(_impl_.id_)*/ {
- &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
- }
- , /*decltype(_impl_.x_)*/ 0
- , /*decltype(_impl_.y_)*/ 0
- , /*decltype(_impl_.l_)*/ 0
- , /*decltype(_impl_.w_)*/ 0
- , /*decltype(_impl_.theta_)*/ 0
- , /*decltype(_impl_._cached_size_)*/{}} {}
- struct PathNodeDefaultTypeInternal {
- PROTOBUF_CONSTEXPR PathNodeDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~PathNodeDefaultTypeInternal() {}
- union {
- PathNode _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PathNodeDefaultTypeInternal _PathNode_default_instance_;
- template <typename>
- PROTOBUF_CONSTEXPR Trajectory::Trajectory(
- ::_pbi::ConstantInitialized): _impl_{
- /*decltype(_impl_.poses_)*/{}
- , /*decltype(_impl_._cached_size_)*/{}} {}
- struct TrajectoryDefaultTypeInternal {
- PROTOBUF_CONSTEXPR TrajectoryDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~TrajectoryDefaultTypeInternal() {}
- union {
- Trajectory _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TrajectoryDefaultTypeInternal _Trajectory_default_instance_;
- template <typename>
- PROTOBUF_CONSTEXPR NewAction::NewAction(
- ::_pbi::ConstantInitialized): _impl_{
- /*decltype(_impl_._has_bits_)*/{}
- , /*decltype(_impl_._cached_size_)*/{}
- , /*decltype(_impl_.pathnodes_)*/{}
- , /*decltype(_impl_.spacenode_)*/nullptr
- , /*decltype(_impl_.passnode_)*/nullptr
- , /*decltype(_impl_.streetnode_)*/nullptr
- , /*decltype(_impl_.type_)*/ 0
- , /*decltype(_impl_.wheelbase_)*/ 0
- , /*decltype(_impl_.changedmode_)*/ 0
- } {}
- struct NewActionDefaultTypeInternal {
- PROTOBUF_CONSTEXPR NewActionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~NewActionDefaultTypeInternal() {}
- union {
- NewAction _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NewActionDefaultTypeInternal _NewAction_default_instance_;
- template <typename>
- PROTOBUF_CONSTEXPR NavCmd::NavCmd(
- ::_pbi::ConstantInitialized): _impl_{
- /*decltype(_impl_.newactions_)*/{}
- , /*decltype(_impl_.key_)*/ {
- &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
- }
- , /*decltype(_impl_.action_)*/ 0
- , /*decltype(_impl_._cached_size_)*/{}} {}
- struct NavCmdDefaultTypeInternal {
- PROTOBUF_CONSTEXPR NavCmdDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~NavCmdDefaultTypeInternal() {}
- union {
- NavCmd _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NavCmdDefaultTypeInternal _NavCmd_default_instance_;
- template <typename>
- PROTOBUF_CONSTEXPR NavResponse::NavResponse(
- ::_pbi::ConstantInitialized): _impl_{
- /*decltype(_impl_.info_)*/ {
- &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
- }
- , /*decltype(_impl_.ret_)*/ 0
- , /*decltype(_impl_._cached_size_)*/{}} {}
- struct NavResponseDefaultTypeInternal {
- PROTOBUF_CONSTEXPR NavResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~NavResponseDefaultTypeInternal() {}
- union {
- NavResponse _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NavResponseDefaultTypeInternal _NavResponse_default_instance_;
- template <typename>
- PROTOBUF_CONSTEXPR ManualCmd::ManualCmd(
- ::_pbi::ConstantInitialized): _impl_{
- /*decltype(_impl_.key_)*/ {
- &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
- }
- , /*decltype(_impl_.operation_type_)*/ 0
- , /*decltype(_impl_.velocity_)*/ 0
- , /*decltype(_impl_._cached_size_)*/{}} {}
- struct ManualCmdDefaultTypeInternal {
- PROTOBUF_CONSTEXPR ManualCmdDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~ManualCmdDefaultTypeInternal() {}
- union {
- ManualCmd _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ManualCmdDefaultTypeInternal _ManualCmd_default_instance_;
- template <typename>
- PROTOBUF_CONSTEXPR NavStatu::NavStatu(
- ::_pbi::ConstantInitialized): _impl_{
- /*decltype(_impl_._has_bits_)*/{}
- , /*decltype(_impl_._cached_size_)*/{}
- , /*decltype(_impl_.key_)*/ {
- &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
- }
- , /*decltype(_impl_.space_id_)*/ {
- &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
- }
- , /*decltype(_impl_.odom_)*/nullptr
- , /*decltype(_impl_.selected_traj_)*/nullptr
- , /*decltype(_impl_.predict_traj_)*/nullptr
- , /*decltype(_impl_.statu_)*/ 0
- , /*decltype(_impl_.move_mode_)*/ 0
- , /*decltype(_impl_.main_agv_)*/ false
- , /*decltype(_impl_.in_space_)*/ false
- } {}
- struct NavStatuDefaultTypeInternal {
- PROTOBUF_CONSTEXPR NavStatuDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~NavStatuDefaultTypeInternal() {}
- union {
- NavStatu _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NavStatuDefaultTypeInternal _NavStatu_default_instance_;
- template <typename>
- PROTOBUF_CONSTEXPR RobotStatu::RobotStatu(
- ::_pbi::ConstantInitialized): _impl_{
- /*decltype(_impl_._has_bits_)*/{}
- , /*decltype(_impl_._cached_size_)*/{}
- , /*decltype(_impl_.agvstatu_)*/nullptr
- , /*decltype(_impl_.x_)*/ 0
- , /*decltype(_impl_.y_)*/ 0
- , /*decltype(_impl_.theta_)*/ 0
- } {}
- struct RobotStatuDefaultTypeInternal {
- PROTOBUF_CONSTEXPR RobotStatuDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~RobotStatuDefaultTypeInternal() {}
- union {
- RobotStatu _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RobotStatuDefaultTypeInternal _RobotStatu_default_instance_;
- } // namespace NavMessage
- static ::_pb::Metadata file_level_metadata_message_2eproto[12];
- static constexpr const ::_pb::EnumDescriptor**
- file_level_enum_descriptors_message_2eproto = nullptr;
- static constexpr const ::_pb::ServiceDescriptor**
- file_level_service_descriptors_message_2eproto = nullptr;
- const ::uint32_t TableStruct_message_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(
- protodesc_cold) = {
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::NavMessage::LidarOdomStatu, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::NavMessage::LidarOdomStatu, _impl_.x_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::LidarOdomStatu, _impl_.y_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::LidarOdomStatu, _impl_.theta_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::LidarOdomStatu, _impl_.v_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::LidarOdomStatu, _impl_.vth_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::NavMessage::AgvStatu, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::NavMessage::AgvStatu, _impl_.v_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::AgvStatu, _impl_.w_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::AgvStatu, _impl_.clamp_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::AgvStatu, _impl_.clamp_other_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::AgvStatu, _impl_.lifter_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::AgvStatu, _impl_.lifter_other_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _impl_.h1_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _impl_.m1_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _impl_.t1_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _impl_.v1_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _impl_.w1_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _impl_.v2_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _impl_.w2_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _impl_.v3_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _impl_.w3_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _impl_.l1_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _impl_.p1_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _impl_.d1_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _impl_.y1_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _impl_.y2_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _impl_.end_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::NavMessage::Pose2d, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::NavMessage::Pose2d, _impl_.x_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::Pose2d, _impl_.y_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::Pose2d, _impl_.theta_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::NavMessage::PathNode, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::NavMessage::PathNode, _impl_.x_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::PathNode, _impl_.y_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::PathNode, _impl_.l_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::PathNode, _impl_.w_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::PathNode, _impl_.theta_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::PathNode, _impl_.id_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::NavMessage::Trajectory, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::NavMessage::Trajectory, _impl_.poses_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::NewAction, _impl_._has_bits_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::NewAction, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::NavMessage::NewAction, _impl_.type_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::NewAction, _impl_.spacenode_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::NewAction, _impl_.passnode_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::NewAction, _impl_.streetnode_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::NewAction, _impl_.pathnodes_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::NewAction, _impl_.wheelbase_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::NewAction, _impl_.changedmode_),
- ~0u,
- 0,
- 1,
- 2,
- ~0u,
- ~0u,
- ~0u,
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::NavMessage::NavCmd, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::NavMessage::NavCmd, _impl_.action_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::NavCmd, _impl_.key_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::NavCmd, _impl_.newactions_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::NavMessage::NavResponse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::NavMessage::NavResponse, _impl_.ret_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::NavResponse, _impl_.info_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::NavMessage::ManualCmd, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::NavMessage::ManualCmd, _impl_.key_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::ManualCmd, _impl_.operation_type_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::ManualCmd, _impl_.velocity_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, _impl_._has_bits_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, _impl_.statu_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, _impl_.main_agv_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, _impl_.move_mode_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, _impl_.odom_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, _impl_.key_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, _impl_.selected_traj_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, _impl_.predict_traj_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, _impl_.in_space_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, _impl_.space_id_),
- ~0u,
- ~0u,
- ~0u,
- 0,
- ~0u,
- 1,
- 2,
- ~0u,
- ~0u,
- PROTOBUF_FIELD_OFFSET(::NavMessage::RobotStatu, _impl_._has_bits_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::RobotStatu, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::NavMessage::RobotStatu, _impl_.x_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::RobotStatu, _impl_.y_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::RobotStatu, _impl_.theta_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::RobotStatu, _impl_.agvstatu_),
- ~0u,
- ~0u,
- ~0u,
- 0,
- };
- static const ::_pbi::MigrationSchema
- schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
- { 0, -1, -1, sizeof(::NavMessage::LidarOdomStatu)},
- { 13, -1, -1, sizeof(::NavMessage::AgvStatu)},
- { 27, -1, -1, sizeof(::NavMessage::ToAgvCmd)},
- { 50, -1, -1, sizeof(::NavMessage::Pose2d)},
- { 61, -1, -1, sizeof(::NavMessage::PathNode)},
- { 75, -1, -1, sizeof(::NavMessage::Trajectory)},
- { 84, 99, -1, sizeof(::NavMessage::NewAction)},
- { 106, -1, -1, sizeof(::NavMessage::NavCmd)},
- { 117, -1, -1, sizeof(::NavMessage::NavResponse)},
- { 127, -1, -1, sizeof(::NavMessage::ManualCmd)},
- { 138, 155, -1, sizeof(::NavMessage::NavStatu)},
- { 164, 176, -1, sizeof(::NavMessage::RobotStatu)},
- };
- static const ::_pb::Message* const file_default_instances[] = {
- &::NavMessage::_LidarOdomStatu_default_instance_._instance,
- &::NavMessage::_AgvStatu_default_instance_._instance,
- &::NavMessage::_ToAgvCmd_default_instance_._instance,
- &::NavMessage::_Pose2d_default_instance_._instance,
- &::NavMessage::_PathNode_default_instance_._instance,
- &::NavMessage::_Trajectory_default_instance_._instance,
- &::NavMessage::_NewAction_default_instance_._instance,
- &::NavMessage::_NavCmd_default_instance_._instance,
- &::NavMessage::_NavResponse_default_instance_._instance,
- &::NavMessage::_ManualCmd_default_instance_._instance,
- &::NavMessage::_NavStatu_default_instance_._instance,
- &::NavMessage::_RobotStatu_default_instance_._instance,
- };
- const char descriptor_table_protodef_message_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
- "\n\rmessage.proto\022\nNavMessage\"M\n\016LidarOdom"
- "Statu\022\t\n\001x\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\022\r\n\005theta\030\003 \001"
- "(\002\022\t\n\001v\030\004 \001(\002\022\013\n\003vth\030\005 \001(\002\"j\n\010AgvStatu\022\t"
- "\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"
- "lamp_other\030\004 \001(\005\022\016\n\006lifter\030\005 \001(\005\022\024\n\014lift"
- "er_other\030\006 \001(\005\"\277\001\n\010ToAgvCmd\022\n\n\002H1\030\001 \001(\005\022"
- "\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"
- "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 "
- "\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"
- "\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"
- "nd\030\017 \001(\005\"-\n\006Pose2d\022\t\n\001x\030\001 \001(\002\022\t\n\001y\030\002 \001(\002"
- "\022\r\n\005theta\030\003 \001(\002\"Q\n\010PathNode\022\t\n\001x\030\001 \001(\002\022\t"
- "\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"
- "\030\005 \001(\002\022\n\n\002id\030\006 \001(\t\"/\n\nTrajectory\022!\n\005pose"
- "s\030\001 \003(\0132\022.NavMessage.Pose2d\"\345\001\n\tNewActio"
- "n\022\014\n\004type\030\001 \001(\005\022\'\n\tspaceNode\030\002 \001(\0132\024.Nav"
- "Message.PathNode\022&\n\010passNode\030\003 \001(\0132\024.Nav"
- "Message.PathNode\022(\n\nstreetNode\030\004 \001(\0132\024.N"
- "avMessage.PathNode\022\'\n\tpathNodes\030\005 \003(\0132\024."
- "NavMessage.PathNode\022\021\n\twheelbase\030\006 \001(\002\022\023"
- "\n\013changedMode\030\007 \001(\005\"P\n\006NavCmd\022\016\n\006action\030"
- "\001 \001(\005\022\013\n\003key\030\002 \001(\t\022)\n\nnewActions\030\005 \003(\0132\025"
- ".NavMessage.NewAction\"(\n\013NavResponse\022\013\n\003"
- "ret\030\001 \001(\005\022\014\n\004info\030\002 \001(\t\"B\n\tManualCmd\022\013\n\003"
- "key\030\001 \001(\t\022\026\n\016operation_type\030\002 \001(\005\022\020\n\010vel"
- "ocity\030\003 \001(\002\"\366\001\n\010NavStatu\022\r\n\005statu\030\001 \001(\005\022"
- "\020\n\010main_agv\030\002 \001(\010\022\021\n\tmove_mode\030\003 \001(\005\022(\n\004"
- "odom\030\004 \001(\0132\032.NavMessage.LidarOdomStatu\022\013"
- "\n\003key\030\005 \001(\t\022-\n\rselected_traj\030\006 \001(\0132\026.Nav"
- "Message.Trajectory\022,\n\014predict_traj\030\007 \001(\013"
- "2\026.NavMessage.Trajectory\022\020\n\010in_space\030\010 \001"
- "(\010\022\020\n\010space_id\030\t \001(\t\"Y\n\nRobotStatu\022\t\n\001x\030"
- "\001 \001(\002\022\t\n\001y\030\002 \001(\002\022\r\n\005theta\030\003 \001(\002\022&\n\010agvSt"
- "atu\030\004 \001(\0132\024.NavMessage.AgvStatu2\302\001\n\nNavE"
- "xcutor\0226\n\005Start\022\022.NavMessage.NavCmd\032\027.Na"
- "vMessage.NavResponse\"\000\0227\n\006Cancel\022\022.NavMe"
- "ssage.NavCmd\032\027.NavMessage.NavResponse\"\000\022"
- "C\n\017ManualOperation\022\025.NavMessage.ManualCm"
- "d\032\027.NavMessage.NavResponse\"\000b\006proto3"
- };
- static ::absl::once_flag descriptor_table_message_2eproto_once;
- const ::_pbi::DescriptorTable descriptor_table_message_2eproto = {
- false,
- false,
- 1556,
- descriptor_table_protodef_message_2eproto,
- "message.proto",
- &descriptor_table_message_2eproto_once,
- nullptr,
- 0,
- 12,
- schemas,
- file_default_instances,
- TableStruct_message_2eproto::offsets,
- file_level_metadata_message_2eproto,
- file_level_enum_descriptors_message_2eproto,
- file_level_service_descriptors_message_2eproto,
- };
- // This function exists to be marked as weak.
- // It can significantly speed up compilation by breaking up LLVM's SCC
- // in the .pb.cc translation units. Large translation units see a
- // reduction of more than 35% of walltime for optimized builds. Without
- // the weak attribute all the messages in the file, including all the
- // vtables and everything they use become part of the same SCC through
- // a cycle like:
- // GetMetadata -> descriptor table -> default instances ->
- // vtables -> GetMetadata
- // By adding a weak function here we break the connection from the
- // individual vtables back into the descriptor table.
- PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_message_2eproto_getter() {
- return &descriptor_table_message_2eproto;
- }
- // Force running AddDescriptors() at dynamic initialization time.
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
- static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_message_2eproto(&descriptor_table_message_2eproto);
- namespace NavMessage {
- // ===================================================================
- class LidarOdomStatu::_Internal {
- public:
- };
- LidarOdomStatu::LidarOdomStatu(::PROTOBUF_NAMESPACE_ID::Arena* arena)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:NavMessage.LidarOdomStatu)
- }
- LidarOdomStatu::LidarOdomStatu(const LidarOdomStatu& from)
- : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(
- from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:NavMessage.LidarOdomStatu)
- }
- inline void LidarOdomStatu::SharedCtor(::_pb::Arena* arena) {
- (void)arena;
- new (&_impl_) Impl_{
- decltype(_impl_.x_) { 0 }
- , decltype(_impl_.y_) { 0 }
- , decltype(_impl_.theta_) { 0 }
- , decltype(_impl_.v_) { 0 }
- , decltype(_impl_.vth_) { 0 }
- , /*decltype(_impl_._cached_size_)*/{}
- };
- }
- LidarOdomStatu::~LidarOdomStatu() {
- // @@protoc_insertion_point(destructor:NavMessage.LidarOdomStatu)
- if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
- (void)arena;
- return;
- }
- SharedDtor();
- }
- inline void LidarOdomStatu::SharedDtor() {
- ABSL_DCHECK(GetArenaForAllocation() == nullptr);
- }
- void LidarOdomStatu::SetCachedSize(int size) const {
- _impl_._cached_size_.Set(size);
- }
- void LidarOdomStatu::Clear() {
- // @@protoc_insertion_point(message_clear_start:NavMessage.LidarOdomStatu)
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- ::memset(&_impl_.x_, 0, static_cast<::size_t>(
- reinterpret_cast<char*>(&_impl_.vth_) -
- reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.vth_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- const char* LidarOdomStatu::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- while (!ctx->Done(&ptr)) {
- ::uint32_t tag;
- ptr = ::_pbi::ReadTag(ptr, &tag);
- switch (tag >> 3) {
- // float x = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 13)) {
- _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else {
- goto handle_unusual;
- }
- continue;
- // float y = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 21)) {
- _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else {
- goto handle_unusual;
- }
- continue;
- // float theta = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 29)) {
- _impl_.theta_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else {
- goto handle_unusual;
- }
- continue;
- // float v = 4;
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 37)) {
- _impl_.v_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else {
- goto handle_unusual;
- }
- continue;
- // float vth = 5;
- case 5:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 45)) {
- _impl_.vth_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else {
- goto handle_unusual;
- }
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4)) {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
- ::uint8_t* LidarOdomStatu::_InternalSerialize(
- ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:NavMessage.LidarOdomStatu)
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- // float x = 1;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_x = this->_internal_x();
- ::uint32_t raw_x;
- memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
- if (raw_x != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteFloatToArray(
- 1, this->_internal_x(), target);
- }
- // float y = 2;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_y = this->_internal_y();
- ::uint32_t raw_y;
- memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
- if (raw_y != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteFloatToArray(
- 2, this->_internal_y(), target);
- }
- // float theta = 3;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_theta = this->_internal_theta();
- ::uint32_t raw_theta;
- memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta));
- if (raw_theta != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteFloatToArray(
- 3, this->_internal_theta(), target);
- }
- // float v = 4;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_v = this->_internal_v();
- ::uint32_t raw_v;
- memcpy(&raw_v, &tmp_v, sizeof(tmp_v));
- if (raw_v != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteFloatToArray(
- 4, this->_internal_v(), target);
- }
- // float vth = 5;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_vth = this->_internal_vth();
- ::uint32_t raw_vth;
- memcpy(&raw_vth, &tmp_vth, sizeof(tmp_vth));
- if (raw_vth != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteFloatToArray(
- 5, this->_internal_vth(), target);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:NavMessage.LidarOdomStatu)
- return target;
- }
- ::size_t LidarOdomStatu::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:NavMessage.LidarOdomStatu)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // float x = 1;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_x = this->_internal_x();
- ::uint32_t raw_x;
- memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
- if (raw_x != 0) {
- total_size += 5;
- }
- // float y = 2;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_y = this->_internal_y();
- ::uint32_t raw_y;
- memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
- if (raw_y != 0) {
- total_size += 5;
- }
- // float theta = 3;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_theta = this->_internal_theta();
- ::uint32_t raw_theta;
- memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta));
- if (raw_theta != 0) {
- total_size += 5;
- }
- // float v = 4;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_v = this->_internal_v();
- ::uint32_t raw_v;
- memcpy(&raw_v, &tmp_v, sizeof(tmp_v));
- if (raw_v != 0) {
- total_size += 5;
- }
- // float vth = 5;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_vth = this->_internal_vth();
- ::uint32_t raw_vth;
- memcpy(&raw_vth, &tmp_vth, sizeof(tmp_vth));
- if (raw_vth != 0) {
- total_size += 5;
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LidarOdomStatu::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- LidarOdomStatu::MergeImpl
- };
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LidarOdomStatu::GetClassData() const { return &_class_data_; }
- void LidarOdomStatu::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
- auto* const _this = static_cast<LidarOdomStatu*>(&to_msg);
- auto& from = static_cast<const LidarOdomStatu&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:NavMessage.LidarOdomStatu)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_x = from._internal_x();
- ::uint32_t raw_x;
- memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
- if (raw_x != 0) {
- _this->_internal_set_x(from._internal_x());
- }
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_y = from._internal_y();
- ::uint32_t raw_y;
- memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
- if (raw_y != 0) {
- _this->_internal_set_y(from._internal_y());
- }
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_theta = from._internal_theta();
- ::uint32_t raw_theta;
- memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta));
- if (raw_theta != 0) {
- _this->_internal_set_theta(from._internal_theta());
- }
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_v = from._internal_v();
- ::uint32_t raw_v;
- memcpy(&raw_v, &tmp_v, sizeof(tmp_v));
- if (raw_v != 0) {
- _this->_internal_set_v(from._internal_v());
- }
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_vth = from._internal_vth();
- ::uint32_t raw_vth;
- memcpy(&raw_vth, &tmp_vth, sizeof(tmp_vth));
- if (raw_vth != 0) {
- _this->_internal_set_vth(from._internal_vth());
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
- void LidarOdomStatu::CopyFrom(const LidarOdomStatu& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:NavMessage.LidarOdomStatu)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool LidarOdomStatu::IsInitialized() const {
- return true;
- }
- void LidarOdomStatu::InternalSwap(LidarOdomStatu* other) {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(LidarOdomStatu, _impl_.vth_)
- + sizeof(LidarOdomStatu::_impl_.vth_)
- - PROTOBUF_FIELD_OFFSET(LidarOdomStatu, _impl_.x_)>(
- reinterpret_cast<char*>(&_impl_.x_),
- reinterpret_cast<char*>(&other->_impl_.x_));
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata LidarOdomStatu::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_message_2eproto_getter, &descriptor_table_message_2eproto_once,
- file_level_metadata_message_2eproto[0]);
- }
- // ===================================================================
- class AgvStatu::_Internal {
- public:
- };
- AgvStatu::AgvStatu(::PROTOBUF_NAMESPACE_ID::Arena* arena)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:NavMessage.AgvStatu)
- }
- AgvStatu::AgvStatu(const AgvStatu& from)
- : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(
- from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:NavMessage.AgvStatu)
- }
- inline void AgvStatu::SharedCtor(::_pb::Arena* arena) {
- (void)arena;
- new (&_impl_) Impl_{
- decltype(_impl_.v_) { 0 }
- , decltype(_impl_.w_) { 0 }
- , decltype(_impl_.clamp_) { 0 }
- , decltype(_impl_.clamp_other_) { 0 }
- , decltype(_impl_.lifter_) { 0 }
- , decltype(_impl_.lifter_other_) { 0 }
- , /*decltype(_impl_._cached_size_)*/{}
- };
- }
- AgvStatu::~AgvStatu() {
- // @@protoc_insertion_point(destructor:NavMessage.AgvStatu)
- if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
- (void)arena;
- return;
- }
- SharedDtor();
- }
- inline void AgvStatu::SharedDtor() {
- ABSL_DCHECK(GetArenaForAllocation() == nullptr);
- }
- void AgvStatu::SetCachedSize(int size) const {
- _impl_._cached_size_.Set(size);
- }
- void AgvStatu::Clear() {
- // @@protoc_insertion_point(message_clear_start:NavMessage.AgvStatu)
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- ::memset(&_impl_.v_, 0, static_cast<::size_t>(
- reinterpret_cast<char*>(&_impl_.lifter_other_) -
- reinterpret_cast<char*>(&_impl_.v_)) + sizeof(_impl_.lifter_other_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- const char* AgvStatu::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- while (!ctx->Done(&ptr)) {
- ::uint32_t tag;
- ptr = ::_pbi::ReadTag(ptr, &tag);
- switch (tag >> 3) {
- // float v = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 13)) {
- _impl_.v_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else {
- goto handle_unusual;
- }
- continue;
- // float w = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 21)) {
- _impl_.w_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else {
- goto handle_unusual;
- }
- continue;
- // int32 clamp = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
- _impl_.clamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else {
- goto handle_unusual;
- }
- continue;
- // int32 clamp_other = 4;
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
- _impl_.clamp_other_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else {
- goto handle_unusual;
- }
- continue;
- // int32 lifter = 5;
- case 5:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) {
- _impl_.lifter_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else {
- goto handle_unusual;
- }
- continue;
- // int32 lifter_other = 6;
- case 6:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 48)) {
- _impl_.lifter_other_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else {
- goto handle_unusual;
- }
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4)) {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
- ::uint8_t* AgvStatu::_InternalSerialize(
- ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:NavMessage.AgvStatu)
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- // float v = 1;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_v = this->_internal_v();
- ::uint32_t raw_v;
- memcpy(&raw_v, &tmp_v, sizeof(tmp_v));
- if (raw_v != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteFloatToArray(
- 1, this->_internal_v(), target);
- }
- // float w = 2;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_w = this->_internal_w();
- ::uint32_t raw_w;
- memcpy(&raw_w, &tmp_w, sizeof(tmp_w));
- if (raw_w != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteFloatToArray(
- 2, this->_internal_w(), target);
- }
- // int32 clamp = 3;
- if (this->_internal_clamp() != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(
- 3, this->_internal_clamp(), target);
- }
- // int32 clamp_other = 4;
- if (this->_internal_clamp_other() != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(
- 4, this->_internal_clamp_other(), target);
- }
- // int32 lifter = 5;
- if (this->_internal_lifter() != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(
- 5, this->_internal_lifter(), target);
- }
- // int32 lifter_other = 6;
- if (this->_internal_lifter_other() != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(
- 6, this->_internal_lifter_other(), target);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:NavMessage.AgvStatu)
- return target;
- }
- ::size_t AgvStatu::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:NavMessage.AgvStatu)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // float v = 1;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_v = this->_internal_v();
- ::uint32_t raw_v;
- memcpy(&raw_v, &tmp_v, sizeof(tmp_v));
- if (raw_v != 0) {
- total_size += 5;
- }
- // float w = 2;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_w = this->_internal_w();
- ::uint32_t raw_w;
- memcpy(&raw_w, &tmp_w, sizeof(tmp_w));
- if (raw_w != 0) {
- total_size += 5;
- }
- // int32 clamp = 3;
- if (this->_internal_clamp() != 0) {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
- this->_internal_clamp());
- }
- // int32 clamp_other = 4;
- if (this->_internal_clamp_other() != 0) {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
- this->_internal_clamp_other());
- }
- // int32 lifter = 5;
- if (this->_internal_lifter() != 0) {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
- this->_internal_lifter());
- }
- // int32 lifter_other = 6;
- if (this->_internal_lifter_other() != 0) {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
- this->_internal_lifter_other());
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AgvStatu::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- AgvStatu::MergeImpl
- };
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AgvStatu::GetClassData() const { return &_class_data_; }
- void AgvStatu::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
- auto* const _this = static_cast<AgvStatu*>(&to_msg);
- auto& from = static_cast<const AgvStatu&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:NavMessage.AgvStatu)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_v = from._internal_v();
- ::uint32_t raw_v;
- memcpy(&raw_v, &tmp_v, sizeof(tmp_v));
- if (raw_v != 0) {
- _this->_internal_set_v(from._internal_v());
- }
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_w = from._internal_w();
- ::uint32_t raw_w;
- memcpy(&raw_w, &tmp_w, sizeof(tmp_w));
- if (raw_w != 0) {
- _this->_internal_set_w(from._internal_w());
- }
- if (from._internal_clamp() != 0) {
- _this->_internal_set_clamp(from._internal_clamp());
- }
- if (from._internal_clamp_other() != 0) {
- _this->_internal_set_clamp_other(from._internal_clamp_other());
- }
- if (from._internal_lifter() != 0) {
- _this->_internal_set_lifter(from._internal_lifter());
- }
- if (from._internal_lifter_other() != 0) {
- _this->_internal_set_lifter_other(from._internal_lifter_other());
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
- void AgvStatu::CopyFrom(const AgvStatu& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:NavMessage.AgvStatu)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool AgvStatu::IsInitialized() const {
- return true;
- }
- void AgvStatu::InternalSwap(AgvStatu* other) {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(AgvStatu, _impl_.lifter_other_)
- + sizeof(AgvStatu::_impl_.lifter_other_)
- - PROTOBUF_FIELD_OFFSET(AgvStatu, _impl_.v_)>(
- reinterpret_cast<char*>(&_impl_.v_),
- reinterpret_cast<char*>(&other->_impl_.v_));
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata AgvStatu::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_message_2eproto_getter, &descriptor_table_message_2eproto_once,
- file_level_metadata_message_2eproto[1]);
- }
- // ===================================================================
- class ToAgvCmd::_Internal {
- public:
- };
- ToAgvCmd::ToAgvCmd(::PROTOBUF_NAMESPACE_ID::Arena* arena)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:NavMessage.ToAgvCmd)
- }
- ToAgvCmd::ToAgvCmd(const ToAgvCmd& from)
- : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(
- from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:NavMessage.ToAgvCmd)
- }
- inline void ToAgvCmd::SharedCtor(::_pb::Arena* arena) {
- (void)arena;
- new (&_impl_) Impl_{
- decltype(_impl_.h1_) { 0 }
- , decltype(_impl_.m1_) { 0 }
- , decltype(_impl_.t1_) { 0 }
- , decltype(_impl_.v1_) { 0 }
- , decltype(_impl_.w1_) { 0 }
- , decltype(_impl_.v2_) { 0 }
- , decltype(_impl_.w2_) { 0 }
- , decltype(_impl_.v3_) { 0 }
- , decltype(_impl_.w3_) { 0 }
- , decltype(_impl_.l1_) { 0 }
- , decltype(_impl_.p1_) { 0 }
- , decltype(_impl_.d1_) { 0 }
- , decltype(_impl_.y1_) { 0 }
- , decltype(_impl_.y2_) { 0 }
- , decltype(_impl_.end_) { 0 }
- , /*decltype(_impl_._cached_size_)*/{}
- };
- }
- ToAgvCmd::~ToAgvCmd() {
- // @@protoc_insertion_point(destructor:NavMessage.ToAgvCmd)
- if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
- (void)arena;
- return;
- }
- SharedDtor();
- }
- inline void ToAgvCmd::SharedDtor() {
- ABSL_DCHECK(GetArenaForAllocation() == nullptr);
- }
- void ToAgvCmd::SetCachedSize(int size) const {
- _impl_._cached_size_.Set(size);
- }
- void ToAgvCmd::Clear() {
- // @@protoc_insertion_point(message_clear_start:NavMessage.ToAgvCmd)
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- ::memset(&_impl_.h1_, 0, static_cast<::size_t>(
- reinterpret_cast<char*>(&_impl_.end_) -
- reinterpret_cast<char*>(&_impl_.h1_)) + sizeof(_impl_.end_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- const char* ToAgvCmd::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- while (!ctx->Done(&ptr)) {
- ::uint32_t tag;
- ptr = ::_pbi::ReadTag(ptr, &tag);
- switch (tag >> 3) {
- // int32 H1 = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
- _impl_.h1_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else {
- goto handle_unusual;
- }
- continue;
- // int32 M1 = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
- _impl_.m1_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else {
- goto handle_unusual;
- }
- continue;
- // int32 T1 = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
- _impl_.t1_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else {
- goto handle_unusual;
- }
- continue;
- // float V1 = 4;
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 37)) {
- _impl_.v1_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else {
- goto handle_unusual;
- }
- continue;
- // float W1 = 5;
- case 5:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 45)) {
- _impl_.w1_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else {
- goto handle_unusual;
- }
- continue;
- // float V2 = 6;
- case 6:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 53)) {
- _impl_.v2_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else {
- goto handle_unusual;
- }
- continue;
- // float W2 = 7;
- case 7:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 61)) {
- _impl_.w2_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else {
- goto handle_unusual;
- }
- continue;
- // float V3 = 8;
- case 8:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 69)) {
- _impl_.v3_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else {
- goto handle_unusual;
- }
- continue;
- // float W3 = 9;
- case 9:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 77)) {
- _impl_.w3_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else {
- goto handle_unusual;
- }
- continue;
- // float L1 = 10;
- case 10:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 85)) {
- _impl_.l1_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else {
- goto handle_unusual;
- }
- continue;
- // int32 P1 = 11;
- case 11:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 88)) {
- _impl_.p1_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else {
- goto handle_unusual;
- }
- continue;
- // float D1 = 12;
- case 12:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 101)) {
- _impl_.d1_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else {
- goto handle_unusual;
- }
- continue;
- // float Y1 = 13;
- case 13:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 109)) {
- _impl_.y1_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else {
- goto handle_unusual;
- }
- continue;
- // float Y2 = 14;
- case 14:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 117)) {
- _impl_.y2_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else {
- goto handle_unusual;
- }
- continue;
- // int32 end = 15;
- case 15:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 120)) {
- _impl_.end_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else {
- goto handle_unusual;
- }
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4)) {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
- ::uint8_t* ToAgvCmd::_InternalSerialize(
- ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:NavMessage.ToAgvCmd)
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- // int32 H1 = 1;
- if (this->_internal_h1() != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(
- 1, this->_internal_h1(), target);
- }
- // int32 M1 = 2;
- if (this->_internal_m1() != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(
- 2, this->_internal_m1(), target);
- }
- // int32 T1 = 3;
- if (this->_internal_t1() != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(
- 3, this->_internal_t1(), target);
- }
- // float V1 = 4;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_v1 = this->_internal_v1();
- ::uint32_t raw_v1;
- memcpy(&raw_v1, &tmp_v1, sizeof(tmp_v1));
- if (raw_v1 != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteFloatToArray(
- 4, this->_internal_v1(), target);
- }
- // float W1 = 5;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_w1 = this->_internal_w1();
- ::uint32_t raw_w1;
- memcpy(&raw_w1, &tmp_w1, sizeof(tmp_w1));
- if (raw_w1 != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteFloatToArray(
- 5, this->_internal_w1(), target);
- }
- // float V2 = 6;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_v2 = this->_internal_v2();
- ::uint32_t raw_v2;
- memcpy(&raw_v2, &tmp_v2, sizeof(tmp_v2));
- if (raw_v2 != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteFloatToArray(
- 6, this->_internal_v2(), target);
- }
- // float W2 = 7;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_w2 = this->_internal_w2();
- ::uint32_t raw_w2;
- memcpy(&raw_w2, &tmp_w2, sizeof(tmp_w2));
- if (raw_w2 != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteFloatToArray(
- 7, this->_internal_w2(), target);
- }
- // float V3 = 8;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_v3 = this->_internal_v3();
- ::uint32_t raw_v3;
- memcpy(&raw_v3, &tmp_v3, sizeof(tmp_v3));
- if (raw_v3 != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteFloatToArray(
- 8, this->_internal_v3(), target);
- }
- // float W3 = 9;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_w3 = this->_internal_w3();
- ::uint32_t raw_w3;
- memcpy(&raw_w3, &tmp_w3, sizeof(tmp_w3));
- if (raw_w3 != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteFloatToArray(
- 9, this->_internal_w3(), target);
- }
- // float L1 = 10;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_l1 = this->_internal_l1();
- ::uint32_t raw_l1;
- memcpy(&raw_l1, &tmp_l1, sizeof(tmp_l1));
- if (raw_l1 != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteFloatToArray(
- 10, this->_internal_l1(), target);
- }
- // int32 P1 = 11;
- if (this->_internal_p1() != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(
- 11, this->_internal_p1(), target);
- }
- // float D1 = 12;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_d1 = this->_internal_d1();
- ::uint32_t raw_d1;
- memcpy(&raw_d1, &tmp_d1, sizeof(tmp_d1));
- if (raw_d1 != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteFloatToArray(
- 12, this->_internal_d1(), target);
- }
- // float Y1 = 13;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_y1 = this->_internal_y1();
- ::uint32_t raw_y1;
- memcpy(&raw_y1, &tmp_y1, sizeof(tmp_y1));
- if (raw_y1 != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteFloatToArray(
- 13, this->_internal_y1(), target);
- }
- // float Y2 = 14;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_y2 = this->_internal_y2();
- ::uint32_t raw_y2;
- memcpy(&raw_y2, &tmp_y2, sizeof(tmp_y2));
- if (raw_y2 != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteFloatToArray(
- 14, this->_internal_y2(), target);
- }
- // int32 end = 15;
- if (this->_internal_end() != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(
- 15, this->_internal_end(), target);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:NavMessage.ToAgvCmd)
- return target;
- }
- ::size_t ToAgvCmd::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:NavMessage.ToAgvCmd)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // int32 H1 = 1;
- if (this->_internal_h1() != 0) {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
- this->_internal_h1());
- }
- // int32 M1 = 2;
- if (this->_internal_m1() != 0) {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
- this->_internal_m1());
- }
- // int32 T1 = 3;
- if (this->_internal_t1() != 0) {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
- this->_internal_t1());
- }
- // float V1 = 4;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_v1 = this->_internal_v1();
- ::uint32_t raw_v1;
- memcpy(&raw_v1, &tmp_v1, sizeof(tmp_v1));
- if (raw_v1 != 0) {
- total_size += 5;
- }
- // float W1 = 5;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_w1 = this->_internal_w1();
- ::uint32_t raw_w1;
- memcpy(&raw_w1, &tmp_w1, sizeof(tmp_w1));
- if (raw_w1 != 0) {
- total_size += 5;
- }
- // float V2 = 6;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_v2 = this->_internal_v2();
- ::uint32_t raw_v2;
- memcpy(&raw_v2, &tmp_v2, sizeof(tmp_v2));
- if (raw_v2 != 0) {
- total_size += 5;
- }
- // float W2 = 7;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_w2 = this->_internal_w2();
- ::uint32_t raw_w2;
- memcpy(&raw_w2, &tmp_w2, sizeof(tmp_w2));
- if (raw_w2 != 0) {
- total_size += 5;
- }
- // float V3 = 8;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_v3 = this->_internal_v3();
- ::uint32_t raw_v3;
- memcpy(&raw_v3, &tmp_v3, sizeof(tmp_v3));
- if (raw_v3 != 0) {
- total_size += 5;
- }
- // float W3 = 9;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_w3 = this->_internal_w3();
- ::uint32_t raw_w3;
- memcpy(&raw_w3, &tmp_w3, sizeof(tmp_w3));
- if (raw_w3 != 0) {
- total_size += 5;
- }
- // float L1 = 10;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_l1 = this->_internal_l1();
- ::uint32_t raw_l1;
- memcpy(&raw_l1, &tmp_l1, sizeof(tmp_l1));
- if (raw_l1 != 0) {
- total_size += 5;
- }
- // int32 P1 = 11;
- if (this->_internal_p1() != 0) {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
- this->_internal_p1());
- }
- // float D1 = 12;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_d1 = this->_internal_d1();
- ::uint32_t raw_d1;
- memcpy(&raw_d1, &tmp_d1, sizeof(tmp_d1));
- if (raw_d1 != 0) {
- total_size += 5;
- }
- // float Y1 = 13;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_y1 = this->_internal_y1();
- ::uint32_t raw_y1;
- memcpy(&raw_y1, &tmp_y1, sizeof(tmp_y1));
- if (raw_y1 != 0) {
- total_size += 5;
- }
- // float Y2 = 14;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_y2 = this->_internal_y2();
- ::uint32_t raw_y2;
- memcpy(&raw_y2, &tmp_y2, sizeof(tmp_y2));
- if (raw_y2 != 0) {
- total_size += 5;
- }
- // int32 end = 15;
- if (this->_internal_end() != 0) {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
- this->_internal_end());
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ToAgvCmd::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- ToAgvCmd::MergeImpl
- };
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ToAgvCmd::GetClassData() const { return &_class_data_; }
- void ToAgvCmd::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
- auto* const _this = static_cast<ToAgvCmd*>(&to_msg);
- auto& from = static_cast<const ToAgvCmd&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:NavMessage.ToAgvCmd)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- if (from._internal_h1() != 0) {
- _this->_internal_set_h1(from._internal_h1());
- }
- if (from._internal_m1() != 0) {
- _this->_internal_set_m1(from._internal_m1());
- }
- if (from._internal_t1() != 0) {
- _this->_internal_set_t1(from._internal_t1());
- }
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_v1 = from._internal_v1();
- ::uint32_t raw_v1;
- memcpy(&raw_v1, &tmp_v1, sizeof(tmp_v1));
- if (raw_v1 != 0) {
- _this->_internal_set_v1(from._internal_v1());
- }
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_w1 = from._internal_w1();
- ::uint32_t raw_w1;
- memcpy(&raw_w1, &tmp_w1, sizeof(tmp_w1));
- if (raw_w1 != 0) {
- _this->_internal_set_w1(from._internal_w1());
- }
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_v2 = from._internal_v2();
- ::uint32_t raw_v2;
- memcpy(&raw_v2, &tmp_v2, sizeof(tmp_v2));
- if (raw_v2 != 0) {
- _this->_internal_set_v2(from._internal_v2());
- }
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_w2 = from._internal_w2();
- ::uint32_t raw_w2;
- memcpy(&raw_w2, &tmp_w2, sizeof(tmp_w2));
- if (raw_w2 != 0) {
- _this->_internal_set_w2(from._internal_w2());
- }
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_v3 = from._internal_v3();
- ::uint32_t raw_v3;
- memcpy(&raw_v3, &tmp_v3, sizeof(tmp_v3));
- if (raw_v3 != 0) {
- _this->_internal_set_v3(from._internal_v3());
- }
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_w3 = from._internal_w3();
- ::uint32_t raw_w3;
- memcpy(&raw_w3, &tmp_w3, sizeof(tmp_w3));
- if (raw_w3 != 0) {
- _this->_internal_set_w3(from._internal_w3());
- }
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_l1 = from._internal_l1();
- ::uint32_t raw_l1;
- memcpy(&raw_l1, &tmp_l1, sizeof(tmp_l1));
- if (raw_l1 != 0) {
- _this->_internal_set_l1(from._internal_l1());
- }
- if (from._internal_p1() != 0) {
- _this->_internal_set_p1(from._internal_p1());
- }
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_d1 = from._internal_d1();
- ::uint32_t raw_d1;
- memcpy(&raw_d1, &tmp_d1, sizeof(tmp_d1));
- if (raw_d1 != 0) {
- _this->_internal_set_d1(from._internal_d1());
- }
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_y1 = from._internal_y1();
- ::uint32_t raw_y1;
- memcpy(&raw_y1, &tmp_y1, sizeof(tmp_y1));
- if (raw_y1 != 0) {
- _this->_internal_set_y1(from._internal_y1());
- }
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_y2 = from._internal_y2();
- ::uint32_t raw_y2;
- memcpy(&raw_y2, &tmp_y2, sizeof(tmp_y2));
- if (raw_y2 != 0) {
- _this->_internal_set_y2(from._internal_y2());
- }
- if (from._internal_end() != 0) {
- _this->_internal_set_end(from._internal_end());
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
- void ToAgvCmd::CopyFrom(const ToAgvCmd& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:NavMessage.ToAgvCmd)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool ToAgvCmd::IsInitialized() const {
- return true;
- }
- void ToAgvCmd::InternalSwap(ToAgvCmd* other) {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(ToAgvCmd, _impl_.end_)
- + sizeof(ToAgvCmd::_impl_.end_)
- - PROTOBUF_FIELD_OFFSET(ToAgvCmd, _impl_.h1_)>(
- reinterpret_cast<char*>(&_impl_.h1_),
- reinterpret_cast<char*>(&other->_impl_.h1_));
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata ToAgvCmd::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_message_2eproto_getter, &descriptor_table_message_2eproto_once,
- file_level_metadata_message_2eproto[2]);
- }
- // ===================================================================
- class Pose2d::_Internal {
- public:
- };
- Pose2d::Pose2d(::PROTOBUF_NAMESPACE_ID::Arena* arena)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:NavMessage.Pose2d)
- }
- Pose2d::Pose2d(const Pose2d& from)
- : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(
- from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:NavMessage.Pose2d)
- }
- inline void Pose2d::SharedCtor(::_pb::Arena* arena) {
- (void)arena;
- new (&_impl_) Impl_{
- decltype(_impl_.x_) { 0 }
- , decltype(_impl_.y_) { 0 }
- , decltype(_impl_.theta_) { 0 }
- , /*decltype(_impl_._cached_size_)*/{}
- };
- }
- Pose2d::~Pose2d() {
- // @@protoc_insertion_point(destructor:NavMessage.Pose2d)
- if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
- (void)arena;
- return;
- }
- SharedDtor();
- }
- inline void Pose2d::SharedDtor() {
- ABSL_DCHECK(GetArenaForAllocation() == nullptr);
- }
- void Pose2d::SetCachedSize(int size) const {
- _impl_._cached_size_.Set(size);
- }
- void Pose2d::Clear() {
- // @@protoc_insertion_point(message_clear_start:NavMessage.Pose2d)
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- ::memset(&_impl_.x_, 0, static_cast<::size_t>(
- reinterpret_cast<char*>(&_impl_.theta_) -
- reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.theta_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- const char* Pose2d::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- while (!ctx->Done(&ptr)) {
- ::uint32_t tag;
- ptr = ::_pbi::ReadTag(ptr, &tag);
- switch (tag >> 3) {
- // float x = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 13)) {
- _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else {
- goto handle_unusual;
- }
- continue;
- // float y = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 21)) {
- _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else {
- goto handle_unusual;
- }
- continue;
- // float theta = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 29)) {
- _impl_.theta_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else {
- goto handle_unusual;
- }
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4)) {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
- ::uint8_t* Pose2d::_InternalSerialize(
- ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:NavMessage.Pose2d)
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- // float x = 1;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_x = this->_internal_x();
- ::uint32_t raw_x;
- memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
- if (raw_x != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteFloatToArray(
- 1, this->_internal_x(), target);
- }
- // float y = 2;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_y = this->_internal_y();
- ::uint32_t raw_y;
- memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
- if (raw_y != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteFloatToArray(
- 2, this->_internal_y(), target);
- }
- // float theta = 3;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_theta = this->_internal_theta();
- ::uint32_t raw_theta;
- memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta));
- if (raw_theta != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteFloatToArray(
- 3, this->_internal_theta(), target);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:NavMessage.Pose2d)
- return target;
- }
- ::size_t Pose2d::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:NavMessage.Pose2d)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // float x = 1;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_x = this->_internal_x();
- ::uint32_t raw_x;
- memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
- if (raw_x != 0) {
- total_size += 5;
- }
- // float y = 2;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_y = this->_internal_y();
- ::uint32_t raw_y;
- memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
- if (raw_y != 0) {
- total_size += 5;
- }
- // float theta = 3;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_theta = this->_internal_theta();
- ::uint32_t raw_theta;
- memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta));
- if (raw_theta != 0) {
- total_size += 5;
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Pose2d::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- Pose2d::MergeImpl
- };
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Pose2d::GetClassData() const { return &_class_data_; }
- void Pose2d::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
- auto* const _this = static_cast<Pose2d*>(&to_msg);
- auto& from = static_cast<const Pose2d&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:NavMessage.Pose2d)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_x = from._internal_x();
- ::uint32_t raw_x;
- memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
- if (raw_x != 0) {
- _this->_internal_set_x(from._internal_x());
- }
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_y = from._internal_y();
- ::uint32_t raw_y;
- memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
- if (raw_y != 0) {
- _this->_internal_set_y(from._internal_y());
- }
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_theta = from._internal_theta();
- ::uint32_t raw_theta;
- memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta));
- if (raw_theta != 0) {
- _this->_internal_set_theta(from._internal_theta());
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
- void Pose2d::CopyFrom(const Pose2d& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:NavMessage.Pose2d)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool Pose2d::IsInitialized() const {
- return true;
- }
- void Pose2d::InternalSwap(Pose2d* other) {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(Pose2d, _impl_.theta_)
- + sizeof(Pose2d::_impl_.theta_)
- - PROTOBUF_FIELD_OFFSET(Pose2d, _impl_.x_)>(
- reinterpret_cast<char*>(&_impl_.x_),
- reinterpret_cast<char*>(&other->_impl_.x_));
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata Pose2d::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_message_2eproto_getter, &descriptor_table_message_2eproto_once,
- file_level_metadata_message_2eproto[3]);
- }
- // ===================================================================
- class PathNode::_Internal {
- public:
- };
- PathNode::PathNode(::PROTOBUF_NAMESPACE_ID::Arena* arena)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:NavMessage.PathNode)
- }
- PathNode::PathNode(const PathNode& from)
- : ::PROTOBUF_NAMESPACE_ID::Message() {
- PathNode* const _this = this; (void)_this;
- new (&_impl_) Impl_{
- decltype(_impl_.id_) {}
- , decltype(_impl_.x_) {}
- , decltype(_impl_.y_) {}
- , decltype(_impl_.l_) {}
- , decltype(_impl_.w_) {}
- , decltype(_impl_.theta_) {}
- , /*decltype(_impl_._cached_size_)*/{}};
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- _impl_.id_.InitDefault();
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- _impl_.id_.Set("", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (!from._internal_id().empty()) {
- _this->_impl_.id_.Set(from._internal_id(), _this->GetArenaForAllocation());
- }
- ::memcpy(&_impl_.x_, &from._impl_.x_,
- static_cast<::size_t>(reinterpret_cast<char*>(&_impl_.theta_) -
- reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.theta_));
- // @@protoc_insertion_point(copy_constructor:NavMessage.PathNode)
- }
- inline void PathNode::SharedCtor(::_pb::Arena* arena) {
- (void)arena;
- new (&_impl_) Impl_{
- decltype(_impl_.id_) {}
- , decltype(_impl_.x_) { 0 }
- , decltype(_impl_.y_) { 0 }
- , decltype(_impl_.l_) { 0 }
- , decltype(_impl_.w_) { 0 }
- , decltype(_impl_.theta_) { 0 }
- , /*decltype(_impl_._cached_size_)*/{}
- };
- _impl_.id_.InitDefault();
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- _impl_.id_.Set("", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- }
- PathNode::~PathNode() {
- // @@protoc_insertion_point(destructor:NavMessage.PathNode)
- if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
- (void)arena;
- return;
- }
- SharedDtor();
- }
- inline void PathNode::SharedDtor() {
- ABSL_DCHECK(GetArenaForAllocation() == nullptr);
- _impl_.id_.Destroy();
- }
- void PathNode::SetCachedSize(int size) const {
- _impl_._cached_size_.Set(size);
- }
- void PathNode::Clear() {
- // @@protoc_insertion_point(message_clear_start:NavMessage.PathNode)
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- _impl_.id_.ClearToEmpty();
- ::memset(&_impl_.x_, 0, static_cast<::size_t>(
- reinterpret_cast<char*>(&_impl_.theta_) -
- reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.theta_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- const char* PathNode::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- while (!ctx->Done(&ptr)) {
- ::uint32_t tag;
- ptr = ::_pbi::ReadTag(ptr, &tag);
- switch (tag >> 3) {
- // float x = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 13)) {
- _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else {
- goto handle_unusual;
- }
- continue;
- // float y = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 21)) {
- _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else {
- goto handle_unusual;
- }
- continue;
- // float l = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 29)) {
- _impl_.l_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else {
- goto handle_unusual;
- }
- continue;
- // float w = 4;
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 37)) {
- _impl_.w_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else {
- goto handle_unusual;
- }
- continue;
- // float theta = 5;
- case 5:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 45)) {
- _impl_.theta_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else {
- goto handle_unusual;
- }
- continue;
- // string id = 6;
- case 6:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 50)) {
- auto str = _internal_mutable_id();
- ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(ptr);
- CHK_(::_pbi::VerifyUTF8(str, "NavMessage.PathNode.id"));
- } else {
- goto handle_unusual;
- }
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4)) {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
- ::uint8_t* PathNode::_InternalSerialize(
- ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:NavMessage.PathNode)
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- // float x = 1;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_x = this->_internal_x();
- ::uint32_t raw_x;
- memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
- if (raw_x != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteFloatToArray(
- 1, this->_internal_x(), target);
- }
- // float y = 2;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_y = this->_internal_y();
- ::uint32_t raw_y;
- memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
- if (raw_y != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteFloatToArray(
- 2, this->_internal_y(), target);
- }
- // float l = 3;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_l = this->_internal_l();
- ::uint32_t raw_l;
- memcpy(&raw_l, &tmp_l, sizeof(tmp_l));
- if (raw_l != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteFloatToArray(
- 3, this->_internal_l(), target);
- }
- // float w = 4;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_w = this->_internal_w();
- ::uint32_t raw_w;
- memcpy(&raw_w, &tmp_w, sizeof(tmp_w));
- if (raw_w != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteFloatToArray(
- 4, this->_internal_w(), target);
- }
- // float theta = 5;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_theta = this->_internal_theta();
- ::uint32_t raw_theta;
- memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta));
- if (raw_theta != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteFloatToArray(
- 5, this->_internal_theta(), target);
- }
- // string id = 6;
- if (!this->_internal_id().empty()) {
- const std::string& _s = this->_internal_id();
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "NavMessage.PathNode.id");
- target = stream->WriteStringMaybeAliased(6, _s, target);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:NavMessage.PathNode)
- return target;
- }
- ::size_t PathNode::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:NavMessage.PathNode)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // string id = 6;
- if (!this->_internal_id().empty()) {
- total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_id());
- }
- // float x = 1;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_x = this->_internal_x();
- ::uint32_t raw_x;
- memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
- if (raw_x != 0) {
- total_size += 5;
- }
- // float y = 2;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_y = this->_internal_y();
- ::uint32_t raw_y;
- memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
- if (raw_y != 0) {
- total_size += 5;
- }
- // float l = 3;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_l = this->_internal_l();
- ::uint32_t raw_l;
- memcpy(&raw_l, &tmp_l, sizeof(tmp_l));
- if (raw_l != 0) {
- total_size += 5;
- }
- // float w = 4;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_w = this->_internal_w();
- ::uint32_t raw_w;
- memcpy(&raw_w, &tmp_w, sizeof(tmp_w));
- if (raw_w != 0) {
- total_size += 5;
- }
- // float theta = 5;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_theta = this->_internal_theta();
- ::uint32_t raw_theta;
- memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta));
- if (raw_theta != 0) {
- total_size += 5;
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PathNode::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- PathNode::MergeImpl
- };
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PathNode::GetClassData() const { return &_class_data_; }
- void PathNode::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
- auto* const _this = static_cast<PathNode*>(&to_msg);
- auto& from = static_cast<const PathNode&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:NavMessage.PathNode)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- if (!from._internal_id().empty()) {
- _this->_internal_set_id(from._internal_id());
- }
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_x = from._internal_x();
- ::uint32_t raw_x;
- memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
- if (raw_x != 0) {
- _this->_internal_set_x(from._internal_x());
- }
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_y = from._internal_y();
- ::uint32_t raw_y;
- memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
- if (raw_y != 0) {
- _this->_internal_set_y(from._internal_y());
- }
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_l = from._internal_l();
- ::uint32_t raw_l;
- memcpy(&raw_l, &tmp_l, sizeof(tmp_l));
- if (raw_l != 0) {
- _this->_internal_set_l(from._internal_l());
- }
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_w = from._internal_w();
- ::uint32_t raw_w;
- memcpy(&raw_w, &tmp_w, sizeof(tmp_w));
- if (raw_w != 0) {
- _this->_internal_set_w(from._internal_w());
- }
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_theta = from._internal_theta();
- ::uint32_t raw_theta;
- memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta));
- if (raw_theta != 0) {
- _this->_internal_set_theta(from._internal_theta());
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
- void PathNode::CopyFrom(const PathNode& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:NavMessage.PathNode)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool PathNode::IsInitialized() const {
- return true;
- }
- void PathNode::InternalSwap(PathNode* other) {
- using std::swap;
- auto* lhs_arena = GetArenaForAllocation();
- auto* rhs_arena = other->GetArenaForAllocation();
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, lhs_arena,
- &other->_impl_.id_, rhs_arena);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(PathNode, _impl_.theta_)
- + sizeof(PathNode::_impl_.theta_)
- - PROTOBUF_FIELD_OFFSET(PathNode, _impl_.x_)>(
- reinterpret_cast<char*>(&_impl_.x_),
- reinterpret_cast<char*>(&other->_impl_.x_));
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata PathNode::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_message_2eproto_getter, &descriptor_table_message_2eproto_once,
- file_level_metadata_message_2eproto[4]);
- }
- // ===================================================================
- class Trajectory::_Internal {
- public:
- };
- Trajectory::Trajectory(::PROTOBUF_NAMESPACE_ID::Arena* arena)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:NavMessage.Trajectory)
- }
- Trajectory::Trajectory(const Trajectory& from)
- : ::PROTOBUF_NAMESPACE_ID::Message() {
- Trajectory* const _this = this; (void)_this;
- new (&_impl_) Impl_{
- decltype(_impl_.poses_){from._impl_.poses_}
- , /*decltype(_impl_._cached_size_)*/{}};
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:NavMessage.Trajectory)
- }
- inline void Trajectory::SharedCtor(::_pb::Arena* arena) {
- (void)arena;
- new (&_impl_) Impl_{
- decltype(_impl_.poses_){arena}
- , /*decltype(_impl_._cached_size_)*/{}
- };
- }
- Trajectory::~Trajectory() {
- // @@protoc_insertion_point(destructor:NavMessage.Trajectory)
- if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
- (void)arena;
- return;
- }
- SharedDtor();
- }
- inline void Trajectory::SharedDtor() {
- ABSL_DCHECK(GetArenaForAllocation() == nullptr);
- _internal_mutable_poses()->~RepeatedPtrField();
- }
- void Trajectory::SetCachedSize(int size) const {
- _impl_._cached_size_.Set(size);
- }
- void Trajectory::Clear() {
- // @@protoc_insertion_point(message_clear_start:NavMessage.Trajectory)
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- _internal_mutable_poses()->Clear();
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- const char* Trajectory::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- while (!ctx->Done(&ptr)) {
- ::uint32_t tag;
- ptr = ::_pbi::ReadTag(ptr, &tag);
- switch (tag >> 3) {
- // repeated .NavMessage.Pose2d poses = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
- ptr -= 1;
- do {
- ptr += 1;
- ptr = ctx->ParseMessage(_internal_add_poses(), ptr);
- CHK_(ptr);
- if (!ctx->DataAvailable(ptr)) break;
- } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
- } else {
- goto handle_unusual;
- }
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4)) {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
- ::uint8_t* Trajectory::_InternalSerialize(
- ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:NavMessage.Trajectory)
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- // repeated .NavMessage.Pose2d poses = 1;
- for (unsigned i = 0,
- n = static_cast<unsigned>(this->_internal_poses_size()); i < n; i++) {
- const auto& repfield = this->_internal_poses(i);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:NavMessage.Trajectory)
- return target;
- }
- ::size_t Trajectory::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:NavMessage.Trajectory)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // repeated .NavMessage.Pose2d poses = 1;
- total_size += 1UL * this->_internal_poses_size();
- for (const auto& msg : this->_internal_poses()) {
- total_size +=
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Trajectory::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- Trajectory::MergeImpl
- };
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Trajectory::GetClassData() const { return &_class_data_; }
- void Trajectory::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
- auto* const _this = static_cast<Trajectory*>(&to_msg);
- auto& from = static_cast<const Trajectory&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:NavMessage.Trajectory)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- _this->_internal_mutable_poses()->MergeFrom(from._internal_poses());
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
- void Trajectory::CopyFrom(const Trajectory& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:NavMessage.Trajectory)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool Trajectory::IsInitialized() const {
- return true;
- }
- void Trajectory::InternalSwap(Trajectory* other) {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- _internal_mutable_poses()->InternalSwap(other->_internal_mutable_poses());
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata Trajectory::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_message_2eproto_getter, &descriptor_table_message_2eproto_once,
- file_level_metadata_message_2eproto[5]);
- }
- // ===================================================================
- class NewAction::_Internal {
- public:
- using HasBits = decltype(std::declval<NewAction>()._impl_._has_bits_);
- static constexpr ::int32_t kHasBitsOffset =
- 8 * PROTOBUF_FIELD_OFFSET(NewAction, _impl_._has_bits_);
- static const ::NavMessage::PathNode& spacenode(const NewAction* msg);
- static void set_has_spacenode(HasBits* has_bits) {
- (*has_bits)[0] |= 1u;
- }
- static const ::NavMessage::PathNode& passnode(const NewAction* msg);
- static void set_has_passnode(HasBits* has_bits) {
- (*has_bits)[0] |= 2u;
- }
- static const ::NavMessage::PathNode& streetnode(const NewAction* msg);
- static void set_has_streetnode(HasBits* has_bits) {
- (*has_bits)[0] |= 4u;
- }
- };
- const ::NavMessage::PathNode&
- NewAction::_Internal::spacenode(const NewAction* msg) {
- return *msg->_impl_.spacenode_;
- }
- const ::NavMessage::PathNode&
- NewAction::_Internal::passnode(const NewAction* msg) {
- return *msg->_impl_.passnode_;
- }
- const ::NavMessage::PathNode&
- NewAction::_Internal::streetnode(const NewAction* msg) {
- return *msg->_impl_.streetnode_;
- }
- NewAction::NewAction(::PROTOBUF_NAMESPACE_ID::Arena* arena)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:NavMessage.NewAction)
- }
- NewAction::NewAction(const NewAction& from)
- : ::PROTOBUF_NAMESPACE_ID::Message() {
- NewAction* const _this = this; (void)_this;
- new (&_impl_) Impl_{
- decltype(_impl_._has_bits_){from._impl_._has_bits_}
- , /*decltype(_impl_._cached_size_)*/{}
- , decltype(_impl_.pathnodes_){from._impl_.pathnodes_}
- , decltype(_impl_.spacenode_){nullptr}
- , decltype(_impl_.passnode_){nullptr}
- , decltype(_impl_.streetnode_){nullptr}
- , decltype(_impl_.type_) {}
- , decltype(_impl_.wheelbase_) {}
- , decltype(_impl_.changedmode_) {}
- };
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
- _this->_impl_.spacenode_ = new ::NavMessage::PathNode(*from._impl_.spacenode_);
- }
- if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) {
- _this->_impl_.passnode_ = new ::NavMessage::PathNode(*from._impl_.passnode_);
- }
- if ((from._impl_._has_bits_[0] & 0x00000004u) != 0) {
- _this->_impl_.streetnode_ = new ::NavMessage::PathNode(*from._impl_.streetnode_);
- }
- ::memcpy(&_impl_.type_, &from._impl_.type_,
- static_cast<::size_t>(reinterpret_cast<char*>(&_impl_.changedmode_) -
- reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.changedmode_));
- // @@protoc_insertion_point(copy_constructor:NavMessage.NewAction)
- }
- inline void NewAction::SharedCtor(::_pb::Arena* arena) {
- (void)arena;
- new (&_impl_) Impl_{
- decltype(_impl_._has_bits_){}
- , /*decltype(_impl_._cached_size_)*/{}
- , decltype(_impl_.pathnodes_){arena}
- , decltype(_impl_.spacenode_){nullptr}
- , decltype(_impl_.passnode_){nullptr}
- , decltype(_impl_.streetnode_){nullptr}
- , decltype(_impl_.type_) { 0 }
- , decltype(_impl_.wheelbase_) { 0 }
- , decltype(_impl_.changedmode_) { 0 }
- };
- }
- NewAction::~NewAction() {
- // @@protoc_insertion_point(destructor:NavMessage.NewAction)
- if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
- (void)arena;
- return;
- }
- SharedDtor();
- }
- inline void NewAction::SharedDtor() {
- ABSL_DCHECK(GetArenaForAllocation() == nullptr);
- _internal_mutable_pathnodes()->~RepeatedPtrField();
- if (this != internal_default_instance()) delete _impl_.spacenode_;
- if (this != internal_default_instance()) delete _impl_.passnode_;
- if (this != internal_default_instance()) delete _impl_.streetnode_;
- }
- void NewAction::SetCachedSize(int size) const {
- _impl_._cached_size_.Set(size);
- }
- void NewAction::Clear() {
- // @@protoc_insertion_point(message_clear_start:NavMessage.NewAction)
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- _internal_mutable_pathnodes()->Clear();
- cached_has_bits = _impl_._has_bits_[0];
- if (cached_has_bits & 0x00000007u) {
- if (cached_has_bits & 0x00000001u) {
- ABSL_DCHECK(_impl_.spacenode_ != nullptr);
- _impl_.spacenode_->Clear();
- }
- if (cached_has_bits & 0x00000002u) {
- ABSL_DCHECK(_impl_.passnode_ != nullptr);
- _impl_.passnode_->Clear();
- }
- if (cached_has_bits & 0x00000004u) {
- ABSL_DCHECK(_impl_.streetnode_ != nullptr);
- _impl_.streetnode_->Clear();
- }
- }
- ::memset(&_impl_.type_, 0, static_cast<::size_t>(
- reinterpret_cast<char*>(&_impl_.changedmode_) -
- reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.changedmode_));
- _impl_._has_bits_.Clear();
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- const char* NewAction::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- _Internal::HasBits has_bits{};
- while (!ctx->Done(&ptr)) {
- ::uint32_t tag;
- ptr = ::_pbi::ReadTag(ptr, &tag);
- switch (tag >> 3) {
- // int32 type = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
- _impl_.type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else {
- goto handle_unusual;
- }
- continue;
- // .NavMessage.PathNode spaceNode = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
- ptr = ctx->ParseMessage(_internal_mutable_spacenode(), ptr);
- CHK_(ptr);
- } else {
- goto handle_unusual;
- }
- continue;
- // .NavMessage.PathNode passNode = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
- ptr = ctx->ParseMessage(_internal_mutable_passnode(), ptr);
- CHK_(ptr);
- } else {
- goto handle_unusual;
- }
- continue;
- // .NavMessage.PathNode streetNode = 4;
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
- ptr = ctx->ParseMessage(_internal_mutable_streetnode(), ptr);
- CHK_(ptr);
- } else {
- goto handle_unusual;
- }
- continue;
- // repeated .NavMessage.PathNode pathNodes = 5;
- case 5:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) {
- ptr -= 1;
- do {
- ptr += 1;
- ptr = ctx->ParseMessage(_internal_add_pathnodes(), ptr);
- CHK_(ptr);
- if (!ctx->DataAvailable(ptr)) break;
- } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr));
- } else {
- goto handle_unusual;
- }
- continue;
- // float wheelbase = 6;
- case 6:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 53)) {
- _impl_.wheelbase_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else {
- goto handle_unusual;
- }
- continue;
- // int32 changedMode = 7;
- case 7:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 56)) {
- _impl_.changedmode_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else {
- goto handle_unusual;
- }
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4)) {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- } // while
- message_done:
- _impl_._has_bits_.Or(has_bits);
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
- ::uint8_t* NewAction::_InternalSerialize(
- ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:NavMessage.NewAction)
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- // int32 type = 1;
- if (this->_internal_type() != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(
- 1, this->_internal_type(), target);
- }
- cached_has_bits = _impl_._has_bits_[0];
- // .NavMessage.PathNode spaceNode = 2;
- if (cached_has_bits & 0x00000001u) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(2, _Internal::spacenode(this),
- _Internal::spacenode(this).GetCachedSize(), target, stream);
- }
- // .NavMessage.PathNode passNode = 3;
- if (cached_has_bits & 0x00000002u) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(3, _Internal::passnode(this),
- _Internal::passnode(this).GetCachedSize(), target, stream);
- }
- // .NavMessage.PathNode streetNode = 4;
- if (cached_has_bits & 0x00000004u) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(4, _Internal::streetnode(this),
- _Internal::streetnode(this).GetCachedSize(), target, stream);
- }
- // repeated .NavMessage.PathNode pathNodes = 5;
- for (unsigned i = 0,
- n = static_cast<unsigned>(this->_internal_pathnodes_size()); i < n; i++) {
- const auto& repfield = this->_internal_pathnodes(i);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(5, repfield, repfield.GetCachedSize(), target, stream);
- }
- // float wheelbase = 6;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_wheelbase = this->_internal_wheelbase();
- ::uint32_t raw_wheelbase;
- memcpy(&raw_wheelbase, &tmp_wheelbase, sizeof(tmp_wheelbase));
- if (raw_wheelbase != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteFloatToArray(
- 6, this->_internal_wheelbase(), target);
- }
- // int32 changedMode = 7;
- if (this->_internal_changedmode() != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(
- 7, this->_internal_changedmode(), target);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:NavMessage.NewAction)
- return target;
- }
- ::size_t NewAction::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:NavMessage.NewAction)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // repeated .NavMessage.PathNode pathNodes = 5;
- total_size += 1UL * this->_internal_pathnodes_size();
- for (const auto& msg : this->_internal_pathnodes()) {
- total_size +=
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
- }
- cached_has_bits = _impl_._has_bits_[0];
- if (cached_has_bits & 0x00000007u) {
- // .NavMessage.PathNode spaceNode = 2;
- if (cached_has_bits & 0x00000001u) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *_impl_.spacenode_);
- }
- // .NavMessage.PathNode passNode = 3;
- if (cached_has_bits & 0x00000002u) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *_impl_.passnode_);
- }
- // .NavMessage.PathNode streetNode = 4;
- if (cached_has_bits & 0x00000004u) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *_impl_.streetnode_);
- }
- }
- // int32 type = 1;
- if (this->_internal_type() != 0) {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
- this->_internal_type());
- }
- // float wheelbase = 6;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_wheelbase = this->_internal_wheelbase();
- ::uint32_t raw_wheelbase;
- memcpy(&raw_wheelbase, &tmp_wheelbase, sizeof(tmp_wheelbase));
- if (raw_wheelbase != 0) {
- total_size += 5;
- }
- // int32 changedMode = 7;
- if (this->_internal_changedmode() != 0) {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
- this->_internal_changedmode());
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData NewAction::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- NewAction::MergeImpl
- };
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*NewAction::GetClassData() const { return &_class_data_; }
- void NewAction::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
- auto* const _this = static_cast<NewAction*>(&to_msg);
- auto& from = static_cast<const NewAction&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:NavMessage.NewAction)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- _this->_internal_mutable_pathnodes()->MergeFrom(from._internal_pathnodes());
- cached_has_bits = from._impl_._has_bits_[0];
- if (cached_has_bits & 0x00000007u) {
- if (cached_has_bits & 0x00000001u) {
- _this->_internal_mutable_spacenode()->::NavMessage::PathNode::MergeFrom(
- from._internal_spacenode());
- }
- if (cached_has_bits & 0x00000002u) {
- _this->_internal_mutable_passnode()->::NavMessage::PathNode::MergeFrom(
- from._internal_passnode());
- }
- if (cached_has_bits & 0x00000004u) {
- _this->_internal_mutable_streetnode()->::NavMessage::PathNode::MergeFrom(
- from._internal_streetnode());
- }
- }
- if (from._internal_type() != 0) {
- _this->_internal_set_type(from._internal_type());
- }
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_wheelbase = from._internal_wheelbase();
- ::uint32_t raw_wheelbase;
- memcpy(&raw_wheelbase, &tmp_wheelbase, sizeof(tmp_wheelbase));
- if (raw_wheelbase != 0) {
- _this->_internal_set_wheelbase(from._internal_wheelbase());
- }
- if (from._internal_changedmode() != 0) {
- _this->_internal_set_changedmode(from._internal_changedmode());
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
- void NewAction::CopyFrom(const NewAction& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:NavMessage.NewAction)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool NewAction::IsInitialized() const {
- return true;
- }
- void NewAction::InternalSwap(NewAction* other) {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
- _internal_mutable_pathnodes()->InternalSwap(other->_internal_mutable_pathnodes());
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(NewAction, _impl_.changedmode_)
- + sizeof(NewAction::_impl_.changedmode_)
- - PROTOBUF_FIELD_OFFSET(NewAction, _impl_.spacenode_)>(
- reinterpret_cast<char*>(&_impl_.spacenode_),
- reinterpret_cast<char*>(&other->_impl_.spacenode_));
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata NewAction::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_message_2eproto_getter, &descriptor_table_message_2eproto_once,
- file_level_metadata_message_2eproto[6]);
- }
- // ===================================================================
- class NavCmd::_Internal {
- public:
- };
- NavCmd::NavCmd(::PROTOBUF_NAMESPACE_ID::Arena* arena)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:NavMessage.NavCmd)
- }
- NavCmd::NavCmd(const NavCmd& from)
- : ::PROTOBUF_NAMESPACE_ID::Message() {
- NavCmd* const _this = this; (void)_this;
- new (&_impl_) Impl_{
- decltype(_impl_.newactions_){from._impl_.newactions_}
- , decltype(_impl_.key_) {}
- , decltype(_impl_.action_) {}
- , /*decltype(_impl_._cached_size_)*/{}};
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- _impl_.key_.InitDefault();
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- _impl_.key_.Set("", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (!from._internal_key().empty()) {
- _this->_impl_.key_.Set(from._internal_key(), _this->GetArenaForAllocation());
- }
- _this->_impl_.action_ = from._impl_.action_;
- // @@protoc_insertion_point(copy_constructor:NavMessage.NavCmd)
- }
- inline void NavCmd::SharedCtor(::_pb::Arena* arena) {
- (void)arena;
- new (&_impl_) Impl_{
- decltype(_impl_.newactions_){arena}
- , decltype(_impl_.key_) {}
- , decltype(_impl_.action_) { 0 }
- , /*decltype(_impl_._cached_size_)*/{}
- };
- _impl_.key_.InitDefault();
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- _impl_.key_.Set("", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- }
- NavCmd::~NavCmd() {
- // @@protoc_insertion_point(destructor:NavMessage.NavCmd)
- if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
- (void)arena;
- return;
- }
- SharedDtor();
- }
- inline void NavCmd::SharedDtor() {
- ABSL_DCHECK(GetArenaForAllocation() == nullptr);
- _internal_mutable_newactions()->~RepeatedPtrField();
- _impl_.key_.Destroy();
- }
- void NavCmd::SetCachedSize(int size) const {
- _impl_._cached_size_.Set(size);
- }
- void NavCmd::Clear() {
- // @@protoc_insertion_point(message_clear_start:NavMessage.NavCmd)
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- _internal_mutable_newactions()->Clear();
- _impl_.key_.ClearToEmpty();
- _impl_.action_ = 0;
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- const char* NavCmd::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- while (!ctx->Done(&ptr)) {
- ::uint32_t tag;
- ptr = ::_pbi::ReadTag(ptr, &tag);
- switch (tag >> 3) {
- // int32 action = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
- _impl_.action_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else {
- goto handle_unusual;
- }
- continue;
- // string key = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
- auto str = _internal_mutable_key();
- ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(ptr);
- CHK_(::_pbi::VerifyUTF8(str, "NavMessage.NavCmd.key"));
- } else {
- goto handle_unusual;
- }
- continue;
- // repeated .NavMessage.NewAction newActions = 5;
- case 5:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) {
- ptr -= 1;
- do {
- ptr += 1;
- ptr = ctx->ParseMessage(_internal_add_newactions(), ptr);
- CHK_(ptr);
- if (!ctx->DataAvailable(ptr)) break;
- } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr));
- } else {
- goto handle_unusual;
- }
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4)) {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
- ::uint8_t* NavCmd::_InternalSerialize(
- ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:NavMessage.NavCmd)
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- // int32 action = 1;
- if (this->_internal_action() != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(
- 1, this->_internal_action(), target);
- }
- // string key = 2;
- if (!this->_internal_key().empty()) {
- const std::string& _s = this->_internal_key();
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "NavMessage.NavCmd.key");
- target = stream->WriteStringMaybeAliased(2, _s, target);
- }
- // repeated .NavMessage.NewAction newActions = 5;
- for (unsigned i = 0,
- n = static_cast<unsigned>(this->_internal_newactions_size()); i < n; i++) {
- const auto& repfield = this->_internal_newactions(i);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(5, repfield, repfield.GetCachedSize(), target, stream);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:NavMessage.NavCmd)
- return target;
- }
- ::size_t NavCmd::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:NavMessage.NavCmd)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // repeated .NavMessage.NewAction newActions = 5;
- total_size += 1UL * this->_internal_newactions_size();
- for (const auto& msg : this->_internal_newactions()) {
- total_size +=
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
- }
- // string key = 2;
- if (!this->_internal_key().empty()) {
- total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_key());
- }
- // int32 action = 1;
- if (this->_internal_action() != 0) {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
- this->_internal_action());
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData NavCmd::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- NavCmd::MergeImpl
- };
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*NavCmd::GetClassData() const { return &_class_data_; }
- void NavCmd::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
- auto* const _this = static_cast<NavCmd*>(&to_msg);
- auto& from = static_cast<const NavCmd&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:NavMessage.NavCmd)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- _this->_internal_mutable_newactions()->MergeFrom(from._internal_newactions());
- if (!from._internal_key().empty()) {
- _this->_internal_set_key(from._internal_key());
- }
- if (from._internal_action() != 0) {
- _this->_internal_set_action(from._internal_action());
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
- void NavCmd::CopyFrom(const NavCmd& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:NavMessage.NavCmd)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool NavCmd::IsInitialized() const {
- return true;
- }
- void NavCmd::InternalSwap(NavCmd* other) {
- using std::swap;
- auto* lhs_arena = GetArenaForAllocation();
- auto* rhs_arena = other->GetArenaForAllocation();
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- _internal_mutable_newactions()->InternalSwap(other->_internal_mutable_newactions());
- ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.key_, lhs_arena,
- &other->_impl_.key_, rhs_arena);
- swap(_impl_.action_, other->_impl_.action_);
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata NavCmd::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_message_2eproto_getter, &descriptor_table_message_2eproto_once,
- file_level_metadata_message_2eproto[7]);
- }
- // ===================================================================
- class NavResponse::_Internal {
- public:
- };
- NavResponse::NavResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:NavMessage.NavResponse)
- }
- NavResponse::NavResponse(const NavResponse& from)
- : ::PROTOBUF_NAMESPACE_ID::Message() {
- NavResponse* const _this = this; (void)_this;
- new (&_impl_) Impl_{
- decltype(_impl_.info_) {}
- , decltype(_impl_.ret_) {}
- , /*decltype(_impl_._cached_size_)*/{}};
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- _impl_.info_.InitDefault();
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- _impl_.info_.Set("", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (!from._internal_info().empty()) {
- _this->_impl_.info_.Set(from._internal_info(), _this->GetArenaForAllocation());
- }
- _this->_impl_.ret_ = from._impl_.ret_;
- // @@protoc_insertion_point(copy_constructor:NavMessage.NavResponse)
- }
- inline void NavResponse::SharedCtor(::_pb::Arena* arena) {
- (void)arena;
- new (&_impl_) Impl_{
- decltype(_impl_.info_) {}
- , decltype(_impl_.ret_) { 0 }
- , /*decltype(_impl_._cached_size_)*/{}
- };
- _impl_.info_.InitDefault();
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- _impl_.info_.Set("", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- }
- NavResponse::~NavResponse() {
- // @@protoc_insertion_point(destructor:NavMessage.NavResponse)
- if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
- (void)arena;
- return;
- }
- SharedDtor();
- }
- inline void NavResponse::SharedDtor() {
- ABSL_DCHECK(GetArenaForAllocation() == nullptr);
- _impl_.info_.Destroy();
- }
- void NavResponse::SetCachedSize(int size) const {
- _impl_._cached_size_.Set(size);
- }
- void NavResponse::Clear() {
- // @@protoc_insertion_point(message_clear_start:NavMessage.NavResponse)
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- _impl_.info_.ClearToEmpty();
- _impl_.ret_ = 0;
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- const char* NavResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- while (!ctx->Done(&ptr)) {
- ::uint32_t tag;
- ptr = ::_pbi::ReadTag(ptr, &tag);
- switch (tag >> 3) {
- // int32 ret = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
- _impl_.ret_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else {
- goto handle_unusual;
- }
- continue;
- // string info = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
- auto str = _internal_mutable_info();
- ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(ptr);
- CHK_(::_pbi::VerifyUTF8(str, "NavMessage.NavResponse.info"));
- } else {
- goto handle_unusual;
- }
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4)) {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
- ::uint8_t* NavResponse::_InternalSerialize(
- ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:NavMessage.NavResponse)
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- // int32 ret = 1;
- if (this->_internal_ret() != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(
- 1, this->_internal_ret(), target);
- }
- // string info = 2;
- if (!this->_internal_info().empty()) {
- const std::string& _s = this->_internal_info();
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "NavMessage.NavResponse.info");
- target = stream->WriteStringMaybeAliased(2, _s, target);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:NavMessage.NavResponse)
- return target;
- }
- ::size_t NavResponse::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:NavMessage.NavResponse)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // string info = 2;
- if (!this->_internal_info().empty()) {
- total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_info());
- }
- // int32 ret = 1;
- if (this->_internal_ret() != 0) {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
- this->_internal_ret());
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData NavResponse::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- NavResponse::MergeImpl
- };
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*NavResponse::GetClassData() const { return &_class_data_; }
- void NavResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
- auto* const _this = static_cast<NavResponse*>(&to_msg);
- auto& from = static_cast<const NavResponse&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:NavMessage.NavResponse)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- if (!from._internal_info().empty()) {
- _this->_internal_set_info(from._internal_info());
- }
- if (from._internal_ret() != 0) {
- _this->_internal_set_ret(from._internal_ret());
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
- void NavResponse::CopyFrom(const NavResponse& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:NavMessage.NavResponse)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool NavResponse::IsInitialized() const {
- return true;
- }
- void NavResponse::InternalSwap(NavResponse* other) {
- using std::swap;
- auto* lhs_arena = GetArenaForAllocation();
- auto* rhs_arena = other->GetArenaForAllocation();
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.info_, lhs_arena,
- &other->_impl_.info_, rhs_arena);
- swap(_impl_.ret_, other->_impl_.ret_);
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata NavResponse::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_message_2eproto_getter, &descriptor_table_message_2eproto_once,
- file_level_metadata_message_2eproto[8]);
- }
- // ===================================================================
- class ManualCmd::_Internal {
- public:
- };
- ManualCmd::ManualCmd(::PROTOBUF_NAMESPACE_ID::Arena* arena)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:NavMessage.ManualCmd)
- }
- ManualCmd::ManualCmd(const ManualCmd& from)
- : ::PROTOBUF_NAMESPACE_ID::Message() {
- ManualCmd* const _this = this; (void)_this;
- new (&_impl_) Impl_{
- decltype(_impl_.key_) {}
- , decltype(_impl_.operation_type_) {}
- , decltype(_impl_.velocity_) {}
- , /*decltype(_impl_._cached_size_)*/{}};
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- _impl_.key_.InitDefault();
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- _impl_.key_.Set("", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (!from._internal_key().empty()) {
- _this->_impl_.key_.Set(from._internal_key(), _this->GetArenaForAllocation());
- }
- ::memcpy(&_impl_.operation_type_, &from._impl_.operation_type_,
- static_cast<::size_t>(reinterpret_cast<char*>(&_impl_.velocity_) -
- reinterpret_cast<char*>(&_impl_.operation_type_)) + sizeof(_impl_.velocity_));
- // @@protoc_insertion_point(copy_constructor:NavMessage.ManualCmd)
- }
- inline void ManualCmd::SharedCtor(::_pb::Arena* arena) {
- (void)arena;
- new (&_impl_) Impl_{
- decltype(_impl_.key_) {}
- , decltype(_impl_.operation_type_) { 0 }
- , decltype(_impl_.velocity_) { 0 }
- , /*decltype(_impl_._cached_size_)*/{}
- };
- _impl_.key_.InitDefault();
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- _impl_.key_.Set("", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- }
- ManualCmd::~ManualCmd() {
- // @@protoc_insertion_point(destructor:NavMessage.ManualCmd)
- if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
- (void)arena;
- return;
- }
- SharedDtor();
- }
- inline void ManualCmd::SharedDtor() {
- ABSL_DCHECK(GetArenaForAllocation() == nullptr);
- _impl_.key_.Destroy();
- }
- void ManualCmd::SetCachedSize(int size) const {
- _impl_._cached_size_.Set(size);
- }
- void ManualCmd::Clear() {
- // @@protoc_insertion_point(message_clear_start:NavMessage.ManualCmd)
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- _impl_.key_.ClearToEmpty();
- ::memset(&_impl_.operation_type_, 0, static_cast<::size_t>(
- reinterpret_cast<char*>(&_impl_.velocity_) -
- reinterpret_cast<char*>(&_impl_.operation_type_)) + sizeof(_impl_.velocity_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- const char* ManualCmd::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- while (!ctx->Done(&ptr)) {
- ::uint32_t tag;
- ptr = ::_pbi::ReadTag(ptr, &tag);
- switch (tag >> 3) {
- // string key = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
- auto str = _internal_mutable_key();
- ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(ptr);
- CHK_(::_pbi::VerifyUTF8(str, "NavMessage.ManualCmd.key"));
- } else {
- goto handle_unusual;
- }
- continue;
- // int32 operation_type = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
- _impl_.operation_type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else {
- goto handle_unusual;
- }
- continue;
- // float velocity = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 29)) {
- _impl_.velocity_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else {
- goto handle_unusual;
- }
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4)) {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
- ::uint8_t* ManualCmd::_InternalSerialize(
- ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:NavMessage.ManualCmd)
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- // string key = 1;
- if (!this->_internal_key().empty()) {
- const std::string& _s = this->_internal_key();
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "NavMessage.ManualCmd.key");
- target = stream->WriteStringMaybeAliased(1, _s, target);
- }
- // int32 operation_type = 2;
- if (this->_internal_operation_type() != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(
- 2, this->_internal_operation_type(), target);
- }
- // float velocity = 3;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_velocity = this->_internal_velocity();
- ::uint32_t raw_velocity;
- memcpy(&raw_velocity, &tmp_velocity, sizeof(tmp_velocity));
- if (raw_velocity != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteFloatToArray(
- 3, this->_internal_velocity(), target);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:NavMessage.ManualCmd)
- return target;
- }
- ::size_t ManualCmd::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:NavMessage.ManualCmd)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // string key = 1;
- if (!this->_internal_key().empty()) {
- total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_key());
- }
- // int32 operation_type = 2;
- if (this->_internal_operation_type() != 0) {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
- this->_internal_operation_type());
- }
- // float velocity = 3;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_velocity = this->_internal_velocity();
- ::uint32_t raw_velocity;
- memcpy(&raw_velocity, &tmp_velocity, sizeof(tmp_velocity));
- if (raw_velocity != 0) {
- total_size += 5;
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ManualCmd::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- ManualCmd::MergeImpl
- };
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ManualCmd::GetClassData() const { return &_class_data_; }
- void ManualCmd::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
- auto* const _this = static_cast<ManualCmd*>(&to_msg);
- auto& from = static_cast<const ManualCmd&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:NavMessage.ManualCmd)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- if (!from._internal_key().empty()) {
- _this->_internal_set_key(from._internal_key());
- }
- if (from._internal_operation_type() != 0) {
- _this->_internal_set_operation_type(from._internal_operation_type());
- }
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_velocity = from._internal_velocity();
- ::uint32_t raw_velocity;
- memcpy(&raw_velocity, &tmp_velocity, sizeof(tmp_velocity));
- if (raw_velocity != 0) {
- _this->_internal_set_velocity(from._internal_velocity());
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
- void ManualCmd::CopyFrom(const ManualCmd& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:NavMessage.ManualCmd)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool ManualCmd::IsInitialized() const {
- return true;
- }
- void ManualCmd::InternalSwap(ManualCmd* other) {
- using std::swap;
- auto* lhs_arena = GetArenaForAllocation();
- auto* rhs_arena = other->GetArenaForAllocation();
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.key_, lhs_arena,
- &other->_impl_.key_, rhs_arena);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(ManualCmd, _impl_.velocity_)
- + sizeof(ManualCmd::_impl_.velocity_)
- - PROTOBUF_FIELD_OFFSET(ManualCmd, _impl_.operation_type_)>(
- reinterpret_cast<char*>(&_impl_.operation_type_),
- reinterpret_cast<char*>(&other->_impl_.operation_type_));
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata ManualCmd::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_message_2eproto_getter, &descriptor_table_message_2eproto_once,
- file_level_metadata_message_2eproto[9]);
- }
- // ===================================================================
- class NavStatu::_Internal {
- public:
- using HasBits = decltype(std::declval<NavStatu>()._impl_._has_bits_);
- static constexpr ::int32_t kHasBitsOffset =
- 8 * PROTOBUF_FIELD_OFFSET(NavStatu, _impl_._has_bits_);
- static const ::NavMessage::LidarOdomStatu& odom(const NavStatu* msg);
- static void set_has_odom(HasBits* has_bits) {
- (*has_bits)[0] |= 1u;
- }
- static const ::NavMessage::Trajectory& selected_traj(const NavStatu* msg);
- static void set_has_selected_traj(HasBits* has_bits) {
- (*has_bits)[0] |= 2u;
- }
- static const ::NavMessage::Trajectory& predict_traj(const NavStatu* msg);
- static void set_has_predict_traj(HasBits* has_bits) {
- (*has_bits)[0] |= 4u;
- }
- };
- const ::NavMessage::LidarOdomStatu&
- NavStatu::_Internal::odom(const NavStatu* msg) {
- return *msg->_impl_.odom_;
- }
- const ::NavMessage::Trajectory&
- NavStatu::_Internal::selected_traj(const NavStatu* msg) {
- return *msg->_impl_.selected_traj_;
- }
- const ::NavMessage::Trajectory&
- NavStatu::_Internal::predict_traj(const NavStatu* msg) {
- return *msg->_impl_.predict_traj_;
- }
- NavStatu::NavStatu(::PROTOBUF_NAMESPACE_ID::Arena* arena)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:NavMessage.NavStatu)
- }
- NavStatu::NavStatu(const NavStatu& from)
- : ::PROTOBUF_NAMESPACE_ID::Message() {
- NavStatu* const _this = this; (void)_this;
- new (&_impl_) Impl_{
- decltype(_impl_._has_bits_){from._impl_._has_bits_}
- , /*decltype(_impl_._cached_size_)*/{}
- , decltype(_impl_.key_) {}
- , decltype(_impl_.space_id_) {}
- , decltype(_impl_.odom_){nullptr}
- , decltype(_impl_.selected_traj_){nullptr}
- , decltype(_impl_.predict_traj_){nullptr}
- , decltype(_impl_.statu_) {}
- , decltype(_impl_.move_mode_) {}
- , decltype(_impl_.main_agv_) {}
- , decltype(_impl_.in_space_) {}
- };
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- _impl_.key_.InitDefault();
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- _impl_.key_.Set("", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (!from._internal_key().empty()) {
- _this->_impl_.key_.Set(from._internal_key(), _this->GetArenaForAllocation());
- }
- _impl_.space_id_.InitDefault();
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- _impl_.space_id_.Set("", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (!from._internal_space_id().empty()) {
- _this->_impl_.space_id_.Set(from._internal_space_id(), _this->GetArenaForAllocation());
- }
- if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
- _this->_impl_.odom_ = new ::NavMessage::LidarOdomStatu(*from._impl_.odom_);
- }
- if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) {
- _this->_impl_.selected_traj_ = new ::NavMessage::Trajectory(*from._impl_.selected_traj_);
- }
- if ((from._impl_._has_bits_[0] & 0x00000004u) != 0) {
- _this->_impl_.predict_traj_ = new ::NavMessage::Trajectory(*from._impl_.predict_traj_);
- }
- ::memcpy(&_impl_.statu_, &from._impl_.statu_,
- static_cast<::size_t>(reinterpret_cast<char*>(&_impl_.in_space_) -
- reinterpret_cast<char*>(&_impl_.statu_)) + sizeof(_impl_.in_space_));
- // @@protoc_insertion_point(copy_constructor:NavMessage.NavStatu)
- }
- inline void NavStatu::SharedCtor(::_pb::Arena* arena) {
- (void)arena;
- new (&_impl_) Impl_{
- decltype(_impl_._has_bits_){}
- , /*decltype(_impl_._cached_size_)*/{}
- , decltype(_impl_.key_) {}
- , decltype(_impl_.space_id_) {}
- , decltype(_impl_.odom_){nullptr}
- , decltype(_impl_.selected_traj_){nullptr}
- , decltype(_impl_.predict_traj_){nullptr}
- , decltype(_impl_.statu_) { 0 }
- , decltype(_impl_.move_mode_) { 0 }
- , decltype(_impl_.main_agv_) { false }
- , decltype(_impl_.in_space_) { false }
- };
- _impl_.key_.InitDefault();
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- _impl_.key_.Set("", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- _impl_.space_id_.InitDefault();
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- _impl_.space_id_.Set("", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- }
- NavStatu::~NavStatu() {
- // @@protoc_insertion_point(destructor:NavMessage.NavStatu)
- if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
- (void)arena;
- return;
- }
- SharedDtor();
- }
- inline void NavStatu::SharedDtor() {
- ABSL_DCHECK(GetArenaForAllocation() == nullptr);
- _impl_.key_.Destroy();
- _impl_.space_id_.Destroy();
- if (this != internal_default_instance()) delete _impl_.odom_;
- if (this != internal_default_instance()) delete _impl_.selected_traj_;
- if (this != internal_default_instance()) delete _impl_.predict_traj_;
- }
- void NavStatu::SetCachedSize(int size) const {
- _impl_._cached_size_.Set(size);
- }
- void NavStatu::Clear() {
- // @@protoc_insertion_point(message_clear_start:NavMessage.NavStatu)
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- _impl_.key_.ClearToEmpty();
- _impl_.space_id_.ClearToEmpty();
- cached_has_bits = _impl_._has_bits_[0];
- if (cached_has_bits & 0x00000007u) {
- if (cached_has_bits & 0x00000001u) {
- ABSL_DCHECK(_impl_.odom_ != nullptr);
- _impl_.odom_->Clear();
- }
- if (cached_has_bits & 0x00000002u) {
- ABSL_DCHECK(_impl_.selected_traj_ != nullptr);
- _impl_.selected_traj_->Clear();
- }
- if (cached_has_bits & 0x00000004u) {
- ABSL_DCHECK(_impl_.predict_traj_ != nullptr);
- _impl_.predict_traj_->Clear();
- }
- }
- ::memset(&_impl_.statu_, 0, static_cast<::size_t>(
- reinterpret_cast<char*>(&_impl_.in_space_) -
- reinterpret_cast<char*>(&_impl_.statu_)) + sizeof(_impl_.in_space_));
- _impl_._has_bits_.Clear();
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- const char* NavStatu::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- _Internal::HasBits has_bits{};
- while (!ctx->Done(&ptr)) {
- ::uint32_t tag;
- ptr = ::_pbi::ReadTag(ptr, &tag);
- switch (tag >> 3) {
- // int32 statu = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
- _impl_.statu_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else {
- goto handle_unusual;
- }
- continue;
- // bool main_agv = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
- _impl_.main_agv_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- } else {
- goto handle_unusual;
- }
- continue;
- // int32 move_mode = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
- _impl_.move_mode_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else {
- goto handle_unusual;
- }
- continue;
- // .NavMessage.LidarOdomStatu odom = 4;
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
- ptr = ctx->ParseMessage(_internal_mutable_odom(), ptr);
- CHK_(ptr);
- } else {
- goto handle_unusual;
- }
- continue;
- // string key = 5;
- case 5:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) {
- auto str = _internal_mutable_key();
- ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(ptr);
- CHK_(::_pbi::VerifyUTF8(str, "NavMessage.NavStatu.key"));
- } else {
- goto handle_unusual;
- }
- continue;
- // .NavMessage.Trajectory selected_traj = 6;
- case 6:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 50)) {
- ptr = ctx->ParseMessage(_internal_mutable_selected_traj(), ptr);
- CHK_(ptr);
- } else {
- goto handle_unusual;
- }
- continue;
- // .NavMessage.Trajectory predict_traj = 7;
- case 7:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 58)) {
- ptr = ctx->ParseMessage(_internal_mutable_predict_traj(), ptr);
- CHK_(ptr);
- } else {
- goto handle_unusual;
- }
- continue;
- // bool in_space = 8;
- case 8:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 64)) {
- _impl_.in_space_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- } else {
- goto handle_unusual;
- }
- continue;
- // string space_id = 9;
- case 9:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 74)) {
- auto str = _internal_mutable_space_id();
- ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(ptr);
- CHK_(::_pbi::VerifyUTF8(str, "NavMessage.NavStatu.space_id"));
- } else {
- goto handle_unusual;
- }
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4)) {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- } // while
- message_done:
- _impl_._has_bits_.Or(has_bits);
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
- ::uint8_t* NavStatu::_InternalSerialize(
- ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:NavMessage.NavStatu)
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- // int32 statu = 1;
- if (this->_internal_statu() != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(
- 1, this->_internal_statu(), target);
- }
- // bool main_agv = 2;
- if (this->_internal_main_agv() != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteBoolToArray(
- 2, this->_internal_main_agv(), target);
- }
- // int32 move_mode = 3;
- if (this->_internal_move_mode() != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(
- 3, this->_internal_move_mode(), target);
- }
- cached_has_bits = _impl_._has_bits_[0];
- // .NavMessage.LidarOdomStatu odom = 4;
- if (cached_has_bits & 0x00000001u) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(4, _Internal::odom(this),
- _Internal::odom(this).GetCachedSize(), target, stream);
- }
- // string key = 5;
- if (!this->_internal_key().empty()) {
- const std::string& _s = this->_internal_key();
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "NavMessage.NavStatu.key");
- target = stream->WriteStringMaybeAliased(5, _s, target);
- }
- // .NavMessage.Trajectory selected_traj = 6;
- if (cached_has_bits & 0x00000002u) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(6, _Internal::selected_traj(this),
- _Internal::selected_traj(this).GetCachedSize(), target, stream);
- }
- // .NavMessage.Trajectory predict_traj = 7;
- if (cached_has_bits & 0x00000004u) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(7, _Internal::predict_traj(this),
- _Internal::predict_traj(this).GetCachedSize(), target, stream);
- }
- // bool in_space = 8;
- if (this->_internal_in_space() != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteBoolToArray(
- 8, this->_internal_in_space(), target);
- }
- // string space_id = 9;
- if (!this->_internal_space_id().empty()) {
- const std::string& _s = this->_internal_space_id();
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "NavMessage.NavStatu.space_id");
- target = stream->WriteStringMaybeAliased(9, _s, target);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:NavMessage.NavStatu)
- return target;
- }
- ::size_t NavStatu::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:NavMessage.NavStatu)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // string key = 5;
- if (!this->_internal_key().empty()) {
- total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_key());
- }
- // string space_id = 9;
- if (!this->_internal_space_id().empty()) {
- total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_space_id());
- }
- cached_has_bits = _impl_._has_bits_[0];
- if (cached_has_bits & 0x00000007u) {
- // .NavMessage.LidarOdomStatu odom = 4;
- if (cached_has_bits & 0x00000001u) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *_impl_.odom_);
- }
- // .NavMessage.Trajectory selected_traj = 6;
- if (cached_has_bits & 0x00000002u) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *_impl_.selected_traj_);
- }
- // .NavMessage.Trajectory predict_traj = 7;
- if (cached_has_bits & 0x00000004u) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *_impl_.predict_traj_);
- }
- }
- // int32 statu = 1;
- if (this->_internal_statu() != 0) {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
- this->_internal_statu());
- }
- // int32 move_mode = 3;
- if (this->_internal_move_mode() != 0) {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
- this->_internal_move_mode());
- }
- // bool main_agv = 2;
- if (this->_internal_main_agv() != 0) {
- total_size += 2;
- }
- // bool in_space = 8;
- if (this->_internal_in_space() != 0) {
- total_size += 2;
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData NavStatu::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- NavStatu::MergeImpl
- };
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*NavStatu::GetClassData() const { return &_class_data_; }
- void NavStatu::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
- auto* const _this = static_cast<NavStatu*>(&to_msg);
- auto& from = static_cast<const NavStatu&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:NavMessage.NavStatu)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- if (!from._internal_key().empty()) {
- _this->_internal_set_key(from._internal_key());
- }
- if (!from._internal_space_id().empty()) {
- _this->_internal_set_space_id(from._internal_space_id());
- }
- cached_has_bits = from._impl_._has_bits_[0];
- if (cached_has_bits & 0x00000007u) {
- if (cached_has_bits & 0x00000001u) {
- _this->_internal_mutable_odom()->::NavMessage::LidarOdomStatu::MergeFrom(
- from._internal_odom());
- }
- if (cached_has_bits & 0x00000002u) {
- _this->_internal_mutable_selected_traj()->::NavMessage::Trajectory::MergeFrom(
- from._internal_selected_traj());
- }
- if (cached_has_bits & 0x00000004u) {
- _this->_internal_mutable_predict_traj()->::NavMessage::Trajectory::MergeFrom(
- from._internal_predict_traj());
- }
- }
- if (from._internal_statu() != 0) {
- _this->_internal_set_statu(from._internal_statu());
- }
- if (from._internal_move_mode() != 0) {
- _this->_internal_set_move_mode(from._internal_move_mode());
- }
- if (from._internal_main_agv() != 0) {
- _this->_internal_set_main_agv(from._internal_main_agv());
- }
- if (from._internal_in_space() != 0) {
- _this->_internal_set_in_space(from._internal_in_space());
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
- void NavStatu::CopyFrom(const NavStatu& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:NavMessage.NavStatu)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool NavStatu::IsInitialized() const {
- return true;
- }
- void NavStatu::InternalSwap(NavStatu* other) {
- using std::swap;
- auto* lhs_arena = GetArenaForAllocation();
- auto* rhs_arena = other->GetArenaForAllocation();
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
- ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.key_, lhs_arena,
- &other->_impl_.key_, rhs_arena);
- ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.space_id_, lhs_arena,
- &other->_impl_.space_id_, rhs_arena);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(NavStatu, _impl_.in_space_)
- + sizeof(NavStatu::_impl_.in_space_)
- - PROTOBUF_FIELD_OFFSET(NavStatu, _impl_.odom_)>(
- reinterpret_cast<char*>(&_impl_.odom_),
- reinterpret_cast<char*>(&other->_impl_.odom_));
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata NavStatu::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_message_2eproto_getter, &descriptor_table_message_2eproto_once,
- file_level_metadata_message_2eproto[10]);
- }
- // ===================================================================
- class RobotStatu::_Internal {
- public:
- using HasBits = decltype(std::declval<RobotStatu>()._impl_._has_bits_);
- static constexpr ::int32_t kHasBitsOffset =
- 8 * PROTOBUF_FIELD_OFFSET(RobotStatu, _impl_._has_bits_);
- static const ::NavMessage::AgvStatu& agvstatu(const RobotStatu* msg);
- static void set_has_agvstatu(HasBits* has_bits) {
- (*has_bits)[0] |= 1u;
- }
- };
- const ::NavMessage::AgvStatu&
- RobotStatu::_Internal::agvstatu(const RobotStatu* msg) {
- return *msg->_impl_.agvstatu_;
- }
- RobotStatu::RobotStatu(::PROTOBUF_NAMESPACE_ID::Arena* arena)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:NavMessage.RobotStatu)
- }
- RobotStatu::RobotStatu(const RobotStatu& from)
- : ::PROTOBUF_NAMESPACE_ID::Message() {
- RobotStatu* const _this = this; (void)_this;
- new (&_impl_) Impl_{
- decltype(_impl_._has_bits_){from._impl_._has_bits_}
- , /*decltype(_impl_._cached_size_)*/{}
- , decltype(_impl_.agvstatu_){nullptr}
- , decltype(_impl_.x_) {}
- , decltype(_impl_.y_) {}
- , decltype(_impl_.theta_) {}
- };
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
- _this->_impl_.agvstatu_ = new ::NavMessage::AgvStatu(*from._impl_.agvstatu_);
- }
- ::memcpy(&_impl_.x_, &from._impl_.x_,
- static_cast<::size_t>(reinterpret_cast<char*>(&_impl_.theta_) -
- reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.theta_));
- // @@protoc_insertion_point(copy_constructor:NavMessage.RobotStatu)
- }
- inline void RobotStatu::SharedCtor(::_pb::Arena* arena) {
- (void)arena;
- new (&_impl_) Impl_{
- decltype(_impl_._has_bits_){}
- , /*decltype(_impl_._cached_size_)*/{}
- , decltype(_impl_.agvstatu_){nullptr}
- , decltype(_impl_.x_) { 0 }
- , decltype(_impl_.y_) { 0 }
- , decltype(_impl_.theta_) { 0 }
- };
- }
- RobotStatu::~RobotStatu() {
- // @@protoc_insertion_point(destructor:NavMessage.RobotStatu)
- if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
- (void)arena;
- return;
- }
- SharedDtor();
- }
- inline void RobotStatu::SharedDtor() {
- ABSL_DCHECK(GetArenaForAllocation() == nullptr);
- if (this != internal_default_instance()) delete _impl_.agvstatu_;
- }
- void RobotStatu::SetCachedSize(int size) const {
- _impl_._cached_size_.Set(size);
- }
- void RobotStatu::Clear() {
- // @@protoc_insertion_point(message_clear_start:NavMessage.RobotStatu)
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- cached_has_bits = _impl_._has_bits_[0];
- if (cached_has_bits & 0x00000001u) {
- ABSL_DCHECK(_impl_.agvstatu_ != nullptr);
- _impl_.agvstatu_->Clear();
- }
- ::memset(&_impl_.x_, 0, static_cast<::size_t>(
- reinterpret_cast<char*>(&_impl_.theta_) -
- reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.theta_));
- _impl_._has_bits_.Clear();
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- const char* RobotStatu::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- _Internal::HasBits has_bits{};
- while (!ctx->Done(&ptr)) {
- ::uint32_t tag;
- ptr = ::_pbi::ReadTag(ptr, &tag);
- switch (tag >> 3) {
- // float x = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 13)) {
- _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else {
- goto handle_unusual;
- }
- continue;
- // float y = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 21)) {
- _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else {
- goto handle_unusual;
- }
- continue;
- // float theta = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 29)) {
- _impl_.theta_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else {
- goto handle_unusual;
- }
- continue;
- // .NavMessage.AgvStatu agvStatu = 4;
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
- ptr = ctx->ParseMessage(_internal_mutable_agvstatu(), ptr);
- CHK_(ptr);
- } else {
- goto handle_unusual;
- }
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4)) {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- } // while
- message_done:
- _impl_._has_bits_.Or(has_bits);
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
- ::uint8_t* RobotStatu::_InternalSerialize(
- ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:NavMessage.RobotStatu)
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- // float x = 1;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_x = this->_internal_x();
- ::uint32_t raw_x;
- memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
- if (raw_x != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteFloatToArray(
- 1, this->_internal_x(), target);
- }
- // float y = 2;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_y = this->_internal_y();
- ::uint32_t raw_y;
- memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
- if (raw_y != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteFloatToArray(
- 2, this->_internal_y(), target);
- }
- // float theta = 3;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_theta = this->_internal_theta();
- ::uint32_t raw_theta;
- memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta));
- if (raw_theta != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteFloatToArray(
- 3, this->_internal_theta(), target);
- }
- cached_has_bits = _impl_._has_bits_[0];
- // .NavMessage.AgvStatu agvStatu = 4;
- if (cached_has_bits & 0x00000001u) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(4, _Internal::agvstatu(this),
- _Internal::agvstatu(this).GetCachedSize(), target, stream);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:NavMessage.RobotStatu)
- return target;
- }
- ::size_t RobotStatu::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:NavMessage.RobotStatu)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // .NavMessage.AgvStatu agvStatu = 4;
- cached_has_bits = _impl_._has_bits_[0];
- if (cached_has_bits & 0x00000001u) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *_impl_.agvstatu_);
- }
- // float x = 1;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_x = this->_internal_x();
- ::uint32_t raw_x;
- memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
- if (raw_x != 0) {
- total_size += 5;
- }
- // float y = 2;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_y = this->_internal_y();
- ::uint32_t raw_y;
- memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
- if (raw_y != 0) {
- total_size += 5;
- }
- // float theta = 3;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_theta = this->_internal_theta();
- ::uint32_t raw_theta;
- memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta));
- if (raw_theta != 0) {
- total_size += 5;
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RobotStatu::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- RobotStatu::MergeImpl
- };
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RobotStatu::GetClassData() const { return &_class_data_; }
- void RobotStatu::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
- auto* const _this = static_cast<RobotStatu*>(&to_msg);
- auto& from = static_cast<const RobotStatu&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:NavMessage.RobotStatu)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
- _this->_internal_mutable_agvstatu()->::NavMessage::AgvStatu::MergeFrom(
- from._internal_agvstatu());
- }
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_x = from._internal_x();
- ::uint32_t raw_x;
- memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
- if (raw_x != 0) {
- _this->_internal_set_x(from._internal_x());
- }
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_y = from._internal_y();
- ::uint32_t raw_y;
- memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
- if (raw_y != 0) {
- _this->_internal_set_y(from._internal_y());
- }
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_theta = from._internal_theta();
- ::uint32_t raw_theta;
- memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta));
- if (raw_theta != 0) {
- _this->_internal_set_theta(from._internal_theta());
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
- void RobotStatu::CopyFrom(const RobotStatu& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:NavMessage.RobotStatu)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool RobotStatu::IsInitialized() const {
- return true;
- }
- void RobotStatu::InternalSwap(RobotStatu* other) {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(RobotStatu, _impl_.theta_)
- + sizeof(RobotStatu::_impl_.theta_)
- - PROTOBUF_FIELD_OFFSET(RobotStatu, _impl_.agvstatu_)>(
- reinterpret_cast<char*>(&_impl_.agvstatu_),
- reinterpret_cast<char*>(&other->_impl_.agvstatu_));
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata RobotStatu::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_message_2eproto_getter, &descriptor_table_message_2eproto_once,
- file_level_metadata_message_2eproto[11]);
- }
- // @@protoc_insertion_point(namespace_scope)
- } // namespace NavMessage
- PROTOBUF_NAMESPACE_OPEN
- template<> PROTOBUF_NOINLINE ::NavMessage::LidarOdomStatu*
- Arena::CreateMaybeMessage< ::NavMessage::LidarOdomStatu >(Arena* arena) {
- return Arena::CreateMessageInternal< ::NavMessage::LidarOdomStatu >(arena);
- }
- template<> PROTOBUF_NOINLINE ::NavMessage::AgvStatu*
- Arena::CreateMaybeMessage< ::NavMessage::AgvStatu >(Arena* arena) {
- return Arena::CreateMessageInternal< ::NavMessage::AgvStatu >(arena);
- }
- template<> PROTOBUF_NOINLINE ::NavMessage::ToAgvCmd*
- Arena::CreateMaybeMessage< ::NavMessage::ToAgvCmd >(Arena* arena) {
- return Arena::CreateMessageInternal< ::NavMessage::ToAgvCmd >(arena);
- }
- template<> PROTOBUF_NOINLINE ::NavMessage::Pose2d*
- Arena::CreateMaybeMessage< ::NavMessage::Pose2d >(Arena* arena) {
- return Arena::CreateMessageInternal< ::NavMessage::Pose2d >(arena);
- }
- template<> PROTOBUF_NOINLINE ::NavMessage::PathNode*
- Arena::CreateMaybeMessage< ::NavMessage::PathNode >(Arena* arena) {
- return Arena::CreateMessageInternal< ::NavMessage::PathNode >(arena);
- }
- template<> PROTOBUF_NOINLINE ::NavMessage::Trajectory*
- Arena::CreateMaybeMessage< ::NavMessage::Trajectory >(Arena* arena) {
- return Arena::CreateMessageInternal< ::NavMessage::Trajectory >(arena);
- }
- template<> PROTOBUF_NOINLINE ::NavMessage::NewAction*
- Arena::CreateMaybeMessage< ::NavMessage::NewAction >(Arena* arena) {
- return Arena::CreateMessageInternal< ::NavMessage::NewAction >(arena);
- }
- template<> PROTOBUF_NOINLINE ::NavMessage::NavCmd*
- Arena::CreateMaybeMessage< ::NavMessage::NavCmd >(Arena* arena) {
- return Arena::CreateMessageInternal< ::NavMessage::NavCmd >(arena);
- }
- template<> PROTOBUF_NOINLINE ::NavMessage::NavResponse*
- Arena::CreateMaybeMessage< ::NavMessage::NavResponse >(Arena* arena) {
- return Arena::CreateMessageInternal< ::NavMessage::NavResponse >(arena);
- }
- template<> PROTOBUF_NOINLINE ::NavMessage::ManualCmd*
- Arena::CreateMaybeMessage< ::NavMessage::ManualCmd >(Arena* arena) {
- return Arena::CreateMessageInternal< ::NavMessage::ManualCmd >(arena);
- }
- template<> PROTOBUF_NOINLINE ::NavMessage::NavStatu*
- Arena::CreateMaybeMessage< ::NavMessage::NavStatu >(Arena* arena) {
- return Arena::CreateMessageInternal< ::NavMessage::NavStatu >(arena);
- }
- template<> PROTOBUF_NOINLINE ::NavMessage::RobotStatu*
- Arena::CreateMaybeMessage< ::NavMessage::RobotStatu >(Arena* arena) {
- return Arena::CreateMessageInternal< ::NavMessage::RobotStatu >(arena);
- }
- PROTOBUF_NAMESPACE_CLOSE
- // @@protoc_insertion_point(global_scope)
- #include "google/protobuf/port_undef.inc"
|