123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529 |
- // 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/io/coded_stream.h>
- #include <google/protobuf/extension_set.h>
- #include <google/protobuf/wire_format_lite.h>
- #include <google/protobuf/descriptor.h>
- #include <google/protobuf/generated_message_reflection.h>
- #include <google/protobuf/reflection_ops.h>
- #include <google/protobuf/wire_format.h>
- // @@protoc_insertion_point(includes)
- #include <google/protobuf/port_def.inc>
- extern PROTOBUF_INTERNAL_EXPORT_wj_5flidar_5fconf_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Region_wj_5flidar_5fconf_2eproto;
- extern PROTOBUF_INTERNAL_EXPORT_wj_5flidar_5fconf_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Transform2d_wj_5flidar_5fconf_2eproto;
- extern PROTOBUF_INTERNAL_EXPORT_wj_5flidar_5fconf_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_netConfig_wj_5flidar_5fconf_2eproto;
- extern PROTOBUF_INTERNAL_EXPORT_wj_5flidar_5fconf_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_scanLimit_wj_5flidar_5fconf_2eproto;
- extern PROTOBUF_INTERNAL_EXPORT_wj_5flidar_5fconf_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_wjLidarParams_wj_5flidar_5fconf_2eproto;
- namespace wj {
- class wjManagerParamsDefaultTypeInternal {
- public:
- ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<wjManagerParams> _instance;
- } _wjManagerParams_default_instance_;
- class RegionDefaultTypeInternal {
- public:
- ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Region> _instance;
- } _Region_default_instance_;
- class wjLidarParamsDefaultTypeInternal {
- public:
- ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<wjLidarParams> _instance;
- } _wjLidarParams_default_instance_;
- class netConfigDefaultTypeInternal {
- public:
- ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<netConfig> _instance;
- } _netConfig_default_instance_;
- class Transform2dDefaultTypeInternal {
- public:
- ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Transform2d> _instance;
- } _Transform2d_default_instance_;
- class scanLimitDefaultTypeInternal {
- public:
- ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<scanLimit> _instance;
- } _scanLimit_default_instance_;
- } // namespace wj
- static void InitDefaultsscc_info_Region_wj_5flidar_5fconf_2eproto() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::wj::_Region_default_instance_;
- new (ptr) ::wj::Region();
- ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
- }
- ::wj::Region::InitAsDefaultInstance();
- }
- ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Region_wj_5flidar_5fconf_2eproto =
- {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Region_wj_5flidar_5fconf_2eproto}, {}};
- static void InitDefaultsscc_info_Transform2d_wj_5flidar_5fconf_2eproto() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::wj::_Transform2d_default_instance_;
- new (ptr) ::wj::Transform2d();
- ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
- }
- ::wj::Transform2d::InitAsDefaultInstance();
- }
- ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Transform2d_wj_5flidar_5fconf_2eproto =
- {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Transform2d_wj_5flidar_5fconf_2eproto}, {}};
- static void InitDefaultsscc_info_netConfig_wj_5flidar_5fconf_2eproto() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::wj::_netConfig_default_instance_;
- new (ptr) ::wj::netConfig();
- ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
- }
- ::wj::netConfig::InitAsDefaultInstance();
- }
- ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_netConfig_wj_5flidar_5fconf_2eproto =
- {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_netConfig_wj_5flidar_5fconf_2eproto}, {}};
- static void InitDefaultsscc_info_scanLimit_wj_5flidar_5fconf_2eproto() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::wj::_scanLimit_default_instance_;
- new (ptr) ::wj::scanLimit();
- ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
- }
- ::wj::scanLimit::InitAsDefaultInstance();
- }
- ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_scanLimit_wj_5flidar_5fconf_2eproto =
- {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_scanLimit_wj_5flidar_5fconf_2eproto}, {}};
- static void InitDefaultsscc_info_wjLidarParams_wj_5flidar_5fconf_2eproto() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::wj::_wjLidarParams_default_instance_;
- new (ptr) ::wj::wjLidarParams();
- ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
- }
- ::wj::wjLidarParams::InitAsDefaultInstance();
- }
- ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_wjLidarParams_wj_5flidar_5fconf_2eproto =
- {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 3, 0, InitDefaultsscc_info_wjLidarParams_wj_5flidar_5fconf_2eproto}, {
- &scc_info_netConfig_wj_5flidar_5fconf_2eproto.base,
- &scc_info_Transform2d_wj_5flidar_5fconf_2eproto.base,
- &scc_info_scanLimit_wj_5flidar_5fconf_2eproto.base,}};
- static void InitDefaultsscc_info_wjManagerParams_wj_5flidar_5fconf_2eproto() {
- 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);
- ::PROTOBUF_NAMESPACE_ID::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();
- ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
- }
- ::wj::wjManagerParams::InitAsDefaultInstance();
- }
- ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_wjManagerParams_wj_5flidar_5fconf_2eproto =
- {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_wjManagerParams_wj_5flidar_5fconf_2eproto}, {
- &scc_info_wjLidarParams_wj_5flidar_5fconf_2eproto.base,
- &scc_info_Region_wj_5flidar_5fconf_2eproto.base,}};
- static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_wj_5flidar_5fconf_2eproto[6];
- static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_wj_5flidar_5fconf_2eproto = nullptr;
- static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_wj_5flidar_5fconf_2eproto = nullptr;
- const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_wj_5flidar_5fconf_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
- PROTOBUF_FIELD_OFFSET(::wj::wjManagerParams, _has_bits_),
- PROTOBUF_FIELD_OFFSET(::wj::wjManagerParams, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- PROTOBUF_FIELD_OFFSET(::wj::wjManagerParams, wj_lidar_),
- PROTOBUF_FIELD_OFFSET(::wj::wjManagerParams, regions_),
- PROTOBUF_FIELD_OFFSET(::wj::wjManagerParams, fence_data_path_),
- PROTOBUF_FIELD_OFFSET(::wj::wjManagerParams, fence_log_path_),
- PROTOBUF_FIELD_OFFSET(::wj::wjManagerParams, plc_ip_address_),
- ~0u,
- ~0u,
- 0,
- 1,
- 2,
- PROTOBUF_FIELD_OFFSET(::wj::Region, _has_bits_),
- PROTOBUF_FIELD_OFFSET(::wj::Region, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- PROTOBUF_FIELD_OFFSET(::wj::Region, minx_),
- PROTOBUF_FIELD_OFFSET(::wj::Region, maxx_),
- PROTOBUF_FIELD_OFFSET(::wj::Region, miny_),
- PROTOBUF_FIELD_OFFSET(::wj::Region, maxy_),
- 0,
- 1,
- 2,
- 3,
- PROTOBUF_FIELD_OFFSET(::wj::wjLidarParams, _has_bits_),
- PROTOBUF_FIELD_OFFSET(::wj::wjLidarParams, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- PROTOBUF_FIELD_OFFSET(::wj::wjLidarParams, angle_min_),
- PROTOBUF_FIELD_OFFSET(::wj::wjLidarParams, angle_max_),
- PROTOBUF_FIELD_OFFSET(::wj::wjLidarParams, angle_increment_),
- PROTOBUF_FIELD_OFFSET(::wj::wjLidarParams, time_increment_),
- PROTOBUF_FIELD_OFFSET(::wj::wjLidarParams, range_min_),
- PROTOBUF_FIELD_OFFSET(::wj::wjLidarParams, range_max_),
- PROTOBUF_FIELD_OFFSET(::wj::wjLidarParams, net_config_),
- PROTOBUF_FIELD_OFFSET(::wj::wjLidarParams, transform_),
- PROTOBUF_FIELD_OFFSET(::wj::wjLidarParams, scan_limit_),
- 5,
- 6,
- 7,
- 8,
- 3,
- 4,
- 0,
- 1,
- 2,
- PROTOBUF_FIELD_OFFSET(::wj::netConfig, _has_bits_),
- PROTOBUF_FIELD_OFFSET(::wj::netConfig, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- PROTOBUF_FIELD_OFFSET(::wj::netConfig, ip_address_),
- PROTOBUF_FIELD_OFFSET(::wj::netConfig, port_),
- 0,
- 1,
- PROTOBUF_FIELD_OFFSET(::wj::Transform2d, _has_bits_),
- PROTOBUF_FIELD_OFFSET(::wj::Transform2d, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- PROTOBUF_FIELD_OFFSET(::wj::Transform2d, m00_),
- PROTOBUF_FIELD_OFFSET(::wj::Transform2d, m01_),
- PROTOBUF_FIELD_OFFSET(::wj::Transform2d, m02_),
- PROTOBUF_FIELD_OFFSET(::wj::Transform2d, m10_),
- PROTOBUF_FIELD_OFFSET(::wj::Transform2d, m11_),
- PROTOBUF_FIELD_OFFSET(::wj::Transform2d, m12_),
- 4,
- 0,
- 1,
- 2,
- 5,
- 3,
- PROTOBUF_FIELD_OFFSET(::wj::scanLimit, _has_bits_),
- PROTOBUF_FIELD_OFFSET(::wj::scanLimit, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- PROTOBUF_FIELD_OFFSET(::wj::scanLimit, dist_limit_),
- PROTOBUF_FIELD_OFFSET(::wj::scanLimit, minx_),
- PROTOBUF_FIELD_OFFSET(::wj::scanLimit, maxx_),
- PROTOBUF_FIELD_OFFSET(::wj::scanLimit, miny_),
- PROTOBUF_FIELD_OFFSET(::wj::scanLimit, maxy_),
- 1,
- 2,
- 3,
- 4,
- 0,
- };
- static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_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 ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
- reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::wj::_wjManagerParams_default_instance_),
- reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::wj::_Region_default_instance_),
- reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::wj::_wjLidarParams_default_instance_),
- reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::wj::_netConfig_default_instance_),
- reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::wj::_Transform2d_default_instance_),
- reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::wj::_scanLimit_default_instance_),
- };
- const char descriptor_table_protodef_wj_5flidar_5fconf_2eproto[] PROTOBUF_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"
- ;
- static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_wj_5flidar_5fconf_2eproto_deps[1] = {
- };
- static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_wj_5flidar_5fconf_2eproto_sccs[6] = {
- &scc_info_Region_wj_5flidar_5fconf_2eproto.base,
- &scc_info_Transform2d_wj_5flidar_5fconf_2eproto.base,
- &scc_info_netConfig_wj_5flidar_5fconf_2eproto.base,
- &scc_info_scanLimit_wj_5flidar_5fconf_2eproto.base,
- &scc_info_wjLidarParams_wj_5flidar_5fconf_2eproto.base,
- &scc_info_wjManagerParams_wj_5flidar_5fconf_2eproto.base,
- };
- static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_wj_5flidar_5fconf_2eproto_once;
- const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_wj_5flidar_5fconf_2eproto = {
- false, false, descriptor_table_protodef_wj_5flidar_5fconf_2eproto, "wj_lidar_conf.proto", 843,
- &descriptor_table_wj_5flidar_5fconf_2eproto_once, descriptor_table_wj_5flidar_5fconf_2eproto_sccs, descriptor_table_wj_5flidar_5fconf_2eproto_deps, 6, 0,
- schemas, file_default_instances, TableStruct_wj_5flidar_5fconf_2eproto::offsets,
- file_level_metadata_wj_5flidar_5fconf_2eproto, 6, file_level_enum_descriptors_wj_5flidar_5fconf_2eproto, file_level_service_descriptors_wj_5flidar_5fconf_2eproto,
- };
- // Force running AddDescriptors() at dynamic initialization time.
- static bool dynamic_init_dummy_wj_5flidar_5fconf_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_wj_5flidar_5fconf_2eproto)), true);
- namespace wj {
- // ===================================================================
- void wjManagerParams::InitAsDefaultInstance() {
- }
- class wjManagerParams::_Internal {
- public:
- using HasBits = decltype(std::declval<wjManagerParams>()._has_bits_);
- static void set_has_fence_data_path(HasBits* has_bits) {
- (*has_bits)[0] |= 1u;
- }
- static void set_has_fence_log_path(HasBits* has_bits) {
- (*has_bits)[0] |= 2u;
- }
- static void set_has_plc_ip_address(HasBits* has_bits) {
- (*has_bits)[0] |= 4u;
- }
- };
- ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> wjManagerParams::_i_give_permission_to_break_this_code_default_plc_ip_address_;
- wjManagerParams::wjManagerParams(::PROTOBUF_NAMESPACE_ID::Arena* arena)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena),
- wj_lidar_(arena),
- regions_(arena) {
- SharedCtor();
- RegisterArenaDtor(arena);
- // @@protoc_insertion_point(arena_constructor:wj.wjManagerParams)
- }
- wjManagerParams::wjManagerParams(const wjManagerParams& from)
- : ::PROTOBUF_NAMESPACE_ID::Message(),
- _has_bits_(from._has_bits_),
- wj_lidar_(from.wj_lidar_),
- regions_(from.regions_) {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- fence_data_path_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- if (from._internal_has_fence_data_path()) {
- fence_data_path_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_fence_data_path(),
- GetArena());
- }
- fence_log_path_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- if (from._internal_has_fence_log_path()) {
- fence_log_path_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_fence_log_path(),
- GetArena());
- }
- plc_ip_address_.UnsafeSetDefault(&::wj::wjManagerParams::_i_give_permission_to_break_this_code_default_plc_ip_address_.get());
- if (from._internal_has_plc_ip_address()) {
- plc_ip_address_.Set(&::wj::wjManagerParams::_i_give_permission_to_break_this_code_default_plc_ip_address_.get(), from._internal_plc_ip_address(),
- GetArena());
- }
- // @@protoc_insertion_point(copy_constructor:wj.wjManagerParams)
- }
- void wjManagerParams::SharedCtor() {
- ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_wjManagerParams_wj_5flidar_5fconf_2eproto.base);
- fence_data_path_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- fence_log_path_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::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();
- _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- void wjManagerParams::SharedDtor() {
- GOOGLE_DCHECK(GetArena() == nullptr);
- fence_data_path_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- fence_log_path_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- plc_ip_address_.DestroyNoArena(&::wj::wjManagerParams::_i_give_permission_to_break_this_code_default_plc_ip_address_.get());
- }
- void wjManagerParams::ArenaDtor(void* object) {
- wjManagerParams* _this = reinterpret_cast< wjManagerParams* >(object);
- (void)_this;
- }
- void wjManagerParams::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
- }
- void wjManagerParams::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const wjManagerParams& wjManagerParams::default_instance() {
- ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_wjManagerParams_wj_5flidar_5fconf_2eproto.base);
- return *internal_default_instance();
- }
- void wjManagerParams::Clear() {
- // @@protoc_insertion_point(message_clear_start:wj.wjManagerParams)
- ::PROTOBUF_NAMESPACE_ID::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 & 0x00000007u) {
- if (cached_has_bits & 0x00000001u) {
- fence_data_path_.ClearNonDefaultToEmpty();
- }
- if (cached_has_bits & 0x00000002u) {
- fence_log_path_.ClearNonDefaultToEmpty();
- }
- if (cached_has_bits & 0x00000004u) {
- plc_ip_address_.ClearToDefault(&::wj::wjManagerParams::_i_give_permission_to_break_this_code_default_plc_ip_address_.get(), GetArena());
- }
- }
- _has_bits_.Clear();
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- const char* wjManagerParams::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- _Internal::HasBits has_bits{};
- ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
- while (!ctx->Done(&ptr)) {
- ::PROTOBUF_NAMESPACE_ID::uint32 tag;
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
- CHK_(ptr);
- switch (tag >> 3) {
- // repeated .wj.wjLidarParams wj_lidar = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
- ptr -= 1;
- do {
- ptr += 1;
- ptr = ctx->ParseMessage(_internal_add_wj_lidar(), ptr);
- CHK_(ptr);
- if (!ctx->DataAvailable(ptr)) break;
- } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
- } else goto handle_unusual;
- continue;
- // repeated .wj.Region regions = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
- ptr -= 1;
- do {
- ptr += 1;
- ptr = ctx->ParseMessage(_internal_add_regions(), ptr);
- CHK_(ptr);
- if (!ctx->DataAvailable(ptr)) break;
- } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
- } else goto handle_unusual;
- continue;
- // optional string fence_data_path = 3 [default = ""];
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
- auto str = _internal_mutable_fence_data_path();
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
- #ifndef NDEBUG
- ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "wj.wjManagerParams.fence_data_path");
- #endif // !NDEBUG
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- // optional string fence_log_path = 4 [default = ""];
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
- auto str = _internal_mutable_fence_log_path();
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
- #ifndef NDEBUG
- ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "wj.wjManagerParams.fence_log_path");
- #endif // !NDEBUG
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- // optional string plc_ip_address = 5 [default = "192.168.0.1"];
- case 5:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
- auto str = _internal_mutable_plc_ip_address();
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
- #ifndef NDEBUG
- ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "wj.wjManagerParams.plc_ip_address");
- #endif // !NDEBUG
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- default: {
- handle_unusual:
- if ((tag & 7) == 4 || tag == 0) {
- ctx->SetLastTag(tag);
- goto success;
- }
- ptr = UnknownFieldParse(tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- continue;
- }
- } // switch
- } // while
- success:
- _has_bits_.Or(has_bits);
- return ptr;
- failure:
- ptr = nullptr;
- goto success;
- #undef CHK_
- }
- ::PROTOBUF_NAMESPACE_ID::uint8* wjManagerParams::_InternalSerialize(
- ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:wj.wjManagerParams)
- ::PROTOBUF_NAMESPACE_ID::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->_internal_wj_lidar_size()); i < n; i++) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(1, this->_internal_wj_lidar(i), target, stream);
- }
- // repeated .wj.Region regions = 2;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->_internal_regions_size()); i < n; i++) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(2, this->_internal_regions(i), target, stream);
- }
- cached_has_bits = _has_bits_[0];
- // optional string fence_data_path = 3 [default = ""];
- if (cached_has_bits & 0x00000001u) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
- this->_internal_fence_data_path().data(), static_cast<int>(this->_internal_fence_data_path().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
- "wj.wjManagerParams.fence_data_path");
- target = stream->WriteStringMaybeAliased(
- 3, this->_internal_fence_data_path(), target);
- }
- // optional string fence_log_path = 4 [default = ""];
- if (cached_has_bits & 0x00000002u) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
- this->_internal_fence_log_path().data(), static_cast<int>(this->_internal_fence_log_path().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
- "wj.wjManagerParams.fence_log_path");
- target = stream->WriteStringMaybeAliased(
- 4, this->_internal_fence_log_path(), target);
- }
- // optional string plc_ip_address = 5 [default = "192.168.0.1"];
- if (cached_has_bits & 0x00000004u) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
- this->_internal_plc_ip_address().data(), static_cast<int>(this->_internal_plc_ip_address().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
- "wj.wjManagerParams.plc_ip_address");
- target = stream->WriteStringMaybeAliased(
- 5, this->_internal_plc_ip_address(), target);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:wj.wjManagerParams)
- return target;
- }
- size_t wjManagerParams::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:wj.wjManagerParams)
- size_t total_size = 0;
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // repeated .wj.wjLidarParams wj_lidar = 1;
- total_size += 1UL * this->_internal_wj_lidar_size();
- for (const auto& msg : this->wj_lidar_) {
- total_size +=
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
- }
- // repeated .wj.Region regions = 2;
- total_size += 1UL * this->_internal_regions_size();
- for (const auto& msg : this->regions_) {
- total_size +=
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
- }
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 0x00000007u) {
- // optional string fence_data_path = 3 [default = ""];
- if (cached_has_bits & 0x00000001u) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_fence_data_path());
- }
- // optional string fence_log_path = 4 [default = ""];
- if (cached_has_bits & 0x00000002u) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_fence_log_path());
- }
- // optional string plc_ip_address = 5 [default = "192.168.0.1"];
- if (cached_has_bits & 0x00000004u) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_plc_ip_address());
- }
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
- _internal_metadata_, total_size, &_cached_size_);
- }
- int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void wjManagerParams::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:wj.wjManagerParams)
- GOOGLE_DCHECK_NE(&from, this);
- const wjManagerParams* source =
- ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<wjManagerParams>(
- &from);
- if (source == nullptr) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:wj.wjManagerParams)
- ::PROTOBUF_NAMESPACE_ID::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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::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 & 0x00000007u) {
- if (cached_has_bits & 0x00000001u) {
- _internal_set_fence_data_path(from._internal_fence_data_path());
- }
- if (cached_has_bits & 0x00000002u) {
- _internal_set_fence_log_path(from._internal_fence_log_path());
- }
- if (cached_has_bits & 0x00000004u) {
- _internal_set_plc_ip_address(from._internal_plc_ip_address());
- }
- }
- }
- void wjManagerParams::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::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 (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(wj_lidar_)) return false;
- if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(regions_)) return false;
- return true;
- }
- void wjManagerParams::InternalSwap(wjManagerParams* other) {
- using std::swap;
- _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- wj_lidar_.InternalSwap(&other->wj_lidar_);
- regions_.InternalSwap(&other->regions_);
- fence_data_path_.Swap(&other->fence_data_path_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
- fence_log_path_.Swap(&other->fence_log_path_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
- plc_ip_address_.Swap(&other->plc_ip_address_, &::wj::wjManagerParams::_i_give_permission_to_break_this_code_default_plc_ip_address_.get(), GetArena());
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata wjManagerParams::GetMetadata() const {
- return GetMetadataStatic();
- }
- // ===================================================================
- void Region::InitAsDefaultInstance() {
- }
- class Region::_Internal {
- public:
- using HasBits = decltype(std::declval<Region>()._has_bits_);
- static void set_has_minx(HasBits* has_bits) {
- (*has_bits)[0] |= 1u;
- }
- static void set_has_maxx(HasBits* has_bits) {
- (*has_bits)[0] |= 2u;
- }
- static void set_has_miny(HasBits* has_bits) {
- (*has_bits)[0] |= 4u;
- }
- static void set_has_maxy(HasBits* has_bits) {
- (*has_bits)[0] |= 8u;
- }
- static bool MissingRequiredFields(const HasBits& has_bits) {
- return ((has_bits[0] & 0x0000000f) ^ 0x0000000f) != 0;
- }
- };
- Region::Region(::PROTOBUF_NAMESPACE_ID::Arena* arena)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
- SharedCtor();
- RegisterArenaDtor(arena);
- // @@protoc_insertion_point(arena_constructor:wj.Region)
- }
- Region::Region(const Region& from)
- : ::PROTOBUF_NAMESPACE_ID::Message(),
- _has_bits_(from._has_bits_) {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(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();
- _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- void Region::SharedDtor() {
- GOOGLE_DCHECK(GetArena() == nullptr);
- }
- void Region::ArenaDtor(void* object) {
- Region* _this = reinterpret_cast< Region* >(object);
- (void)_this;
- }
- void Region::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
- }
- void Region::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const Region& Region::default_instance() {
- ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Region_wj_5flidar_5fconf_2eproto.base);
- return *internal_default_instance();
- }
- void Region::Clear() {
- // @@protoc_insertion_point(message_clear_start:wj.Region)
- ::PROTOBUF_NAMESPACE_ID::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 & 0x0000000fu) {
- ::memset(&minx_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&maxy_) -
- reinterpret_cast<char*>(&minx_)) + sizeof(maxy_));
- }
- _has_bits_.Clear();
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- const char* Region::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- _Internal::HasBits has_bits{};
- ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
- while (!ctx->Done(&ptr)) {
- ::PROTOBUF_NAMESPACE_ID::uint32 tag;
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
- CHK_(ptr);
- switch (tag >> 3) {
- // required float minx = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 13)) {
- _Internal::set_has_minx(&has_bits);
- minx_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else goto handle_unusual;
- continue;
- // required float maxx = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 21)) {
- _Internal::set_has_maxx(&has_bits);
- maxx_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else goto handle_unusual;
- continue;
- // required float miny = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 29)) {
- _Internal::set_has_miny(&has_bits);
- miny_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else goto handle_unusual;
- continue;
- // required float maxy = 4;
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 37)) {
- _Internal::set_has_maxy(&has_bits);
- maxy_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else goto handle_unusual;
- continue;
- default: {
- handle_unusual:
- if ((tag & 7) == 4 || tag == 0) {
- ctx->SetLastTag(tag);
- goto success;
- }
- ptr = UnknownFieldParse(tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- continue;
- }
- } // switch
- } // while
- success:
- _has_bits_.Or(has_bits);
- return ptr;
- failure:
- ptr = nullptr;
- goto success;
- #undef CHK_
- }
- ::PROTOBUF_NAMESPACE_ID::uint8* Region::_InternalSerialize(
- ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:wj.Region)
- ::PROTOBUF_NAMESPACE_ID::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 = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(1, this->_internal_minx(), target);
- }
- // required float maxx = 2;
- if (cached_has_bits & 0x00000002u) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(2, this->_internal_maxx(), target);
- }
- // required float miny = 3;
- if (cached_has_bits & 0x00000004u) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(3, this->_internal_miny(), target);
- }
- // required float maxy = 4;
- if (cached_has_bits & 0x00000008u) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(4, this->_internal_maxy(), target);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end: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 (_internal_has_minx()) {
- // required float minx = 1;
- total_size += 1 + 4;
- }
- if (_internal_has_maxx()) {
- // required float maxx = 2;
- total_size += 1 + 4;
- }
- if (_internal_has_miny()) {
- // required float miny = 3;
- total_size += 1 + 4;
- }
- if (_internal_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 (((_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();
- }
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
- _internal_metadata_, total_size, &_cached_size_);
- }
- int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void Region::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:wj.Region)
- GOOGLE_DCHECK_NE(&from, this);
- const Region* source =
- ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Region>(
- &from);
- if (source == nullptr) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:wj.Region)
- ::PROTOBUF_NAMESPACE_ID::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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = from._has_bits_[0];
- if (cached_has_bits & 0x0000000fu) {
- 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 ::PROTOBUF_NAMESPACE_ID::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 (_Internal::MissingRequiredFields(_has_bits_)) return false;
- return true;
- }
- void Region::InternalSwap(Region* other) {
- using std::swap;
- _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(Region, maxy_)
- + sizeof(Region::maxy_)
- - PROTOBUF_FIELD_OFFSET(Region, minx_)>(
- reinterpret_cast<char*>(&minx_),
- reinterpret_cast<char*>(&other->minx_));
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata Region::GetMetadata() const {
- return GetMetadataStatic();
- }
- // ===================================================================
- 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());
- }
- class wjLidarParams::_Internal {
- public:
- using HasBits = decltype(std::declval<wjLidarParams>()._has_bits_);
- static void set_has_angle_min(HasBits* has_bits) {
- (*has_bits)[0] |= 32u;
- }
- static void set_has_angle_max(HasBits* has_bits) {
- (*has_bits)[0] |= 64u;
- }
- static void set_has_angle_increment(HasBits* has_bits) {
- (*has_bits)[0] |= 128u;
- }
- static void set_has_time_increment(HasBits* has_bits) {
- (*has_bits)[0] |= 256u;
- }
- static void set_has_range_min(HasBits* has_bits) {
- (*has_bits)[0] |= 8u;
- }
- static void set_has_range_max(HasBits* has_bits) {
- (*has_bits)[0] |= 16u;
- }
- static const ::wj::netConfig& net_config(const wjLidarParams* msg);
- static void set_has_net_config(HasBits* has_bits) {
- (*has_bits)[0] |= 1u;
- }
- static const ::wj::Transform2d& transform(const wjLidarParams* msg);
- static void set_has_transform(HasBits* has_bits) {
- (*has_bits)[0] |= 2u;
- }
- static const ::wj::scanLimit& scan_limit(const wjLidarParams* msg);
- static void set_has_scan_limit(HasBits* has_bits) {
- (*has_bits)[0] |= 4u;
- }
- static bool MissingRequiredFields(const HasBits& has_bits) {
- return ((has_bits[0] & 0x00000007) ^ 0x00000007) != 0;
- }
- };
- const ::wj::netConfig&
- wjLidarParams::_Internal::net_config(const wjLidarParams* msg) {
- return *msg->net_config_;
- }
- const ::wj::Transform2d&
- wjLidarParams::_Internal::transform(const wjLidarParams* msg) {
- return *msg->transform_;
- }
- const ::wj::scanLimit&
- wjLidarParams::_Internal::scan_limit(const wjLidarParams* msg) {
- return *msg->scan_limit_;
- }
- wjLidarParams::wjLidarParams(::PROTOBUF_NAMESPACE_ID::Arena* arena)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
- SharedCtor();
- RegisterArenaDtor(arena);
- // @@protoc_insertion_point(arena_constructor:wj.wjLidarParams)
- }
- wjLidarParams::wjLidarParams(const wjLidarParams& from)
- : ::PROTOBUF_NAMESPACE_ID::Message(),
- _has_bits_(from._has_bits_) {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- if (from._internal_has_net_config()) {
- net_config_ = new ::wj::netConfig(*from.net_config_);
- } else {
- net_config_ = nullptr;
- }
- if (from._internal_has_transform()) {
- transform_ = new ::wj::Transform2d(*from.transform_);
- } else {
- transform_ = nullptr;
- }
- if (from._internal_has_scan_limit()) {
- scan_limit_ = new ::wj::scanLimit(*from.scan_limit_);
- } else {
- scan_limit_ = nullptr;
- }
- ::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() {
- ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_wjLidarParams_wj_5flidar_5fconf_2eproto.base);
- ::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();
- _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- void wjLidarParams::SharedDtor() {
- GOOGLE_DCHECK(GetArena() == nullptr);
- 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::ArenaDtor(void* object) {
- wjLidarParams* _this = reinterpret_cast< wjLidarParams* >(object);
- (void)_this;
- }
- void wjLidarParams::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
- }
- void wjLidarParams::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const wjLidarParams& wjLidarParams::default_instance() {
- ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_wjLidarParams_wj_5flidar_5fconf_2eproto.base);
- return *internal_default_instance();
- }
- void wjLidarParams::Clear() {
- // @@protoc_insertion_point(message_clear_start:wj.wjLidarParams)
- ::PROTOBUF_NAMESPACE_ID::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 & 0x00000007u) {
- if (cached_has_bits & 0x00000001u) {
- GOOGLE_DCHECK(net_config_ != nullptr);
- net_config_->Clear();
- }
- if (cached_has_bits & 0x00000002u) {
- GOOGLE_DCHECK(transform_ != nullptr);
- transform_->Clear();
- }
- if (cached_has_bits & 0x00000004u) {
- GOOGLE_DCHECK(scan_limit_ != nullptr);
- scan_limit_->Clear();
- }
- }
- if (cached_has_bits & 0x000000f8u) {
- 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- const char* wjLidarParams::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- _Internal::HasBits has_bits{};
- ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
- while (!ctx->Done(&ptr)) {
- ::PROTOBUF_NAMESPACE_ID::uint32 tag;
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
- CHK_(ptr);
- switch (tag >> 3) {
- // optional float angle_min = 1 [default = -2.3561945];
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 13)) {
- _Internal::set_has_angle_min(&has_bits);
- angle_min_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else goto handle_unusual;
- continue;
- // optional float angle_max = 2 [default = 2.3561945];
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 21)) {
- _Internal::set_has_angle_max(&has_bits);
- angle_max_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else goto handle_unusual;
- continue;
- // optional float angle_increment = 3 [default = 0.00582];
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 29)) {
- _Internal::set_has_angle_increment(&has_bits);
- angle_increment_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else goto handle_unusual;
- continue;
- // optional float time_increment = 4 [default = 6.2e-05];
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 37)) {
- _Internal::set_has_time_increment(&has_bits);
- time_increment_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else goto handle_unusual;
- continue;
- // optional int32 range_min = 5 [default = 0];
- case 5:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
- _Internal::set_has_range_min(&has_bits);
- range_min_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- // optional int32 range_max = 6 [default = 30];
- case 6:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) {
- _Internal::set_has_range_max(&has_bits);
- range_max_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- // required .wj.netConfig net_config = 7;
- case 7:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) {
- ptr = ctx->ParseMessage(_internal_mutable_net_config(), ptr);
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- // required .wj.Transform2d transform = 8;
- case 8:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) {
- ptr = ctx->ParseMessage(_internal_mutable_transform(), ptr);
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- // required .wj.scanLimit scan_limit = 9;
- case 9:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) {
- ptr = ctx->ParseMessage(_internal_mutable_scan_limit(), ptr);
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- default: {
- handle_unusual:
- if ((tag & 7) == 4 || tag == 0) {
- ctx->SetLastTag(tag);
- goto success;
- }
- ptr = UnknownFieldParse(tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- continue;
- }
- } // switch
- } // while
- success:
- _has_bits_.Or(has_bits);
- return ptr;
- failure:
- ptr = nullptr;
- goto success;
- #undef CHK_
- }
- ::PROTOBUF_NAMESPACE_ID::uint8* wjLidarParams::_InternalSerialize(
- ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:wj.wjLidarParams)
- ::PROTOBUF_NAMESPACE_ID::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 = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(1, this->_internal_angle_min(), target);
- }
- // optional float angle_max = 2 [default = 2.3561945];
- if (cached_has_bits & 0x00000040u) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(2, this->_internal_angle_max(), target);
- }
- // optional float angle_increment = 3 [default = 0.00582];
- if (cached_has_bits & 0x00000080u) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(3, this->_internal_angle_increment(), target);
- }
- // optional float time_increment = 4 [default = 6.2e-05];
- if (cached_has_bits & 0x00000100u) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(4, this->_internal_time_increment(), target);
- }
- // optional int32 range_min = 5 [default = 0];
- if (cached_has_bits & 0x00000008u) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_range_min(), target);
- }
- // optional int32 range_max = 6 [default = 30];
- if (cached_has_bits & 0x00000010u) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(6, this->_internal_range_max(), target);
- }
- // required .wj.netConfig net_config = 7;
- if (cached_has_bits & 0x00000001u) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(
- 7, _Internal::net_config(this), target, stream);
- }
- // required .wj.Transform2d transform = 8;
- if (cached_has_bits & 0x00000002u) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(
- 8, _Internal::transform(this), target, stream);
- }
- // required .wj.scanLimit scan_limit = 9;
- if (cached_has_bits & 0x00000004u) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(
- 9, _Internal::scan_limit(this), target, stream);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end: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 (_internal_has_net_config()) {
- // required .wj.netConfig net_config = 7;
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *net_config_);
- }
- if (_internal_has_transform()) {
- // required .wj.Transform2d transform = 8;
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *transform_);
- }
- if (_internal_has_scan_limit()) {
- // required .wj.scanLimit scan_limit = 9;
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::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 (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present.
- // required .wj.netConfig net_config = 7;
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *net_config_);
- // required .wj.Transform2d transform = 8;
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *transform_);
- // required .wj.scanLimit scan_limit = 9;
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *scan_limit_);
- } else {
- total_size += RequiredFieldsByteSizeFallback();
- }
- ::PROTOBUF_NAMESPACE_ID::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 & 0x000000f8u) {
- // optional int32 range_min = 5 [default = 0];
- if (cached_has_bits & 0x00000008u) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
- this->_internal_range_min());
- }
- // optional int32 range_max = 6 [default = 30];
- if (cached_has_bits & 0x00000010u) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
- this->_internal_range_max());
- }
- // optional float angle_min = 1 [default = -2.3561945];
- if (cached_has_bits & 0x00000020u) {
- total_size += 1 + 4;
- }
- // optional float angle_max = 2 [default = 2.3561945];
- if (cached_has_bits & 0x00000040u) {
- total_size += 1 + 4;
- }
- // optional float angle_increment = 3 [default = 0.00582];
- if (cached_has_bits & 0x00000080u) {
- total_size += 1 + 4;
- }
- }
- // optional float time_increment = 4 [default = 6.2e-05];
- if (cached_has_bits & 0x00000100u) {
- total_size += 1 + 4;
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
- _internal_metadata_, total_size, &_cached_size_);
- }
- int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void wjLidarParams::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:wj.wjLidarParams)
- GOOGLE_DCHECK_NE(&from, this);
- const wjLidarParams* source =
- ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<wjLidarParams>(
- &from);
- if (source == nullptr) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:wj.wjLidarParams)
- ::PROTOBUF_NAMESPACE_ID::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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = from._has_bits_[0];
- if (cached_has_bits & 0x000000ffu) {
- if (cached_has_bits & 0x00000001u) {
- _internal_mutable_net_config()->::wj::netConfig::MergeFrom(from._internal_net_config());
- }
- if (cached_has_bits & 0x00000002u) {
- _internal_mutable_transform()->::wj::Transform2d::MergeFrom(from._internal_transform());
- }
- if (cached_has_bits & 0x00000004u) {
- _internal_mutable_scan_limit()->::wj::scanLimit::MergeFrom(from._internal_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) {
- _internal_set_time_increment(from._internal_time_increment());
- }
- }
- void wjLidarParams::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::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 (_Internal::MissingRequiredFields(_has_bits_)) return false;
- return true;
- }
- void wjLidarParams::InternalSwap(wjLidarParams* other) {
- using std::swap;
- _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(wjLidarParams, range_min_)
- + sizeof(wjLidarParams::range_min_)
- - PROTOBUF_FIELD_OFFSET(wjLidarParams, net_config_)>(
- reinterpret_cast<char*>(&net_config_),
- reinterpret_cast<char*>(&other->net_config_));
- 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_);
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata wjLidarParams::GetMetadata() const {
- return GetMetadataStatic();
- }
- // ===================================================================
- void netConfig::InitAsDefaultInstance() {
- }
- class netConfig::_Internal {
- public:
- using HasBits = decltype(std::declval<netConfig>()._has_bits_);
- static void set_has_ip_address(HasBits* has_bits) {
- (*has_bits)[0] |= 1u;
- }
- static void set_has_port(HasBits* has_bits) {
- (*has_bits)[0] |= 2u;
- }
- };
- netConfig::netConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
- SharedCtor();
- RegisterArenaDtor(arena);
- // @@protoc_insertion_point(arena_constructor:wj.netConfig)
- }
- netConfig::netConfig(const netConfig& from)
- : ::PROTOBUF_NAMESPACE_ID::Message(),
- _has_bits_(from._has_bits_) {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ip_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- if (from._internal_has_ip_address()) {
- ip_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_ip_address(),
- GetArena());
- }
- port_ = from.port_;
- // @@protoc_insertion_point(copy_constructor:wj.netConfig)
- }
- void netConfig::SharedCtor() {
- ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_netConfig_wj_5flidar_5fconf_2eproto.base);
- ip_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- port_ = 8000;
- }
- netConfig::~netConfig() {
- // @@protoc_insertion_point(destructor:wj.netConfig)
- SharedDtor();
- _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- void netConfig::SharedDtor() {
- GOOGLE_DCHECK(GetArena() == nullptr);
- ip_address_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- void netConfig::ArenaDtor(void* object) {
- netConfig* _this = reinterpret_cast< netConfig* >(object);
- (void)_this;
- }
- void netConfig::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
- }
- void netConfig::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const netConfig& netConfig::default_instance() {
- ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_netConfig_wj_5flidar_5fconf_2eproto.base);
- return *internal_default_instance();
- }
- void netConfig::Clear() {
- // @@protoc_insertion_point(message_clear_start:wj.netConfig)
- ::PROTOBUF_NAMESPACE_ID::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 & 0x00000003u) {
- if (cached_has_bits & 0x00000001u) {
- ip_address_.ClearNonDefaultToEmpty();
- }
- port_ = 8000;
- }
- _has_bits_.Clear();
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- const char* netConfig::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- _Internal::HasBits has_bits{};
- ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
- while (!ctx->Done(&ptr)) {
- ::PROTOBUF_NAMESPACE_ID::uint32 tag;
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
- CHK_(ptr);
- switch (tag >> 3) {
- // optional string ip_address = 1 [default = ""];
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
- auto str = _internal_mutable_ip_address();
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
- #ifndef NDEBUG
- ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "wj.netConfig.ip_address");
- #endif // !NDEBUG
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- // optional int32 port = 2 [default = 8000];
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
- _Internal::set_has_port(&has_bits);
- port_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- default: {
- handle_unusual:
- if ((tag & 7) == 4 || tag == 0) {
- ctx->SetLastTag(tag);
- goto success;
- }
- ptr = UnknownFieldParse(tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- continue;
- }
- } // switch
- } // while
- success:
- _has_bits_.Or(has_bits);
- return ptr;
- failure:
- ptr = nullptr;
- goto success;
- #undef CHK_
- }
- ::PROTOBUF_NAMESPACE_ID::uint8* netConfig::_InternalSerialize(
- ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:wj.netConfig)
- ::PROTOBUF_NAMESPACE_ID::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) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
- this->_internal_ip_address().data(), static_cast<int>(this->_internal_ip_address().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
- "wj.netConfig.ip_address");
- target = stream->WriteStringMaybeAliased(
- 1, this->_internal_ip_address(), target);
- }
- // optional int32 port = 2 [default = 8000];
- if (cached_has_bits & 0x00000002u) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_port(), target);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:wj.netConfig)
- return target;
- }
- size_t netConfig::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:wj.netConfig)
- size_t total_size = 0;
- ::PROTOBUF_NAMESPACE_ID::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 & 0x00000003u) {
- // optional string ip_address = 1 [default = ""];
- if (cached_has_bits & 0x00000001u) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_ip_address());
- }
- // optional int32 port = 2 [default = 8000];
- if (cached_has_bits & 0x00000002u) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
- this->_internal_port());
- }
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
- _internal_metadata_, total_size, &_cached_size_);
- }
- int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void netConfig::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:wj.netConfig)
- GOOGLE_DCHECK_NE(&from, this);
- const netConfig* source =
- ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<netConfig>(
- &from);
- if (source == nullptr) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:wj.netConfig)
- ::PROTOBUF_NAMESPACE_ID::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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = from._has_bits_[0];
- if (cached_has_bits & 0x00000003u) {
- if (cached_has_bits & 0x00000001u) {
- _internal_set_ip_address(from._internal_ip_address());
- }
- if (cached_has_bits & 0x00000002u) {
- port_ = from.port_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- }
- void netConfig::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::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::InternalSwap(netConfig* other) {
- using std::swap;
- _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- ip_address_.Swap(&other->ip_address_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
- swap(port_, other->port_);
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata netConfig::GetMetadata() const {
- return GetMetadataStatic();
- }
- // ===================================================================
- void Transform2d::InitAsDefaultInstance() {
- }
- class Transform2d::_Internal {
- public:
- using HasBits = decltype(std::declval<Transform2d>()._has_bits_);
- static void set_has_m00(HasBits* has_bits) {
- (*has_bits)[0] |= 16u;
- }
- static void set_has_m01(HasBits* has_bits) {
- (*has_bits)[0] |= 1u;
- }
- static void set_has_m02(HasBits* has_bits) {
- (*has_bits)[0] |= 2u;
- }
- static void set_has_m10(HasBits* has_bits) {
- (*has_bits)[0] |= 4u;
- }
- static void set_has_m11(HasBits* has_bits) {
- (*has_bits)[0] |= 32u;
- }
- static void set_has_m12(HasBits* has_bits) {
- (*has_bits)[0] |= 8u;
- }
- };
- Transform2d::Transform2d(::PROTOBUF_NAMESPACE_ID::Arena* arena)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
- SharedCtor();
- RegisterArenaDtor(arena);
- // @@protoc_insertion_point(arena_constructor:wj.Transform2d)
- }
- Transform2d::Transform2d(const Transform2d& from)
- : ::PROTOBUF_NAMESPACE_ID::Message(),
- _has_bits_(from._has_bits_) {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(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();
- _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- void Transform2d::SharedDtor() {
- GOOGLE_DCHECK(GetArena() == nullptr);
- }
- void Transform2d::ArenaDtor(void* object) {
- Transform2d* _this = reinterpret_cast< Transform2d* >(object);
- (void)_this;
- }
- void Transform2d::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
- }
- void Transform2d::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const Transform2d& Transform2d::default_instance() {
- ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Transform2d_wj_5flidar_5fconf_2eproto.base);
- return *internal_default_instance();
- }
- void Transform2d::Clear() {
- // @@protoc_insertion_point(message_clear_start:wj.Transform2d)
- ::PROTOBUF_NAMESPACE_ID::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 & 0x0000003fu) {
- ::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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- const char* Transform2d::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- _Internal::HasBits has_bits{};
- ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
- while (!ctx->Done(&ptr)) {
- ::PROTOBUF_NAMESPACE_ID::uint32 tag;
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
- CHK_(ptr);
- switch (tag >> 3) {
- // optional float m00 = 1 [default = 1];
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 13)) {
- _Internal::set_has_m00(&has_bits);
- m00_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else goto handle_unusual;
- continue;
- // optional float m01 = 2 [default = 0];
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 21)) {
- _Internal::set_has_m01(&has_bits);
- m01_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else goto handle_unusual;
- continue;
- // optional float m02 = 3 [default = 0];
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 29)) {
- _Internal::set_has_m02(&has_bits);
- m02_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else goto handle_unusual;
- continue;
- // optional float m10 = 4 [default = 0];
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 37)) {
- _Internal::set_has_m10(&has_bits);
- m10_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else goto handle_unusual;
- continue;
- // optional float m11 = 5 [default = 1];
- case 5:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 45)) {
- _Internal::set_has_m11(&has_bits);
- m11_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else goto handle_unusual;
- continue;
- // optional float m12 = 6 [default = 0];
- case 6:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 53)) {
- _Internal::set_has_m12(&has_bits);
- m12_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else goto handle_unusual;
- continue;
- default: {
- handle_unusual:
- if ((tag & 7) == 4 || tag == 0) {
- ctx->SetLastTag(tag);
- goto success;
- }
- ptr = UnknownFieldParse(tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- continue;
- }
- } // switch
- } // while
- success:
- _has_bits_.Or(has_bits);
- return ptr;
- failure:
- ptr = nullptr;
- goto success;
- #undef CHK_
- }
- ::PROTOBUF_NAMESPACE_ID::uint8* Transform2d::_InternalSerialize(
- ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:wj.Transform2d)
- ::PROTOBUF_NAMESPACE_ID::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 = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(1, this->_internal_m00(), target);
- }
- // optional float m01 = 2 [default = 0];
- if (cached_has_bits & 0x00000001u) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(2, this->_internal_m01(), target);
- }
- // optional float m02 = 3 [default = 0];
- if (cached_has_bits & 0x00000002u) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(3, this->_internal_m02(), target);
- }
- // optional float m10 = 4 [default = 0];
- if (cached_has_bits & 0x00000004u) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(4, this->_internal_m10(), target);
- }
- // optional float m11 = 5 [default = 1];
- if (cached_has_bits & 0x00000020u) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(5, this->_internal_m11(), target);
- }
- // optional float m12 = 6 [default = 0];
- if (cached_has_bits & 0x00000008u) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(6, this->_internal_m12(), target);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:wj.Transform2d)
- return target;
- }
- size_t Transform2d::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:wj.Transform2d)
- size_t total_size = 0;
- ::PROTOBUF_NAMESPACE_ID::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 & 0x0000003fu) {
- // optional float m01 = 2 [default = 0];
- if (cached_has_bits & 0x00000001u) {
- total_size += 1 + 4;
- }
- // optional float m02 = 3 [default = 0];
- if (cached_has_bits & 0x00000002u) {
- total_size += 1 + 4;
- }
- // optional float m10 = 4 [default = 0];
- if (cached_has_bits & 0x00000004u) {
- total_size += 1 + 4;
- }
- // optional float m12 = 6 [default = 0];
- if (cached_has_bits & 0x00000008u) {
- total_size += 1 + 4;
- }
- // optional float m00 = 1 [default = 1];
- if (cached_has_bits & 0x00000010u) {
- total_size += 1 + 4;
- }
- // optional float m11 = 5 [default = 1];
- if (cached_has_bits & 0x00000020u) {
- total_size += 1 + 4;
- }
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
- _internal_metadata_, total_size, &_cached_size_);
- }
- int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void Transform2d::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:wj.Transform2d)
- GOOGLE_DCHECK_NE(&from, this);
- const Transform2d* source =
- ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Transform2d>(
- &from);
- if (source == nullptr) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:wj.Transform2d)
- ::PROTOBUF_NAMESPACE_ID::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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = from._has_bits_[0];
- if (cached_has_bits & 0x0000003fu) {
- 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 ::PROTOBUF_NAMESPACE_ID::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::InternalSwap(Transform2d* other) {
- using std::swap;
- _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(Transform2d, m12_)
- + sizeof(Transform2d::m12_)
- - PROTOBUF_FIELD_OFFSET(Transform2d, m01_)>(
- reinterpret_cast<char*>(&m01_),
- reinterpret_cast<char*>(&other->m01_));
- swap(m00_, other->m00_);
- swap(m11_, other->m11_);
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata Transform2d::GetMetadata() const {
- return GetMetadataStatic();
- }
- // ===================================================================
- void scanLimit::InitAsDefaultInstance() {
- }
- class scanLimit::_Internal {
- public:
- using HasBits = decltype(std::declval<scanLimit>()._has_bits_);
- static void set_has_dist_limit(HasBits* has_bits) {
- (*has_bits)[0] |= 2u;
- }
- static void set_has_minx(HasBits* has_bits) {
- (*has_bits)[0] |= 4u;
- }
- static void set_has_maxx(HasBits* has_bits) {
- (*has_bits)[0] |= 8u;
- }
- static void set_has_miny(HasBits* has_bits) {
- (*has_bits)[0] |= 16u;
- }
- static void set_has_maxy(HasBits* has_bits) {
- (*has_bits)[0] |= 1u;
- }
- };
- scanLimit::scanLimit(::PROTOBUF_NAMESPACE_ID::Arena* arena)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
- SharedCtor();
- RegisterArenaDtor(arena);
- // @@protoc_insertion_point(arena_constructor:wj.scanLimit)
- }
- scanLimit::scanLimit(const scanLimit& from)
- : ::PROTOBUF_NAMESPACE_ID::Message(),
- _has_bits_(from._has_bits_) {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(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();
- _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- void scanLimit::SharedDtor() {
- GOOGLE_DCHECK(GetArena() == nullptr);
- }
- void scanLimit::ArenaDtor(void* object) {
- scanLimit* _this = reinterpret_cast< scanLimit* >(object);
- (void)_this;
- }
- void scanLimit::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
- }
- void scanLimit::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const scanLimit& scanLimit::default_instance() {
- ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_scanLimit_wj_5flidar_5fconf_2eproto.base);
- return *internal_default_instance();
- }
- void scanLimit::Clear() {
- // @@protoc_insertion_point(message_clear_start:wj.scanLimit)
- ::PROTOBUF_NAMESPACE_ID::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 & 0x0000001fu) {
- maxy_ = 3.5f;
- dist_limit_ = 8;
- minx_ = -6;
- maxx_ = -0.2f;
- miny_ = -3.5f;
- }
- _has_bits_.Clear();
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- const char* scanLimit::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- _Internal::HasBits has_bits{};
- ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
- while (!ctx->Done(&ptr)) {
- ::PROTOBUF_NAMESPACE_ID::uint32 tag;
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
- CHK_(ptr);
- switch (tag >> 3) {
- // optional float dist_limit = 1 [default = 8];
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 13)) {
- _Internal::set_has_dist_limit(&has_bits);
- dist_limit_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else goto handle_unusual;
- continue;
- // optional float minx = 2 [default = -6];
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 21)) {
- _Internal::set_has_minx(&has_bits);
- minx_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else goto handle_unusual;
- continue;
- // optional float maxx = 3 [default = -0.2];
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 29)) {
- _Internal::set_has_maxx(&has_bits);
- maxx_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else goto handle_unusual;
- continue;
- // optional float miny = 4 [default = -3.5];
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 37)) {
- _Internal::set_has_miny(&has_bits);
- miny_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else goto handle_unusual;
- continue;
- // optional float maxy = 5 [default = 3.5];
- case 5:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 45)) {
- _Internal::set_has_maxy(&has_bits);
- maxy_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else goto handle_unusual;
- continue;
- default: {
- handle_unusual:
- if ((tag & 7) == 4 || tag == 0) {
- ctx->SetLastTag(tag);
- goto success;
- }
- ptr = UnknownFieldParse(tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- continue;
- }
- } // switch
- } // while
- success:
- _has_bits_.Or(has_bits);
- return ptr;
- failure:
- ptr = nullptr;
- goto success;
- #undef CHK_
- }
- ::PROTOBUF_NAMESPACE_ID::uint8* scanLimit::_InternalSerialize(
- ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:wj.scanLimit)
- ::PROTOBUF_NAMESPACE_ID::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 = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(1, this->_internal_dist_limit(), target);
- }
- // optional float minx = 2 [default = -6];
- if (cached_has_bits & 0x00000004u) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(2, this->_internal_minx(), target);
- }
- // optional float maxx = 3 [default = -0.2];
- if (cached_has_bits & 0x00000008u) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(3, this->_internal_maxx(), target);
- }
- // optional float miny = 4 [default = -3.5];
- if (cached_has_bits & 0x00000010u) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(4, this->_internal_miny(), target);
- }
- // optional float maxy = 5 [default = 3.5];
- if (cached_has_bits & 0x00000001u) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(5, this->_internal_maxy(), target);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:wj.scanLimit)
- return target;
- }
- size_t scanLimit::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:wj.scanLimit)
- size_t total_size = 0;
- ::PROTOBUF_NAMESPACE_ID::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 & 0x0000001fu) {
- // optional float maxy = 5 [default = 3.5];
- if (cached_has_bits & 0x00000001u) {
- total_size += 1 + 4;
- }
- // optional float dist_limit = 1 [default = 8];
- if (cached_has_bits & 0x00000002u) {
- total_size += 1 + 4;
- }
- // optional float minx = 2 [default = -6];
- if (cached_has_bits & 0x00000004u) {
- total_size += 1 + 4;
- }
- // optional float maxx = 3 [default = -0.2];
- if (cached_has_bits & 0x00000008u) {
- total_size += 1 + 4;
- }
- // optional float miny = 4 [default = -3.5];
- if (cached_has_bits & 0x00000010u) {
- total_size += 1 + 4;
- }
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
- _internal_metadata_, total_size, &_cached_size_);
- }
- int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void scanLimit::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:wj.scanLimit)
- GOOGLE_DCHECK_NE(&from, this);
- const scanLimit* source =
- ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<scanLimit>(
- &from);
- if (source == nullptr) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:wj.scanLimit)
- ::PROTOBUF_NAMESPACE_ID::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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = from._has_bits_[0];
- if (cached_has_bits & 0x0000001fu) {
- 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 ::PROTOBUF_NAMESPACE_ID::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::InternalSwap(scanLimit* other) {
- using std::swap;
- _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- swap(maxy_, other->maxy_);
- swap(dist_limit_, other->dist_limit_);
- swap(minx_, other->minx_);
- swap(maxx_, other->maxx_);
- swap(miny_, other->miny_);
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata scanLimit::GetMetadata() const {
- return GetMetadataStatic();
- }
- // @@protoc_insertion_point(namespace_scope)
- } // namespace wj
- PROTOBUF_NAMESPACE_OPEN
- template<> PROTOBUF_NOINLINE ::wj::wjManagerParams* Arena::CreateMaybeMessage< ::wj::wjManagerParams >(Arena* arena) {
- return Arena::CreateMessageInternal< ::wj::wjManagerParams >(arena);
- }
- template<> PROTOBUF_NOINLINE ::wj::Region* Arena::CreateMaybeMessage< ::wj::Region >(Arena* arena) {
- return Arena::CreateMessageInternal< ::wj::Region >(arena);
- }
- template<> PROTOBUF_NOINLINE ::wj::wjLidarParams* Arena::CreateMaybeMessage< ::wj::wjLidarParams >(Arena* arena) {
- return Arena::CreateMessageInternal< ::wj::wjLidarParams >(arena);
- }
- template<> PROTOBUF_NOINLINE ::wj::netConfig* Arena::CreateMaybeMessage< ::wj::netConfig >(Arena* arena) {
- return Arena::CreateMessageInternal< ::wj::netConfig >(arena);
- }
- template<> PROTOBUF_NOINLINE ::wj::Transform2d* Arena::CreateMaybeMessage< ::wj::Transform2d >(Arena* arena) {
- return Arena::CreateMessageInternal< ::wj::Transform2d >(arena);
- }
- template<> PROTOBUF_NOINLINE ::wj::scanLimit* Arena::CreateMaybeMessage< ::wj::scanLimit >(Arena* arena) {
- return Arena::CreateMessageInternal< ::wj::scanLimit >(arena);
- }
- PROTOBUF_NAMESPACE_CLOSE
- // @@protoc_insertion_point(global_scope)
- #include <google/protobuf/port_undef.inc>
|