12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: wj_lidar_conf.proto
- #include "wj_lidar_conf.pb.h"
- #include <algorithm>
- #include <google/protobuf/stubs/common.h>
- #include <google/protobuf/stubs/port.h>
- #include <google/protobuf/io/coded_stream.h>
- #include <google/protobuf/wire_format_lite_inl.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>
- // This is a temporary google only hack
- #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- #include "third_party/protobuf/version.h"
- #endif
- // @@protoc_insertion_point(includes)
- namespace protobuf_wj_5flidar_5fconf_2eproto {
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_wj_5flidar_5fconf_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Region;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_wj_5flidar_5fconf_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Transform2d;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_wj_5flidar_5fconf_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_netConfig;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_wj_5flidar_5fconf_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_scanLimit;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_wj_5flidar_5fconf_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_wjLidarParams;
- } // namespace protobuf_wj_5flidar_5fconf_2eproto
- namespace wj {
- class wjManagerParamsDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<wjManagerParams>
- _instance;
- } _wjManagerParams_default_instance_;
- class RegionDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<Region>
- _instance;
- } _Region_default_instance_;
- class wjLidarParamsDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<wjLidarParams>
- _instance;
- } _wjLidarParams_default_instance_;
- class netConfigDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<netConfig>
- _instance;
- } _netConfig_default_instance_;
- class Transform2dDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<Transform2d>
- _instance;
- } _Transform2d_default_instance_;
- class scanLimitDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<scanLimit>
- _instance;
- } _scanLimit_default_instance_;
- } // namespace wj
- namespace protobuf_wj_5flidar_5fconf_2eproto {
- static void InitDefaultswjManagerParams() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- ::wj::wjManagerParams::_i_give_permission_to_break_this_code_default_plc_ip_address_.DefaultConstruct();
- *::wj::wjManagerParams::_i_give_permission_to_break_this_code_default_plc_ip_address_.get_mutable() = ::std::string("192.168.0.1", 11);
- ::google::protobuf::internal::OnShutdownDestroyString(
- ::wj::wjManagerParams::_i_give_permission_to_break_this_code_default_plc_ip_address_.get_mutable());
- {
- void* ptr = &::wj::_wjManagerParams_default_instance_;
- new (ptr) ::wj::wjManagerParams();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::wj::wjManagerParams::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<2> scc_info_wjManagerParams =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultswjManagerParams}, {
- &protobuf_wj_5flidar_5fconf_2eproto::scc_info_wjLidarParams.base,
- &protobuf_wj_5flidar_5fconf_2eproto::scc_info_Region.base,}};
- static void InitDefaultsRegion() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::wj::_Region_default_instance_;
- new (ptr) ::wj::Region();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::wj::Region::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_Region =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRegion}, {}};
- static void InitDefaultswjLidarParams() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::wj::_wjLidarParams_default_instance_;
- new (ptr) ::wj::wjLidarParams();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::wj::wjLidarParams::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<3> scc_info_wjLidarParams =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultswjLidarParams}, {
- &protobuf_wj_5flidar_5fconf_2eproto::scc_info_netConfig.base,
- &protobuf_wj_5flidar_5fconf_2eproto::scc_info_Transform2d.base,
- &protobuf_wj_5flidar_5fconf_2eproto::scc_info_scanLimit.base,}};
- static void InitDefaultsnetConfig() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::wj::_netConfig_default_instance_;
- new (ptr) ::wj::netConfig();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::wj::netConfig::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_netConfig =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsnetConfig}, {}};
- static void InitDefaultsTransform2d() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::wj::_Transform2d_default_instance_;
- new (ptr) ::wj::Transform2d();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::wj::Transform2d::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_Transform2d =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTransform2d}, {}};
- static void InitDefaultsscanLimit() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::wj::_scanLimit_default_instance_;
- new (ptr) ::wj::scanLimit();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::wj::scanLimit::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_scanLimit =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscanLimit}, {}};
- void InitDefaults() {
- ::google::protobuf::internal::InitSCC(&scc_info_wjManagerParams.base);
- ::google::protobuf::internal::InitSCC(&scc_info_Region.base);
- ::google::protobuf::internal::InitSCC(&scc_info_wjLidarParams.base);
- ::google::protobuf::internal::InitSCC(&scc_info_netConfig.base);
- ::google::protobuf::internal::InitSCC(&scc_info_Transform2d.base);
- ::google::protobuf::internal::InitSCC(&scc_info_scanLimit.base);
- }
- ::google::protobuf::Metadata file_level_metadata[6];
- const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjManagerParams, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjManagerParams, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjManagerParams, wj_lidar_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjManagerParams, regions_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjManagerParams, fence_data_path_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjManagerParams, fence_log_path_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjManagerParams, plc_ip_address_),
- ~0u,
- ~0u,
- 0,
- 1,
- 2,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Region, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Region, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Region, minx_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Region, maxx_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Region, miny_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Region, maxy_),
- 0,
- 1,
- 2,
- 3,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjLidarParams, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjLidarParams, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjLidarParams, angle_min_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjLidarParams, angle_max_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjLidarParams, angle_increment_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjLidarParams, time_increment_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjLidarParams, range_min_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjLidarParams, range_max_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjLidarParams, net_config_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjLidarParams, transform_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjLidarParams, scan_limit_),
- 5,
- 6,
- 7,
- 8,
- 3,
- 4,
- 0,
- 1,
- 2,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::netConfig, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::netConfig, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::netConfig, ip_address_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::netConfig, port_),
- 0,
- 1,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Transform2d, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Transform2d, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Transform2d, m00_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Transform2d, m01_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Transform2d, m02_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Transform2d, m10_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Transform2d, m11_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Transform2d, m12_),
- 4,
- 0,
- 1,
- 2,
- 5,
- 3,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::scanLimit, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::scanLimit, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::scanLimit, dist_limit_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::scanLimit, minx_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::scanLimit, maxx_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::scanLimit, miny_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::scanLimit, maxy_),
- 1,
- 2,
- 3,
- 4,
- 0,
- };
- static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- { 0, 10, sizeof(::wj::wjManagerParams)},
- { 15, 24, sizeof(::wj::Region)},
- { 28, 42, sizeof(::wj::wjLidarParams)},
- { 51, 58, sizeof(::wj::netConfig)},
- { 60, 71, sizeof(::wj::Transform2d)},
- { 77, 87, sizeof(::wj::scanLimit)},
- };
- static ::google::protobuf::Message const * const file_default_instances[] = {
- reinterpret_cast<const ::google::protobuf::Message*>(&::wj::_wjManagerParams_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::wj::_Region_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::wj::_wjLidarParams_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::wj::_netConfig_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::wj::_Transform2d_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::wj::_scanLimit_default_instance_),
- };
- void protobuf_AssignDescriptors() {
- AddDescriptors();
- AssignDescriptors(
- "wj_lidar_conf.proto", schemas, file_default_instances, TableStruct::offsets,
- file_level_metadata, NULL, NULL);
- }
- void protobuf_AssignDescriptorsOnce() {
- static ::google::protobuf::internal::once_flag once;
- ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
- }
- void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
- void protobuf_RegisterTypes(const ::std::string&) {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 6);
- }
- void AddDescriptorsImpl() {
- InitDefaults();
- static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- "\n\023wj_lidar_conf.proto\022\002wj\"\255\001\n\017wjManagerP"
- "arams\022#\n\010wj_lidar\030\001 \003(\0132\021.wj.wjLidarPara"
- "ms\022\033\n\007regions\030\002 \003(\0132\n.wj.Region\022\031\n\017fence"
- "_data_path\030\003 \001(\t:\000\022\030\n\016fence_log_path\030\004 \001"
- "(\t:\000\022#\n\016plc_ip_address\030\005 \001(\t:\013192.168.0."
- "1\"@\n\006Region\022\014\n\004minx\030\001 \002(\002\022\014\n\004maxx\030\002 \002(\002\022"
- "\014\n\004miny\030\003 \002(\002\022\014\n\004maxy\030\004 \002(\002\"\246\002\n\rwjLidarP"
- "arams\022\035\n\tangle_min\030\001 \001(\002:\n-2.3561945\022\034\n\t"
- "angle_max\030\002 \001(\002:\t2.3561945\022 \n\017angle_incr"
- "ement\030\003 \001(\002:\0070.00582\022\037\n\016time_increment\030\004"
- " \001(\002:\0076.2e-05\022\024\n\trange_min\030\005 \001(\005:\0010\022\025\n\tr"
- "ange_max\030\006 \001(\005:\00230\022!\n\nnet_config\030\007 \002(\0132\r"
- ".wj.netConfig\022\"\n\ttransform\030\010 \002(\0132\017.wj.Tr"
- "ansform2d\022!\n\nscan_limit\030\t \002(\0132\r.wj.scanL"
- "imit\"5\n\tnetConfig\022\024\n\nip_address\030\001 \001(\t:\000\022"
- "\022\n\004port\030\002 \001(\005:\0048000\"m\n\013Transform2d\022\016\n\003m0"
- "0\030\001 \001(\002:\0011\022\016\n\003m01\030\002 \001(\002:\0010\022\016\n\003m02\030\003 \001(\002:"
- "\0010\022\016\n\003m10\030\004 \001(\002:\0010\022\016\n\003m11\030\005 \001(\002:\0011\022\016\n\003m1"
- "2\030\006 \001(\002:\0010\"o\n\tscanLimit\022\025\n\ndist_limit\030\001 "
- "\001(\002:\0018\022\020\n\004minx\030\002 \001(\002:\002-6\022\022\n\004maxx\030\003 \001(\002:\004"
- "-0.2\022\022\n\004miny\030\004 \001(\002:\004-3.5\022\021\n\004maxy\030\005 \001(\002:\003"
- "3.5"
- };
- ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
- descriptor, 843);
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
- "wj_lidar_conf.proto", &protobuf_RegisterTypes);
- }
- void AddDescriptors() {
- static ::google::protobuf::internal::once_flag once;
- ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
- }
- // Force AddDescriptors() to be called at dynamic initialization time.
- struct StaticDescriptorInitializer {
- StaticDescriptorInitializer() {
- AddDescriptors();
- }
- } static_descriptor_initializer;
- } // namespace protobuf_wj_5flidar_5fconf_2eproto
- namespace wj {
- // ===================================================================
- void wjManagerParams::InitAsDefaultInstance() {
- }
- ::google::protobuf::internal::ExplicitlyConstructed<::std::string> wjManagerParams::_i_give_permission_to_break_this_code_default_plc_ip_address_;
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int wjManagerParams::kWjLidarFieldNumber;
- const int wjManagerParams::kRegionsFieldNumber;
- const int wjManagerParams::kFenceDataPathFieldNumber;
- const int wjManagerParams::kFenceLogPathFieldNumber;
- const int wjManagerParams::kPlcIpAddressFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- wjManagerParams::wjManagerParams()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_wj_5flidar_5fconf_2eproto::scc_info_wjManagerParams.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:wj.wjManagerParams)
- }
- wjManagerParams::wjManagerParams(const wjManagerParams& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_),
- wj_lidar_(from.wj_lidar_),
- regions_(from.regions_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- fence_data_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.has_fence_data_path()) {
- fence_data_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.fence_data_path_);
- }
- fence_log_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.has_fence_log_path()) {
- fence_log_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.fence_log_path_);
- }
- plc_ip_address_.UnsafeSetDefault(&::wj::wjManagerParams::_i_give_permission_to_break_this_code_default_plc_ip_address_.get());
- if (from.has_plc_ip_address()) {
- plc_ip_address_.AssignWithDefault(&::wj::wjManagerParams::_i_give_permission_to_break_this_code_default_plc_ip_address_.get(), from.plc_ip_address_);
- }
- // @@protoc_insertion_point(copy_constructor:wj.wjManagerParams)
- }
- void wjManagerParams::SharedCtor() {
- fence_data_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- fence_log_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- plc_ip_address_.UnsafeSetDefault(&::wj::wjManagerParams::_i_give_permission_to_break_this_code_default_plc_ip_address_.get());
- }
- wjManagerParams::~wjManagerParams() {
- // @@protoc_insertion_point(destructor:wj.wjManagerParams)
- SharedDtor();
- }
- void wjManagerParams::SharedDtor() {
- fence_data_path_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- fence_log_path_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- plc_ip_address_.DestroyNoArena(&::wj::wjManagerParams::_i_give_permission_to_break_this_code_default_plc_ip_address_.get());
- }
- void wjManagerParams::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* wjManagerParams::descriptor() {
- ::protobuf_wj_5flidar_5fconf_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_wj_5flidar_5fconf_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const wjManagerParams& wjManagerParams::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_wj_5flidar_5fconf_2eproto::scc_info_wjManagerParams.base);
- return *internal_default_instance();
- }
- void wjManagerParams::Clear() {
- // @@protoc_insertion_point(message_clear_start:wj.wjManagerParams)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- wj_lidar_.Clear();
- regions_.Clear();
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 7u) {
- if (cached_has_bits & 0x00000001u) {
- fence_data_path_.ClearNonDefaultToEmptyNoArena();
- }
- if (cached_has_bits & 0x00000002u) {
- fence_log_path_.ClearNonDefaultToEmptyNoArena();
- }
- if (cached_has_bits & 0x00000004u) {
- plc_ip_address_.UnsafeMutablePointer()->assign(*&::wj::wjManagerParams::_i_give_permission_to_break_this_code_default_plc_ip_address_.get());
- }
- }
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool wjManagerParams::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:wj.wjManagerParams)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // repeated .wj.wjLidarParams wj_lidar = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, add_wj_lidar()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // repeated .wj.Region regions = 2;
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, add_regions()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional string fence_data_path = 3 [default = ""];
- case 3: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_fence_data_path()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->fence_data_path().data(), static_cast<int>(this->fence_data_path().length()),
- ::google::protobuf::internal::WireFormat::PARSE,
- "wj.wjManagerParams.fence_data_path");
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional string fence_log_path = 4 [default = ""];
- case 4: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_fence_log_path()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->fence_log_path().data(), static_cast<int>(this->fence_log_path().length()),
- ::google::protobuf::internal::WireFormat::PARSE,
- "wj.wjManagerParams.fence_log_path");
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional string plc_ip_address = 5 [default = "192.168.0.1"];
- case 5: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_plc_ip_address()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->plc_ip_address().data(), static_cast<int>(this->plc_ip_address().length()),
- ::google::protobuf::internal::WireFormat::PARSE,
- "wj.wjManagerParams.plc_ip_address");
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:wj.wjManagerParams)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:wj.wjManagerParams)
- return false;
- #undef DO_
- }
- void wjManagerParams::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:wj.wjManagerParams)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // repeated .wj.wjLidarParams wj_lidar = 1;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->wj_lidar_size()); i < n; i++) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1,
- this->wj_lidar(static_cast<int>(i)),
- output);
- }
- // repeated .wj.Region regions = 2;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->regions_size()); i < n; i++) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 2,
- this->regions(static_cast<int>(i)),
- output);
- }
- cached_has_bits = _has_bits_[0];
- // optional string fence_data_path = 3 [default = ""];
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->fence_data_path().data(), static_cast<int>(this->fence_data_path().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "wj.wjManagerParams.fence_data_path");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 3, this->fence_data_path(), output);
- }
- // optional string fence_log_path = 4 [default = ""];
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->fence_log_path().data(), static_cast<int>(this->fence_log_path().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "wj.wjManagerParams.fence_log_path");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 4, this->fence_log_path(), output);
- }
- // optional string plc_ip_address = 5 [default = "192.168.0.1"];
- if (cached_has_bits & 0x00000004u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->plc_ip_address().data(), static_cast<int>(this->plc_ip_address().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "wj.wjManagerParams.plc_ip_address");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 5, this->plc_ip_address(), output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:wj.wjManagerParams)
- }
- ::google::protobuf::uint8* wjManagerParams::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:wj.wjManagerParams)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // repeated .wj.wjLidarParams wj_lidar = 1;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->wj_lidar_size()); i < n; i++) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 1, this->wj_lidar(static_cast<int>(i)), deterministic, target);
- }
- // repeated .wj.Region regions = 2;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->regions_size()); i < n; i++) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 2, this->regions(static_cast<int>(i)), deterministic, target);
- }
- cached_has_bits = _has_bits_[0];
- // optional string fence_data_path = 3 [default = ""];
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->fence_data_path().data(), static_cast<int>(this->fence_data_path().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "wj.wjManagerParams.fence_data_path");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 3, this->fence_data_path(), target);
- }
- // optional string fence_log_path = 4 [default = ""];
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->fence_log_path().data(), static_cast<int>(this->fence_log_path().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "wj.wjManagerParams.fence_log_path");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 4, this->fence_log_path(), target);
- }
- // optional string plc_ip_address = 5 [default = "192.168.0.1"];
- if (cached_has_bits & 0x00000004u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->plc_ip_address().data(), static_cast<int>(this->plc_ip_address().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "wj.wjManagerParams.plc_ip_address");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 5, this->plc_ip_address(), target);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:wj.wjManagerParams)
- return target;
- }
- size_t wjManagerParams::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:wj.wjManagerParams)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- // repeated .wj.wjLidarParams wj_lidar = 1;
- {
- unsigned int count = static_cast<unsigned int>(this->wj_lidar_size());
- total_size += 1UL * count;
- for (unsigned int i = 0; i < count; i++) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- this->wj_lidar(static_cast<int>(i)));
- }
- }
- // repeated .wj.Region regions = 2;
- {
- unsigned int count = static_cast<unsigned int>(this->regions_size());
- total_size += 1UL * count;
- for (unsigned int i = 0; i < count; i++) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- this->regions(static_cast<int>(i)));
- }
- }
- if (_has_bits_[0 / 32] & 7u) {
- // optional string fence_data_path = 3 [default = ""];
- if (has_fence_data_path()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->fence_data_path());
- }
- // optional string fence_log_path = 4 [default = ""];
- if (has_fence_log_path()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->fence_log_path());
- }
- // optional string plc_ip_address = 5 [default = "192.168.0.1"];
- if (has_plc_ip_address()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->plc_ip_address());
- }
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void wjManagerParams::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:wj.wjManagerParams)
- GOOGLE_DCHECK_NE(&from, this);
- const wjManagerParams* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const wjManagerParams>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:wj.wjManagerParams)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:wj.wjManagerParams)
- MergeFrom(*source);
- }
- }
- void wjManagerParams::MergeFrom(const wjManagerParams& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:wj.wjManagerParams)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- wj_lidar_.MergeFrom(from.wj_lidar_);
- regions_.MergeFrom(from.regions_);
- cached_has_bits = from._has_bits_[0];
- if (cached_has_bits & 7u) {
- if (cached_has_bits & 0x00000001u) {
- set_has_fence_data_path();
- fence_data_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.fence_data_path_);
- }
- if (cached_has_bits & 0x00000002u) {
- set_has_fence_log_path();
- fence_log_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.fence_log_path_);
- }
- if (cached_has_bits & 0x00000004u) {
- set_has_plc_ip_address();
- plc_ip_address_.AssignWithDefault(&::wj::wjManagerParams::_i_give_permission_to_break_this_code_default_plc_ip_address_.get(), from.plc_ip_address_);
- }
- }
- }
- void wjManagerParams::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:wj.wjManagerParams)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void wjManagerParams::CopyFrom(const wjManagerParams& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:wj.wjManagerParams)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool wjManagerParams::IsInitialized() const {
- if (!::google::protobuf::internal::AllAreInitialized(this->wj_lidar())) return false;
- if (!::google::protobuf::internal::AllAreInitialized(this->regions())) return false;
- return true;
- }
- void wjManagerParams::Swap(wjManagerParams* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void wjManagerParams::InternalSwap(wjManagerParams* other) {
- using std::swap;
- CastToBase(&wj_lidar_)->InternalSwap(CastToBase(&other->wj_lidar_));
- CastToBase(®ions_)->InternalSwap(CastToBase(&other->regions_));
- fence_data_path_.Swap(&other->fence_data_path_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- fence_log_path_.Swap(&other->fence_log_path_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- plc_ip_address_.Swap(&other->plc_ip_address_, &::wj::wjManagerParams::_i_give_permission_to_break_this_code_default_plc_ip_address_.get(),
- GetArenaNoVirtual());
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata wjManagerParams::GetMetadata() const {
- protobuf_wj_5flidar_5fconf_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_wj_5flidar_5fconf_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void Region::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int Region::kMinxFieldNumber;
- const int Region::kMaxxFieldNumber;
- const int Region::kMinyFieldNumber;
- const int Region::kMaxyFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- Region::Region()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_wj_5flidar_5fconf_2eproto::scc_info_Region.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:wj.Region)
- }
- Region::Region(const Region& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::memcpy(&minx_, &from.minx_,
- static_cast<size_t>(reinterpret_cast<char*>(&maxy_) -
- reinterpret_cast<char*>(&minx_)) + sizeof(maxy_));
- // @@protoc_insertion_point(copy_constructor:wj.Region)
- }
- void Region::SharedCtor() {
- ::memset(&minx_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&maxy_) -
- reinterpret_cast<char*>(&minx_)) + sizeof(maxy_));
- }
- Region::~Region() {
- // @@protoc_insertion_point(destructor:wj.Region)
- SharedDtor();
- }
- void Region::SharedDtor() {
- }
- void Region::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* Region::descriptor() {
- ::protobuf_wj_5flidar_5fconf_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_wj_5flidar_5fconf_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const Region& Region::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_wj_5flidar_5fconf_2eproto::scc_info_Region.base);
- return *internal_default_instance();
- }
- void Region::Clear() {
- // @@protoc_insertion_point(message_clear_start:wj.Region)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 15u) {
- ::memset(&minx_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&maxy_) -
- reinterpret_cast<char*>(&minx_)) + sizeof(maxy_));
- }
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool Region::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:wj.Region)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // required float minx = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
- set_has_minx();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &minx_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required float maxx = 2;
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
- set_has_maxx();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &maxx_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required float miny = 3;
- case 3: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
- set_has_miny();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &miny_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required float maxy = 4;
- case 4: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) {
- set_has_maxy();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &maxy_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:wj.Region)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:wj.Region)
- return false;
- #undef DO_
- }
- void Region::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:wj.Region)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // required float minx = 1;
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->minx(), output);
- }
- // required float maxx = 2;
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->maxx(), output);
- }
- // required float miny = 3;
- if (cached_has_bits & 0x00000004u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->miny(), output);
- }
- // required float maxy = 4;
- if (cached_has_bits & 0x00000008u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->maxy(), output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:wj.Region)
- }
- ::google::protobuf::uint8* Region::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:wj.Region)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // required float minx = 1;
- if (cached_has_bits & 0x00000001u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->minx(), target);
- }
- // required float maxx = 2;
- if (cached_has_bits & 0x00000002u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->maxx(), target);
- }
- // required float miny = 3;
- if (cached_has_bits & 0x00000004u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->miny(), target);
- }
- // required float maxy = 4;
- if (cached_has_bits & 0x00000008u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->maxy(), target);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:wj.Region)
- return target;
- }
- size_t Region::RequiredFieldsByteSizeFallback() const {
- // @@protoc_insertion_point(required_fields_byte_size_fallback_start:wj.Region)
- size_t total_size = 0;
- if (has_minx()) {
- // required float minx = 1;
- total_size += 1 + 4;
- }
- if (has_maxx()) {
- // required float maxx = 2;
- total_size += 1 + 4;
- }
- if (has_miny()) {
- // required float miny = 3;
- total_size += 1 + 4;
- }
- if (has_maxy()) {
- // required float maxy = 4;
- total_size += 1 + 4;
- }
- return total_size;
- }
- size_t Region::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:wj.Region)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- if (((_has_bits_[0] & 0x0000000f) ^ 0x0000000f) == 0) { // All required fields are present.
- // required float minx = 1;
- total_size += 1 + 4;
- // required float maxx = 2;
- total_size += 1 + 4;
- // required float miny = 3;
- total_size += 1 + 4;
- // required float maxy = 4;
- total_size += 1 + 4;
- } else {
- total_size += RequiredFieldsByteSizeFallback();
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void Region::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:wj.Region)
- GOOGLE_DCHECK_NE(&from, this);
- const Region* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const Region>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:wj.Region)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:wj.Region)
- MergeFrom(*source);
- }
- }
- void Region::MergeFrom(const Region& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:wj.Region)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = from._has_bits_[0];
- if (cached_has_bits & 15u) {
- if (cached_has_bits & 0x00000001u) {
- minx_ = from.minx_;
- }
- if (cached_has_bits & 0x00000002u) {
- maxx_ = from.maxx_;
- }
- if (cached_has_bits & 0x00000004u) {
- miny_ = from.miny_;
- }
- if (cached_has_bits & 0x00000008u) {
- maxy_ = from.maxy_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- }
- void Region::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:wj.Region)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void Region::CopyFrom(const Region& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:wj.Region)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool Region::IsInitialized() const {
- if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false;
- return true;
- }
- void Region::Swap(Region* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void Region::InternalSwap(Region* other) {
- using std::swap;
- swap(minx_, other->minx_);
- swap(maxx_, other->maxx_);
- swap(miny_, other->miny_);
- swap(maxy_, other->maxy_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata Region::GetMetadata() const {
- protobuf_wj_5flidar_5fconf_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_wj_5flidar_5fconf_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void wjLidarParams::InitAsDefaultInstance() {
- ::wj::_wjLidarParams_default_instance_._instance.get_mutable()->net_config_ = const_cast< ::wj::netConfig*>(
- ::wj::netConfig::internal_default_instance());
- ::wj::_wjLidarParams_default_instance_._instance.get_mutable()->transform_ = const_cast< ::wj::Transform2d*>(
- ::wj::Transform2d::internal_default_instance());
- ::wj::_wjLidarParams_default_instance_._instance.get_mutable()->scan_limit_ = const_cast< ::wj::scanLimit*>(
- ::wj::scanLimit::internal_default_instance());
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int wjLidarParams::kAngleMinFieldNumber;
- const int wjLidarParams::kAngleMaxFieldNumber;
- const int wjLidarParams::kAngleIncrementFieldNumber;
- const int wjLidarParams::kTimeIncrementFieldNumber;
- const int wjLidarParams::kRangeMinFieldNumber;
- const int wjLidarParams::kRangeMaxFieldNumber;
- const int wjLidarParams::kNetConfigFieldNumber;
- const int wjLidarParams::kTransformFieldNumber;
- const int wjLidarParams::kScanLimitFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- wjLidarParams::wjLidarParams()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_wj_5flidar_5fconf_2eproto::scc_info_wjLidarParams.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:wj.wjLidarParams)
- }
- wjLidarParams::wjLidarParams(const wjLidarParams& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- if (from.has_net_config()) {
- net_config_ = new ::wj::netConfig(*from.net_config_);
- } else {
- net_config_ = NULL;
- }
- if (from.has_transform()) {
- transform_ = new ::wj::Transform2d(*from.transform_);
- } else {
- transform_ = NULL;
- }
- if (from.has_scan_limit()) {
- scan_limit_ = new ::wj::scanLimit(*from.scan_limit_);
- } else {
- scan_limit_ = NULL;
- }
- ::memcpy(&range_min_, &from.range_min_,
- static_cast<size_t>(reinterpret_cast<char*>(&time_increment_) -
- reinterpret_cast<char*>(&range_min_)) + sizeof(time_increment_));
- // @@protoc_insertion_point(copy_constructor:wj.wjLidarParams)
- }
- void wjLidarParams::SharedCtor() {
- ::memset(&net_config_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&range_min_) -
- reinterpret_cast<char*>(&net_config_)) + sizeof(range_min_));
- range_max_ = 30;
- angle_min_ = -2.3561945f;
- angle_max_ = 2.3561945f;
- angle_increment_ = 0.00582f;
- time_increment_ = 6.2e-05f;
- }
- wjLidarParams::~wjLidarParams() {
- // @@protoc_insertion_point(destructor:wj.wjLidarParams)
- SharedDtor();
- }
- void wjLidarParams::SharedDtor() {
- if (this != internal_default_instance()) delete net_config_;
- if (this != internal_default_instance()) delete transform_;
- if (this != internal_default_instance()) delete scan_limit_;
- }
- void wjLidarParams::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* wjLidarParams::descriptor() {
- ::protobuf_wj_5flidar_5fconf_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_wj_5flidar_5fconf_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const wjLidarParams& wjLidarParams::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_wj_5flidar_5fconf_2eproto::scc_info_wjLidarParams.base);
- return *internal_default_instance();
- }
- void wjLidarParams::Clear() {
- // @@protoc_insertion_point(message_clear_start:wj.wjLidarParams)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 7u) {
- if (cached_has_bits & 0x00000001u) {
- GOOGLE_DCHECK(net_config_ != NULL);
- net_config_->Clear();
- }
- if (cached_has_bits & 0x00000002u) {
- GOOGLE_DCHECK(transform_ != NULL);
- transform_->Clear();
- }
- if (cached_has_bits & 0x00000004u) {
- GOOGLE_DCHECK(scan_limit_ != NULL);
- scan_limit_->Clear();
- }
- }
- if (cached_has_bits & 248u) {
- range_min_ = 0;
- range_max_ = 30;
- angle_min_ = -2.3561945f;
- angle_max_ = 2.3561945f;
- angle_increment_ = 0.00582f;
- }
- time_increment_ = 6.2e-05f;
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool wjLidarParams::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:wj.wjLidarParams)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // optional float angle_min = 1 [default = -2.3561945];
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
- set_has_angle_min();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &angle_min_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional float angle_max = 2 [default = 2.3561945];
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
- set_has_angle_max();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &angle_max_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional float angle_increment = 3 [default = 0.00582];
- case 3: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
- set_has_angle_increment();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &angle_increment_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional float time_increment = 4 [default = 6.2e-05];
- case 4: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) {
- set_has_time_increment();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &time_increment_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional int32 range_min = 5 [default = 0];
- case 5: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
- set_has_range_min();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &range_min_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional int32 range_max = 6 [default = 30];
- case 6: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
- set_has_range_max();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &range_max_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required .wj.netConfig net_config = 7;
- case 7: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_net_config()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required .wj.Transform2d transform = 8;
- case 8: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_transform()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required .wj.scanLimit scan_limit = 9;
- case 9: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_scan_limit()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:wj.wjLidarParams)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:wj.wjLidarParams)
- return false;
- #undef DO_
- }
- void wjLidarParams::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:wj.wjLidarParams)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional float angle_min = 1 [default = -2.3561945];
- if (cached_has_bits & 0x00000020u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->angle_min(), output);
- }
- // optional float angle_max = 2 [default = 2.3561945];
- if (cached_has_bits & 0x00000040u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->angle_max(), output);
- }
- // optional float angle_increment = 3 [default = 0.00582];
- if (cached_has_bits & 0x00000080u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->angle_increment(), output);
- }
- // optional float time_increment = 4 [default = 6.2e-05];
- if (cached_has_bits & 0x00000100u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->time_increment(), output);
- }
- // optional int32 range_min = 5 [default = 0];
- if (cached_has_bits & 0x00000008u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->range_min(), output);
- }
- // optional int32 range_max = 6 [default = 30];
- if (cached_has_bits & 0x00000010u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->range_max(), output);
- }
- // required .wj.netConfig net_config = 7;
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 7, this->_internal_net_config(), output);
- }
- // required .wj.Transform2d transform = 8;
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 8, this->_internal_transform(), output);
- }
- // required .wj.scanLimit scan_limit = 9;
- if (cached_has_bits & 0x00000004u) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 9, this->_internal_scan_limit(), output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:wj.wjLidarParams)
- }
- ::google::protobuf::uint8* wjLidarParams::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:wj.wjLidarParams)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional float angle_min = 1 [default = -2.3561945];
- if (cached_has_bits & 0x00000020u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->angle_min(), target);
- }
- // optional float angle_max = 2 [default = 2.3561945];
- if (cached_has_bits & 0x00000040u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->angle_max(), target);
- }
- // optional float angle_increment = 3 [default = 0.00582];
- if (cached_has_bits & 0x00000080u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->angle_increment(), target);
- }
- // optional float time_increment = 4 [default = 6.2e-05];
- if (cached_has_bits & 0x00000100u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->time_increment(), target);
- }
- // optional int32 range_min = 5 [default = 0];
- if (cached_has_bits & 0x00000008u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->range_min(), target);
- }
- // optional int32 range_max = 6 [default = 30];
- if (cached_has_bits & 0x00000010u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->range_max(), target);
- }
- // required .wj.netConfig net_config = 7;
- if (cached_has_bits & 0x00000001u) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 7, this->_internal_net_config(), deterministic, target);
- }
- // required .wj.Transform2d transform = 8;
- if (cached_has_bits & 0x00000002u) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 8, this->_internal_transform(), deterministic, target);
- }
- // required .wj.scanLimit scan_limit = 9;
- if (cached_has_bits & 0x00000004u) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 9, this->_internal_scan_limit(), deterministic, target);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:wj.wjLidarParams)
- return target;
- }
- size_t wjLidarParams::RequiredFieldsByteSizeFallback() const {
- // @@protoc_insertion_point(required_fields_byte_size_fallback_start:wj.wjLidarParams)
- size_t total_size = 0;
- if (has_net_config()) {
- // required .wj.netConfig net_config = 7;
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *net_config_);
- }
- if (has_transform()) {
- // required .wj.Transform2d transform = 8;
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *transform_);
- }
- if (has_scan_limit()) {
- // required .wj.scanLimit scan_limit = 9;
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *scan_limit_);
- }
- return total_size;
- }
- size_t wjLidarParams::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:wj.wjLidarParams)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present.
- // required .wj.netConfig net_config = 7;
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *net_config_);
- // required .wj.Transform2d transform = 8;
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *transform_);
- // required .wj.scanLimit scan_limit = 9;
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *scan_limit_);
- } else {
- total_size += RequiredFieldsByteSizeFallback();
- }
- if (_has_bits_[0 / 32] & 248u) {
- // optional int32 range_min = 5 [default = 0];
- if (has_range_min()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->range_min());
- }
- // optional int32 range_max = 6 [default = 30];
- if (has_range_max()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->range_max());
- }
- // optional float angle_min = 1 [default = -2.3561945];
- if (has_angle_min()) {
- total_size += 1 + 4;
- }
- // optional float angle_max = 2 [default = 2.3561945];
- if (has_angle_max()) {
- total_size += 1 + 4;
- }
- // optional float angle_increment = 3 [default = 0.00582];
- if (has_angle_increment()) {
- total_size += 1 + 4;
- }
- }
- // optional float time_increment = 4 [default = 6.2e-05];
- if (has_time_increment()) {
- total_size += 1 + 4;
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void wjLidarParams::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:wj.wjLidarParams)
- GOOGLE_DCHECK_NE(&from, this);
- const wjLidarParams* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const wjLidarParams>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:wj.wjLidarParams)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:wj.wjLidarParams)
- MergeFrom(*source);
- }
- }
- void wjLidarParams::MergeFrom(const wjLidarParams& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:wj.wjLidarParams)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = from._has_bits_[0];
- if (cached_has_bits & 255u) {
- if (cached_has_bits & 0x00000001u) {
- mutable_net_config()->::wj::netConfig::MergeFrom(from.net_config());
- }
- if (cached_has_bits & 0x00000002u) {
- mutable_transform()->::wj::Transform2d::MergeFrom(from.transform());
- }
- if (cached_has_bits & 0x00000004u) {
- mutable_scan_limit()->::wj::scanLimit::MergeFrom(from.scan_limit());
- }
- if (cached_has_bits & 0x00000008u) {
- range_min_ = from.range_min_;
- }
- if (cached_has_bits & 0x00000010u) {
- range_max_ = from.range_max_;
- }
- if (cached_has_bits & 0x00000020u) {
- angle_min_ = from.angle_min_;
- }
- if (cached_has_bits & 0x00000040u) {
- angle_max_ = from.angle_max_;
- }
- if (cached_has_bits & 0x00000080u) {
- angle_increment_ = from.angle_increment_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- if (cached_has_bits & 0x00000100u) {
- set_time_increment(from.time_increment());
- }
- }
- void wjLidarParams::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:wj.wjLidarParams)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void wjLidarParams::CopyFrom(const wjLidarParams& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:wj.wjLidarParams)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool wjLidarParams::IsInitialized() const {
- if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
- return true;
- }
- void wjLidarParams::Swap(wjLidarParams* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void wjLidarParams::InternalSwap(wjLidarParams* other) {
- using std::swap;
- swap(net_config_, other->net_config_);
- swap(transform_, other->transform_);
- swap(scan_limit_, other->scan_limit_);
- swap(range_min_, other->range_min_);
- swap(range_max_, other->range_max_);
- swap(angle_min_, other->angle_min_);
- swap(angle_max_, other->angle_max_);
- swap(angle_increment_, other->angle_increment_);
- swap(time_increment_, other->time_increment_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata wjLidarParams::GetMetadata() const {
- protobuf_wj_5flidar_5fconf_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_wj_5flidar_5fconf_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void netConfig::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int netConfig::kIpAddressFieldNumber;
- const int netConfig::kPortFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- netConfig::netConfig()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_wj_5flidar_5fconf_2eproto::scc_info_netConfig.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:wj.netConfig)
- }
- netConfig::netConfig(const netConfig& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ip_address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.has_ip_address()) {
- ip_address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ip_address_);
- }
- port_ = from.port_;
- // @@protoc_insertion_point(copy_constructor:wj.netConfig)
- }
- void netConfig::SharedCtor() {
- ip_address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- port_ = 8000;
- }
- netConfig::~netConfig() {
- // @@protoc_insertion_point(destructor:wj.netConfig)
- SharedDtor();
- }
- void netConfig::SharedDtor() {
- ip_address_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- void netConfig::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* netConfig::descriptor() {
- ::protobuf_wj_5flidar_5fconf_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_wj_5flidar_5fconf_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const netConfig& netConfig::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_wj_5flidar_5fconf_2eproto::scc_info_netConfig.base);
- return *internal_default_instance();
- }
- void netConfig::Clear() {
- // @@protoc_insertion_point(message_clear_start:wj.netConfig)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 3u) {
- if (cached_has_bits & 0x00000001u) {
- ip_address_.ClearNonDefaultToEmptyNoArena();
- }
- port_ = 8000;
- }
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool netConfig::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:wj.netConfig)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // optional string ip_address = 1 [default = ""];
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_ip_address()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->ip_address().data(), static_cast<int>(this->ip_address().length()),
- ::google::protobuf::internal::WireFormat::PARSE,
- "wj.netConfig.ip_address");
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional int32 port = 2 [default = 8000];
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
- set_has_port();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &port_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:wj.netConfig)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:wj.netConfig)
- return false;
- #undef DO_
- }
- void netConfig::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:wj.netConfig)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional string ip_address = 1 [default = ""];
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->ip_address().data(), static_cast<int>(this->ip_address().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "wj.netConfig.ip_address");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 1, this->ip_address(), output);
- }
- // optional int32 port = 2 [default = 8000];
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->port(), output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:wj.netConfig)
- }
- ::google::protobuf::uint8* netConfig::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:wj.netConfig)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional string ip_address = 1 [default = ""];
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->ip_address().data(), static_cast<int>(this->ip_address().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "wj.netConfig.ip_address");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 1, this->ip_address(), target);
- }
- // optional int32 port = 2 [default = 8000];
- if (cached_has_bits & 0x00000002u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->port(), target);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:wj.netConfig)
- return target;
- }
- size_t netConfig::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:wj.netConfig)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- if (_has_bits_[0 / 32] & 3u) {
- // optional string ip_address = 1 [default = ""];
- if (has_ip_address()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->ip_address());
- }
- // optional int32 port = 2 [default = 8000];
- if (has_port()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->port());
- }
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void netConfig::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:wj.netConfig)
- GOOGLE_DCHECK_NE(&from, this);
- const netConfig* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const netConfig>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:wj.netConfig)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:wj.netConfig)
- MergeFrom(*source);
- }
- }
- void netConfig::MergeFrom(const netConfig& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:wj.netConfig)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = from._has_bits_[0];
- if (cached_has_bits & 3u) {
- if (cached_has_bits & 0x00000001u) {
- set_has_ip_address();
- ip_address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ip_address_);
- }
- if (cached_has_bits & 0x00000002u) {
- port_ = from.port_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- }
- void netConfig::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:wj.netConfig)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void netConfig::CopyFrom(const netConfig& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:wj.netConfig)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool netConfig::IsInitialized() const {
- return true;
- }
- void netConfig::Swap(netConfig* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void netConfig::InternalSwap(netConfig* other) {
- using std::swap;
- ip_address_.Swap(&other->ip_address_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- swap(port_, other->port_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata netConfig::GetMetadata() const {
- protobuf_wj_5flidar_5fconf_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_wj_5flidar_5fconf_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void Transform2d::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int Transform2d::kM00FieldNumber;
- const int Transform2d::kM01FieldNumber;
- const int Transform2d::kM02FieldNumber;
- const int Transform2d::kM10FieldNumber;
- const int Transform2d::kM11FieldNumber;
- const int Transform2d::kM12FieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- Transform2d::Transform2d()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_wj_5flidar_5fconf_2eproto::scc_info_Transform2d.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:wj.Transform2d)
- }
- Transform2d::Transform2d(const Transform2d& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::memcpy(&m01_, &from.m01_,
- static_cast<size_t>(reinterpret_cast<char*>(&m11_) -
- reinterpret_cast<char*>(&m01_)) + sizeof(m11_));
- // @@protoc_insertion_point(copy_constructor:wj.Transform2d)
- }
- void Transform2d::SharedCtor() {
- ::memset(&m01_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&m12_) -
- reinterpret_cast<char*>(&m01_)) + sizeof(m12_));
- m00_ = 1;
- m11_ = 1;
- }
- Transform2d::~Transform2d() {
- // @@protoc_insertion_point(destructor:wj.Transform2d)
- SharedDtor();
- }
- void Transform2d::SharedDtor() {
- }
- void Transform2d::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* Transform2d::descriptor() {
- ::protobuf_wj_5flidar_5fconf_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_wj_5flidar_5fconf_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const Transform2d& Transform2d::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_wj_5flidar_5fconf_2eproto::scc_info_Transform2d.base);
- return *internal_default_instance();
- }
- void Transform2d::Clear() {
- // @@protoc_insertion_point(message_clear_start:wj.Transform2d)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 63u) {
- ::memset(&m01_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&m12_) -
- reinterpret_cast<char*>(&m01_)) + sizeof(m12_));
- m00_ = 1;
- m11_ = 1;
- }
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool Transform2d::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:wj.Transform2d)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // optional float m00 = 1 [default = 1];
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
- set_has_m00();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &m00_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional float m01 = 2 [default = 0];
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
- set_has_m01();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &m01_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional float m02 = 3 [default = 0];
- case 3: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
- set_has_m02();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &m02_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional float m10 = 4 [default = 0];
- case 4: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) {
- set_has_m10();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &m10_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional float m11 = 5 [default = 1];
- case 5: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(45u /* 45 & 0xFF */)) {
- set_has_m11();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &m11_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional float m12 = 6 [default = 0];
- case 6: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(53u /* 53 & 0xFF */)) {
- set_has_m12();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &m12_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:wj.Transform2d)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:wj.Transform2d)
- return false;
- #undef DO_
- }
- void Transform2d::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:wj.Transform2d)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional float m00 = 1 [default = 1];
- if (cached_has_bits & 0x00000010u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->m00(), output);
- }
- // optional float m01 = 2 [default = 0];
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->m01(), output);
- }
- // optional float m02 = 3 [default = 0];
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->m02(), output);
- }
- // optional float m10 = 4 [default = 0];
- if (cached_has_bits & 0x00000004u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->m10(), output);
- }
- // optional float m11 = 5 [default = 1];
- if (cached_has_bits & 0x00000020u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->m11(), output);
- }
- // optional float m12 = 6 [default = 0];
- if (cached_has_bits & 0x00000008u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(6, this->m12(), output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:wj.Transform2d)
- }
- ::google::protobuf::uint8* Transform2d::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:wj.Transform2d)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional float m00 = 1 [default = 1];
- if (cached_has_bits & 0x00000010u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->m00(), target);
- }
- // optional float m01 = 2 [default = 0];
- if (cached_has_bits & 0x00000001u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->m01(), target);
- }
- // optional float m02 = 3 [default = 0];
- if (cached_has_bits & 0x00000002u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->m02(), target);
- }
- // optional float m10 = 4 [default = 0];
- if (cached_has_bits & 0x00000004u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->m10(), target);
- }
- // optional float m11 = 5 [default = 1];
- if (cached_has_bits & 0x00000020u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->m11(), target);
- }
- // optional float m12 = 6 [default = 0];
- if (cached_has_bits & 0x00000008u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(6, this->m12(), target);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:wj.Transform2d)
- return target;
- }
- size_t Transform2d::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:wj.Transform2d)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- if (_has_bits_[0 / 32] & 63u) {
- // optional float m01 = 2 [default = 0];
- if (has_m01()) {
- total_size += 1 + 4;
- }
- // optional float m02 = 3 [default = 0];
- if (has_m02()) {
- total_size += 1 + 4;
- }
- // optional float m10 = 4 [default = 0];
- if (has_m10()) {
- total_size += 1 + 4;
- }
- // optional float m12 = 6 [default = 0];
- if (has_m12()) {
- total_size += 1 + 4;
- }
- // optional float m00 = 1 [default = 1];
- if (has_m00()) {
- total_size += 1 + 4;
- }
- // optional float m11 = 5 [default = 1];
- if (has_m11()) {
- total_size += 1 + 4;
- }
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void Transform2d::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:wj.Transform2d)
- GOOGLE_DCHECK_NE(&from, this);
- const Transform2d* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const Transform2d>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:wj.Transform2d)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:wj.Transform2d)
- MergeFrom(*source);
- }
- }
- void Transform2d::MergeFrom(const Transform2d& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:wj.Transform2d)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = from._has_bits_[0];
- if (cached_has_bits & 63u) {
- if (cached_has_bits & 0x00000001u) {
- m01_ = from.m01_;
- }
- if (cached_has_bits & 0x00000002u) {
- m02_ = from.m02_;
- }
- if (cached_has_bits & 0x00000004u) {
- m10_ = from.m10_;
- }
- if (cached_has_bits & 0x00000008u) {
- m12_ = from.m12_;
- }
- if (cached_has_bits & 0x00000010u) {
- m00_ = from.m00_;
- }
- if (cached_has_bits & 0x00000020u) {
- m11_ = from.m11_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- }
- void Transform2d::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:wj.Transform2d)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void Transform2d::CopyFrom(const Transform2d& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:wj.Transform2d)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool Transform2d::IsInitialized() const {
- return true;
- }
- void Transform2d::Swap(Transform2d* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void Transform2d::InternalSwap(Transform2d* other) {
- using std::swap;
- swap(m01_, other->m01_);
- swap(m02_, other->m02_);
- swap(m10_, other->m10_);
- swap(m12_, other->m12_);
- swap(m00_, other->m00_);
- swap(m11_, other->m11_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata Transform2d::GetMetadata() const {
- protobuf_wj_5flidar_5fconf_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_wj_5flidar_5fconf_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void scanLimit::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int scanLimit::kDistLimitFieldNumber;
- const int scanLimit::kMinxFieldNumber;
- const int scanLimit::kMaxxFieldNumber;
- const int scanLimit::kMinyFieldNumber;
- const int scanLimit::kMaxyFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- scanLimit::scanLimit()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_wj_5flidar_5fconf_2eproto::scc_info_scanLimit.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:wj.scanLimit)
- }
- scanLimit::scanLimit(const scanLimit& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::memcpy(&maxy_, &from.maxy_,
- static_cast<size_t>(reinterpret_cast<char*>(&miny_) -
- reinterpret_cast<char*>(&maxy_)) + sizeof(miny_));
- // @@protoc_insertion_point(copy_constructor:wj.scanLimit)
- }
- void scanLimit::SharedCtor() {
- maxy_ = 3.5f;
- dist_limit_ = 8;
- minx_ = -6;
- maxx_ = -0.2f;
- miny_ = -3.5f;
- }
- scanLimit::~scanLimit() {
- // @@protoc_insertion_point(destructor:wj.scanLimit)
- SharedDtor();
- }
- void scanLimit::SharedDtor() {
- }
- void scanLimit::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* scanLimit::descriptor() {
- ::protobuf_wj_5flidar_5fconf_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_wj_5flidar_5fconf_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const scanLimit& scanLimit::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_wj_5flidar_5fconf_2eproto::scc_info_scanLimit.base);
- return *internal_default_instance();
- }
- void scanLimit::Clear() {
- // @@protoc_insertion_point(message_clear_start:wj.scanLimit)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 31u) {
- maxy_ = 3.5f;
- dist_limit_ = 8;
- minx_ = -6;
- maxx_ = -0.2f;
- miny_ = -3.5f;
- }
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool scanLimit::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:wj.scanLimit)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // optional float dist_limit = 1 [default = 8];
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
- set_has_dist_limit();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &dist_limit_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional float minx = 2 [default = -6];
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
- set_has_minx();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &minx_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional float maxx = 3 [default = -0.2];
- case 3: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
- set_has_maxx();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &maxx_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional float miny = 4 [default = -3.5];
- case 4: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) {
- set_has_miny();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &miny_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional float maxy = 5 [default = 3.5];
- case 5: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(45u /* 45 & 0xFF */)) {
- set_has_maxy();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &maxy_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:wj.scanLimit)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:wj.scanLimit)
- return false;
- #undef DO_
- }
- void scanLimit::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:wj.scanLimit)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional float dist_limit = 1 [default = 8];
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->dist_limit(), output);
- }
- // optional float minx = 2 [default = -6];
- if (cached_has_bits & 0x00000004u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->minx(), output);
- }
- // optional float maxx = 3 [default = -0.2];
- if (cached_has_bits & 0x00000008u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->maxx(), output);
- }
- // optional float miny = 4 [default = -3.5];
- if (cached_has_bits & 0x00000010u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->miny(), output);
- }
- // optional float maxy = 5 [default = 3.5];
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->maxy(), output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:wj.scanLimit)
- }
- ::google::protobuf::uint8* scanLimit::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:wj.scanLimit)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional float dist_limit = 1 [default = 8];
- if (cached_has_bits & 0x00000002u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->dist_limit(), target);
- }
- // optional float minx = 2 [default = -6];
- if (cached_has_bits & 0x00000004u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->minx(), target);
- }
- // optional float maxx = 3 [default = -0.2];
- if (cached_has_bits & 0x00000008u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->maxx(), target);
- }
- // optional float miny = 4 [default = -3.5];
- if (cached_has_bits & 0x00000010u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->miny(), target);
- }
- // optional float maxy = 5 [default = 3.5];
- if (cached_has_bits & 0x00000001u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->maxy(), target);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:wj.scanLimit)
- return target;
- }
- size_t scanLimit::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:wj.scanLimit)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- if (_has_bits_[0 / 32] & 31u) {
- // optional float maxy = 5 [default = 3.5];
- if (has_maxy()) {
- total_size += 1 + 4;
- }
- // optional float dist_limit = 1 [default = 8];
- if (has_dist_limit()) {
- total_size += 1 + 4;
- }
- // optional float minx = 2 [default = -6];
- if (has_minx()) {
- total_size += 1 + 4;
- }
- // optional float maxx = 3 [default = -0.2];
- if (has_maxx()) {
- total_size += 1 + 4;
- }
- // optional float miny = 4 [default = -3.5];
- if (has_miny()) {
- total_size += 1 + 4;
- }
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void scanLimit::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:wj.scanLimit)
- GOOGLE_DCHECK_NE(&from, this);
- const scanLimit* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const scanLimit>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:wj.scanLimit)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:wj.scanLimit)
- MergeFrom(*source);
- }
- }
- void scanLimit::MergeFrom(const scanLimit& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:wj.scanLimit)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = from._has_bits_[0];
- if (cached_has_bits & 31u) {
- if (cached_has_bits & 0x00000001u) {
- maxy_ = from.maxy_;
- }
- if (cached_has_bits & 0x00000002u) {
- dist_limit_ = from.dist_limit_;
- }
- if (cached_has_bits & 0x00000004u) {
- minx_ = from.minx_;
- }
- if (cached_has_bits & 0x00000008u) {
- maxx_ = from.maxx_;
- }
- if (cached_has_bits & 0x00000010u) {
- miny_ = from.miny_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- }
- void scanLimit::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:wj.scanLimit)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void scanLimit::CopyFrom(const scanLimit& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:wj.scanLimit)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool scanLimit::IsInitialized() const {
- return true;
- }
- void scanLimit::Swap(scanLimit* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void scanLimit::InternalSwap(scanLimit* other) {
- using std::swap;
- swap(maxy_, other->maxy_);
- swap(dist_limit_, other->dist_limit_);
- swap(minx_, other->minx_);
- swap(maxx_, other->maxx_);
- swap(miny_, other->miny_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata scanLimit::GetMetadata() const {
- protobuf_wj_5flidar_5fconf_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_wj_5flidar_5fconf_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // @@protoc_insertion_point(namespace_scope)
- } // namespace wj
- namespace google {
- namespace protobuf {
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::wj::wjManagerParams* Arena::CreateMaybeMessage< ::wj::wjManagerParams >(Arena* arena) {
- return Arena::CreateInternal< ::wj::wjManagerParams >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::wj::Region* Arena::CreateMaybeMessage< ::wj::Region >(Arena* arena) {
- return Arena::CreateInternal< ::wj::Region >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::wj::wjLidarParams* Arena::CreateMaybeMessage< ::wj::wjLidarParams >(Arena* arena) {
- return Arena::CreateInternal< ::wj::wjLidarParams >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::wj::netConfig* Arena::CreateMaybeMessage< ::wj::netConfig >(Arena* arena) {
- return Arena::CreateInternal< ::wj::netConfig >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::wj::Transform2d* Arena::CreateMaybeMessage< ::wj::Transform2d >(Arena* arena) {
- return Arena::CreateInternal< ::wj::Transform2d >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::wj::scanLimit* Arena::CreateMaybeMessage< ::wj::scanLimit >(Arena* arena) {
- return Arena::CreateInternal< ::wj::scanLimit >(arena);
- }
- } // namespace protobuf
- } // namespace google
- // @@protoc_insertion_point(global_scope)
|