diff --git a/.gitignore b/.gitignore index 6354ac6..066ba5e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,72 @@ -*build/ -*__pycache__/** +build/ +__pycache__/ *.so -*include/** +include/ *.pyc *.stash Makefile *.o + +# Tentativa mais completa + +# C++ objects and libs +*.slo +*.lo +*.o +*.a +*.la +*.lai +*.so +*.so.* +*.dll +*.dylib + +# Qt-es +object_script.*.Release +object_script.*.Debug +*_plugin_import.cpp +/.qmake.cache +/.qmake.stash +*.pro.user +*.pro.user.* +*.qbs.user +*.qbs.user.* +*.moc +moc_*.cpp +moc_*.h +qrc_*.cpp +ui_*.h +*.qmlc +*.jsc +Makefile* +*build-* +*.qm +*.prl + +# Qt unit tests +target_wrapper.* + +# QtCreator +*.autosave + +# QtCreator Qml +*.qmlproject.user +*.qmlproject.user.* + +# QtCreator CMake +CMakeLists.txt.user* + +# QtCreator 4.8< compilation database +compile_commands.json + +# QtCreator local machine specific files for imported projects +*creator.user* + +# Protobuf +*.pb.h +*.pb.cc + +# Folders +build/ +bin/ +__pycache__ diff --git a/__pycache__/action.cpython-38.pyc b/__pycache__/action.cpython-38.pyc deleted file mode 100644 index 3337bb9..0000000 Binary files a/__pycache__/action.cpython-38.pyc and /dev/null differ diff --git a/__pycache__/behaviours.cpython-38.pyc b/__pycache__/behaviours.cpython-38.pyc deleted file mode 100644 index 5fe4bb3..0000000 Binary files a/__pycache__/behaviours.cpython-38.pyc and /dev/null differ diff --git a/__pycache__/bridge.cpython-38.pyc b/__pycache__/bridge.cpython-38.pyc deleted file mode 100644 index 0c6aa79..0000000 Binary files a/__pycache__/bridge.cpython-38.pyc and /dev/null differ diff --git a/__pycache__/execution.cpython-38.pyc b/__pycache__/execution.cpython-38.pyc deleted file mode 100644 index cec6a31..0000000 Binary files a/__pycache__/execution.cpython-38.pyc and /dev/null differ diff --git a/__pycache__/simClasses.cpython-38.pyc b/__pycache__/simClasses.cpython-38.pyc deleted file mode 100644 index 6dde82e..0000000 Binary files a/__pycache__/simClasses.cpython-38.pyc and /dev/null differ diff --git a/build/.qmake.stash b/build/.qmake.stash deleted file mode 100644 index d6e97ef..0000000 --- a/build/.qmake.stash +++ /dev/null @@ -1,23 +0,0 @@ -QMAKE_CXX.QT_COMPILER_STDCXX = 201402L -QMAKE_CXX.QMAKE_GCC_MAJOR_VERSION = 9 -QMAKE_CXX.QMAKE_GCC_MINOR_VERSION = 3 -QMAKE_CXX.QMAKE_GCC_PATCH_VERSION = 0 -QMAKE_CXX.COMPILER_MACROS = \ - QT_COMPILER_STDCXX \ - QMAKE_GCC_MAJOR_VERSION \ - QMAKE_GCC_MINOR_VERSION \ - QMAKE_GCC_PATCH_VERSION -QMAKE_CXX.INCDIRS = \ - /usr/include/c++/9 \ - /usr/include/x86_64-linux-gnu/c++/9 \ - /usr/include/c++/9/backward \ - /usr/lib/gcc/x86_64-linux-gnu/9/include \ - /usr/local/include \ - /usr/include/x86_64-linux-gnu \ - /usr/include -QMAKE_CXX.LIBDIRS = \ - /usr/lib/gcc/x86_64-linux-gnu/9 \ - /usr/lib/x86_64-linux-gnu \ - /usr/lib \ - /lib/x86_64-linux-gnu \ - /lib diff --git a/build/Makefile b/build/Makefile deleted file mode 100644 index 10f82e3..0000000 --- a/build/Makefile +++ /dev/null @@ -1,540 +0,0 @@ -############################################################################# -# Makefile for building: ../libfira.so -# Generated by qmake (3.1) (Qt 5.12.8) -# Project: ../FIRAClient.pro -# Template: app -# Command: /usr/lib/qt5/bin/qmake -o Makefile ../FIRAClient.pro -############################################################################# - -MAKEFILE = Makefile - -EQ = = - -####### Compiler, tools and options - -CC = gcc -CXX = g++ -DEFINES = -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -CFLAGS = -pipe -O2 -Wall -W -D_REENTRANT -fPIC $(DEFINES) -CXXFLAGS = -pipe -O2 -std=gnu++1y -Wall -W -D_REENTRANT -fPIC $(DEFINES) -INCPATH = -I../../LARC-2021-Python -I. -I../../LARC-2021-Python -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtNetwork -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -Itmp/moc -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -QMAKE = /usr/lib/qt5/bin/qmake -DEL_FILE = rm -f -CHK_DIR_EXISTS= test -d -MKDIR = mkdir -p -COPY = cp -f -COPY_FILE = cp -f -COPY_DIR = cp -f -R -INSTALL_FILE = install -m 644 -p -INSTALL_PROGRAM = install -m 755 -p -INSTALL_DIR = cp -f -R -QINSTALL = /usr/lib/qt5/bin/qmake -install qinstall -QINSTALL_PROGRAM = /usr/lib/qt5/bin/qmake -install qinstall -exe -DEL_FILE = rm -f -SYMLINK = ln -f -s -DEL_DIR = rmdir -MOVE = mv -f -TAR = tar -cf -COMPRESS = gzip -9f -DISTNAME = libfira.so1.0.0 -DISTDIR = /home/joaocarlos/Documentos/UFSCar/Red_Dragons/FIRASim/LARC-2021-Python/build/tmp/obj/libfira.so1.0.0 -LINK = g++ -LFLAGS = -shared -Wl,-O1 -LIBS = $(SUBLIBS) -lprotobuf -lQt5Core -L/usr/local/lib/ -lz /usr/lib/x86_64-linux-gnu/libQt5Gui.so /usr/lib/x86_64-linux-gnu/libQt5Network.so /usr/lib/x86_64-linux-gnu/libQt5Core.so /usr/lib/x86_64-linux-gnu/libGL.so -lpthread -AR = ar cqs -RANLIB = -SED = sed -STRIP = strip - -####### Output directory - -OBJECTS_DIR = tmp/obj/ - -####### Files - -SOURCES = ../libfira.cpp \ - ../clients/actuator/actuatorclient.cpp \ - ../clients/client.cpp \ - ../clients/referee/refereeclient.cpp \ - ../clients/replacer/replacerclient.cpp \ - ../clients/vision/visionclient.cpp \ - ../include/command.pb.cc \ - ../include/common.pb.cc \ - ../include/packet.pb.cc \ - ../include/replacement.pb.cc \ - ../include/vssref_command.pb.cc \ - ../include/vssref_common.pb.cc \ - ../include/vssref_placement.pb.cc -OBJECTS = tmp/obj/libfira.o \ - tmp/obj/actuatorclient.o \ - tmp/obj/client.o \ - tmp/obj/refereeclient.o \ - tmp/obj/replacerclient.o \ - tmp/obj/visionclient.o \ - tmp/obj/command.pb.o \ - tmp/obj/common.pb.o \ - tmp/obj/packet.pb.o \ - tmp/obj/replacement.pb.o \ - tmp/obj/vssref_command.pb.o \ - tmp/obj/vssref_common.pb.o \ - tmp/obj/vssref_placement.pb.o -DIST = /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/spec_pre.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/unix.conf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/linux.conf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/sanitize.conf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/gcc-base.conf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/gcc-base-unix.conf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/g++-base.conf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/g++-unix.conf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/qconfig.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_accessibility_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_bootstrap_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_concurrent.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_concurrent_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_core.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_core_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_dbus.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_dbus_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_designer.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_designer_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_designercomponents_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_devicediscovery_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_edid_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_egl_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_eglfs_kms_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_eglfsdeviceintegration_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_eventdispatcher_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_fb_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_fontdatabase_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_glx_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_gui.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_gui_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_help.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_help_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_input_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_kms_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_linuxaccessibility_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_network.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_network_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_opengl.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_opengl_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_openglextensions.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_openglextensions_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_platformcompositor_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_printsupport.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_printsupport_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_qml.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_qmltest.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_quick.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_quickwidgets.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_service_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_sql.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_sql_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_testlib.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_testlib_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_theme_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_uiplugin.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_uitools.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_uitools_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_vulkan_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_webkit.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_webkitwidgets.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_widgets.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_widgets_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_xcb_qpa_lib_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_xml.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_xml_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/qt_functions.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/qt_config.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++/qmake.conf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/spec_post.prf \ - ../.qmake.stash \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/exclusive_builds.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/toolchain.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/default_pre.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/resolve_config.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/default_post.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/warn_on.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/qt.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/resources.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/moc.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/unix/opengl.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/unix/thread.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/qmake_use.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/file_copies.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/testcase_targets.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/exceptions.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/yacc.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/lex.prf \ - ../../FIRAClient.pro ../clients/actuator/actuatorclient.h \ - ../clients/client.h \ - ../clients/referee/refereeclient.h \ - ../clients/replacer/replacerclient.h \ - ../clients/vision/visionclient.h \ - ../include/command.pb.h \ - ../include/common.pb.h \ - ../include/packet.pb.h \ - ../include/replacement.pb.h \ - ../include/vssref_command.pb.h \ - ../include/vssref_common.pb.h \ - ../include/vssref_placement.pb.h ../libfira.cpp \ - ../clients/actuator/actuatorclient.cpp \ - ../clients/client.cpp \ - ../clients/referee/refereeclient.cpp \ - ../clients/replacer/replacerclient.cpp \ - ../clients/vision/visionclient.cpp \ - ../include/command.pb.cc \ - ../include/common.pb.cc \ - ../include/packet.pb.cc \ - ../include/replacement.pb.cc \ - ../include/vssref_command.pb.cc \ - ../include/vssref_common.pb.cc \ - ../include/vssref_placement.pb.cc -QMAKE_TARGET = libfira.so -DESTDIR = ../ -TARGET = ../libfira.so - - -first: all -####### Build rules - -../libfira.so: $(OBJECTS) - @test -d ../ || mkdir -p ../ - $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS) - -Makefile: ../FIRAClient.pro /usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++/qmake.conf /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/spec_pre.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/unix.conf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/linux.conf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/sanitize.conf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/gcc-base.conf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/gcc-base-unix.conf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/g++-base.conf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/g++-unix.conf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/qconfig.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_accessibility_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_bootstrap_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_concurrent.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_concurrent_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_core.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_core_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_dbus.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_dbus_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_designer.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_designer_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_designercomponents_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_devicediscovery_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_edid_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_egl_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_eglfs_kms_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_eglfsdeviceintegration_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_eventdispatcher_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_fb_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_fontdatabase_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_glx_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_gui.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_gui_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_help.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_help_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_input_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_kms_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_linuxaccessibility_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_network.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_network_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_opengl.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_opengl_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_openglextensions.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_openglextensions_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_platformcompositor_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_printsupport.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_printsupport_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_qml.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_qmltest.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_quick.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_quickwidgets.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_service_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_sql.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_sql_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_testlib.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_testlib_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_theme_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_uiplugin.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_uitools.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_uitools_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_vulkan_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_webkit.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_webkitwidgets.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_widgets.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_widgets_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_xcb_qpa_lib_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_xml.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_xml_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/qt_functions.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/qt_config.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++/qmake.conf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/spec_post.prf \ - .qmake.stash \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/exclusive_builds.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/toolchain.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/default_pre.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/resolve_config.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/default_post.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/warn_on.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/qt.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/resources.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/moc.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/unix/opengl.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/unix/thread.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/qmake_use.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/file_copies.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/testcase_targets.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/exceptions.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/yacc.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/lex.prf \ - ../FIRAClient.pro \ - /usr/lib/x86_64-linux-gnu/libQt5Core.prl - $(QMAKE) -o Makefile ../FIRAClient.pro -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/spec_pre.prf: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/unix.conf: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/linux.conf: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/sanitize.conf: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/gcc-base.conf: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/gcc-base-unix.conf: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/g++-base.conf: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/g++-unix.conf: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/qconfig.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_accessibility_support_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_bootstrap_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_concurrent.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_concurrent_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_core.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_core_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_dbus.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_dbus_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_designer.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_designer_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_designercomponents_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_devicediscovery_support_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_edid_support_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_egl_support_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_eglfs_kms_support_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_eglfsdeviceintegration_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_eventdispatcher_support_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_fb_support_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_fontdatabase_support_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_glx_support_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_gui.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_gui_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_help.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_help_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_input_support_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_kms_support_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_linuxaccessibility_support_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_network.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_network_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_opengl.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_opengl_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_openglextensions.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_openglextensions_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_platformcompositor_support_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_printsupport.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_printsupport_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_qml.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_qmltest.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_quick.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_quickwidgets.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_service_support_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_sql.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_sql_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_testlib.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_testlib_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_theme_support_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_uiplugin.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_uitools.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_uitools_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_vulkan_support_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_webkit.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_webkitwidgets.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_widgets.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_widgets_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_xcb_qpa_lib_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_xml.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_xml_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/qt_functions.prf: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/qt_config.prf: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++/qmake.conf: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/spec_post.prf: -.qmake.stash: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/exclusive_builds.prf: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/toolchain.prf: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/default_pre.prf: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/resolve_config.prf: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/default_post.prf: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/warn_on.prf: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/qt.prf: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/resources.prf: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/moc.prf: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/unix/opengl.prf: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/unix/thread.prf: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/qmake_use.prf: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/file_copies.prf: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/testcase_targets.prf: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/exceptions.prf: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/yacc.prf: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/lex.prf: -../FIRAClient.pro: -/usr/lib/x86_64-linux-gnu/libQt5Core.prl: -qmake: FORCE - @$(QMAKE) -o Makefile ../FIRAClient.pro - -qmake_all: FORCE - - -all: Makefile ../libfira.so - -dist: distdir FORCE - (cd `dirname $(DISTDIR)` && $(TAR) $(DISTNAME).tar $(DISTNAME) && $(COMPRESS) $(DISTNAME).tar) && $(MOVE) `dirname $(DISTDIR)`/$(DISTNAME).tar.gz . && $(DEL_FILE) -r $(DISTDIR) - -distdir: FORCE - @test -d $(DISTDIR) || mkdir -p $(DISTDIR) - $(COPY_FILE) --parents $(DIST) $(DISTDIR)/ - $(COPY_FILE) --parents /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/data/dummy.cpp $(DISTDIR)/ - $(COPY_FILE) --parents ../clients/actuator/actuatorclient.h ../clients/client.h ../clients/referee/refereeclient.h ../clients/replacer/replacerclient.h ../clients/vision/visionclient.h ../include/command.pb.h ../include/common.pb.h ../include/packet.pb.h ../include/replacement.pb.h ../include/vssref_command.pb.h ../include/vssref_common.pb.h ../include/vssref_placement.pb.h $(DISTDIR)/ - $(COPY_FILE) --parents ../libfira.cpp ../clients/actuator/actuatorclient.cpp ../clients/client.cpp ../clients/referee/refereeclient.cpp ../clients/replacer/replacerclient.cpp ../clients/vision/visionclient.cpp ../include/command.pb.cc ../include/common.pb.cc ../include/packet.pb.cc ../include/replacement.pb.cc ../include/vssref_command.pb.cc ../include/vssref_common.pb.cc ../include/vssref_placement.pb.cc $(DISTDIR)/ - - -clean: compiler_clean - -$(DEL_FILE) $(OBJECTS) - -$(DEL_FILE) *~ core *.core - - -distclean: clean - -$(DEL_FILE) $(TARGET) - -$(DEL_FILE) .qmake.stash - -$(DEL_FILE) Makefile - - -####### Sub-libraries - -mocclean: compiler_moc_header_clean compiler_moc_objc_header_clean compiler_moc_source_clean - -mocables: compiler_moc_header_make_all compiler_moc_objc_header_make_all compiler_moc_source_make_all - -check: first - -benchmark: first - -compiler_rcc_make_all: -compiler_rcc_clean: -compiler_moc_predefs_make_all: tmp/moc/moc_predefs.h -compiler_moc_predefs_clean: - -$(DEL_FILE) tmp/moc/moc_predefs.h -tmp/moc/moc_predefs.h: /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/data/dummy.cpp - g++ -pipe -O2 -std=gnu++1y -Wall -W -dM -E -o tmp/moc/moc_predefs.h /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/data/dummy.cpp - -compiler_moc_header_make_all: -compiler_moc_header_clean: -compiler_moc_objc_header_make_all: -compiler_moc_objc_header_clean: -compiler_moc_source_make_all: -compiler_moc_source_clean: -compiler_yacc_decl_make_all: -compiler_yacc_decl_clean: -compiler_yacc_impl_make_all: -compiler_yacc_impl_clean: -compiler_lex_make_all: -compiler_lex_clean: -compiler_clean: compiler_moc_predefs_clean - -####### Compile - -tmp/obj/libfira.o: ../libfira.cpp ../../FIRAClient/clients/vision/visionclient.h \ - ../clients/client.h \ - ../include/packet.pb.h \ - ../include/command.pb.h \ - ../include/replacement.pb.h \ - ../include/common.pb.h \ - ../../FIRAClient/clients/referee/refereeclient.h \ - ../include/vssref_command.pb.h \ - ../include/vssref_common.pb.h \ - ../../FIRAClient/clients/actuator/actuatorclient.h \ - ../../FIRAClient/clients/replacer/replacerclient.h \ - ../include/vssref_placement.pb.h - $(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/obj/libfira.o ../libfira.cpp - -tmp/obj/actuatorclient.o: ../clients/actuator/actuatorclient.cpp ../clients/actuator/actuatorclient.h \ - ../clients/client.h \ - ../include/vssref_common.pb.h \ - ../include/packet.pb.h \ - ../include/command.pb.h \ - ../include/replacement.pb.h \ - ../include/common.pb.h - $(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/obj/actuatorclient.o ../clients/actuator/actuatorclient.cpp - -tmp/obj/client.o: ../clients/client.cpp ../clients/client.h - $(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/obj/client.o ../clients/client.cpp - -tmp/obj/refereeclient.o: ../clients/referee/refereeclient.cpp ../clients/referee/refereeclient.h \ - ../clients/client.h \ - ../include/vssref_command.pb.h \ - ../include/vssref_common.pb.h - $(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/obj/refereeclient.o ../clients/referee/refereeclient.cpp - -tmp/obj/replacerclient.o: ../clients/replacer/replacerclient.cpp ../clients/replacer/replacerclient.h \ - ../clients/client.h \ - ../include/vssref_placement.pb.h \ - ../include/vssref_common.pb.h - $(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/obj/replacerclient.o ../clients/replacer/replacerclient.cpp - -tmp/obj/visionclient.o: ../clients/vision/visionclient.cpp ../clients/vision/visionclient.h \ - ../clients/client.h \ - ../include/packet.pb.h \ - ../include/command.pb.h \ - ../include/replacement.pb.h \ - ../include/common.pb.h - $(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/obj/visionclient.o ../clients/vision/visionclient.cpp - -tmp/obj/command.pb.o: ../include/command.pb.cc ../include/command.pb.h - $(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/obj/command.pb.o ../include/command.pb.cc - -tmp/obj/common.pb.o: ../include/common.pb.cc ../include/common.pb.h - $(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/obj/common.pb.o ../include/common.pb.cc - -tmp/obj/packet.pb.o: ../include/packet.pb.cc ../include/packet.pb.h \ - ../include/command.pb.h \ - ../include/replacement.pb.h \ - ../include/common.pb.h - $(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/obj/packet.pb.o ../include/packet.pb.cc - -tmp/obj/replacement.pb.o: ../include/replacement.pb.cc ../include/replacement.pb.h \ - ../include/common.pb.h - $(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/obj/replacement.pb.o ../include/replacement.pb.cc - -tmp/obj/vssref_command.pb.o: ../include/vssref_command.pb.cc ../include/vssref_command.pb.h \ - ../include/vssref_common.pb.h - $(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/obj/vssref_command.pb.o ../include/vssref_command.pb.cc - -tmp/obj/vssref_common.pb.o: ../include/vssref_common.pb.cc ../include/vssref_common.pb.h - $(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/obj/vssref_common.pb.o ../include/vssref_common.pb.cc - -tmp/obj/vssref_placement.pb.o: ../include/vssref_placement.pb.cc ../include/vssref_placement.pb.h \ - ../include/vssref_common.pb.h - $(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/obj/vssref_placement.pb.o ../include/vssref_placement.pb.cc - -####### Install - -install_target: first FORCE - @test -d $(INSTALL_ROOT)/opt/libfira.so/bin || mkdir -p $(INSTALL_ROOT)/opt/libfira.so/bin - -$(QINSTALL_PROGRAM) ../$(QMAKE_TARGET) $(INSTALL_ROOT)/opt/libfira.so/bin/$(QMAKE_TARGET) - -$(STRIP) $(INSTALL_ROOT)/opt/libfira.so/bin/$(QMAKE_TARGET) - -uninstall_target: FORCE - -$(DEL_FILE) $(INSTALL_ROOT)/opt/libfira.so/bin/$(QMAKE_TARGET) - -$(DEL_DIR) $(INSTALL_ROOT)/opt/libfira.so/bin/ - - -install: install_target FORCE - -uninstall: uninstall_target FORCE - -FORCE: - diff --git a/build/tmp/obj/actuatorclient.o b/build/tmp/obj/actuatorclient.o deleted file mode 100644 index 1511e49..0000000 Binary files a/build/tmp/obj/actuatorclient.o and /dev/null differ diff --git a/build/tmp/obj/client.o b/build/tmp/obj/client.o deleted file mode 100644 index ef2e049..0000000 Binary files a/build/tmp/obj/client.o and /dev/null differ diff --git a/build/tmp/obj/command.pb.o b/build/tmp/obj/command.pb.o deleted file mode 100644 index cf0b23a..0000000 Binary files a/build/tmp/obj/command.pb.o and /dev/null differ diff --git a/build/tmp/obj/common.pb.o b/build/tmp/obj/common.pb.o deleted file mode 100644 index 0592802..0000000 Binary files a/build/tmp/obj/common.pb.o and /dev/null differ diff --git a/build/tmp/obj/libfira.o b/build/tmp/obj/libfira.o deleted file mode 100644 index bad6571..0000000 Binary files a/build/tmp/obj/libfira.o and /dev/null differ diff --git a/build/tmp/obj/packet.pb.o b/build/tmp/obj/packet.pb.o deleted file mode 100644 index 4fc693c..0000000 Binary files a/build/tmp/obj/packet.pb.o and /dev/null differ diff --git a/build/tmp/obj/refereeclient.o b/build/tmp/obj/refereeclient.o deleted file mode 100644 index 54377f7..0000000 Binary files a/build/tmp/obj/refereeclient.o and /dev/null differ diff --git a/build/tmp/obj/replacement.pb.o b/build/tmp/obj/replacement.pb.o deleted file mode 100644 index aa1e360..0000000 Binary files a/build/tmp/obj/replacement.pb.o and /dev/null differ diff --git a/build/tmp/obj/replacerclient.o b/build/tmp/obj/replacerclient.o deleted file mode 100644 index 7fe1055..0000000 Binary files a/build/tmp/obj/replacerclient.o and /dev/null differ diff --git a/build/tmp/obj/visionclient.o b/build/tmp/obj/visionclient.o deleted file mode 100644 index 8696e52..0000000 Binary files a/build/tmp/obj/visionclient.o and /dev/null differ diff --git a/build/tmp/obj/vssref_command.pb.o b/build/tmp/obj/vssref_command.pb.o deleted file mode 100644 index 9e3c145..0000000 Binary files a/build/tmp/obj/vssref_command.pb.o and /dev/null differ diff --git a/build/tmp/obj/vssref_common.pb.o b/build/tmp/obj/vssref_common.pb.o deleted file mode 100644 index 6b2b993..0000000 Binary files a/build/tmp/obj/vssref_common.pb.o and /dev/null differ diff --git a/build/tmp/obj/vssref_placement.pb.o b/build/tmp/obj/vssref_placement.pb.o deleted file mode 100644 index 8fa5991..0000000 Binary files a/build/tmp/obj/vssref_placement.pb.o and /dev/null differ diff --git a/include/command.pb.cc b/include/command.pb.cc deleted file mode 100644 index 4593962..0000000 --- a/include/command.pb.cc +++ /dev/null @@ -1,725 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: command.proto - -#include "command.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// This is a temporary google only hack -#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS -#include "third_party/protobuf/version.h" -#endif -// @@protoc_insertion_point(includes) - -namespace protobuf_command_2eproto { -extern PROTOBUF_INTERNAL_EXPORT_protobuf_command_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Command; -} // namespace protobuf_command_2eproto -namespace fira_message { -namespace sim_to_ref { -class CommandDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed - _instance; -} _Command_default_instance_; -class CommandsDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed - _instance; -} _Commands_default_instance_; -} // namespace sim_to_ref -} // namespace fira_message -namespace protobuf_command_2eproto { -static void InitDefaultsCommand() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::fira_message::sim_to_ref::_Command_default_instance_; - new (ptr) ::fira_message::sim_to_ref::Command(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::fira_message::sim_to_ref::Command::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_Command = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCommand}, {}}; - -static void InitDefaultsCommands() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::fira_message::sim_to_ref::_Commands_default_instance_; - new (ptr) ::fira_message::sim_to_ref::Commands(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::fira_message::sim_to_ref::Commands::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_Commands = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsCommands}, { - &protobuf_command_2eproto::scc_info_Command.base,}}; - -void InitDefaults() { - ::google::protobuf::internal::InitSCC(&scc_info_Command.base); - ::google::protobuf::internal::InitSCC(&scc_info_Commands.base); -} - -::google::protobuf::Metadata file_level_metadata[2]; - -const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::fira_message::sim_to_ref::Command, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::fira_message::sim_to_ref::Command, id_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::fira_message::sim_to_ref::Command, yellowteam_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::fira_message::sim_to_ref::Command, wheel_left_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::fira_message::sim_to_ref::Command, wheel_right_), - ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::fira_message::sim_to_ref::Commands, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::fira_message::sim_to_ref::Commands, robot_commands_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::fira_message::sim_to_ref::Command)}, - { 9, -1, sizeof(::fira_message::sim_to_ref::Commands)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::fira_message::sim_to_ref::_Command_default_instance_), - reinterpret_cast(&::fira_message::sim_to_ref::_Commands_default_instance_), -}; - -void protobuf_AssignDescriptors() { - AddDescriptors(); - AssignDescriptors( - "command.proto", schemas, file_default_instances, TableStruct::offsets, - file_level_metadata, NULL, NULL); -} - -void protobuf_AssignDescriptorsOnce() { - static ::google::protobuf::internal::once_flag once; - ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors); -} - -void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; -void protobuf_RegisterTypes(const ::std::string&) { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 2); -} - -void AddDescriptorsImpl() { - InitDefaults(); - static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - "\n\rcommand.proto\022\027fira_message.sim_to_ref" - "\"R\n\007Command\022\n\n\002id\030\001 \001(\r\022\022\n\nyellowteam\030\002 " - "\001(\010\022\022\n\nwheel_left\030\006 \001(\001\022\023\n\013wheel_right\030\007" - " \001(\001\"D\n\010Commands\0228\n\016robot_commands\030\001 \003(\013" - "2 .fira_message.sim_to_ref.Commandb\006prot" - "o3" - }; - ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( - descriptor, 202); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( - "command.proto", &protobuf_RegisterTypes); -} - -void AddDescriptors() { - static ::google::protobuf::internal::once_flag once; - ::google::protobuf::internal::call_once(once, AddDescriptorsImpl); -} -// Force AddDescriptors() to be called at dynamic initialization time. -struct StaticDescriptorInitializer { - StaticDescriptorInitializer() { - AddDescriptors(); - } -} static_descriptor_initializer; -} // namespace protobuf_command_2eproto -namespace fira_message { -namespace sim_to_ref { - -// =================================================================== - -void Command::InitAsDefaultInstance() { -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Command::kIdFieldNumber; -const int Command::kYellowteamFieldNumber; -const int Command::kWheelLeftFieldNumber; -const int Command::kWheelRightFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Command::Command() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - ::google::protobuf::internal::InitSCC( - &protobuf_command_2eproto::scc_info_Command.base); - SharedCtor(); - // @@protoc_insertion_point(constructor:fira_message.sim_to_ref.Command) -} -Command::Command(const Command& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&id_, &from.id_, - static_cast(reinterpret_cast(&wheel_right_) - - reinterpret_cast(&id_)) + sizeof(wheel_right_)); - // @@protoc_insertion_point(copy_constructor:fira_message.sim_to_ref.Command) -} - -void Command::SharedCtor() { - ::memset(&id_, 0, static_cast( - reinterpret_cast(&wheel_right_) - - reinterpret_cast(&id_)) + sizeof(wheel_right_)); -} - -Command::~Command() { - // @@protoc_insertion_point(destructor:fira_message.sim_to_ref.Command) - SharedDtor(); -} - -void Command::SharedDtor() { -} - -void Command::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ::google::protobuf::Descriptor* Command::descriptor() { - ::protobuf_command_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_command_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; -} - -const Command& Command::default_instance() { - ::google::protobuf::internal::InitSCC(&protobuf_command_2eproto::scc_info_Command.base); - return *internal_default_instance(); -} - - -void Command::Clear() { -// @@protoc_insertion_point(message_clear_start:fira_message.sim_to_ref.Command) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&id_, 0, static_cast( - reinterpret_cast(&wheel_right_) - - reinterpret_cast(&id_)) + sizeof(wheel_right_)); - _internal_metadata_.Clear(); -} - -bool Command::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:fira_message.sim_to_ref.Command) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // uint32 id = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &id_))); - } else { - goto handle_unusual; - } - break; - } - - // bool yellowteam = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &yellowteam_))); - } else { - goto handle_unusual; - } - break; - } - - // double wheel_left = 6; - case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(49u /* 49 & 0xFF */)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - input, &wheel_left_))); - } else { - goto handle_unusual; - } - break; - } - - // double wheel_right = 7; - case 7: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(57u /* 57 & 0xFF */)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - input, &wheel_right_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:fira_message.sim_to_ref.Command) - return true; -failure: - // @@protoc_insertion_point(parse_failure:fira_message.sim_to_ref.Command) - return false; -#undef DO_ -} - -void Command::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:fira_message.sim_to_ref.Command) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // uint32 id = 1; - if (this->id() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->id(), output); - } - - // bool yellowteam = 2; - if (this->yellowteam() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->yellowteam(), output); - } - - // double wheel_left = 6; - if (this->wheel_left() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteDouble(6, this->wheel_left(), output); - } - - // double wheel_right = 7; - if (this->wheel_right() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteDouble(7, this->wheel_right(), output); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); - } - // @@protoc_insertion_point(serialize_end:fira_message.sim_to_ref.Command) -} - -::google::protobuf::uint8* Command::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:fira_message.sim_to_ref.Command) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // uint32 id = 1; - if (this->id() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->id(), target); - } - - // bool yellowteam = 2; - if (this->yellowteam() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->yellowteam(), target); - } - - // double wheel_left = 6; - if (this->wheel_left() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(6, this->wheel_left(), target); - } - - // double wheel_right = 7; - if (this->wheel_right() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(7, this->wheel_right(), target); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:fira_message.sim_to_ref.Command) - return target; -} - -size_t Command::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:fira_message.sim_to_ref.Command) - size_t total_size = 0; - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); - } - // uint32 id = 1; - if (this->id() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->id()); - } - - // bool yellowteam = 2; - if (this->yellowteam() != 0) { - total_size += 1 + 1; - } - - // double wheel_left = 6; - if (this->wheel_left() != 0) { - total_size += 1 + 8; - } - - // double wheel_right = 7; - if (this->wheel_right() != 0) { - total_size += 1 + 8; - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Command::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:fira_message.sim_to_ref.Command) - GOOGLE_DCHECK_NE(&from, this); - const Command* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:fira_message.sim_to_ref.Command) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:fira_message.sim_to_ref.Command) - MergeFrom(*source); - } -} - -void Command::MergeFrom(const Command& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:fira_message.sim_to_ref.Command) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.id() != 0) { - set_id(from.id()); - } - if (from.yellowteam() != 0) { - set_yellowteam(from.yellowteam()); - } - if (from.wheel_left() != 0) { - set_wheel_left(from.wheel_left()); - } - if (from.wheel_right() != 0) { - set_wheel_right(from.wheel_right()); - } -} - -void Command::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:fira_message.sim_to_ref.Command) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Command::CopyFrom(const Command& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:fira_message.sim_to_ref.Command) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Command::IsInitialized() const { - return true; -} - -void Command::Swap(Command* other) { - if (other == this) return; - InternalSwap(other); -} -void Command::InternalSwap(Command* other) { - using std::swap; - swap(id_, other->id_); - swap(yellowteam_, other->yellowteam_); - swap(wheel_left_, other->wheel_left_); - swap(wheel_right_, other->wheel_right_); - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata Command::GetMetadata() const { - protobuf_command_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_command_2eproto::file_level_metadata[kIndexInFileMessages]; -} - - -// =================================================================== - -void Commands::InitAsDefaultInstance() { -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Commands::kRobotCommandsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Commands::Commands() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - ::google::protobuf::internal::InitSCC( - &protobuf_command_2eproto::scc_info_Commands.base); - SharedCtor(); - // @@protoc_insertion_point(constructor:fira_message.sim_to_ref.Commands) -} -Commands::Commands(const Commands& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL), - robot_commands_(from.robot_commands_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:fira_message.sim_to_ref.Commands) -} - -void Commands::SharedCtor() { -} - -Commands::~Commands() { - // @@protoc_insertion_point(destructor:fira_message.sim_to_ref.Commands) - SharedDtor(); -} - -void Commands::SharedDtor() { -} - -void Commands::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ::google::protobuf::Descriptor* Commands::descriptor() { - ::protobuf_command_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_command_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; -} - -const Commands& Commands::default_instance() { - ::google::protobuf::internal::InitSCC(&protobuf_command_2eproto::scc_info_Commands.base); - return *internal_default_instance(); -} - - -void Commands::Clear() { -// @@protoc_insertion_point(message_clear_start:fira_message.sim_to_ref.Commands) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - robot_commands_.Clear(); - _internal_metadata_.Clear(); -} - -bool Commands::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:fira_message.sim_to_ref.Commands) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // repeated .fira_message.sim_to_ref.Command robot_commands = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_robot_commands())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:fira_message.sim_to_ref.Commands) - return true; -failure: - // @@protoc_insertion_point(parse_failure:fira_message.sim_to_ref.Commands) - return false; -#undef DO_ -} - -void Commands::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:fira_message.sim_to_ref.Commands) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .fira_message.sim_to_ref.Command robot_commands = 1; - for (unsigned int i = 0, - n = static_cast(this->robot_commands_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, - this->robot_commands(static_cast(i)), - output); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); - } - // @@protoc_insertion_point(serialize_end:fira_message.sim_to_ref.Commands) -} - -::google::protobuf::uint8* Commands::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:fira_message.sim_to_ref.Commands) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .fira_message.sim_to_ref.Command robot_commands = 1; - for (unsigned int i = 0, - n = static_cast(this->robot_commands_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, this->robot_commands(static_cast(i)), deterministic, target); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:fira_message.sim_to_ref.Commands) - return target; -} - -size_t Commands::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:fira_message.sim_to_ref.Commands) - size_t total_size = 0; - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); - } - // repeated .fira_message.sim_to_ref.Command robot_commands = 1; - { - unsigned int count = static_cast(this->robot_commands_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->robot_commands(static_cast(i))); - } - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Commands::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:fira_message.sim_to_ref.Commands) - GOOGLE_DCHECK_NE(&from, this); - const Commands* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:fira_message.sim_to_ref.Commands) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:fira_message.sim_to_ref.Commands) - MergeFrom(*source); - } -} - -void Commands::MergeFrom(const Commands& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:fira_message.sim_to_ref.Commands) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - robot_commands_.MergeFrom(from.robot_commands_); -} - -void Commands::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:fira_message.sim_to_ref.Commands) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Commands::CopyFrom(const Commands& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:fira_message.sim_to_ref.Commands) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Commands::IsInitialized() const { - return true; -} - -void Commands::Swap(Commands* other) { - if (other == this) return; - InternalSwap(other); -} -void Commands::InternalSwap(Commands* other) { - using std::swap; - CastToBase(&robot_commands_)->InternalSwap(CastToBase(&other->robot_commands_)); - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata Commands::GetMetadata() const { - protobuf_command_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_command_2eproto::file_level_metadata[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace sim_to_ref -} // namespace fira_message -namespace google { -namespace protobuf { -template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::fira_message::sim_to_ref::Command* Arena::CreateMaybeMessage< ::fira_message::sim_to_ref::Command >(Arena* arena) { - return Arena::CreateInternal< ::fira_message::sim_to_ref::Command >(arena); -} -template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::fira_message::sim_to_ref::Commands* Arena::CreateMaybeMessage< ::fira_message::sim_to_ref::Commands >(Arena* arena) { - return Arena::CreateInternal< ::fira_message::sim_to_ref::Commands >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) diff --git a/include/command.pb.h b/include/command.pb.h deleted file mode 100644 index acd18c5..0000000 --- a/include/command.pb.h +++ /dev/null @@ -1,414 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: command.proto - -#ifndef PROTOBUF_INCLUDED_command_2eproto -#define PROTOBUF_INCLUDED_command_2eproto - -#include - -#include - -#if GOOGLE_PROTOBUF_VERSION < 3006001 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -// @@protoc_insertion_point(includes) -#define PROTOBUF_INTERNAL_EXPORT_protobuf_command_2eproto - -namespace protobuf_command_2eproto { -// Internal implementation detail -- do not use these members. -struct TableStruct { - static const ::google::protobuf::internal::ParseTableField entries[]; - static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; - static const ::google::protobuf::internal::ParseTable schema[2]; - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors(); -} // namespace protobuf_command_2eproto -namespace fira_message { -namespace sim_to_ref { -class Command; -class CommandDefaultTypeInternal; -extern CommandDefaultTypeInternal _Command_default_instance_; -class Commands; -class CommandsDefaultTypeInternal; -extern CommandsDefaultTypeInternal _Commands_default_instance_; -} // namespace sim_to_ref -} // namespace fira_message -namespace google { -namespace protobuf { -template<> ::fira_message::sim_to_ref::Command* Arena::CreateMaybeMessage<::fira_message::sim_to_ref::Command>(Arena*); -template<> ::fira_message::sim_to_ref::Commands* Arena::CreateMaybeMessage<::fira_message::sim_to_ref::Commands>(Arena*); -} // namespace protobuf -} // namespace google -namespace fira_message { -namespace sim_to_ref { - -// =================================================================== - -class Command : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:fira_message.sim_to_ref.Command) */ { - public: - Command(); - virtual ~Command(); - - Command(const Command& from); - - inline Command& operator=(const Command& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Command(Command&& from) noexcept - : Command() { - *this = ::std::move(from); - } - - inline Command& operator=(Command&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const Command& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Command* internal_default_instance() { - return reinterpret_cast( - &_Command_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(Command* other); - friend void swap(Command& a, Command& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Command* New() const final { - return CreateMaybeMessage(NULL); - } - - Command* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const Command& from); - void MergeFrom(const Command& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Command* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // uint32 id = 1; - void clear_id(); - static const int kIdFieldNumber = 1; - ::google::protobuf::uint32 id() const; - void set_id(::google::protobuf::uint32 value); - - // bool yellowteam = 2; - void clear_yellowteam(); - static const int kYellowteamFieldNumber = 2; - bool yellowteam() const; - void set_yellowteam(bool value); - - // double wheel_left = 6; - void clear_wheel_left(); - static const int kWheelLeftFieldNumber = 6; - double wheel_left() const; - void set_wheel_left(double value); - - // double wheel_right = 7; - void clear_wheel_right(); - static const int kWheelRightFieldNumber = 7; - double wheel_right() const; - void set_wheel_right(double value); - - // @@protoc_insertion_point(class_scope:fira_message.sim_to_ref.Command) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::uint32 id_; - bool yellowteam_; - double wheel_left_; - double wheel_right_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_command_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class Commands : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:fira_message.sim_to_ref.Commands) */ { - public: - Commands(); - virtual ~Commands(); - - Commands(const Commands& from); - - inline Commands& operator=(const Commands& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Commands(Commands&& from) noexcept - : Commands() { - *this = ::std::move(from); - } - - inline Commands& operator=(Commands&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const Commands& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Commands* internal_default_instance() { - return reinterpret_cast( - &_Commands_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void Swap(Commands* other); - friend void swap(Commands& a, Commands& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Commands* New() const final { - return CreateMaybeMessage(NULL); - } - - Commands* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const Commands& from); - void MergeFrom(const Commands& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Commands* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated .fira_message.sim_to_ref.Command robot_commands = 1; - int robot_commands_size() const; - void clear_robot_commands(); - static const int kRobotCommandsFieldNumber = 1; - ::fira_message::sim_to_ref::Command* mutable_robot_commands(int index); - ::google::protobuf::RepeatedPtrField< ::fira_message::sim_to_ref::Command >* - mutable_robot_commands(); - const ::fira_message::sim_to_ref::Command& robot_commands(int index) const; - ::fira_message::sim_to_ref::Command* add_robot_commands(); - const ::google::protobuf::RepeatedPtrField< ::fira_message::sim_to_ref::Command >& - robot_commands() const; - - // @@protoc_insertion_point(class_scope:fira_message.sim_to_ref.Commands) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::fira_message::sim_to_ref::Command > robot_commands_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_command_2eproto::TableStruct; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// Command - -// uint32 id = 1; -inline void Command::clear_id() { - id_ = 0u; -} -inline ::google::protobuf::uint32 Command::id() const { - // @@protoc_insertion_point(field_get:fira_message.sim_to_ref.Command.id) - return id_; -} -inline void Command::set_id(::google::protobuf::uint32 value) { - - id_ = value; - // @@protoc_insertion_point(field_set:fira_message.sim_to_ref.Command.id) -} - -// bool yellowteam = 2; -inline void Command::clear_yellowteam() { - yellowteam_ = false; -} -inline bool Command::yellowteam() const { - // @@protoc_insertion_point(field_get:fira_message.sim_to_ref.Command.yellowteam) - return yellowteam_; -} -inline void Command::set_yellowteam(bool value) { - - yellowteam_ = value; - // @@protoc_insertion_point(field_set:fira_message.sim_to_ref.Command.yellowteam) -} - -// double wheel_left = 6; -inline void Command::clear_wheel_left() { - wheel_left_ = 0; -} -inline double Command::wheel_left() const { - // @@protoc_insertion_point(field_get:fira_message.sim_to_ref.Command.wheel_left) - return wheel_left_; -} -inline void Command::set_wheel_left(double value) { - - wheel_left_ = value; - // @@protoc_insertion_point(field_set:fira_message.sim_to_ref.Command.wheel_left) -} - -// double wheel_right = 7; -inline void Command::clear_wheel_right() { - wheel_right_ = 0; -} -inline double Command::wheel_right() const { - // @@protoc_insertion_point(field_get:fira_message.sim_to_ref.Command.wheel_right) - return wheel_right_; -} -inline void Command::set_wheel_right(double value) { - - wheel_right_ = value; - // @@protoc_insertion_point(field_set:fira_message.sim_to_ref.Command.wheel_right) -} - -// ------------------------------------------------------------------- - -// Commands - -// repeated .fira_message.sim_to_ref.Command robot_commands = 1; -inline int Commands::robot_commands_size() const { - return robot_commands_.size(); -} -inline void Commands::clear_robot_commands() { - robot_commands_.Clear(); -} -inline ::fira_message::sim_to_ref::Command* Commands::mutable_robot_commands(int index) { - // @@protoc_insertion_point(field_mutable:fira_message.sim_to_ref.Commands.robot_commands) - return robot_commands_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::fira_message::sim_to_ref::Command >* -Commands::mutable_robot_commands() { - // @@protoc_insertion_point(field_mutable_list:fira_message.sim_to_ref.Commands.robot_commands) - return &robot_commands_; -} -inline const ::fira_message::sim_to_ref::Command& Commands::robot_commands(int index) const { - // @@protoc_insertion_point(field_get:fira_message.sim_to_ref.Commands.robot_commands) - return robot_commands_.Get(index); -} -inline ::fira_message::sim_to_ref::Command* Commands::add_robot_commands() { - // @@protoc_insertion_point(field_add:fira_message.sim_to_ref.Commands.robot_commands) - return robot_commands_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::fira_message::sim_to_ref::Command >& -Commands::robot_commands() const { - // @@protoc_insertion_point(field_list:fira_message.sim_to_ref.Commands.robot_commands) - return robot_commands_; -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace sim_to_ref -} // namespace fira_message - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_INCLUDED_command_2eproto diff --git a/include/common.pb.cc b/include/common.pb.cc deleted file mode 100644 index 99e7606..0000000 --- a/include/common.pb.cc +++ /dev/null @@ -1,1726 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: common.proto - -#include "common.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// This is a temporary google only hack -#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS -#include "third_party/protobuf/version.h" -#endif -// @@protoc_insertion_point(includes) - -namespace protobuf_common_2eproto { -extern PROTOBUF_INTERNAL_EXPORT_protobuf_common_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Ball; -extern PROTOBUF_INTERNAL_EXPORT_protobuf_common_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Robot; -} // namespace protobuf_common_2eproto -namespace fira_message { -class BallDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed - _instance; -} _Ball_default_instance_; -class RobotDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed - _instance; -} _Robot_default_instance_; -class FieldDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed - _instance; -} _Field_default_instance_; -class FrameDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed - _instance; -} _Frame_default_instance_; -} // namespace fira_message -namespace protobuf_common_2eproto { -static void InitDefaultsBall() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::fira_message::_Ball_default_instance_; - new (ptr) ::fira_message::Ball(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::fira_message::Ball::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_Ball = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsBall}, {}}; - -static void InitDefaultsRobot() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::fira_message::_Robot_default_instance_; - new (ptr) ::fira_message::Robot(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::fira_message::Robot::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_Robot = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRobot}, {}}; - -static void InitDefaultsField() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::fira_message::_Field_default_instance_; - new (ptr) ::fira_message::Field(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::fira_message::Field::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_Field = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsField}, {}}; - -static void InitDefaultsFrame() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::fira_message::_Frame_default_instance_; - new (ptr) ::fira_message::Frame(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::fira_message::Frame::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_Frame = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsFrame}, { - &protobuf_common_2eproto::scc_info_Ball.base, - &protobuf_common_2eproto::scc_info_Robot.base,}}; - -void InitDefaults() { - ::google::protobuf::internal::InitSCC(&scc_info_Ball.base); - ::google::protobuf::internal::InitSCC(&scc_info_Robot.base); - ::google::protobuf::internal::InitSCC(&scc_info_Field.base); - ::google::protobuf::internal::InitSCC(&scc_info_Frame.base); -} - -::google::protobuf::Metadata file_level_metadata[4]; - -const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::fira_message::Ball, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::fira_message::Ball, x_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::fira_message::Ball, y_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::fira_message::Ball, z_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::fira_message::Ball, vx_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::fira_message::Ball, vy_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::fira_message::Ball, vz_), - ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::fira_message::Robot, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::fira_message::Robot, robot_id_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::fira_message::Robot, x_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::fira_message::Robot, y_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::fira_message::Robot, orientation_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::fira_message::Robot, vx_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::fira_message::Robot, vy_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::fira_message::Robot, vorientation_), - ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::fira_message::Field, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::fira_message::Field, width_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::fira_message::Field, length_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::fira_message::Field, goal_width_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::fira_message::Field, goal_depth_), - ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::fira_message::Frame, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::fira_message::Frame, ball_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::fira_message::Frame, robots_yellow_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::fira_message::Frame, robots_blue_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::fira_message::Ball)}, - { 11, -1, sizeof(::fira_message::Robot)}, - { 23, -1, sizeof(::fira_message::Field)}, - { 32, -1, sizeof(::fira_message::Frame)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::fira_message::_Ball_default_instance_), - reinterpret_cast(&::fira_message::_Robot_default_instance_), - reinterpret_cast(&::fira_message::_Field_default_instance_), - reinterpret_cast(&::fira_message::_Frame_default_instance_), -}; - -void protobuf_AssignDescriptors() { - AddDescriptors(); - AssignDescriptors( - "common.proto", schemas, file_default_instances, TableStruct::offsets, - file_level_metadata, NULL, NULL); -} - -void protobuf_AssignDescriptorsOnce() { - static ::google::protobuf::internal::once_flag once; - ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors); -} - -void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; -void protobuf_RegisterTypes(const ::std::string&) { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 4); -} - -void AddDescriptorsImpl() { - InitDefaults(); - static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - "\n\014common.proto\022\014fira_message\"K\n\004Ball\022\t\n\001" - "x\030\001 \001(\001\022\t\n\001y\030\002 \001(\001\022\t\n\001z\030\003 \001(\001\022\n\n\002vx\030\004 \001(" - "\001\022\n\n\002vy\030\005 \001(\001\022\n\n\002vz\030\006 \001(\001\"r\n\005Robot\022\020\n\010ro" - "bot_id\030\001 \001(\r\022\t\n\001x\030\002 \001(\001\022\t\n\001y\030\003 \001(\001\022\023\n\013or" - "ientation\030\004 \001(\001\022\n\n\002vx\030\005 \001(\001\022\n\n\002vy\030\006 \001(\001\022" - "\024\n\014vorientation\030\007 \001(\001\"N\n\005Field\022\r\n\005width\030" - "\001 \001(\001\022\016\n\006length\030\002 \001(\001\022\022\n\ngoal_width\030\003 \001(" - "\001\022\022\n\ngoal_depth\030\004 \001(\001\"\177\n\005Frame\022 \n\004ball\030\001" - " \001(\0132\022.fira_message.Ball\022*\n\rrobots_yello" - "w\030\002 \003(\0132\023.fira_message.Robot\022(\n\013robots_b" - "lue\030\003 \003(\0132\023.fira_message.Robotb\006proto3" - }; - ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( - descriptor, 438); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( - "common.proto", &protobuf_RegisterTypes); -} - -void AddDescriptors() { - static ::google::protobuf::internal::once_flag once; - ::google::protobuf::internal::call_once(once, AddDescriptorsImpl); -} -// Force AddDescriptors() to be called at dynamic initialization time. -struct StaticDescriptorInitializer { - StaticDescriptorInitializer() { - AddDescriptors(); - } -} static_descriptor_initializer; -} // namespace protobuf_common_2eproto -namespace fira_message { - -// =================================================================== - -void Ball::InitAsDefaultInstance() { -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Ball::kXFieldNumber; -const int Ball::kYFieldNumber; -const int Ball::kZFieldNumber; -const int Ball::kVxFieldNumber; -const int Ball::kVyFieldNumber; -const int Ball::kVzFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Ball::Ball() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - ::google::protobuf::internal::InitSCC( - &protobuf_common_2eproto::scc_info_Ball.base); - SharedCtor(); - // @@protoc_insertion_point(constructor:fira_message.Ball) -} -Ball::Ball(const Ball& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&x_, &from.x_, - static_cast(reinterpret_cast(&vz_) - - reinterpret_cast(&x_)) + sizeof(vz_)); - // @@protoc_insertion_point(copy_constructor:fira_message.Ball) -} - -void Ball::SharedCtor() { - ::memset(&x_, 0, static_cast( - reinterpret_cast(&vz_) - - reinterpret_cast(&x_)) + sizeof(vz_)); -} - -Ball::~Ball() { - // @@protoc_insertion_point(destructor:fira_message.Ball) - SharedDtor(); -} - -void Ball::SharedDtor() { -} - -void Ball::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ::google::protobuf::Descriptor* Ball::descriptor() { - ::protobuf_common_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_common_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; -} - -const Ball& Ball::default_instance() { - ::google::protobuf::internal::InitSCC(&protobuf_common_2eproto::scc_info_Ball.base); - return *internal_default_instance(); -} - - -void Ball::Clear() { -// @@protoc_insertion_point(message_clear_start:fira_message.Ball) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&x_, 0, static_cast( - reinterpret_cast(&vz_) - - reinterpret_cast(&x_)) + sizeof(vz_)); - _internal_metadata_.Clear(); -} - -bool Ball::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:fira_message.Ball) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // double x = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(9u /* 9 & 0xFF */)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - input, &x_))); - } else { - goto handle_unusual; - } - break; - } - - // double y = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(17u /* 17 & 0xFF */)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - input, &y_))); - } else { - goto handle_unusual; - } - break; - } - - // double z = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(25u /* 25 & 0xFF */)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - input, &z_))); - } else { - goto handle_unusual; - } - break; - } - - // double vx = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(33u /* 33 & 0xFF */)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - input, &vx_))); - } else { - goto handle_unusual; - } - break; - } - - // double vy = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(41u /* 41 & 0xFF */)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - input, &vy_))); - } else { - goto handle_unusual; - } - break; - } - - // double vz = 6; - case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(49u /* 49 & 0xFF */)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - input, &vz_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:fira_message.Ball) - return true; -failure: - // @@protoc_insertion_point(parse_failure:fira_message.Ball) - return false; -#undef DO_ -} - -void Ball::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:fira_message.Ball) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // double x = 1; - if (this->x() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteDouble(1, this->x(), output); - } - - // double y = 2; - if (this->y() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->y(), output); - } - - // double z = 3; - if (this->z() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteDouble(3, this->z(), output); - } - - // double vx = 4; - if (this->vx() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteDouble(4, this->vx(), output); - } - - // double vy = 5; - if (this->vy() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteDouble(5, this->vy(), output); - } - - // double vz = 6; - if (this->vz() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteDouble(6, this->vz(), output); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); - } - // @@protoc_insertion_point(serialize_end:fira_message.Ball) -} - -::google::protobuf::uint8* Ball::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:fira_message.Ball) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // double x = 1; - if (this->x() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(1, this->x(), target); - } - - // double y = 2; - if (this->y() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->y(), target); - } - - // double z = 3; - if (this->z() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(3, this->z(), target); - } - - // double vx = 4; - if (this->vx() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(4, this->vx(), target); - } - - // double vy = 5; - if (this->vy() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(5, this->vy(), target); - } - - // double vz = 6; - if (this->vz() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(6, this->vz(), target); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:fira_message.Ball) - return target; -} - -size_t Ball::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:fira_message.Ball) - size_t total_size = 0; - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); - } - // double x = 1; - if (this->x() != 0) { - total_size += 1 + 8; - } - - // double y = 2; - if (this->y() != 0) { - total_size += 1 + 8; - } - - // double z = 3; - if (this->z() != 0) { - total_size += 1 + 8; - } - - // double vx = 4; - if (this->vx() != 0) { - total_size += 1 + 8; - } - - // double vy = 5; - if (this->vy() != 0) { - total_size += 1 + 8; - } - - // double vz = 6; - if (this->vz() != 0) { - total_size += 1 + 8; - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Ball::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:fira_message.Ball) - GOOGLE_DCHECK_NE(&from, this); - const Ball* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:fira_message.Ball) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:fira_message.Ball) - MergeFrom(*source); - } -} - -void Ball::MergeFrom(const Ball& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:fira_message.Ball) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.x() != 0) { - set_x(from.x()); - } - if (from.y() != 0) { - set_y(from.y()); - } - if (from.z() != 0) { - set_z(from.z()); - } - if (from.vx() != 0) { - set_vx(from.vx()); - } - if (from.vy() != 0) { - set_vy(from.vy()); - } - if (from.vz() != 0) { - set_vz(from.vz()); - } -} - -void Ball::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:fira_message.Ball) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Ball::CopyFrom(const Ball& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:fira_message.Ball) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Ball::IsInitialized() const { - return true; -} - -void Ball::Swap(Ball* other) { - if (other == this) return; - InternalSwap(other); -} -void Ball::InternalSwap(Ball* other) { - using std::swap; - swap(x_, other->x_); - swap(y_, other->y_); - swap(z_, other->z_); - swap(vx_, other->vx_); - swap(vy_, other->vy_); - swap(vz_, other->vz_); - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata Ball::GetMetadata() const { - protobuf_common_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_common_2eproto::file_level_metadata[kIndexInFileMessages]; -} - - -// =================================================================== - -void Robot::InitAsDefaultInstance() { -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Robot::kRobotIdFieldNumber; -const int Robot::kXFieldNumber; -const int Robot::kYFieldNumber; -const int Robot::kOrientationFieldNumber; -const int Robot::kVxFieldNumber; -const int Robot::kVyFieldNumber; -const int Robot::kVorientationFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Robot::Robot() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - ::google::protobuf::internal::InitSCC( - &protobuf_common_2eproto::scc_info_Robot.base); - SharedCtor(); - // @@protoc_insertion_point(constructor:fira_message.Robot) -} -Robot::Robot(const Robot& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&x_, &from.x_, - static_cast(reinterpret_cast(&robot_id_) - - reinterpret_cast(&x_)) + sizeof(robot_id_)); - // @@protoc_insertion_point(copy_constructor:fira_message.Robot) -} - -void Robot::SharedCtor() { - ::memset(&x_, 0, static_cast( - reinterpret_cast(&robot_id_) - - reinterpret_cast(&x_)) + sizeof(robot_id_)); -} - -Robot::~Robot() { - // @@protoc_insertion_point(destructor:fira_message.Robot) - SharedDtor(); -} - -void Robot::SharedDtor() { -} - -void Robot::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ::google::protobuf::Descriptor* Robot::descriptor() { - ::protobuf_common_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_common_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; -} - -const Robot& Robot::default_instance() { - ::google::protobuf::internal::InitSCC(&protobuf_common_2eproto::scc_info_Robot.base); - return *internal_default_instance(); -} - - -void Robot::Clear() { -// @@protoc_insertion_point(message_clear_start:fira_message.Robot) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&x_, 0, static_cast( - reinterpret_cast(&robot_id_) - - reinterpret_cast(&x_)) + sizeof(robot_id_)); - _internal_metadata_.Clear(); -} - -bool Robot::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:fira_message.Robot) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // uint32 robot_id = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &robot_id_))); - } else { - goto handle_unusual; - } - break; - } - - // double x = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(17u /* 17 & 0xFF */)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - input, &x_))); - } else { - goto handle_unusual; - } - break; - } - - // double y = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(25u /* 25 & 0xFF */)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - input, &y_))); - } else { - goto handle_unusual; - } - break; - } - - // double orientation = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(33u /* 33 & 0xFF */)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - input, &orientation_))); - } else { - goto handle_unusual; - } - break; - } - - // double vx = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(41u /* 41 & 0xFF */)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - input, &vx_))); - } else { - goto handle_unusual; - } - break; - } - - // double vy = 6; - case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(49u /* 49 & 0xFF */)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - input, &vy_))); - } else { - goto handle_unusual; - } - break; - } - - // double vorientation = 7; - case 7: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(57u /* 57 & 0xFF */)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - input, &vorientation_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:fira_message.Robot) - return true; -failure: - // @@protoc_insertion_point(parse_failure:fira_message.Robot) - return false; -#undef DO_ -} - -void Robot::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:fira_message.Robot) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // uint32 robot_id = 1; - if (this->robot_id() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->robot_id(), output); - } - - // double x = 2; - if (this->x() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->x(), output); - } - - // double y = 3; - if (this->y() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteDouble(3, this->y(), output); - } - - // double orientation = 4; - if (this->orientation() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteDouble(4, this->orientation(), output); - } - - // double vx = 5; - if (this->vx() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteDouble(5, this->vx(), output); - } - - // double vy = 6; - if (this->vy() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteDouble(6, this->vy(), output); - } - - // double vorientation = 7; - if (this->vorientation() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteDouble(7, this->vorientation(), output); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); - } - // @@protoc_insertion_point(serialize_end:fira_message.Robot) -} - -::google::protobuf::uint8* Robot::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:fira_message.Robot) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // uint32 robot_id = 1; - if (this->robot_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->robot_id(), target); - } - - // double x = 2; - if (this->x() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->x(), target); - } - - // double y = 3; - if (this->y() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(3, this->y(), target); - } - - // double orientation = 4; - if (this->orientation() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(4, this->orientation(), target); - } - - // double vx = 5; - if (this->vx() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(5, this->vx(), target); - } - - // double vy = 6; - if (this->vy() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(6, this->vy(), target); - } - - // double vorientation = 7; - if (this->vorientation() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(7, this->vorientation(), target); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:fira_message.Robot) - return target; -} - -size_t Robot::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:fira_message.Robot) - size_t total_size = 0; - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); - } - // double x = 2; - if (this->x() != 0) { - total_size += 1 + 8; - } - - // double y = 3; - if (this->y() != 0) { - total_size += 1 + 8; - } - - // double orientation = 4; - if (this->orientation() != 0) { - total_size += 1 + 8; - } - - // double vx = 5; - if (this->vx() != 0) { - total_size += 1 + 8; - } - - // double vy = 6; - if (this->vy() != 0) { - total_size += 1 + 8; - } - - // double vorientation = 7; - if (this->vorientation() != 0) { - total_size += 1 + 8; - } - - // uint32 robot_id = 1; - if (this->robot_id() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->robot_id()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Robot::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:fira_message.Robot) - GOOGLE_DCHECK_NE(&from, this); - const Robot* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:fira_message.Robot) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:fira_message.Robot) - MergeFrom(*source); - } -} - -void Robot::MergeFrom(const Robot& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:fira_message.Robot) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.x() != 0) { - set_x(from.x()); - } - if (from.y() != 0) { - set_y(from.y()); - } - if (from.orientation() != 0) { - set_orientation(from.orientation()); - } - if (from.vx() != 0) { - set_vx(from.vx()); - } - if (from.vy() != 0) { - set_vy(from.vy()); - } - if (from.vorientation() != 0) { - set_vorientation(from.vorientation()); - } - if (from.robot_id() != 0) { - set_robot_id(from.robot_id()); - } -} - -void Robot::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:fira_message.Robot) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Robot::CopyFrom(const Robot& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:fira_message.Robot) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Robot::IsInitialized() const { - return true; -} - -void Robot::Swap(Robot* other) { - if (other == this) return; - InternalSwap(other); -} -void Robot::InternalSwap(Robot* other) { - using std::swap; - swap(x_, other->x_); - swap(y_, other->y_); - swap(orientation_, other->orientation_); - swap(vx_, other->vx_); - swap(vy_, other->vy_); - swap(vorientation_, other->vorientation_); - swap(robot_id_, other->robot_id_); - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata Robot::GetMetadata() const { - protobuf_common_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_common_2eproto::file_level_metadata[kIndexInFileMessages]; -} - - -// =================================================================== - -void Field::InitAsDefaultInstance() { -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Field::kWidthFieldNumber; -const int Field::kLengthFieldNumber; -const int Field::kGoalWidthFieldNumber; -const int Field::kGoalDepthFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Field::Field() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - ::google::protobuf::internal::InitSCC( - &protobuf_common_2eproto::scc_info_Field.base); - SharedCtor(); - // @@protoc_insertion_point(constructor:fira_message.Field) -} -Field::Field(const Field& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&width_, &from.width_, - static_cast(reinterpret_cast(&goal_depth_) - - reinterpret_cast(&width_)) + sizeof(goal_depth_)); - // @@protoc_insertion_point(copy_constructor:fira_message.Field) -} - -void Field::SharedCtor() { - ::memset(&width_, 0, static_cast( - reinterpret_cast(&goal_depth_) - - reinterpret_cast(&width_)) + sizeof(goal_depth_)); -} - -Field::~Field() { - // @@protoc_insertion_point(destructor:fira_message.Field) - SharedDtor(); -} - -void Field::SharedDtor() { -} - -void Field::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ::google::protobuf::Descriptor* Field::descriptor() { - ::protobuf_common_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_common_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; -} - -const Field& Field::default_instance() { - ::google::protobuf::internal::InitSCC(&protobuf_common_2eproto::scc_info_Field.base); - return *internal_default_instance(); -} - - -void Field::Clear() { -// @@protoc_insertion_point(message_clear_start:fira_message.Field) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&width_, 0, static_cast( - reinterpret_cast(&goal_depth_) - - reinterpret_cast(&width_)) + sizeof(goal_depth_)); - _internal_metadata_.Clear(); -} - -bool Field::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:fira_message.Field) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // double width = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(9u /* 9 & 0xFF */)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - input, &width_))); - } else { - goto handle_unusual; - } - break; - } - - // double length = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(17u /* 17 & 0xFF */)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - input, &length_))); - } else { - goto handle_unusual; - } - break; - } - - // double goal_width = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(25u /* 25 & 0xFF */)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - input, &goal_width_))); - } else { - goto handle_unusual; - } - break; - } - - // double goal_depth = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(33u /* 33 & 0xFF */)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - input, &goal_depth_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:fira_message.Field) - return true; -failure: - // @@protoc_insertion_point(parse_failure:fira_message.Field) - return false; -#undef DO_ -} - -void Field::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:fira_message.Field) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // double width = 1; - if (this->width() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteDouble(1, this->width(), output); - } - - // double length = 2; - if (this->length() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->length(), output); - } - - // double goal_width = 3; - if (this->goal_width() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteDouble(3, this->goal_width(), output); - } - - // double goal_depth = 4; - if (this->goal_depth() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteDouble(4, this->goal_depth(), output); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); - } - // @@protoc_insertion_point(serialize_end:fira_message.Field) -} - -::google::protobuf::uint8* Field::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:fira_message.Field) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // double width = 1; - if (this->width() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(1, this->width(), target); - } - - // double length = 2; - if (this->length() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->length(), target); - } - - // double goal_width = 3; - if (this->goal_width() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(3, this->goal_width(), target); - } - - // double goal_depth = 4; - if (this->goal_depth() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(4, this->goal_depth(), target); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:fira_message.Field) - return target; -} - -size_t Field::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:fira_message.Field) - size_t total_size = 0; - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); - } - // double width = 1; - if (this->width() != 0) { - total_size += 1 + 8; - } - - // double length = 2; - if (this->length() != 0) { - total_size += 1 + 8; - } - - // double goal_width = 3; - if (this->goal_width() != 0) { - total_size += 1 + 8; - } - - // double goal_depth = 4; - if (this->goal_depth() != 0) { - total_size += 1 + 8; - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Field::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:fira_message.Field) - GOOGLE_DCHECK_NE(&from, this); - const Field* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:fira_message.Field) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:fira_message.Field) - MergeFrom(*source); - } -} - -void Field::MergeFrom(const Field& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:fira_message.Field) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.width() != 0) { - set_width(from.width()); - } - if (from.length() != 0) { - set_length(from.length()); - } - if (from.goal_width() != 0) { - set_goal_width(from.goal_width()); - } - if (from.goal_depth() != 0) { - set_goal_depth(from.goal_depth()); - } -} - -void Field::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:fira_message.Field) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Field::CopyFrom(const Field& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:fira_message.Field) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Field::IsInitialized() const { - return true; -} - -void Field::Swap(Field* other) { - if (other == this) return; - InternalSwap(other); -} -void Field::InternalSwap(Field* other) { - using std::swap; - swap(width_, other->width_); - swap(length_, other->length_); - swap(goal_width_, other->goal_width_); - swap(goal_depth_, other->goal_depth_); - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata Field::GetMetadata() const { - protobuf_common_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_common_2eproto::file_level_metadata[kIndexInFileMessages]; -} - - -// =================================================================== - -void Frame::InitAsDefaultInstance() { - ::fira_message::_Frame_default_instance_._instance.get_mutable()->ball_ = const_cast< ::fira_message::Ball*>( - ::fira_message::Ball::internal_default_instance()); -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Frame::kBallFieldNumber; -const int Frame::kRobotsYellowFieldNumber; -const int Frame::kRobotsBlueFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Frame::Frame() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - ::google::protobuf::internal::InitSCC( - &protobuf_common_2eproto::scc_info_Frame.base); - SharedCtor(); - // @@protoc_insertion_point(constructor:fira_message.Frame) -} -Frame::Frame(const Frame& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL), - robots_yellow_(from.robots_yellow_), - robots_blue_(from.robots_blue_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_ball()) { - ball_ = new ::fira_message::Ball(*from.ball_); - } else { - ball_ = NULL; - } - // @@protoc_insertion_point(copy_constructor:fira_message.Frame) -} - -void Frame::SharedCtor() { - ball_ = NULL; -} - -Frame::~Frame() { - // @@protoc_insertion_point(destructor:fira_message.Frame) - SharedDtor(); -} - -void Frame::SharedDtor() { - if (this != internal_default_instance()) delete ball_; -} - -void Frame::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ::google::protobuf::Descriptor* Frame::descriptor() { - ::protobuf_common_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_common_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; -} - -const Frame& Frame::default_instance() { - ::google::protobuf::internal::InitSCC(&protobuf_common_2eproto::scc_info_Frame.base); - return *internal_default_instance(); -} - - -void Frame::Clear() { -// @@protoc_insertion_point(message_clear_start:fira_message.Frame) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - robots_yellow_.Clear(); - robots_blue_.Clear(); - if (GetArenaNoVirtual() == NULL && ball_ != NULL) { - delete ball_; - } - ball_ = NULL; - _internal_metadata_.Clear(); -} - -bool Frame::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:fira_message.Frame) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .fira_message.Ball ball = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_ball())); - } else { - goto handle_unusual; - } - break; - } - - // repeated .fira_message.Robot robots_yellow = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_robots_yellow())); - } else { - goto handle_unusual; - } - break; - } - - // repeated .fira_message.Robot robots_blue = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_robots_blue())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:fira_message.Frame) - return true; -failure: - // @@protoc_insertion_point(parse_failure:fira_message.Frame) - return false; -#undef DO_ -} - -void Frame::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:fira_message.Frame) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .fira_message.Ball ball = 1; - if (this->has_ball()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->_internal_ball(), output); - } - - // repeated .fira_message.Robot robots_yellow = 2; - for (unsigned int i = 0, - n = static_cast(this->robots_yellow_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, - this->robots_yellow(static_cast(i)), - output); - } - - // repeated .fira_message.Robot robots_blue = 3; - for (unsigned int i = 0, - n = static_cast(this->robots_blue_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, - this->robots_blue(static_cast(i)), - output); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); - } - // @@protoc_insertion_point(serialize_end:fira_message.Frame) -} - -::google::protobuf::uint8* Frame::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:fira_message.Frame) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .fira_message.Ball ball = 1; - if (this->has_ball()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, this->_internal_ball(), deterministic, target); - } - - // repeated .fira_message.Robot robots_yellow = 2; - for (unsigned int i = 0, - n = static_cast(this->robots_yellow_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, this->robots_yellow(static_cast(i)), deterministic, target); - } - - // repeated .fira_message.Robot robots_blue = 3; - for (unsigned int i = 0, - n = static_cast(this->robots_blue_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, this->robots_blue(static_cast(i)), deterministic, target); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:fira_message.Frame) - return target; -} - -size_t Frame::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:fira_message.Frame) - size_t total_size = 0; - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); - } - // repeated .fira_message.Robot robots_yellow = 2; - { - unsigned int count = static_cast(this->robots_yellow_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->robots_yellow(static_cast(i))); - } - } - - // repeated .fira_message.Robot robots_blue = 3; - { - unsigned int count = static_cast(this->robots_blue_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->robots_blue(static_cast(i))); - } - } - - // .fira_message.Ball ball = 1; - if (this->has_ball()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *ball_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Frame::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:fira_message.Frame) - GOOGLE_DCHECK_NE(&from, this); - const Frame* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:fira_message.Frame) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:fira_message.Frame) - MergeFrom(*source); - } -} - -void Frame::MergeFrom(const Frame& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:fira_message.Frame) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - robots_yellow_.MergeFrom(from.robots_yellow_); - robots_blue_.MergeFrom(from.robots_blue_); - if (from.has_ball()) { - mutable_ball()->::fira_message::Ball::MergeFrom(from.ball()); - } -} - -void Frame::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:fira_message.Frame) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Frame::CopyFrom(const Frame& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:fira_message.Frame) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Frame::IsInitialized() const { - return true; -} - -void Frame::Swap(Frame* other) { - if (other == this) return; - InternalSwap(other); -} -void Frame::InternalSwap(Frame* other) { - using std::swap; - CastToBase(&robots_yellow_)->InternalSwap(CastToBase(&other->robots_yellow_)); - CastToBase(&robots_blue_)->InternalSwap(CastToBase(&other->robots_blue_)); - swap(ball_, other->ball_); - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata Frame::GetMetadata() const { - protobuf_common_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_common_2eproto::file_level_metadata[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace fira_message -namespace google { -namespace protobuf { -template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::fira_message::Ball* Arena::CreateMaybeMessage< ::fira_message::Ball >(Arena* arena) { - return Arena::CreateInternal< ::fira_message::Ball >(arena); -} -template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::fira_message::Robot* Arena::CreateMaybeMessage< ::fira_message::Robot >(Arena* arena) { - return Arena::CreateInternal< ::fira_message::Robot >(arena); -} -template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::fira_message::Field* Arena::CreateMaybeMessage< ::fira_message::Field >(Arena* arena) { - return Arena::CreateInternal< ::fira_message::Field >(arena); -} -template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::fira_message::Frame* Arena::CreateMaybeMessage< ::fira_message::Frame >(Arena* arena) { - return Arena::CreateInternal< ::fira_message::Frame >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) diff --git a/include/common.pb.h b/include/common.pb.h deleted file mode 100644 index 252f71a..0000000 --- a/include/common.pb.h +++ /dev/null @@ -1,1005 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: common.proto - -#ifndef PROTOBUF_INCLUDED_common_2eproto -#define PROTOBUF_INCLUDED_common_2eproto - -#include - -#include - -#if GOOGLE_PROTOBUF_VERSION < 3006001 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -// @@protoc_insertion_point(includes) -#define PROTOBUF_INTERNAL_EXPORT_protobuf_common_2eproto - -namespace protobuf_common_2eproto { -// Internal implementation detail -- do not use these members. -struct TableStruct { - static const ::google::protobuf::internal::ParseTableField entries[]; - static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; - static const ::google::protobuf::internal::ParseTable schema[4]; - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors(); -} // namespace protobuf_common_2eproto -namespace fira_message { -class Ball; -class BallDefaultTypeInternal; -extern BallDefaultTypeInternal _Ball_default_instance_; -class Field; -class FieldDefaultTypeInternal; -extern FieldDefaultTypeInternal _Field_default_instance_; -class Frame; -class FrameDefaultTypeInternal; -extern FrameDefaultTypeInternal _Frame_default_instance_; -class Robot; -class RobotDefaultTypeInternal; -extern RobotDefaultTypeInternal _Robot_default_instance_; -} // namespace fira_message -namespace google { -namespace protobuf { -template<> ::fira_message::Ball* Arena::CreateMaybeMessage<::fira_message::Ball>(Arena*); -template<> ::fira_message::Field* Arena::CreateMaybeMessage<::fira_message::Field>(Arena*); -template<> ::fira_message::Frame* Arena::CreateMaybeMessage<::fira_message::Frame>(Arena*); -template<> ::fira_message::Robot* Arena::CreateMaybeMessage<::fira_message::Robot>(Arena*); -} // namespace protobuf -} // namespace google -namespace fira_message { - -// =================================================================== - -class Ball : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:fira_message.Ball) */ { - public: - Ball(); - virtual ~Ball(); - - Ball(const Ball& from); - - inline Ball& operator=(const Ball& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Ball(Ball&& from) noexcept - : Ball() { - *this = ::std::move(from); - } - - inline Ball& operator=(Ball&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const Ball& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Ball* internal_default_instance() { - return reinterpret_cast( - &_Ball_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(Ball* other); - friend void swap(Ball& a, Ball& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Ball* New() const final { - return CreateMaybeMessage(NULL); - } - - Ball* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const Ball& from); - void MergeFrom(const Ball& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Ball* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // double x = 1; - void clear_x(); - static const int kXFieldNumber = 1; - double x() const; - void set_x(double value); - - // double y = 2; - void clear_y(); - static const int kYFieldNumber = 2; - double y() const; - void set_y(double value); - - // double z = 3; - void clear_z(); - static const int kZFieldNumber = 3; - double z() const; - void set_z(double value); - - // double vx = 4; - void clear_vx(); - static const int kVxFieldNumber = 4; - double vx() const; - void set_vx(double value); - - // double vy = 5; - void clear_vy(); - static const int kVyFieldNumber = 5; - double vy() const; - void set_vy(double value); - - // double vz = 6; - void clear_vz(); - static const int kVzFieldNumber = 6; - double vz() const; - void set_vz(double value); - - // @@protoc_insertion_point(class_scope:fira_message.Ball) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - double x_; - double y_; - double z_; - double vx_; - double vy_; - double vz_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_common_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class Robot : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:fira_message.Robot) */ { - public: - Robot(); - virtual ~Robot(); - - Robot(const Robot& from); - - inline Robot& operator=(const Robot& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Robot(Robot&& from) noexcept - : Robot() { - *this = ::std::move(from); - } - - inline Robot& operator=(Robot&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const Robot& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Robot* internal_default_instance() { - return reinterpret_cast( - &_Robot_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void Swap(Robot* other); - friend void swap(Robot& a, Robot& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Robot* New() const final { - return CreateMaybeMessage(NULL); - } - - Robot* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const Robot& from); - void MergeFrom(const Robot& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Robot* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // double x = 2; - void clear_x(); - static const int kXFieldNumber = 2; - double x() const; - void set_x(double value); - - // double y = 3; - void clear_y(); - static const int kYFieldNumber = 3; - double y() const; - void set_y(double value); - - // double orientation = 4; - void clear_orientation(); - static const int kOrientationFieldNumber = 4; - double orientation() const; - void set_orientation(double value); - - // double vx = 5; - void clear_vx(); - static const int kVxFieldNumber = 5; - double vx() const; - void set_vx(double value); - - // double vy = 6; - void clear_vy(); - static const int kVyFieldNumber = 6; - double vy() const; - void set_vy(double value); - - // double vorientation = 7; - void clear_vorientation(); - static const int kVorientationFieldNumber = 7; - double vorientation() const; - void set_vorientation(double value); - - // uint32 robot_id = 1; - void clear_robot_id(); - static const int kRobotIdFieldNumber = 1; - ::google::protobuf::uint32 robot_id() const; - void set_robot_id(::google::protobuf::uint32 value); - - // @@protoc_insertion_point(class_scope:fira_message.Robot) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - double x_; - double y_; - double orientation_; - double vx_; - double vy_; - double vorientation_; - ::google::protobuf::uint32 robot_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_common_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class Field : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:fira_message.Field) */ { - public: - Field(); - virtual ~Field(); - - Field(const Field& from); - - inline Field& operator=(const Field& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Field(Field&& from) noexcept - : Field() { - *this = ::std::move(from); - } - - inline Field& operator=(Field&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const Field& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Field* internal_default_instance() { - return reinterpret_cast( - &_Field_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void Swap(Field* other); - friend void swap(Field& a, Field& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Field* New() const final { - return CreateMaybeMessage(NULL); - } - - Field* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const Field& from); - void MergeFrom(const Field& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Field* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // double width = 1; - void clear_width(); - static const int kWidthFieldNumber = 1; - double width() const; - void set_width(double value); - - // double length = 2; - void clear_length(); - static const int kLengthFieldNumber = 2; - double length() const; - void set_length(double value); - - // double goal_width = 3; - void clear_goal_width(); - static const int kGoalWidthFieldNumber = 3; - double goal_width() const; - void set_goal_width(double value); - - // double goal_depth = 4; - void clear_goal_depth(); - static const int kGoalDepthFieldNumber = 4; - double goal_depth() const; - void set_goal_depth(double value); - - // @@protoc_insertion_point(class_scope:fira_message.Field) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - double width_; - double length_; - double goal_width_; - double goal_depth_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_common_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class Frame : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:fira_message.Frame) */ { - public: - Frame(); - virtual ~Frame(); - - Frame(const Frame& from); - - inline Frame& operator=(const Frame& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Frame(Frame&& from) noexcept - : Frame() { - *this = ::std::move(from); - } - - inline Frame& operator=(Frame&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const Frame& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Frame* internal_default_instance() { - return reinterpret_cast( - &_Frame_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void Swap(Frame* other); - friend void swap(Frame& a, Frame& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Frame* New() const final { - return CreateMaybeMessage(NULL); - } - - Frame* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const Frame& from); - void MergeFrom(const Frame& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Frame* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated .fira_message.Robot robots_yellow = 2; - int robots_yellow_size() const; - void clear_robots_yellow(); - static const int kRobotsYellowFieldNumber = 2; - ::fira_message::Robot* mutable_robots_yellow(int index); - ::google::protobuf::RepeatedPtrField< ::fira_message::Robot >* - mutable_robots_yellow(); - const ::fira_message::Robot& robots_yellow(int index) const; - ::fira_message::Robot* add_robots_yellow(); - const ::google::protobuf::RepeatedPtrField< ::fira_message::Robot >& - robots_yellow() const; - - // repeated .fira_message.Robot robots_blue = 3; - int robots_blue_size() const; - void clear_robots_blue(); - static const int kRobotsBlueFieldNumber = 3; - ::fira_message::Robot* mutable_robots_blue(int index); - ::google::protobuf::RepeatedPtrField< ::fira_message::Robot >* - mutable_robots_blue(); - const ::fira_message::Robot& robots_blue(int index) const; - ::fira_message::Robot* add_robots_blue(); - const ::google::protobuf::RepeatedPtrField< ::fira_message::Robot >& - robots_blue() const; - - // .fira_message.Ball ball = 1; - bool has_ball() const; - void clear_ball(); - static const int kBallFieldNumber = 1; - private: - const ::fira_message::Ball& _internal_ball() const; - public: - const ::fira_message::Ball& ball() const; - ::fira_message::Ball* release_ball(); - ::fira_message::Ball* mutable_ball(); - void set_allocated_ball(::fira_message::Ball* ball); - - // @@protoc_insertion_point(class_scope:fira_message.Frame) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::fira_message::Robot > robots_yellow_; - ::google::protobuf::RepeatedPtrField< ::fira_message::Robot > robots_blue_; - ::fira_message::Ball* ball_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_common_2eproto::TableStruct; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// Ball - -// double x = 1; -inline void Ball::clear_x() { - x_ = 0; -} -inline double Ball::x() const { - // @@protoc_insertion_point(field_get:fira_message.Ball.x) - return x_; -} -inline void Ball::set_x(double value) { - - x_ = value; - // @@protoc_insertion_point(field_set:fira_message.Ball.x) -} - -// double y = 2; -inline void Ball::clear_y() { - y_ = 0; -} -inline double Ball::y() const { - // @@protoc_insertion_point(field_get:fira_message.Ball.y) - return y_; -} -inline void Ball::set_y(double value) { - - y_ = value; - // @@protoc_insertion_point(field_set:fira_message.Ball.y) -} - -// double z = 3; -inline void Ball::clear_z() { - z_ = 0; -} -inline double Ball::z() const { - // @@protoc_insertion_point(field_get:fira_message.Ball.z) - return z_; -} -inline void Ball::set_z(double value) { - - z_ = value; - // @@protoc_insertion_point(field_set:fira_message.Ball.z) -} - -// double vx = 4; -inline void Ball::clear_vx() { - vx_ = 0; -} -inline double Ball::vx() const { - // @@protoc_insertion_point(field_get:fira_message.Ball.vx) - return vx_; -} -inline void Ball::set_vx(double value) { - - vx_ = value; - // @@protoc_insertion_point(field_set:fira_message.Ball.vx) -} - -// double vy = 5; -inline void Ball::clear_vy() { - vy_ = 0; -} -inline double Ball::vy() const { - // @@protoc_insertion_point(field_get:fira_message.Ball.vy) - return vy_; -} -inline void Ball::set_vy(double value) { - - vy_ = value; - // @@protoc_insertion_point(field_set:fira_message.Ball.vy) -} - -// double vz = 6; -inline void Ball::clear_vz() { - vz_ = 0; -} -inline double Ball::vz() const { - // @@protoc_insertion_point(field_get:fira_message.Ball.vz) - return vz_; -} -inline void Ball::set_vz(double value) { - - vz_ = value; - // @@protoc_insertion_point(field_set:fira_message.Ball.vz) -} - -// ------------------------------------------------------------------- - -// Robot - -// uint32 robot_id = 1; -inline void Robot::clear_robot_id() { - robot_id_ = 0u; -} -inline ::google::protobuf::uint32 Robot::robot_id() const { - // @@protoc_insertion_point(field_get:fira_message.Robot.robot_id) - return robot_id_; -} -inline void Robot::set_robot_id(::google::protobuf::uint32 value) { - - robot_id_ = value; - // @@protoc_insertion_point(field_set:fira_message.Robot.robot_id) -} - -// double x = 2; -inline void Robot::clear_x() { - x_ = 0; -} -inline double Robot::x() const { - // @@protoc_insertion_point(field_get:fira_message.Robot.x) - return x_; -} -inline void Robot::set_x(double value) { - - x_ = value; - // @@protoc_insertion_point(field_set:fira_message.Robot.x) -} - -// double y = 3; -inline void Robot::clear_y() { - y_ = 0; -} -inline double Robot::y() const { - // @@protoc_insertion_point(field_get:fira_message.Robot.y) - return y_; -} -inline void Robot::set_y(double value) { - - y_ = value; - // @@protoc_insertion_point(field_set:fira_message.Robot.y) -} - -// double orientation = 4; -inline void Robot::clear_orientation() { - orientation_ = 0; -} -inline double Robot::orientation() const { - // @@protoc_insertion_point(field_get:fira_message.Robot.orientation) - return orientation_; -} -inline void Robot::set_orientation(double value) { - - orientation_ = value; - // @@protoc_insertion_point(field_set:fira_message.Robot.orientation) -} - -// double vx = 5; -inline void Robot::clear_vx() { - vx_ = 0; -} -inline double Robot::vx() const { - // @@protoc_insertion_point(field_get:fira_message.Robot.vx) - return vx_; -} -inline void Robot::set_vx(double value) { - - vx_ = value; - // @@protoc_insertion_point(field_set:fira_message.Robot.vx) -} - -// double vy = 6; -inline void Robot::clear_vy() { - vy_ = 0; -} -inline double Robot::vy() const { - // @@protoc_insertion_point(field_get:fira_message.Robot.vy) - return vy_; -} -inline void Robot::set_vy(double value) { - - vy_ = value; - // @@protoc_insertion_point(field_set:fira_message.Robot.vy) -} - -// double vorientation = 7; -inline void Robot::clear_vorientation() { - vorientation_ = 0; -} -inline double Robot::vorientation() const { - // @@protoc_insertion_point(field_get:fira_message.Robot.vorientation) - return vorientation_; -} -inline void Robot::set_vorientation(double value) { - - vorientation_ = value; - // @@protoc_insertion_point(field_set:fira_message.Robot.vorientation) -} - -// ------------------------------------------------------------------- - -// Field - -// double width = 1; -inline void Field::clear_width() { - width_ = 0; -} -inline double Field::width() const { - // @@protoc_insertion_point(field_get:fira_message.Field.width) - return width_; -} -inline void Field::set_width(double value) { - - width_ = value; - // @@protoc_insertion_point(field_set:fira_message.Field.width) -} - -// double length = 2; -inline void Field::clear_length() { - length_ = 0; -} -inline double Field::length() const { - // @@protoc_insertion_point(field_get:fira_message.Field.length) - return length_; -} -inline void Field::set_length(double value) { - - length_ = value; - // @@protoc_insertion_point(field_set:fira_message.Field.length) -} - -// double goal_width = 3; -inline void Field::clear_goal_width() { - goal_width_ = 0; -} -inline double Field::goal_width() const { - // @@protoc_insertion_point(field_get:fira_message.Field.goal_width) - return goal_width_; -} -inline void Field::set_goal_width(double value) { - - goal_width_ = value; - // @@protoc_insertion_point(field_set:fira_message.Field.goal_width) -} - -// double goal_depth = 4; -inline void Field::clear_goal_depth() { - goal_depth_ = 0; -} -inline double Field::goal_depth() const { - // @@protoc_insertion_point(field_get:fira_message.Field.goal_depth) - return goal_depth_; -} -inline void Field::set_goal_depth(double value) { - - goal_depth_ = value; - // @@protoc_insertion_point(field_set:fira_message.Field.goal_depth) -} - -// ------------------------------------------------------------------- - -// Frame - -// .fira_message.Ball ball = 1; -inline bool Frame::has_ball() const { - return this != internal_default_instance() && ball_ != NULL; -} -inline void Frame::clear_ball() { - if (GetArenaNoVirtual() == NULL && ball_ != NULL) { - delete ball_; - } - ball_ = NULL; -} -inline const ::fira_message::Ball& Frame::_internal_ball() const { - return *ball_; -} -inline const ::fira_message::Ball& Frame::ball() const { - const ::fira_message::Ball* p = ball_; - // @@protoc_insertion_point(field_get:fira_message.Frame.ball) - return p != NULL ? *p : *reinterpret_cast( - &::fira_message::_Ball_default_instance_); -} -inline ::fira_message::Ball* Frame::release_ball() { - // @@protoc_insertion_point(field_release:fira_message.Frame.ball) - - ::fira_message::Ball* temp = ball_; - ball_ = NULL; - return temp; -} -inline ::fira_message::Ball* Frame::mutable_ball() { - - if (ball_ == NULL) { - auto* p = CreateMaybeMessage<::fira_message::Ball>(GetArenaNoVirtual()); - ball_ = p; - } - // @@protoc_insertion_point(field_mutable:fira_message.Frame.ball) - return ball_; -} -inline void Frame::set_allocated_ball(::fira_message::Ball* ball) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete ball_; - } - if (ball) { - ::google::protobuf::Arena* submessage_arena = NULL; - if (message_arena != submessage_arena) { - ball = ::google::protobuf::internal::GetOwnedMessage( - message_arena, ball, submessage_arena); - } - - } else { - - } - ball_ = ball; - // @@protoc_insertion_point(field_set_allocated:fira_message.Frame.ball) -} - -// repeated .fira_message.Robot robots_yellow = 2; -inline int Frame::robots_yellow_size() const { - return robots_yellow_.size(); -} -inline void Frame::clear_robots_yellow() { - robots_yellow_.Clear(); -} -inline ::fira_message::Robot* Frame::mutable_robots_yellow(int index) { - // @@protoc_insertion_point(field_mutable:fira_message.Frame.robots_yellow) - return robots_yellow_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::fira_message::Robot >* -Frame::mutable_robots_yellow() { - // @@protoc_insertion_point(field_mutable_list:fira_message.Frame.robots_yellow) - return &robots_yellow_; -} -inline const ::fira_message::Robot& Frame::robots_yellow(int index) const { - // @@protoc_insertion_point(field_get:fira_message.Frame.robots_yellow) - return robots_yellow_.Get(index); -} -inline ::fira_message::Robot* Frame::add_robots_yellow() { - // @@protoc_insertion_point(field_add:fira_message.Frame.robots_yellow) - return robots_yellow_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::fira_message::Robot >& -Frame::robots_yellow() const { - // @@protoc_insertion_point(field_list:fira_message.Frame.robots_yellow) - return robots_yellow_; -} - -// repeated .fira_message.Robot robots_blue = 3; -inline int Frame::robots_blue_size() const { - return robots_blue_.size(); -} -inline void Frame::clear_robots_blue() { - robots_blue_.Clear(); -} -inline ::fira_message::Robot* Frame::mutable_robots_blue(int index) { - // @@protoc_insertion_point(field_mutable:fira_message.Frame.robots_blue) - return robots_blue_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::fira_message::Robot >* -Frame::mutable_robots_blue() { - // @@protoc_insertion_point(field_mutable_list:fira_message.Frame.robots_blue) - return &robots_blue_; -} -inline const ::fira_message::Robot& Frame::robots_blue(int index) const { - // @@protoc_insertion_point(field_get:fira_message.Frame.robots_blue) - return robots_blue_.Get(index); -} -inline ::fira_message::Robot* Frame::add_robots_blue() { - // @@protoc_insertion_point(field_add:fira_message.Frame.robots_blue) - return robots_blue_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::fira_message::Robot >& -Frame::robots_blue() const { - // @@protoc_insertion_point(field_list:fira_message.Frame.robots_blue) - return robots_blue_; -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace fira_message - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_INCLUDED_common_2eproto diff --git a/include/packet.pb.cc b/include/packet.pb.cc deleted file mode 100644 index e4a1efb..0000000 --- a/include/packet.pb.cc +++ /dev/null @@ -1,894 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: packet.proto - -#include "packet.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// This is a temporary google only hack -#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS -#include "third_party/protobuf/version.h" -#endif -// @@protoc_insertion_point(includes) - -namespace protobuf_command_2eproto { -extern PROTOBUF_INTERNAL_EXPORT_protobuf_command_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Commands; -} // namespace protobuf_command_2eproto -namespace protobuf_common_2eproto { -extern PROTOBUF_INTERNAL_EXPORT_protobuf_common_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Field; -extern PROTOBUF_INTERNAL_EXPORT_protobuf_common_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_Frame; -} // namespace protobuf_common_2eproto -namespace protobuf_replacement_2eproto { -extern PROTOBUF_INTERNAL_EXPORT_protobuf_replacement_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_Replacement; -} // namespace protobuf_replacement_2eproto -namespace fira_message { -namespace sim_to_ref { -class PacketDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed - _instance; -} _Packet_default_instance_; -class EnvironmentDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed - _instance; -} _Environment_default_instance_; -} // namespace sim_to_ref -} // namespace fira_message -namespace protobuf_packet_2eproto { -static void InitDefaultsPacket() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::fira_message::sim_to_ref::_Packet_default_instance_; - new (ptr) ::fira_message::sim_to_ref::Packet(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::fira_message::sim_to_ref::Packet::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_Packet = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsPacket}, { - &protobuf_command_2eproto::scc_info_Commands.base, - &protobuf_replacement_2eproto::scc_info_Replacement.base,}}; - -static void InitDefaultsEnvironment() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::fira_message::sim_to_ref::_Environment_default_instance_; - new (ptr) ::fira_message::sim_to_ref::Environment(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::fira_message::sim_to_ref::Environment::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_Environment = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsEnvironment}, { - &protobuf_common_2eproto::scc_info_Frame.base, - &protobuf_common_2eproto::scc_info_Field.base,}}; - -void InitDefaults() { - ::google::protobuf::internal::InitSCC(&scc_info_Packet.base); - ::google::protobuf::internal::InitSCC(&scc_info_Environment.base); -} - -::google::protobuf::Metadata file_level_metadata[2]; - -const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::fira_message::sim_to_ref::Packet, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::fira_message::sim_to_ref::Packet, cmd_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::fira_message::sim_to_ref::Packet, replace_), - ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::fira_message::sim_to_ref::Environment, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::fira_message::sim_to_ref::Environment, step_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::fira_message::sim_to_ref::Environment, frame_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::fira_message::sim_to_ref::Environment, field_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::fira_message::sim_to_ref::Environment, goals_blue_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::fira_message::sim_to_ref::Environment, goals_yellow_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::fira_message::sim_to_ref::Packet)}, - { 7, -1, sizeof(::fira_message::sim_to_ref::Environment)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::fira_message::sim_to_ref::_Packet_default_instance_), - reinterpret_cast(&::fira_message::sim_to_ref::_Environment_default_instance_), -}; - -void protobuf_AssignDescriptors() { - AddDescriptors(); - AssignDescriptors( - "packet.proto", schemas, file_default_instances, TableStruct::offsets, - file_level_metadata, NULL, NULL); -} - -void protobuf_AssignDescriptorsOnce() { - static ::google::protobuf::internal::once_flag once; - ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors); -} - -void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; -void protobuf_RegisterTypes(const ::std::string&) { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 2); -} - -void AddDescriptorsImpl() { - InitDefaults(); - static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - "\n\014packet.proto\022\027fira_message.sim_to_ref\032" - "\rcommand.proto\032\021replacement.proto\032\014commo" - "n.proto\"o\n\006Packet\022.\n\003cmd\030\001 \001(\0132!.fira_me" - "ssage.sim_to_ref.Commands\0225\n\007replace\030\002 \001" - "(\0132$.fira_message.sim_to_ref.Replacement" - "\"\215\001\n\013Environment\022\014\n\004step\030\001 \001(\r\022\"\n\005frame\030" - "\002 \001(\0132\023.fira_message.Frame\022\"\n\005field\030\003 \001(" - "\0132\023.fira_message.Field\022\022\n\ngoals_blue\030\004 \001" - "(\r\022\024\n\014goals_yellow\030\005 \001(\r2_\n\010Simulate\022S\n\010" - "Simulate\022\037.fira_message.sim_to_ref.Packe" - "t\032$.fira_message.sim_to_ref.Environment\"" - "\000b\006proto3" - }; - ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( - descriptor, 449); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( - "packet.proto", &protobuf_RegisterTypes); - ::protobuf_command_2eproto::AddDescriptors(); - ::protobuf_replacement_2eproto::AddDescriptors(); - ::protobuf_common_2eproto::AddDescriptors(); -} - -void AddDescriptors() { - static ::google::protobuf::internal::once_flag once; - ::google::protobuf::internal::call_once(once, AddDescriptorsImpl); -} -// Force AddDescriptors() to be called at dynamic initialization time. -struct StaticDescriptorInitializer { - StaticDescriptorInitializer() { - AddDescriptors(); - } -} static_descriptor_initializer; -} // namespace protobuf_packet_2eproto -namespace fira_message { -namespace sim_to_ref { - -// =================================================================== - -void Packet::InitAsDefaultInstance() { - ::fira_message::sim_to_ref::_Packet_default_instance_._instance.get_mutable()->cmd_ = const_cast< ::fira_message::sim_to_ref::Commands*>( - ::fira_message::sim_to_ref::Commands::internal_default_instance()); - ::fira_message::sim_to_ref::_Packet_default_instance_._instance.get_mutable()->replace_ = const_cast< ::fira_message::sim_to_ref::Replacement*>( - ::fira_message::sim_to_ref::Replacement::internal_default_instance()); -} -void Packet::clear_cmd() { - if (GetArenaNoVirtual() == NULL && cmd_ != NULL) { - delete cmd_; - } - cmd_ = NULL; -} -void Packet::clear_replace() { - if (GetArenaNoVirtual() == NULL && replace_ != NULL) { - delete replace_; - } - replace_ = NULL; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Packet::kCmdFieldNumber; -const int Packet::kReplaceFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Packet::Packet() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - ::google::protobuf::internal::InitSCC( - &protobuf_packet_2eproto::scc_info_Packet.base); - SharedCtor(); - // @@protoc_insertion_point(constructor:fira_message.sim_to_ref.Packet) -} -Packet::Packet(const Packet& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_cmd()) { - cmd_ = new ::fira_message::sim_to_ref::Commands(*from.cmd_); - } else { - cmd_ = NULL; - } - if (from.has_replace()) { - replace_ = new ::fira_message::sim_to_ref::Replacement(*from.replace_); - } else { - replace_ = NULL; - } - // @@protoc_insertion_point(copy_constructor:fira_message.sim_to_ref.Packet) -} - -void Packet::SharedCtor() { - ::memset(&cmd_, 0, static_cast( - reinterpret_cast(&replace_) - - reinterpret_cast(&cmd_)) + sizeof(replace_)); -} - -Packet::~Packet() { - // @@protoc_insertion_point(destructor:fira_message.sim_to_ref.Packet) - SharedDtor(); -} - -void Packet::SharedDtor() { - if (this != internal_default_instance()) delete cmd_; - if (this != internal_default_instance()) delete replace_; -} - -void Packet::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ::google::protobuf::Descriptor* Packet::descriptor() { - ::protobuf_packet_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_packet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; -} - -const Packet& Packet::default_instance() { - ::google::protobuf::internal::InitSCC(&protobuf_packet_2eproto::scc_info_Packet.base); - return *internal_default_instance(); -} - - -void Packet::Clear() { -// @@protoc_insertion_point(message_clear_start:fira_message.sim_to_ref.Packet) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == NULL && cmd_ != NULL) { - delete cmd_; - } - cmd_ = NULL; - if (GetArenaNoVirtual() == NULL && replace_ != NULL) { - delete replace_; - } - replace_ = NULL; - _internal_metadata_.Clear(); -} - -bool Packet::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:fira_message.sim_to_ref.Packet) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .fira_message.sim_to_ref.Commands cmd = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_cmd())); - } else { - goto handle_unusual; - } - break; - } - - // .fira_message.sim_to_ref.Replacement replace = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_replace())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:fira_message.sim_to_ref.Packet) - return true; -failure: - // @@protoc_insertion_point(parse_failure:fira_message.sim_to_ref.Packet) - return false; -#undef DO_ -} - -void Packet::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:fira_message.sim_to_ref.Packet) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .fira_message.sim_to_ref.Commands cmd = 1; - if (this->has_cmd()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->_internal_cmd(), output); - } - - // .fira_message.sim_to_ref.Replacement replace = 2; - if (this->has_replace()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->_internal_replace(), output); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); - } - // @@protoc_insertion_point(serialize_end:fira_message.sim_to_ref.Packet) -} - -::google::protobuf::uint8* Packet::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:fira_message.sim_to_ref.Packet) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .fira_message.sim_to_ref.Commands cmd = 1; - if (this->has_cmd()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, this->_internal_cmd(), deterministic, target); - } - - // .fira_message.sim_to_ref.Replacement replace = 2; - if (this->has_replace()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, this->_internal_replace(), deterministic, target); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:fira_message.sim_to_ref.Packet) - return target; -} - -size_t Packet::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:fira_message.sim_to_ref.Packet) - size_t total_size = 0; - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); - } - // .fira_message.sim_to_ref.Commands cmd = 1; - if (this->has_cmd()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *cmd_); - } - - // .fira_message.sim_to_ref.Replacement replace = 2; - if (this->has_replace()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *replace_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Packet::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:fira_message.sim_to_ref.Packet) - GOOGLE_DCHECK_NE(&from, this); - const Packet* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:fira_message.sim_to_ref.Packet) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:fira_message.sim_to_ref.Packet) - MergeFrom(*source); - } -} - -void Packet::MergeFrom(const Packet& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:fira_message.sim_to_ref.Packet) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_cmd()) { - mutable_cmd()->::fira_message::sim_to_ref::Commands::MergeFrom(from.cmd()); - } - if (from.has_replace()) { - mutable_replace()->::fira_message::sim_to_ref::Replacement::MergeFrom(from.replace()); - } -} - -void Packet::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:fira_message.sim_to_ref.Packet) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Packet::CopyFrom(const Packet& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:fira_message.sim_to_ref.Packet) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Packet::IsInitialized() const { - return true; -} - -void Packet::Swap(Packet* other) { - if (other == this) return; - InternalSwap(other); -} -void Packet::InternalSwap(Packet* other) { - using std::swap; - swap(cmd_, other->cmd_); - swap(replace_, other->replace_); - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata Packet::GetMetadata() const { - protobuf_packet_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_packet_2eproto::file_level_metadata[kIndexInFileMessages]; -} - - -// =================================================================== - -void Environment::InitAsDefaultInstance() { - ::fira_message::sim_to_ref::_Environment_default_instance_._instance.get_mutable()->frame_ = const_cast< ::fira_message::Frame*>( - ::fira_message::Frame::internal_default_instance()); - ::fira_message::sim_to_ref::_Environment_default_instance_._instance.get_mutable()->field_ = const_cast< ::fira_message::Field*>( - ::fira_message::Field::internal_default_instance()); -} -void Environment::clear_frame() { - if (GetArenaNoVirtual() == NULL && frame_ != NULL) { - delete frame_; - } - frame_ = NULL; -} -void Environment::clear_field() { - if (GetArenaNoVirtual() == NULL && field_ != NULL) { - delete field_; - } - field_ = NULL; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Environment::kStepFieldNumber; -const int Environment::kFrameFieldNumber; -const int Environment::kFieldFieldNumber; -const int Environment::kGoalsBlueFieldNumber; -const int Environment::kGoalsYellowFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Environment::Environment() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - ::google::protobuf::internal::InitSCC( - &protobuf_packet_2eproto::scc_info_Environment.base); - SharedCtor(); - // @@protoc_insertion_point(constructor:fira_message.sim_to_ref.Environment) -} -Environment::Environment(const Environment& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_frame()) { - frame_ = new ::fira_message::Frame(*from.frame_); - } else { - frame_ = NULL; - } - if (from.has_field()) { - field_ = new ::fira_message::Field(*from.field_); - } else { - field_ = NULL; - } - ::memcpy(&step_, &from.step_, - static_cast(reinterpret_cast(&goals_yellow_) - - reinterpret_cast(&step_)) + sizeof(goals_yellow_)); - // @@protoc_insertion_point(copy_constructor:fira_message.sim_to_ref.Environment) -} - -void Environment::SharedCtor() { - ::memset(&frame_, 0, static_cast( - reinterpret_cast(&goals_yellow_) - - reinterpret_cast(&frame_)) + sizeof(goals_yellow_)); -} - -Environment::~Environment() { - // @@protoc_insertion_point(destructor:fira_message.sim_to_ref.Environment) - SharedDtor(); -} - -void Environment::SharedDtor() { - if (this != internal_default_instance()) delete frame_; - if (this != internal_default_instance()) delete field_; -} - -void Environment::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ::google::protobuf::Descriptor* Environment::descriptor() { - ::protobuf_packet_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_packet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; -} - -const Environment& Environment::default_instance() { - ::google::protobuf::internal::InitSCC(&protobuf_packet_2eproto::scc_info_Environment.base); - return *internal_default_instance(); -} - - -void Environment::Clear() { -// @@protoc_insertion_point(message_clear_start:fira_message.sim_to_ref.Environment) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == NULL && frame_ != NULL) { - delete frame_; - } - frame_ = NULL; - if (GetArenaNoVirtual() == NULL && field_ != NULL) { - delete field_; - } - field_ = NULL; - ::memset(&step_, 0, static_cast( - reinterpret_cast(&goals_yellow_) - - reinterpret_cast(&step_)) + sizeof(goals_yellow_)); - _internal_metadata_.Clear(); -} - -bool Environment::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:fira_message.sim_to_ref.Environment) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // uint32 step = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &step_))); - } else { - goto handle_unusual; - } - break; - } - - // .fira_message.Frame frame = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_frame())); - } else { - goto handle_unusual; - } - break; - } - - // .fira_message.Field field = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_field())); - } else { - goto handle_unusual; - } - break; - } - - // uint32 goals_blue = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &goals_blue_))); - } else { - goto handle_unusual; - } - break; - } - - // uint32 goals_yellow = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &goals_yellow_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:fira_message.sim_to_ref.Environment) - return true; -failure: - // @@protoc_insertion_point(parse_failure:fira_message.sim_to_ref.Environment) - return false; -#undef DO_ -} - -void Environment::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:fira_message.sim_to_ref.Environment) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // uint32 step = 1; - if (this->step() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->step(), output); - } - - // .fira_message.Frame frame = 2; - if (this->has_frame()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->_internal_frame(), output); - } - - // .fira_message.Field field = 3; - if (this->has_field()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->_internal_field(), output); - } - - // uint32 goals_blue = 4; - if (this->goals_blue() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->goals_blue(), output); - } - - // uint32 goals_yellow = 5; - if (this->goals_yellow() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->goals_yellow(), output); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); - } - // @@protoc_insertion_point(serialize_end:fira_message.sim_to_ref.Environment) -} - -::google::protobuf::uint8* Environment::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:fira_message.sim_to_ref.Environment) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // uint32 step = 1; - if (this->step() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->step(), target); - } - - // .fira_message.Frame frame = 2; - if (this->has_frame()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, this->_internal_frame(), deterministic, target); - } - - // .fira_message.Field field = 3; - if (this->has_field()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, this->_internal_field(), deterministic, target); - } - - // uint32 goals_blue = 4; - if (this->goals_blue() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->goals_blue(), target); - } - - // uint32 goals_yellow = 5; - if (this->goals_yellow() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->goals_yellow(), target); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:fira_message.sim_to_ref.Environment) - return target; -} - -size_t Environment::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:fira_message.sim_to_ref.Environment) - size_t total_size = 0; - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); - } - // .fira_message.Frame frame = 2; - if (this->has_frame()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *frame_); - } - - // .fira_message.Field field = 3; - if (this->has_field()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *field_); - } - - // uint32 step = 1; - if (this->step() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->step()); - } - - // uint32 goals_blue = 4; - if (this->goals_blue() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->goals_blue()); - } - - // uint32 goals_yellow = 5; - if (this->goals_yellow() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->goals_yellow()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Environment::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:fira_message.sim_to_ref.Environment) - GOOGLE_DCHECK_NE(&from, this); - const Environment* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:fira_message.sim_to_ref.Environment) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:fira_message.sim_to_ref.Environment) - MergeFrom(*source); - } -} - -void Environment::MergeFrom(const Environment& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:fira_message.sim_to_ref.Environment) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_frame()) { - mutable_frame()->::fira_message::Frame::MergeFrom(from.frame()); - } - if (from.has_field()) { - mutable_field()->::fira_message::Field::MergeFrom(from.field()); - } - if (from.step() != 0) { - set_step(from.step()); - } - if (from.goals_blue() != 0) { - set_goals_blue(from.goals_blue()); - } - if (from.goals_yellow() != 0) { - set_goals_yellow(from.goals_yellow()); - } -} - -void Environment::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:fira_message.sim_to_ref.Environment) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Environment::CopyFrom(const Environment& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:fira_message.sim_to_ref.Environment) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Environment::IsInitialized() const { - return true; -} - -void Environment::Swap(Environment* other) { - if (other == this) return; - InternalSwap(other); -} -void Environment::InternalSwap(Environment* other) { - using std::swap; - swap(frame_, other->frame_); - swap(field_, other->field_); - swap(step_, other->step_); - swap(goals_blue_, other->goals_blue_); - swap(goals_yellow_, other->goals_yellow_); - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata Environment::GetMetadata() const { - protobuf_packet_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_packet_2eproto::file_level_metadata[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace sim_to_ref -} // namespace fira_message -namespace google { -namespace protobuf { -template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::fira_message::sim_to_ref::Packet* Arena::CreateMaybeMessage< ::fira_message::sim_to_ref::Packet >(Arena* arena) { - return Arena::CreateInternal< ::fira_message::sim_to_ref::Packet >(arena); -} -template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::fira_message::sim_to_ref::Environment* Arena::CreateMaybeMessage< ::fira_message::sim_to_ref::Environment >(Arena* arena) { - return Arena::CreateInternal< ::fira_message::sim_to_ref::Environment >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) diff --git a/include/packet.pb.h b/include/packet.pb.h deleted file mode 100644 index 050148f..0000000 --- a/include/packet.pb.h +++ /dev/null @@ -1,597 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: packet.proto - -#ifndef PROTOBUF_INCLUDED_packet_2eproto -#define PROTOBUF_INCLUDED_packet_2eproto - -#include - -#include - -#if GOOGLE_PROTOBUF_VERSION < 3006001 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include "command.pb.h" -#include "replacement.pb.h" -#include "common.pb.h" -// @@protoc_insertion_point(includes) -#define PROTOBUF_INTERNAL_EXPORT_protobuf_packet_2eproto - -namespace protobuf_packet_2eproto { -// Internal implementation detail -- do not use these members. -struct TableStruct { - static const ::google::protobuf::internal::ParseTableField entries[]; - static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; - static const ::google::protobuf::internal::ParseTable schema[2]; - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors(); -} // namespace protobuf_packet_2eproto -namespace fira_message { -namespace sim_to_ref { -class Environment; -class EnvironmentDefaultTypeInternal; -extern EnvironmentDefaultTypeInternal _Environment_default_instance_; -class Packet; -class PacketDefaultTypeInternal; -extern PacketDefaultTypeInternal _Packet_default_instance_; -} // namespace sim_to_ref -} // namespace fira_message -namespace google { -namespace protobuf { -template<> ::fira_message::sim_to_ref::Environment* Arena::CreateMaybeMessage<::fira_message::sim_to_ref::Environment>(Arena*); -template<> ::fira_message::sim_to_ref::Packet* Arena::CreateMaybeMessage<::fira_message::sim_to_ref::Packet>(Arena*); -} // namespace protobuf -} // namespace google -namespace fira_message { -namespace sim_to_ref { - -// =================================================================== - -class Packet : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:fira_message.sim_to_ref.Packet) */ { - public: - Packet(); - virtual ~Packet(); - - Packet(const Packet& from); - - inline Packet& operator=(const Packet& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Packet(Packet&& from) noexcept - : Packet() { - *this = ::std::move(from); - } - - inline Packet& operator=(Packet&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const Packet& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Packet* internal_default_instance() { - return reinterpret_cast( - &_Packet_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(Packet* other); - friend void swap(Packet& a, Packet& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Packet* New() const final { - return CreateMaybeMessage(NULL); - } - - Packet* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const Packet& from); - void MergeFrom(const Packet& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Packet* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // .fira_message.sim_to_ref.Commands cmd = 1; - bool has_cmd() const; - void clear_cmd(); - static const int kCmdFieldNumber = 1; - private: - const ::fira_message::sim_to_ref::Commands& _internal_cmd() const; - public: - const ::fira_message::sim_to_ref::Commands& cmd() const; - ::fira_message::sim_to_ref::Commands* release_cmd(); - ::fira_message::sim_to_ref::Commands* mutable_cmd(); - void set_allocated_cmd(::fira_message::sim_to_ref::Commands* cmd); - - // .fira_message.sim_to_ref.Replacement replace = 2; - bool has_replace() const; - void clear_replace(); - static const int kReplaceFieldNumber = 2; - private: - const ::fira_message::sim_to_ref::Replacement& _internal_replace() const; - public: - const ::fira_message::sim_to_ref::Replacement& replace() const; - ::fira_message::sim_to_ref::Replacement* release_replace(); - ::fira_message::sim_to_ref::Replacement* mutable_replace(); - void set_allocated_replace(::fira_message::sim_to_ref::Replacement* replace); - - // @@protoc_insertion_point(class_scope:fira_message.sim_to_ref.Packet) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::fira_message::sim_to_ref::Commands* cmd_; - ::fira_message::sim_to_ref::Replacement* replace_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_packet_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class Environment : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:fira_message.sim_to_ref.Environment) */ { - public: - Environment(); - virtual ~Environment(); - - Environment(const Environment& from); - - inline Environment& operator=(const Environment& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Environment(Environment&& from) noexcept - : Environment() { - *this = ::std::move(from); - } - - inline Environment& operator=(Environment&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const Environment& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Environment* internal_default_instance() { - return reinterpret_cast( - &_Environment_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void Swap(Environment* other); - friend void swap(Environment& a, Environment& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Environment* New() const final { - return CreateMaybeMessage(NULL); - } - - Environment* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const Environment& from); - void MergeFrom(const Environment& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Environment* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // .fira_message.Frame frame = 2; - bool has_frame() const; - void clear_frame(); - static const int kFrameFieldNumber = 2; - private: - const ::fira_message::Frame& _internal_frame() const; - public: - const ::fira_message::Frame& frame() const; - ::fira_message::Frame* release_frame(); - ::fira_message::Frame* mutable_frame(); - void set_allocated_frame(::fira_message::Frame* frame); - - // .fira_message.Field field = 3; - bool has_field() const; - void clear_field(); - static const int kFieldFieldNumber = 3; - private: - const ::fira_message::Field& _internal_field() const; - public: - const ::fira_message::Field& field() const; - ::fira_message::Field* release_field(); - ::fira_message::Field* mutable_field(); - void set_allocated_field(::fira_message::Field* field); - - // uint32 step = 1; - void clear_step(); - static const int kStepFieldNumber = 1; - ::google::protobuf::uint32 step() const; - void set_step(::google::protobuf::uint32 value); - - // uint32 goals_blue = 4; - void clear_goals_blue(); - static const int kGoalsBlueFieldNumber = 4; - ::google::protobuf::uint32 goals_blue() const; - void set_goals_blue(::google::protobuf::uint32 value); - - // uint32 goals_yellow = 5; - void clear_goals_yellow(); - static const int kGoalsYellowFieldNumber = 5; - ::google::protobuf::uint32 goals_yellow() const; - void set_goals_yellow(::google::protobuf::uint32 value); - - // @@protoc_insertion_point(class_scope:fira_message.sim_to_ref.Environment) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::fira_message::Frame* frame_; - ::fira_message::Field* field_; - ::google::protobuf::uint32 step_; - ::google::protobuf::uint32 goals_blue_; - ::google::protobuf::uint32 goals_yellow_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_packet_2eproto::TableStruct; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// Packet - -// .fira_message.sim_to_ref.Commands cmd = 1; -inline bool Packet::has_cmd() const { - return this != internal_default_instance() && cmd_ != NULL; -} -inline const ::fira_message::sim_to_ref::Commands& Packet::_internal_cmd() const { - return *cmd_; -} -inline const ::fira_message::sim_to_ref::Commands& Packet::cmd() const { - const ::fira_message::sim_to_ref::Commands* p = cmd_; - // @@protoc_insertion_point(field_get:fira_message.sim_to_ref.Packet.cmd) - return p != NULL ? *p : *reinterpret_cast( - &::fira_message::sim_to_ref::_Commands_default_instance_); -} -inline ::fira_message::sim_to_ref::Commands* Packet::release_cmd() { - // @@protoc_insertion_point(field_release:fira_message.sim_to_ref.Packet.cmd) - - ::fira_message::sim_to_ref::Commands* temp = cmd_; - cmd_ = NULL; - return temp; -} -inline ::fira_message::sim_to_ref::Commands* Packet::mutable_cmd() { - - if (cmd_ == NULL) { - auto* p = CreateMaybeMessage<::fira_message::sim_to_ref::Commands>(GetArenaNoVirtual()); - cmd_ = p; - } - // @@protoc_insertion_point(field_mutable:fira_message.sim_to_ref.Packet.cmd) - return cmd_; -} -inline void Packet::set_allocated_cmd(::fira_message::sim_to_ref::Commands* cmd) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(cmd_); - } - if (cmd) { - ::google::protobuf::Arena* submessage_arena = NULL; - if (message_arena != submessage_arena) { - cmd = ::google::protobuf::internal::GetOwnedMessage( - message_arena, cmd, submessage_arena); - } - - } else { - - } - cmd_ = cmd; - // @@protoc_insertion_point(field_set_allocated:fira_message.sim_to_ref.Packet.cmd) -} - -// .fira_message.sim_to_ref.Replacement replace = 2; -inline bool Packet::has_replace() const { - return this != internal_default_instance() && replace_ != NULL; -} -inline const ::fira_message::sim_to_ref::Replacement& Packet::_internal_replace() const { - return *replace_; -} -inline const ::fira_message::sim_to_ref::Replacement& Packet::replace() const { - const ::fira_message::sim_to_ref::Replacement* p = replace_; - // @@protoc_insertion_point(field_get:fira_message.sim_to_ref.Packet.replace) - return p != NULL ? *p : *reinterpret_cast( - &::fira_message::sim_to_ref::_Replacement_default_instance_); -} -inline ::fira_message::sim_to_ref::Replacement* Packet::release_replace() { - // @@protoc_insertion_point(field_release:fira_message.sim_to_ref.Packet.replace) - - ::fira_message::sim_to_ref::Replacement* temp = replace_; - replace_ = NULL; - return temp; -} -inline ::fira_message::sim_to_ref::Replacement* Packet::mutable_replace() { - - if (replace_ == NULL) { - auto* p = CreateMaybeMessage<::fira_message::sim_to_ref::Replacement>(GetArenaNoVirtual()); - replace_ = p; - } - // @@protoc_insertion_point(field_mutable:fira_message.sim_to_ref.Packet.replace) - return replace_; -} -inline void Packet::set_allocated_replace(::fira_message::sim_to_ref::Replacement* replace) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(replace_); - } - if (replace) { - ::google::protobuf::Arena* submessage_arena = NULL; - if (message_arena != submessage_arena) { - replace = ::google::protobuf::internal::GetOwnedMessage( - message_arena, replace, submessage_arena); - } - - } else { - - } - replace_ = replace; - // @@protoc_insertion_point(field_set_allocated:fira_message.sim_to_ref.Packet.replace) -} - -// ------------------------------------------------------------------- - -// Environment - -// uint32 step = 1; -inline void Environment::clear_step() { - step_ = 0u; -} -inline ::google::protobuf::uint32 Environment::step() const { - // @@protoc_insertion_point(field_get:fira_message.sim_to_ref.Environment.step) - return step_; -} -inline void Environment::set_step(::google::protobuf::uint32 value) { - - step_ = value; - // @@protoc_insertion_point(field_set:fira_message.sim_to_ref.Environment.step) -} - -// .fira_message.Frame frame = 2; -inline bool Environment::has_frame() const { - return this != internal_default_instance() && frame_ != NULL; -} -inline const ::fira_message::Frame& Environment::_internal_frame() const { - return *frame_; -} -inline const ::fira_message::Frame& Environment::frame() const { - const ::fira_message::Frame* p = frame_; - // @@protoc_insertion_point(field_get:fira_message.sim_to_ref.Environment.frame) - return p != NULL ? *p : *reinterpret_cast( - &::fira_message::_Frame_default_instance_); -} -inline ::fira_message::Frame* Environment::release_frame() { - // @@protoc_insertion_point(field_release:fira_message.sim_to_ref.Environment.frame) - - ::fira_message::Frame* temp = frame_; - frame_ = NULL; - return temp; -} -inline ::fira_message::Frame* Environment::mutable_frame() { - - if (frame_ == NULL) { - auto* p = CreateMaybeMessage<::fira_message::Frame>(GetArenaNoVirtual()); - frame_ = p; - } - // @@protoc_insertion_point(field_mutable:fira_message.sim_to_ref.Environment.frame) - return frame_; -} -inline void Environment::set_allocated_frame(::fira_message::Frame* frame) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(frame_); - } - if (frame) { - ::google::protobuf::Arena* submessage_arena = NULL; - if (message_arena != submessage_arena) { - frame = ::google::protobuf::internal::GetOwnedMessage( - message_arena, frame, submessage_arena); - } - - } else { - - } - frame_ = frame; - // @@protoc_insertion_point(field_set_allocated:fira_message.sim_to_ref.Environment.frame) -} - -// .fira_message.Field field = 3; -inline bool Environment::has_field() const { - return this != internal_default_instance() && field_ != NULL; -} -inline const ::fira_message::Field& Environment::_internal_field() const { - return *field_; -} -inline const ::fira_message::Field& Environment::field() const { - const ::fira_message::Field* p = field_; - // @@protoc_insertion_point(field_get:fira_message.sim_to_ref.Environment.field) - return p != NULL ? *p : *reinterpret_cast( - &::fira_message::_Field_default_instance_); -} -inline ::fira_message::Field* Environment::release_field() { - // @@protoc_insertion_point(field_release:fira_message.sim_to_ref.Environment.field) - - ::fira_message::Field* temp = field_; - field_ = NULL; - return temp; -} -inline ::fira_message::Field* Environment::mutable_field() { - - if (field_ == NULL) { - auto* p = CreateMaybeMessage<::fira_message::Field>(GetArenaNoVirtual()); - field_ = p; - } - // @@protoc_insertion_point(field_mutable:fira_message.sim_to_ref.Environment.field) - return field_; -} -inline void Environment::set_allocated_field(::fira_message::Field* field) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(field_); - } - if (field) { - ::google::protobuf::Arena* submessage_arena = NULL; - if (message_arena != submessage_arena) { - field = ::google::protobuf::internal::GetOwnedMessage( - message_arena, field, submessage_arena); - } - - } else { - - } - field_ = field; - // @@protoc_insertion_point(field_set_allocated:fira_message.sim_to_ref.Environment.field) -} - -// uint32 goals_blue = 4; -inline void Environment::clear_goals_blue() { - goals_blue_ = 0u; -} -inline ::google::protobuf::uint32 Environment::goals_blue() const { - // @@protoc_insertion_point(field_get:fira_message.sim_to_ref.Environment.goals_blue) - return goals_blue_; -} -inline void Environment::set_goals_blue(::google::protobuf::uint32 value) { - - goals_blue_ = value; - // @@protoc_insertion_point(field_set:fira_message.sim_to_ref.Environment.goals_blue) -} - -// uint32 goals_yellow = 5; -inline void Environment::clear_goals_yellow() { - goals_yellow_ = 0u; -} -inline ::google::protobuf::uint32 Environment::goals_yellow() const { - // @@protoc_insertion_point(field_get:fira_message.sim_to_ref.Environment.goals_yellow) - return goals_yellow_; -} -inline void Environment::set_goals_yellow(::google::protobuf::uint32 value) { - - goals_yellow_ = value; - // @@protoc_insertion_point(field_set:fira_message.sim_to_ref.Environment.goals_yellow) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace sim_to_ref -} // namespace fira_message - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_INCLUDED_packet_2eproto diff --git a/include/replacement.pb.cc b/include/replacement.pb.cc deleted file mode 100644 index 693beb8..0000000 --- a/include/replacement.pb.cc +++ /dev/null @@ -1,1133 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: replacement.proto - -#include "replacement.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// This is a temporary google only hack -#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS -#include "third_party/protobuf/version.h" -#endif -// @@protoc_insertion_point(includes) - -namespace protobuf_common_2eproto { -extern PROTOBUF_INTERNAL_EXPORT_protobuf_common_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Robot; -} // namespace protobuf_common_2eproto -namespace protobuf_replacement_2eproto { -extern PROTOBUF_INTERNAL_EXPORT_protobuf_replacement_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_BallReplacement; -extern PROTOBUF_INTERNAL_EXPORT_protobuf_replacement_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_RobotReplacement; -} // namespace protobuf_replacement_2eproto -namespace fira_message { -namespace sim_to_ref { -class RobotReplacementDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed - _instance; -} _RobotReplacement_default_instance_; -class BallReplacementDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed - _instance; -} _BallReplacement_default_instance_; -class ReplacementDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed - _instance; -} _Replacement_default_instance_; -} // namespace sim_to_ref -} // namespace fira_message -namespace protobuf_replacement_2eproto { -static void InitDefaultsRobotReplacement() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::fira_message::sim_to_ref::_RobotReplacement_default_instance_; - new (ptr) ::fira_message::sim_to_ref::RobotReplacement(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::fira_message::sim_to_ref::RobotReplacement::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_RobotReplacement = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsRobotReplacement}, { - &protobuf_common_2eproto::scc_info_Robot.base,}}; - -static void InitDefaultsBallReplacement() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::fira_message::sim_to_ref::_BallReplacement_default_instance_; - new (ptr) ::fira_message::sim_to_ref::BallReplacement(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::fira_message::sim_to_ref::BallReplacement::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_BallReplacement = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsBallReplacement}, {}}; - -static void InitDefaultsReplacement() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::fira_message::sim_to_ref::_Replacement_default_instance_; - new (ptr) ::fira_message::sim_to_ref::Replacement(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::fira_message::sim_to_ref::Replacement::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_Replacement = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsReplacement}, { - &protobuf_replacement_2eproto::scc_info_BallReplacement.base, - &protobuf_replacement_2eproto::scc_info_RobotReplacement.base,}}; - -void InitDefaults() { - ::google::protobuf::internal::InitSCC(&scc_info_RobotReplacement.base); - ::google::protobuf::internal::InitSCC(&scc_info_BallReplacement.base); - ::google::protobuf::internal::InitSCC(&scc_info_Replacement.base); -} - -::google::protobuf::Metadata file_level_metadata[3]; - -const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::fira_message::sim_to_ref::RobotReplacement, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::fira_message::sim_to_ref::RobotReplacement, position_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::fira_message::sim_to_ref::RobotReplacement, yellowteam_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::fira_message::sim_to_ref::RobotReplacement, turnon_), - ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::fira_message::sim_to_ref::BallReplacement, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::fira_message::sim_to_ref::BallReplacement, x_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::fira_message::sim_to_ref::BallReplacement, y_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::fira_message::sim_to_ref::BallReplacement, vx_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::fira_message::sim_to_ref::BallReplacement, vy_), - ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::fira_message::sim_to_ref::Replacement, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::fira_message::sim_to_ref::Replacement, ball_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::fira_message::sim_to_ref::Replacement, robots_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::fira_message::sim_to_ref::RobotReplacement)}, - { 8, -1, sizeof(::fira_message::sim_to_ref::BallReplacement)}, - { 17, -1, sizeof(::fira_message::sim_to_ref::Replacement)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::fira_message::sim_to_ref::_RobotReplacement_default_instance_), - reinterpret_cast(&::fira_message::sim_to_ref::_BallReplacement_default_instance_), - reinterpret_cast(&::fira_message::sim_to_ref::_Replacement_default_instance_), -}; - -void protobuf_AssignDescriptors() { - AddDescriptors(); - AssignDescriptors( - "replacement.proto", schemas, file_default_instances, TableStruct::offsets, - file_level_metadata, NULL, NULL); -} - -void protobuf_AssignDescriptorsOnce() { - static ::google::protobuf::internal::once_flag once; - ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors); -} - -void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; -void protobuf_RegisterTypes(const ::std::string&) { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 3); -} - -void AddDescriptorsImpl() { - InitDefaults(); - static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - "\n\021replacement.proto\022\027fira_message.sim_to" - "_ref\032\014common.proto\"]\n\020RobotReplacement\022%" - "\n\010position\030\001 \001(\0132\023.fira_message.Robot\022\022\n" - "\nyellowteam\030\005 \001(\010\022\016\n\006turnon\030\006 \001(\010\"\?\n\017Bal" - "lReplacement\022\t\n\001x\030\001 \001(\001\022\t\n\001y\030\002 \001(\001\022\n\n\002vx" - "\030\003 \001(\001\022\n\n\002vy\030\004 \001(\001\"\200\001\n\013Replacement\0226\n\004ba" - "ll\030\001 \001(\0132(.fira_message.sim_to_ref.BallR" - "eplacement\0229\n\006robots\030\002 \003(\0132).fira_messag" - "e.sim_to_ref.RobotReplacementb\006proto3" - }; - ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( - descriptor, 357); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( - "replacement.proto", &protobuf_RegisterTypes); - ::protobuf_common_2eproto::AddDescriptors(); -} - -void AddDescriptors() { - static ::google::protobuf::internal::once_flag once; - ::google::protobuf::internal::call_once(once, AddDescriptorsImpl); -} -// Force AddDescriptors() to be called at dynamic initialization time. -struct StaticDescriptorInitializer { - StaticDescriptorInitializer() { - AddDescriptors(); - } -} static_descriptor_initializer; -} // namespace protobuf_replacement_2eproto -namespace fira_message { -namespace sim_to_ref { - -// =================================================================== - -void RobotReplacement::InitAsDefaultInstance() { - ::fira_message::sim_to_ref::_RobotReplacement_default_instance_._instance.get_mutable()->position_ = const_cast< ::fira_message::Robot*>( - ::fira_message::Robot::internal_default_instance()); -} -void RobotReplacement::clear_position() { - if (GetArenaNoVirtual() == NULL && position_ != NULL) { - delete position_; - } - position_ = NULL; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int RobotReplacement::kPositionFieldNumber; -const int RobotReplacement::kYellowteamFieldNumber; -const int RobotReplacement::kTurnonFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -RobotReplacement::RobotReplacement() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - ::google::protobuf::internal::InitSCC( - &protobuf_replacement_2eproto::scc_info_RobotReplacement.base); - SharedCtor(); - // @@protoc_insertion_point(constructor:fira_message.sim_to_ref.RobotReplacement) -} -RobotReplacement::RobotReplacement(const RobotReplacement& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_position()) { - position_ = new ::fira_message::Robot(*from.position_); - } else { - position_ = NULL; - } - ::memcpy(&yellowteam_, &from.yellowteam_, - static_cast(reinterpret_cast(&turnon_) - - reinterpret_cast(&yellowteam_)) + sizeof(turnon_)); - // @@protoc_insertion_point(copy_constructor:fira_message.sim_to_ref.RobotReplacement) -} - -void RobotReplacement::SharedCtor() { - ::memset(&position_, 0, static_cast( - reinterpret_cast(&turnon_) - - reinterpret_cast(&position_)) + sizeof(turnon_)); -} - -RobotReplacement::~RobotReplacement() { - // @@protoc_insertion_point(destructor:fira_message.sim_to_ref.RobotReplacement) - SharedDtor(); -} - -void RobotReplacement::SharedDtor() { - if (this != internal_default_instance()) delete position_; -} - -void RobotReplacement::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ::google::protobuf::Descriptor* RobotReplacement::descriptor() { - ::protobuf_replacement_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_replacement_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; -} - -const RobotReplacement& RobotReplacement::default_instance() { - ::google::protobuf::internal::InitSCC(&protobuf_replacement_2eproto::scc_info_RobotReplacement.base); - return *internal_default_instance(); -} - - -void RobotReplacement::Clear() { -// @@protoc_insertion_point(message_clear_start:fira_message.sim_to_ref.RobotReplacement) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == NULL && position_ != NULL) { - delete position_; - } - position_ = NULL; - ::memset(&yellowteam_, 0, static_cast( - reinterpret_cast(&turnon_) - - reinterpret_cast(&yellowteam_)) + sizeof(turnon_)); - _internal_metadata_.Clear(); -} - -bool RobotReplacement::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:fira_message.sim_to_ref.RobotReplacement) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .fira_message.Robot position = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_position())); - } else { - goto handle_unusual; - } - break; - } - - // bool yellowteam = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &yellowteam_))); - } else { - goto handle_unusual; - } - break; - } - - // bool turnon = 6; - case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &turnon_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:fira_message.sim_to_ref.RobotReplacement) - return true; -failure: - // @@protoc_insertion_point(parse_failure:fira_message.sim_to_ref.RobotReplacement) - return false; -#undef DO_ -} - -void RobotReplacement::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:fira_message.sim_to_ref.RobotReplacement) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .fira_message.Robot position = 1; - if (this->has_position()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->_internal_position(), output); - } - - // bool yellowteam = 5; - if (this->yellowteam() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->yellowteam(), output); - } - - // bool turnon = 6; - if (this->turnon() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->turnon(), output); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); - } - // @@protoc_insertion_point(serialize_end:fira_message.sim_to_ref.RobotReplacement) -} - -::google::protobuf::uint8* RobotReplacement::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:fira_message.sim_to_ref.RobotReplacement) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .fira_message.Robot position = 1; - if (this->has_position()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, this->_internal_position(), deterministic, target); - } - - // bool yellowteam = 5; - if (this->yellowteam() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->yellowteam(), target); - } - - // bool turnon = 6; - if (this->turnon() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->turnon(), target); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:fira_message.sim_to_ref.RobotReplacement) - return target; -} - -size_t RobotReplacement::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:fira_message.sim_to_ref.RobotReplacement) - size_t total_size = 0; - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); - } - // .fira_message.Robot position = 1; - if (this->has_position()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *position_); - } - - // bool yellowteam = 5; - if (this->yellowteam() != 0) { - total_size += 1 + 1; - } - - // bool turnon = 6; - if (this->turnon() != 0) { - total_size += 1 + 1; - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void RobotReplacement::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:fira_message.sim_to_ref.RobotReplacement) - GOOGLE_DCHECK_NE(&from, this); - const RobotReplacement* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:fira_message.sim_to_ref.RobotReplacement) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:fira_message.sim_to_ref.RobotReplacement) - MergeFrom(*source); - } -} - -void RobotReplacement::MergeFrom(const RobotReplacement& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:fira_message.sim_to_ref.RobotReplacement) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_position()) { - mutable_position()->::fira_message::Robot::MergeFrom(from.position()); - } - if (from.yellowteam() != 0) { - set_yellowteam(from.yellowteam()); - } - if (from.turnon() != 0) { - set_turnon(from.turnon()); - } -} - -void RobotReplacement::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:fira_message.sim_to_ref.RobotReplacement) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void RobotReplacement::CopyFrom(const RobotReplacement& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:fira_message.sim_to_ref.RobotReplacement) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool RobotReplacement::IsInitialized() const { - return true; -} - -void RobotReplacement::Swap(RobotReplacement* other) { - if (other == this) return; - InternalSwap(other); -} -void RobotReplacement::InternalSwap(RobotReplacement* other) { - using std::swap; - swap(position_, other->position_); - swap(yellowteam_, other->yellowteam_); - swap(turnon_, other->turnon_); - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata RobotReplacement::GetMetadata() const { - protobuf_replacement_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_replacement_2eproto::file_level_metadata[kIndexInFileMessages]; -} - - -// =================================================================== - -void BallReplacement::InitAsDefaultInstance() { -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int BallReplacement::kXFieldNumber; -const int BallReplacement::kYFieldNumber; -const int BallReplacement::kVxFieldNumber; -const int BallReplacement::kVyFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -BallReplacement::BallReplacement() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - ::google::protobuf::internal::InitSCC( - &protobuf_replacement_2eproto::scc_info_BallReplacement.base); - SharedCtor(); - // @@protoc_insertion_point(constructor:fira_message.sim_to_ref.BallReplacement) -} -BallReplacement::BallReplacement(const BallReplacement& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&x_, &from.x_, - static_cast(reinterpret_cast(&vy_) - - reinterpret_cast(&x_)) + sizeof(vy_)); - // @@protoc_insertion_point(copy_constructor:fira_message.sim_to_ref.BallReplacement) -} - -void BallReplacement::SharedCtor() { - ::memset(&x_, 0, static_cast( - reinterpret_cast(&vy_) - - reinterpret_cast(&x_)) + sizeof(vy_)); -} - -BallReplacement::~BallReplacement() { - // @@protoc_insertion_point(destructor:fira_message.sim_to_ref.BallReplacement) - SharedDtor(); -} - -void BallReplacement::SharedDtor() { -} - -void BallReplacement::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ::google::protobuf::Descriptor* BallReplacement::descriptor() { - ::protobuf_replacement_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_replacement_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; -} - -const BallReplacement& BallReplacement::default_instance() { - ::google::protobuf::internal::InitSCC(&protobuf_replacement_2eproto::scc_info_BallReplacement.base); - return *internal_default_instance(); -} - - -void BallReplacement::Clear() { -// @@protoc_insertion_point(message_clear_start:fira_message.sim_to_ref.BallReplacement) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&x_, 0, static_cast( - reinterpret_cast(&vy_) - - reinterpret_cast(&x_)) + sizeof(vy_)); - _internal_metadata_.Clear(); -} - -bool BallReplacement::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:fira_message.sim_to_ref.BallReplacement) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // double x = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(9u /* 9 & 0xFF */)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - input, &x_))); - } else { - goto handle_unusual; - } - break; - } - - // double y = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(17u /* 17 & 0xFF */)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - input, &y_))); - } else { - goto handle_unusual; - } - break; - } - - // double vx = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(25u /* 25 & 0xFF */)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - input, &vx_))); - } else { - goto handle_unusual; - } - break; - } - - // double vy = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(33u /* 33 & 0xFF */)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - input, &vy_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:fira_message.sim_to_ref.BallReplacement) - return true; -failure: - // @@protoc_insertion_point(parse_failure:fira_message.sim_to_ref.BallReplacement) - return false; -#undef DO_ -} - -void BallReplacement::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:fira_message.sim_to_ref.BallReplacement) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // double x = 1; - if (this->x() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteDouble(1, this->x(), output); - } - - // double y = 2; - if (this->y() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->y(), output); - } - - // double vx = 3; - if (this->vx() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteDouble(3, this->vx(), output); - } - - // double vy = 4; - if (this->vy() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteDouble(4, this->vy(), output); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); - } - // @@protoc_insertion_point(serialize_end:fira_message.sim_to_ref.BallReplacement) -} - -::google::protobuf::uint8* BallReplacement::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:fira_message.sim_to_ref.BallReplacement) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // double x = 1; - if (this->x() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(1, this->x(), target); - } - - // double y = 2; - if (this->y() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->y(), target); - } - - // double vx = 3; - if (this->vx() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(3, this->vx(), target); - } - - // double vy = 4; - if (this->vy() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(4, this->vy(), target); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:fira_message.sim_to_ref.BallReplacement) - return target; -} - -size_t BallReplacement::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:fira_message.sim_to_ref.BallReplacement) - size_t total_size = 0; - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); - } - // double x = 1; - if (this->x() != 0) { - total_size += 1 + 8; - } - - // double y = 2; - if (this->y() != 0) { - total_size += 1 + 8; - } - - // double vx = 3; - if (this->vx() != 0) { - total_size += 1 + 8; - } - - // double vy = 4; - if (this->vy() != 0) { - total_size += 1 + 8; - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void BallReplacement::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:fira_message.sim_to_ref.BallReplacement) - GOOGLE_DCHECK_NE(&from, this); - const BallReplacement* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:fira_message.sim_to_ref.BallReplacement) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:fira_message.sim_to_ref.BallReplacement) - MergeFrom(*source); - } -} - -void BallReplacement::MergeFrom(const BallReplacement& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:fira_message.sim_to_ref.BallReplacement) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.x() != 0) { - set_x(from.x()); - } - if (from.y() != 0) { - set_y(from.y()); - } - if (from.vx() != 0) { - set_vx(from.vx()); - } - if (from.vy() != 0) { - set_vy(from.vy()); - } -} - -void BallReplacement::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:fira_message.sim_to_ref.BallReplacement) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void BallReplacement::CopyFrom(const BallReplacement& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:fira_message.sim_to_ref.BallReplacement) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool BallReplacement::IsInitialized() const { - return true; -} - -void BallReplacement::Swap(BallReplacement* other) { - if (other == this) return; - InternalSwap(other); -} -void BallReplacement::InternalSwap(BallReplacement* other) { - using std::swap; - swap(x_, other->x_); - swap(y_, other->y_); - swap(vx_, other->vx_); - swap(vy_, other->vy_); - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata BallReplacement::GetMetadata() const { - protobuf_replacement_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_replacement_2eproto::file_level_metadata[kIndexInFileMessages]; -} - - -// =================================================================== - -void Replacement::InitAsDefaultInstance() { - ::fira_message::sim_to_ref::_Replacement_default_instance_._instance.get_mutable()->ball_ = const_cast< ::fira_message::sim_to_ref::BallReplacement*>( - ::fira_message::sim_to_ref::BallReplacement::internal_default_instance()); -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Replacement::kBallFieldNumber; -const int Replacement::kRobotsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Replacement::Replacement() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - ::google::protobuf::internal::InitSCC( - &protobuf_replacement_2eproto::scc_info_Replacement.base); - SharedCtor(); - // @@protoc_insertion_point(constructor:fira_message.sim_to_ref.Replacement) -} -Replacement::Replacement(const Replacement& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL), - robots_(from.robots_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_ball()) { - ball_ = new ::fira_message::sim_to_ref::BallReplacement(*from.ball_); - } else { - ball_ = NULL; - } - // @@protoc_insertion_point(copy_constructor:fira_message.sim_to_ref.Replacement) -} - -void Replacement::SharedCtor() { - ball_ = NULL; -} - -Replacement::~Replacement() { - // @@protoc_insertion_point(destructor:fira_message.sim_to_ref.Replacement) - SharedDtor(); -} - -void Replacement::SharedDtor() { - if (this != internal_default_instance()) delete ball_; -} - -void Replacement::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ::google::protobuf::Descriptor* Replacement::descriptor() { - ::protobuf_replacement_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_replacement_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; -} - -const Replacement& Replacement::default_instance() { - ::google::protobuf::internal::InitSCC(&protobuf_replacement_2eproto::scc_info_Replacement.base); - return *internal_default_instance(); -} - - -void Replacement::Clear() { -// @@protoc_insertion_point(message_clear_start:fira_message.sim_to_ref.Replacement) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - robots_.Clear(); - if (GetArenaNoVirtual() == NULL && ball_ != NULL) { - delete ball_; - } - ball_ = NULL; - _internal_metadata_.Clear(); -} - -bool Replacement::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:fira_message.sim_to_ref.Replacement) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .fira_message.sim_to_ref.BallReplacement ball = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_ball())); - } else { - goto handle_unusual; - } - break; - } - - // repeated .fira_message.sim_to_ref.RobotReplacement robots = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_robots())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:fira_message.sim_to_ref.Replacement) - return true; -failure: - // @@protoc_insertion_point(parse_failure:fira_message.sim_to_ref.Replacement) - return false; -#undef DO_ -} - -void Replacement::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:fira_message.sim_to_ref.Replacement) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .fira_message.sim_to_ref.BallReplacement ball = 1; - if (this->has_ball()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->_internal_ball(), output); - } - - // repeated .fira_message.sim_to_ref.RobotReplacement robots = 2; - for (unsigned int i = 0, - n = static_cast(this->robots_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, - this->robots(static_cast(i)), - output); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); - } - // @@protoc_insertion_point(serialize_end:fira_message.sim_to_ref.Replacement) -} - -::google::protobuf::uint8* Replacement::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:fira_message.sim_to_ref.Replacement) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .fira_message.sim_to_ref.BallReplacement ball = 1; - if (this->has_ball()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, this->_internal_ball(), deterministic, target); - } - - // repeated .fira_message.sim_to_ref.RobotReplacement robots = 2; - for (unsigned int i = 0, - n = static_cast(this->robots_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, this->robots(static_cast(i)), deterministic, target); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:fira_message.sim_to_ref.Replacement) - return target; -} - -size_t Replacement::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:fira_message.sim_to_ref.Replacement) - size_t total_size = 0; - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); - } - // repeated .fira_message.sim_to_ref.RobotReplacement robots = 2; - { - unsigned int count = static_cast(this->robots_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->robots(static_cast(i))); - } - } - - // .fira_message.sim_to_ref.BallReplacement ball = 1; - if (this->has_ball()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *ball_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Replacement::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:fira_message.sim_to_ref.Replacement) - GOOGLE_DCHECK_NE(&from, this); - const Replacement* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:fira_message.sim_to_ref.Replacement) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:fira_message.sim_to_ref.Replacement) - MergeFrom(*source); - } -} - -void Replacement::MergeFrom(const Replacement& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:fira_message.sim_to_ref.Replacement) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - robots_.MergeFrom(from.robots_); - if (from.has_ball()) { - mutable_ball()->::fira_message::sim_to_ref::BallReplacement::MergeFrom(from.ball()); - } -} - -void Replacement::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:fira_message.sim_to_ref.Replacement) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Replacement::CopyFrom(const Replacement& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:fira_message.sim_to_ref.Replacement) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Replacement::IsInitialized() const { - return true; -} - -void Replacement::Swap(Replacement* other) { - if (other == this) return; - InternalSwap(other); -} -void Replacement::InternalSwap(Replacement* other) { - using std::swap; - CastToBase(&robots_)->InternalSwap(CastToBase(&other->robots_)); - swap(ball_, other->ball_); - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata Replacement::GetMetadata() const { - protobuf_replacement_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_replacement_2eproto::file_level_metadata[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace sim_to_ref -} // namespace fira_message -namespace google { -namespace protobuf { -template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::fira_message::sim_to_ref::RobotReplacement* Arena::CreateMaybeMessage< ::fira_message::sim_to_ref::RobotReplacement >(Arena* arena) { - return Arena::CreateInternal< ::fira_message::sim_to_ref::RobotReplacement >(arena); -} -template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::fira_message::sim_to_ref::BallReplacement* Arena::CreateMaybeMessage< ::fira_message::sim_to_ref::BallReplacement >(Arena* arena) { - return Arena::CreateInternal< ::fira_message::sim_to_ref::BallReplacement >(arena); -} -template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::fira_message::sim_to_ref::Replacement* Arena::CreateMaybeMessage< ::fira_message::sim_to_ref::Replacement >(Arena* arena) { - return Arena::CreateInternal< ::fira_message::sim_to_ref::Replacement >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) diff --git a/include/replacement.pb.h b/include/replacement.pb.h deleted file mode 100644 index ec3586e..0000000 --- a/include/replacement.pb.h +++ /dev/null @@ -1,691 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: replacement.proto - -#ifndef PROTOBUF_INCLUDED_replacement_2eproto -#define PROTOBUF_INCLUDED_replacement_2eproto - -#include - -#include - -#if GOOGLE_PROTOBUF_VERSION < 3006001 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include "common.pb.h" -// @@protoc_insertion_point(includes) -#define PROTOBUF_INTERNAL_EXPORT_protobuf_replacement_2eproto - -namespace protobuf_replacement_2eproto { -// Internal implementation detail -- do not use these members. -struct TableStruct { - static const ::google::protobuf::internal::ParseTableField entries[]; - static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; - static const ::google::protobuf::internal::ParseTable schema[3]; - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors(); -} // namespace protobuf_replacement_2eproto -namespace fira_message { -namespace sim_to_ref { -class BallReplacement; -class BallReplacementDefaultTypeInternal; -extern BallReplacementDefaultTypeInternal _BallReplacement_default_instance_; -class Replacement; -class ReplacementDefaultTypeInternal; -extern ReplacementDefaultTypeInternal _Replacement_default_instance_; -class RobotReplacement; -class RobotReplacementDefaultTypeInternal; -extern RobotReplacementDefaultTypeInternal _RobotReplacement_default_instance_; -} // namespace sim_to_ref -} // namespace fira_message -namespace google { -namespace protobuf { -template<> ::fira_message::sim_to_ref::BallReplacement* Arena::CreateMaybeMessage<::fira_message::sim_to_ref::BallReplacement>(Arena*); -template<> ::fira_message::sim_to_ref::Replacement* Arena::CreateMaybeMessage<::fira_message::sim_to_ref::Replacement>(Arena*); -template<> ::fira_message::sim_to_ref::RobotReplacement* Arena::CreateMaybeMessage<::fira_message::sim_to_ref::RobotReplacement>(Arena*); -} // namespace protobuf -} // namespace google -namespace fira_message { -namespace sim_to_ref { - -// =================================================================== - -class RobotReplacement : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:fira_message.sim_to_ref.RobotReplacement) */ { - public: - RobotReplacement(); - virtual ~RobotReplacement(); - - RobotReplacement(const RobotReplacement& from); - - inline RobotReplacement& operator=(const RobotReplacement& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - RobotReplacement(RobotReplacement&& from) noexcept - : RobotReplacement() { - *this = ::std::move(from); - } - - inline RobotReplacement& operator=(RobotReplacement&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const RobotReplacement& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const RobotReplacement* internal_default_instance() { - return reinterpret_cast( - &_RobotReplacement_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(RobotReplacement* other); - friend void swap(RobotReplacement& a, RobotReplacement& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline RobotReplacement* New() const final { - return CreateMaybeMessage(NULL); - } - - RobotReplacement* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const RobotReplacement& from); - void MergeFrom(const RobotReplacement& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(RobotReplacement* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // .fira_message.Robot position = 1; - bool has_position() const; - void clear_position(); - static const int kPositionFieldNumber = 1; - private: - const ::fira_message::Robot& _internal_position() const; - public: - const ::fira_message::Robot& position() const; - ::fira_message::Robot* release_position(); - ::fira_message::Robot* mutable_position(); - void set_allocated_position(::fira_message::Robot* position); - - // bool yellowteam = 5; - void clear_yellowteam(); - static const int kYellowteamFieldNumber = 5; - bool yellowteam() const; - void set_yellowteam(bool value); - - // bool turnon = 6; - void clear_turnon(); - static const int kTurnonFieldNumber = 6; - bool turnon() const; - void set_turnon(bool value); - - // @@protoc_insertion_point(class_scope:fira_message.sim_to_ref.RobotReplacement) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::fira_message::Robot* position_; - bool yellowteam_; - bool turnon_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_replacement_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class BallReplacement : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:fira_message.sim_to_ref.BallReplacement) */ { - public: - BallReplacement(); - virtual ~BallReplacement(); - - BallReplacement(const BallReplacement& from); - - inline BallReplacement& operator=(const BallReplacement& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - BallReplacement(BallReplacement&& from) noexcept - : BallReplacement() { - *this = ::std::move(from); - } - - inline BallReplacement& operator=(BallReplacement&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const BallReplacement& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const BallReplacement* internal_default_instance() { - return reinterpret_cast( - &_BallReplacement_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void Swap(BallReplacement* other); - friend void swap(BallReplacement& a, BallReplacement& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline BallReplacement* New() const final { - return CreateMaybeMessage(NULL); - } - - BallReplacement* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const BallReplacement& from); - void MergeFrom(const BallReplacement& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(BallReplacement* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // double x = 1; - void clear_x(); - static const int kXFieldNumber = 1; - double x() const; - void set_x(double value); - - // double y = 2; - void clear_y(); - static const int kYFieldNumber = 2; - double y() const; - void set_y(double value); - - // double vx = 3; - void clear_vx(); - static const int kVxFieldNumber = 3; - double vx() const; - void set_vx(double value); - - // double vy = 4; - void clear_vy(); - static const int kVyFieldNumber = 4; - double vy() const; - void set_vy(double value); - - // @@protoc_insertion_point(class_scope:fira_message.sim_to_ref.BallReplacement) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - double x_; - double y_; - double vx_; - double vy_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_replacement_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class Replacement : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:fira_message.sim_to_ref.Replacement) */ { - public: - Replacement(); - virtual ~Replacement(); - - Replacement(const Replacement& from); - - inline Replacement& operator=(const Replacement& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Replacement(Replacement&& from) noexcept - : Replacement() { - *this = ::std::move(from); - } - - inline Replacement& operator=(Replacement&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const Replacement& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Replacement* internal_default_instance() { - return reinterpret_cast( - &_Replacement_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void Swap(Replacement* other); - friend void swap(Replacement& a, Replacement& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Replacement* New() const final { - return CreateMaybeMessage(NULL); - } - - Replacement* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const Replacement& from); - void MergeFrom(const Replacement& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Replacement* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated .fira_message.sim_to_ref.RobotReplacement robots = 2; - int robots_size() const; - void clear_robots(); - static const int kRobotsFieldNumber = 2; - ::fira_message::sim_to_ref::RobotReplacement* mutable_robots(int index); - ::google::protobuf::RepeatedPtrField< ::fira_message::sim_to_ref::RobotReplacement >* - mutable_robots(); - const ::fira_message::sim_to_ref::RobotReplacement& robots(int index) const; - ::fira_message::sim_to_ref::RobotReplacement* add_robots(); - const ::google::protobuf::RepeatedPtrField< ::fira_message::sim_to_ref::RobotReplacement >& - robots() const; - - // .fira_message.sim_to_ref.BallReplacement ball = 1; - bool has_ball() const; - void clear_ball(); - static const int kBallFieldNumber = 1; - private: - const ::fira_message::sim_to_ref::BallReplacement& _internal_ball() const; - public: - const ::fira_message::sim_to_ref::BallReplacement& ball() const; - ::fira_message::sim_to_ref::BallReplacement* release_ball(); - ::fira_message::sim_to_ref::BallReplacement* mutable_ball(); - void set_allocated_ball(::fira_message::sim_to_ref::BallReplacement* ball); - - // @@protoc_insertion_point(class_scope:fira_message.sim_to_ref.Replacement) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::fira_message::sim_to_ref::RobotReplacement > robots_; - ::fira_message::sim_to_ref::BallReplacement* ball_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_replacement_2eproto::TableStruct; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// RobotReplacement - -// .fira_message.Robot position = 1; -inline bool RobotReplacement::has_position() const { - return this != internal_default_instance() && position_ != NULL; -} -inline const ::fira_message::Robot& RobotReplacement::_internal_position() const { - return *position_; -} -inline const ::fira_message::Robot& RobotReplacement::position() const { - const ::fira_message::Robot* p = position_; - // @@protoc_insertion_point(field_get:fira_message.sim_to_ref.RobotReplacement.position) - return p != NULL ? *p : *reinterpret_cast( - &::fira_message::_Robot_default_instance_); -} -inline ::fira_message::Robot* RobotReplacement::release_position() { - // @@protoc_insertion_point(field_release:fira_message.sim_to_ref.RobotReplacement.position) - - ::fira_message::Robot* temp = position_; - position_ = NULL; - return temp; -} -inline ::fira_message::Robot* RobotReplacement::mutable_position() { - - if (position_ == NULL) { - auto* p = CreateMaybeMessage<::fira_message::Robot>(GetArenaNoVirtual()); - position_ = p; - } - // @@protoc_insertion_point(field_mutable:fira_message.sim_to_ref.RobotReplacement.position) - return position_; -} -inline void RobotReplacement::set_allocated_position(::fira_message::Robot* position) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(position_); - } - if (position) { - ::google::protobuf::Arena* submessage_arena = NULL; - if (message_arena != submessage_arena) { - position = ::google::protobuf::internal::GetOwnedMessage( - message_arena, position, submessage_arena); - } - - } else { - - } - position_ = position; - // @@protoc_insertion_point(field_set_allocated:fira_message.sim_to_ref.RobotReplacement.position) -} - -// bool yellowteam = 5; -inline void RobotReplacement::clear_yellowteam() { - yellowteam_ = false; -} -inline bool RobotReplacement::yellowteam() const { - // @@protoc_insertion_point(field_get:fira_message.sim_to_ref.RobotReplacement.yellowteam) - return yellowteam_; -} -inline void RobotReplacement::set_yellowteam(bool value) { - - yellowteam_ = value; - // @@protoc_insertion_point(field_set:fira_message.sim_to_ref.RobotReplacement.yellowteam) -} - -// bool turnon = 6; -inline void RobotReplacement::clear_turnon() { - turnon_ = false; -} -inline bool RobotReplacement::turnon() const { - // @@protoc_insertion_point(field_get:fira_message.sim_to_ref.RobotReplacement.turnon) - return turnon_; -} -inline void RobotReplacement::set_turnon(bool value) { - - turnon_ = value; - // @@protoc_insertion_point(field_set:fira_message.sim_to_ref.RobotReplacement.turnon) -} - -// ------------------------------------------------------------------- - -// BallReplacement - -// double x = 1; -inline void BallReplacement::clear_x() { - x_ = 0; -} -inline double BallReplacement::x() const { - // @@protoc_insertion_point(field_get:fira_message.sim_to_ref.BallReplacement.x) - return x_; -} -inline void BallReplacement::set_x(double value) { - - x_ = value; - // @@protoc_insertion_point(field_set:fira_message.sim_to_ref.BallReplacement.x) -} - -// double y = 2; -inline void BallReplacement::clear_y() { - y_ = 0; -} -inline double BallReplacement::y() const { - // @@protoc_insertion_point(field_get:fira_message.sim_to_ref.BallReplacement.y) - return y_; -} -inline void BallReplacement::set_y(double value) { - - y_ = value; - // @@protoc_insertion_point(field_set:fira_message.sim_to_ref.BallReplacement.y) -} - -// double vx = 3; -inline void BallReplacement::clear_vx() { - vx_ = 0; -} -inline double BallReplacement::vx() const { - // @@protoc_insertion_point(field_get:fira_message.sim_to_ref.BallReplacement.vx) - return vx_; -} -inline void BallReplacement::set_vx(double value) { - - vx_ = value; - // @@protoc_insertion_point(field_set:fira_message.sim_to_ref.BallReplacement.vx) -} - -// double vy = 4; -inline void BallReplacement::clear_vy() { - vy_ = 0; -} -inline double BallReplacement::vy() const { - // @@protoc_insertion_point(field_get:fira_message.sim_to_ref.BallReplacement.vy) - return vy_; -} -inline void BallReplacement::set_vy(double value) { - - vy_ = value; - // @@protoc_insertion_point(field_set:fira_message.sim_to_ref.BallReplacement.vy) -} - -// ------------------------------------------------------------------- - -// Replacement - -// .fira_message.sim_to_ref.BallReplacement ball = 1; -inline bool Replacement::has_ball() const { - return this != internal_default_instance() && ball_ != NULL; -} -inline void Replacement::clear_ball() { - if (GetArenaNoVirtual() == NULL && ball_ != NULL) { - delete ball_; - } - ball_ = NULL; -} -inline const ::fira_message::sim_to_ref::BallReplacement& Replacement::_internal_ball() const { - return *ball_; -} -inline const ::fira_message::sim_to_ref::BallReplacement& Replacement::ball() const { - const ::fira_message::sim_to_ref::BallReplacement* p = ball_; - // @@protoc_insertion_point(field_get:fira_message.sim_to_ref.Replacement.ball) - return p != NULL ? *p : *reinterpret_cast( - &::fira_message::sim_to_ref::_BallReplacement_default_instance_); -} -inline ::fira_message::sim_to_ref::BallReplacement* Replacement::release_ball() { - // @@protoc_insertion_point(field_release:fira_message.sim_to_ref.Replacement.ball) - - ::fira_message::sim_to_ref::BallReplacement* temp = ball_; - ball_ = NULL; - return temp; -} -inline ::fira_message::sim_to_ref::BallReplacement* Replacement::mutable_ball() { - - if (ball_ == NULL) { - auto* p = CreateMaybeMessage<::fira_message::sim_to_ref::BallReplacement>(GetArenaNoVirtual()); - ball_ = p; - } - // @@protoc_insertion_point(field_mutable:fira_message.sim_to_ref.Replacement.ball) - return ball_; -} -inline void Replacement::set_allocated_ball(::fira_message::sim_to_ref::BallReplacement* ball) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete ball_; - } - if (ball) { - ::google::protobuf::Arena* submessage_arena = NULL; - if (message_arena != submessage_arena) { - ball = ::google::protobuf::internal::GetOwnedMessage( - message_arena, ball, submessage_arena); - } - - } else { - - } - ball_ = ball; - // @@protoc_insertion_point(field_set_allocated:fira_message.sim_to_ref.Replacement.ball) -} - -// repeated .fira_message.sim_to_ref.RobotReplacement robots = 2; -inline int Replacement::robots_size() const { - return robots_.size(); -} -inline void Replacement::clear_robots() { - robots_.Clear(); -} -inline ::fira_message::sim_to_ref::RobotReplacement* Replacement::mutable_robots(int index) { - // @@protoc_insertion_point(field_mutable:fira_message.sim_to_ref.Replacement.robots) - return robots_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::fira_message::sim_to_ref::RobotReplacement >* -Replacement::mutable_robots() { - // @@protoc_insertion_point(field_mutable_list:fira_message.sim_to_ref.Replacement.robots) - return &robots_; -} -inline const ::fira_message::sim_to_ref::RobotReplacement& Replacement::robots(int index) const { - // @@protoc_insertion_point(field_get:fira_message.sim_to_ref.Replacement.robots) - return robots_.Get(index); -} -inline ::fira_message::sim_to_ref::RobotReplacement* Replacement::add_robots() { - // @@protoc_insertion_point(field_add:fira_message.sim_to_ref.Replacement.robots) - return robots_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::fira_message::sim_to_ref::RobotReplacement >& -Replacement::robots() const { - // @@protoc_insertion_point(field_list:fira_message.sim_to_ref.Replacement.robots) - return robots_; -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace sim_to_ref -} // namespace fira_message - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_INCLUDED_replacement_2eproto diff --git a/include/vssref_command.pb.cc b/include/vssref_command.pb.cc deleted file mode 100644 index 90e99b4..0000000 --- a/include/vssref_command.pb.cc +++ /dev/null @@ -1,512 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: vssref_command.proto - -#include "vssref_command.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// This is a temporary google only hack -#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS -#include "third_party/protobuf/version.h" -#endif -// @@protoc_insertion_point(includes) - -namespace VSSRef { -namespace ref_to_team { -class VSSRef_CommandDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed - _instance; -} _VSSRef_Command_default_instance_; -} // namespace ref_to_team -} // namespace VSSRef -namespace protobuf_vssref_5fcommand_2eproto { -static void InitDefaultsVSSRef_Command() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::VSSRef::ref_to_team::_VSSRef_Command_default_instance_; - new (ptr) ::VSSRef::ref_to_team::VSSRef_Command(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::VSSRef::ref_to_team::VSSRef_Command::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_VSSRef_Command = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsVSSRef_Command}, {}}; - -void InitDefaults() { - ::google::protobuf::internal::InitSCC(&scc_info_VSSRef_Command.base); -} - -::google::protobuf::Metadata file_level_metadata[1]; - -const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::VSSRef::ref_to_team::VSSRef_Command, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::VSSRef::ref_to_team::VSSRef_Command, foul_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::VSSRef::ref_to_team::VSSRef_Command, teamcolor_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::VSSRef::ref_to_team::VSSRef_Command, foulquadrant_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::VSSRef::ref_to_team::VSSRef_Command, timestamp_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::VSSRef::ref_to_team::VSSRef_Command, gamehalf_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::VSSRef::ref_to_team::VSSRef_Command)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::VSSRef::ref_to_team::_VSSRef_Command_default_instance_), -}; - -void protobuf_AssignDescriptors() { - AddDescriptors(); - AssignDescriptors( - "vssref_command.proto", schemas, file_default_instances, TableStruct::offsets, - file_level_metadata, NULL, NULL); -} - -void protobuf_AssignDescriptorsOnce() { - static ::google::protobuf::internal::once_flag once; - ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors); -} - -void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; -void protobuf_RegisterTypes(const ::std::string&) { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1); -} - -void AddDescriptorsImpl() { - InitDefaults(); - static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - "\n\024vssref_command.proto\022\022VSSRef.ref_to_te" - "am\032\023vssref_common.proto\"\251\001\n\016VSSRef_Comma" - "nd\022\032\n\004foul\030\001 \001(\0162\014.VSSRef.Foul\022 \n\tteamco" - "lor\030\002 \001(\0162\r.VSSRef.Color\022&\n\014foulQuadrant" - "\030\003 \001(\0162\020.VSSRef.Quadrant\022\021\n\ttimestamp\030\004 " - "\001(\001\022\036\n\010gameHalf\030\005 \001(\0162\014.VSSRef.Halfb\006pro" - "to3" - }; - ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( - descriptor, 243); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( - "vssref_command.proto", &protobuf_RegisterTypes); - ::protobuf_vssref_5fcommon_2eproto::AddDescriptors(); -} - -void AddDescriptors() { - static ::google::protobuf::internal::once_flag once; - ::google::protobuf::internal::call_once(once, AddDescriptorsImpl); -} -// Force AddDescriptors() to be called at dynamic initialization time. -struct StaticDescriptorInitializer { - StaticDescriptorInitializer() { - AddDescriptors(); - } -} static_descriptor_initializer; -} // namespace protobuf_vssref_5fcommand_2eproto -namespace VSSRef { -namespace ref_to_team { - -// =================================================================== - -void VSSRef_Command::InitAsDefaultInstance() { -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int VSSRef_Command::kFoulFieldNumber; -const int VSSRef_Command::kTeamcolorFieldNumber; -const int VSSRef_Command::kFoulQuadrantFieldNumber; -const int VSSRef_Command::kTimestampFieldNumber; -const int VSSRef_Command::kGameHalfFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -VSSRef_Command::VSSRef_Command() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - ::google::protobuf::internal::InitSCC( - &protobuf_vssref_5fcommand_2eproto::scc_info_VSSRef_Command.base); - SharedCtor(); - // @@protoc_insertion_point(constructor:VSSRef.ref_to_team.VSSRef_Command) -} -VSSRef_Command::VSSRef_Command(const VSSRef_Command& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&foul_, &from.foul_, - static_cast(reinterpret_cast(&gamehalf_) - - reinterpret_cast(&foul_)) + sizeof(gamehalf_)); - // @@protoc_insertion_point(copy_constructor:VSSRef.ref_to_team.VSSRef_Command) -} - -void VSSRef_Command::SharedCtor() { - ::memset(&foul_, 0, static_cast( - reinterpret_cast(&gamehalf_) - - reinterpret_cast(&foul_)) + sizeof(gamehalf_)); -} - -VSSRef_Command::~VSSRef_Command() { - // @@protoc_insertion_point(destructor:VSSRef.ref_to_team.VSSRef_Command) - SharedDtor(); -} - -void VSSRef_Command::SharedDtor() { -} - -void VSSRef_Command::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ::google::protobuf::Descriptor* VSSRef_Command::descriptor() { - ::protobuf_vssref_5fcommand_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_vssref_5fcommand_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; -} - -const VSSRef_Command& VSSRef_Command::default_instance() { - ::google::protobuf::internal::InitSCC(&protobuf_vssref_5fcommand_2eproto::scc_info_VSSRef_Command.base); - return *internal_default_instance(); -} - - -void VSSRef_Command::Clear() { -// @@protoc_insertion_point(message_clear_start:VSSRef.ref_to_team.VSSRef_Command) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&foul_, 0, static_cast( - reinterpret_cast(&gamehalf_) - - reinterpret_cast(&foul_)) + sizeof(gamehalf_)); - _internal_metadata_.Clear(); -} - -bool VSSRef_Command::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:VSSRef.ref_to_team.VSSRef_Command) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .VSSRef.Foul foul = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_foul(static_cast< ::VSSRef::Foul >(value)); - } else { - goto handle_unusual; - } - break; - } - - // .VSSRef.Color teamcolor = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_teamcolor(static_cast< ::VSSRef::Color >(value)); - } else { - goto handle_unusual; - } - break; - } - - // .VSSRef.Quadrant foulQuadrant = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_foulquadrant(static_cast< ::VSSRef::Quadrant >(value)); - } else { - goto handle_unusual; - } - break; - } - - // double timestamp = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(33u /* 33 & 0xFF */)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - input, ×tamp_))); - } else { - goto handle_unusual; - } - break; - } - - // .VSSRef.Half gameHalf = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_gamehalf(static_cast< ::VSSRef::Half >(value)); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:VSSRef.ref_to_team.VSSRef_Command) - return true; -failure: - // @@protoc_insertion_point(parse_failure:VSSRef.ref_to_team.VSSRef_Command) - return false; -#undef DO_ -} - -void VSSRef_Command::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:VSSRef.ref_to_team.VSSRef_Command) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .VSSRef.Foul foul = 1; - if (this->foul() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->foul(), output); - } - - // .VSSRef.Color teamcolor = 2; - if (this->teamcolor() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->teamcolor(), output); - } - - // .VSSRef.Quadrant foulQuadrant = 3; - if (this->foulquadrant() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 3, this->foulquadrant(), output); - } - - // double timestamp = 4; - if (this->timestamp() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteDouble(4, this->timestamp(), output); - } - - // .VSSRef.Half gameHalf = 5; - if (this->gamehalf() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 5, this->gamehalf(), output); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); - } - // @@protoc_insertion_point(serialize_end:VSSRef.ref_to_team.VSSRef_Command) -} - -::google::protobuf::uint8* VSSRef_Command::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:VSSRef.ref_to_team.VSSRef_Command) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .VSSRef.Foul foul = 1; - if (this->foul() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->foul(), target); - } - - // .VSSRef.Color teamcolor = 2; - if (this->teamcolor() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 2, this->teamcolor(), target); - } - - // .VSSRef.Quadrant foulQuadrant = 3; - if (this->foulquadrant() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 3, this->foulquadrant(), target); - } - - // double timestamp = 4; - if (this->timestamp() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(4, this->timestamp(), target); - } - - // .VSSRef.Half gameHalf = 5; - if (this->gamehalf() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 5, this->gamehalf(), target); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:VSSRef.ref_to_team.VSSRef_Command) - return target; -} - -size_t VSSRef_Command::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:VSSRef.ref_to_team.VSSRef_Command) - size_t total_size = 0; - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); - } - // .VSSRef.Foul foul = 1; - if (this->foul() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->foul()); - } - - // .VSSRef.Color teamcolor = 2; - if (this->teamcolor() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->teamcolor()); - } - - // double timestamp = 4; - if (this->timestamp() != 0) { - total_size += 1 + 8; - } - - // .VSSRef.Quadrant foulQuadrant = 3; - if (this->foulquadrant() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->foulquadrant()); - } - - // .VSSRef.Half gameHalf = 5; - if (this->gamehalf() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->gamehalf()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void VSSRef_Command::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:VSSRef.ref_to_team.VSSRef_Command) - GOOGLE_DCHECK_NE(&from, this); - const VSSRef_Command* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:VSSRef.ref_to_team.VSSRef_Command) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:VSSRef.ref_to_team.VSSRef_Command) - MergeFrom(*source); - } -} - -void VSSRef_Command::MergeFrom(const VSSRef_Command& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:VSSRef.ref_to_team.VSSRef_Command) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.foul() != 0) { - set_foul(from.foul()); - } - if (from.teamcolor() != 0) { - set_teamcolor(from.teamcolor()); - } - if (from.timestamp() != 0) { - set_timestamp(from.timestamp()); - } - if (from.foulquadrant() != 0) { - set_foulquadrant(from.foulquadrant()); - } - if (from.gamehalf() != 0) { - set_gamehalf(from.gamehalf()); - } -} - -void VSSRef_Command::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:VSSRef.ref_to_team.VSSRef_Command) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void VSSRef_Command::CopyFrom(const VSSRef_Command& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:VSSRef.ref_to_team.VSSRef_Command) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool VSSRef_Command::IsInitialized() const { - return true; -} - -void VSSRef_Command::Swap(VSSRef_Command* other) { - if (other == this) return; - InternalSwap(other); -} -void VSSRef_Command::InternalSwap(VSSRef_Command* other) { - using std::swap; - swap(foul_, other->foul_); - swap(teamcolor_, other->teamcolor_); - swap(timestamp_, other->timestamp_); - swap(foulquadrant_, other->foulquadrant_); - swap(gamehalf_, other->gamehalf_); - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata VSSRef_Command::GetMetadata() const { - protobuf_vssref_5fcommand_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_vssref_5fcommand_2eproto::file_level_metadata[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace ref_to_team -} // namespace VSSRef -namespace google { -namespace protobuf { -template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::VSSRef::ref_to_team::VSSRef_Command* Arena::CreateMaybeMessage< ::VSSRef::ref_to_team::VSSRef_Command >(Arena* arena) { - return Arena::CreateInternal< ::VSSRef::ref_to_team::VSSRef_Command >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) diff --git a/include/vssref_command.pb.h b/include/vssref_command.pb.h deleted file mode 100644 index 7f7b69f..0000000 --- a/include/vssref_command.pb.h +++ /dev/null @@ -1,287 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: vssref_command.proto - -#ifndef PROTOBUF_INCLUDED_vssref_5fcommand_2eproto -#define PROTOBUF_INCLUDED_vssref_5fcommand_2eproto - -#include - -#include - -#if GOOGLE_PROTOBUF_VERSION < 3006001 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include "vssref_common.pb.h" -// @@protoc_insertion_point(includes) -#define PROTOBUF_INTERNAL_EXPORT_protobuf_vssref_5fcommand_2eproto - -namespace protobuf_vssref_5fcommand_2eproto { -// Internal implementation detail -- do not use these members. -struct TableStruct { - static const ::google::protobuf::internal::ParseTableField entries[]; - static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; - static const ::google::protobuf::internal::ParseTable schema[1]; - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors(); -} // namespace protobuf_vssref_5fcommand_2eproto -namespace VSSRef { -namespace ref_to_team { -class VSSRef_Command; -class VSSRef_CommandDefaultTypeInternal; -extern VSSRef_CommandDefaultTypeInternal _VSSRef_Command_default_instance_; -} // namespace ref_to_team -} // namespace VSSRef -namespace google { -namespace protobuf { -template<> ::VSSRef::ref_to_team::VSSRef_Command* Arena::CreateMaybeMessage<::VSSRef::ref_to_team::VSSRef_Command>(Arena*); -} // namespace protobuf -} // namespace google -namespace VSSRef { -namespace ref_to_team { - -// =================================================================== - -class VSSRef_Command : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:VSSRef.ref_to_team.VSSRef_Command) */ { - public: - VSSRef_Command(); - virtual ~VSSRef_Command(); - - VSSRef_Command(const VSSRef_Command& from); - - inline VSSRef_Command& operator=(const VSSRef_Command& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - VSSRef_Command(VSSRef_Command&& from) noexcept - : VSSRef_Command() { - *this = ::std::move(from); - } - - inline VSSRef_Command& operator=(VSSRef_Command&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const VSSRef_Command& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const VSSRef_Command* internal_default_instance() { - return reinterpret_cast( - &_VSSRef_Command_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(VSSRef_Command* other); - friend void swap(VSSRef_Command& a, VSSRef_Command& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline VSSRef_Command* New() const final { - return CreateMaybeMessage(NULL); - } - - VSSRef_Command* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const VSSRef_Command& from); - void MergeFrom(const VSSRef_Command& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(VSSRef_Command* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // .VSSRef.Foul foul = 1; - void clear_foul(); - static const int kFoulFieldNumber = 1; - ::VSSRef::Foul foul() const; - void set_foul(::VSSRef::Foul value); - - // .VSSRef.Color teamcolor = 2; - void clear_teamcolor(); - static const int kTeamcolorFieldNumber = 2; - ::VSSRef::Color teamcolor() const; - void set_teamcolor(::VSSRef::Color value); - - // double timestamp = 4; - void clear_timestamp(); - static const int kTimestampFieldNumber = 4; - double timestamp() const; - void set_timestamp(double value); - - // .VSSRef.Quadrant foulQuadrant = 3; - void clear_foulquadrant(); - static const int kFoulQuadrantFieldNumber = 3; - ::VSSRef::Quadrant foulquadrant() const; - void set_foulquadrant(::VSSRef::Quadrant value); - - // .VSSRef.Half gameHalf = 5; - void clear_gamehalf(); - static const int kGameHalfFieldNumber = 5; - ::VSSRef::Half gamehalf() const; - void set_gamehalf(::VSSRef::Half value); - - // @@protoc_insertion_point(class_scope:VSSRef.ref_to_team.VSSRef_Command) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - int foul_; - int teamcolor_; - double timestamp_; - int foulquadrant_; - int gamehalf_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_vssref_5fcommand_2eproto::TableStruct; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// VSSRef_Command - -// .VSSRef.Foul foul = 1; -inline void VSSRef_Command::clear_foul() { - foul_ = 0; -} -inline ::VSSRef::Foul VSSRef_Command::foul() const { - // @@protoc_insertion_point(field_get:VSSRef.ref_to_team.VSSRef_Command.foul) - return static_cast< ::VSSRef::Foul >(foul_); -} -inline void VSSRef_Command::set_foul(::VSSRef::Foul value) { - - foul_ = value; - // @@protoc_insertion_point(field_set:VSSRef.ref_to_team.VSSRef_Command.foul) -} - -// .VSSRef.Color teamcolor = 2; -inline void VSSRef_Command::clear_teamcolor() { - teamcolor_ = 0; -} -inline ::VSSRef::Color VSSRef_Command::teamcolor() const { - // @@protoc_insertion_point(field_get:VSSRef.ref_to_team.VSSRef_Command.teamcolor) - return static_cast< ::VSSRef::Color >(teamcolor_); -} -inline void VSSRef_Command::set_teamcolor(::VSSRef::Color value) { - - teamcolor_ = value; - // @@protoc_insertion_point(field_set:VSSRef.ref_to_team.VSSRef_Command.teamcolor) -} - -// .VSSRef.Quadrant foulQuadrant = 3; -inline void VSSRef_Command::clear_foulquadrant() { - foulquadrant_ = 0; -} -inline ::VSSRef::Quadrant VSSRef_Command::foulquadrant() const { - // @@protoc_insertion_point(field_get:VSSRef.ref_to_team.VSSRef_Command.foulQuadrant) - return static_cast< ::VSSRef::Quadrant >(foulquadrant_); -} -inline void VSSRef_Command::set_foulquadrant(::VSSRef::Quadrant value) { - - foulquadrant_ = value; - // @@protoc_insertion_point(field_set:VSSRef.ref_to_team.VSSRef_Command.foulQuadrant) -} - -// double timestamp = 4; -inline void VSSRef_Command::clear_timestamp() { - timestamp_ = 0; -} -inline double VSSRef_Command::timestamp() const { - // @@protoc_insertion_point(field_get:VSSRef.ref_to_team.VSSRef_Command.timestamp) - return timestamp_; -} -inline void VSSRef_Command::set_timestamp(double value) { - - timestamp_ = value; - // @@protoc_insertion_point(field_set:VSSRef.ref_to_team.VSSRef_Command.timestamp) -} - -// .VSSRef.Half gameHalf = 5; -inline void VSSRef_Command::clear_gamehalf() { - gamehalf_ = 0; -} -inline ::VSSRef::Half VSSRef_Command::gamehalf() const { - // @@protoc_insertion_point(field_get:VSSRef.ref_to_team.VSSRef_Command.gameHalf) - return static_cast< ::VSSRef::Half >(gamehalf_); -} -inline void VSSRef_Command::set_gamehalf(::VSSRef::Half value) { - - gamehalf_ = value; - // @@protoc_insertion_point(field_set:VSSRef.ref_to_team.VSSRef_Command.gameHalf) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) - -} // namespace ref_to_team -} // namespace VSSRef - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_INCLUDED_vssref_5fcommand_2eproto diff --git a/include/vssref_common.pb.cc b/include/vssref_common.pb.cc deleted file mode 100644 index 2129ca5..0000000 --- a/include/vssref_common.pb.cc +++ /dev/null @@ -1,842 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: vssref_common.proto - -#include "vssref_common.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// This is a temporary google only hack -#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS -#include "third_party/protobuf/version.h" -#endif -// @@protoc_insertion_point(includes) - -namespace protobuf_vssref_5fcommon_2eproto { -extern PROTOBUF_INTERNAL_EXPORT_protobuf_vssref_5fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Robot; -} // namespace protobuf_vssref_5fcommon_2eproto -namespace VSSRef { -class RobotDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed - _instance; -} _Robot_default_instance_; -class FrameDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed - _instance; -} _Frame_default_instance_; -} // namespace VSSRef -namespace protobuf_vssref_5fcommon_2eproto { -static void InitDefaultsRobot() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::VSSRef::_Robot_default_instance_; - new (ptr) ::VSSRef::Robot(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::VSSRef::Robot::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_Robot = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRobot}, {}}; - -static void InitDefaultsFrame() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::VSSRef::_Frame_default_instance_; - new (ptr) ::VSSRef::Frame(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::VSSRef::Frame::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_Frame = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsFrame}, { - &protobuf_vssref_5fcommon_2eproto::scc_info_Robot.base,}}; - -void InitDefaults() { - ::google::protobuf::internal::InitSCC(&scc_info_Robot.base); - ::google::protobuf::internal::InitSCC(&scc_info_Frame.base); -} - -::google::protobuf::Metadata file_level_metadata[2]; -const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[4]; - -const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::VSSRef::Robot, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::VSSRef::Robot, robot_id_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::VSSRef::Robot, x_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::VSSRef::Robot, y_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::VSSRef::Robot, orientation_), - ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::VSSRef::Frame, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::VSSRef::Frame, teamcolor_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::VSSRef::Frame, robots_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::VSSRef::Robot)}, - { 9, -1, sizeof(::VSSRef::Frame)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::VSSRef::_Robot_default_instance_), - reinterpret_cast(&::VSSRef::_Frame_default_instance_), -}; - -void protobuf_AssignDescriptors() { - AddDescriptors(); - AssignDescriptors( - "vssref_common.proto", schemas, file_default_instances, TableStruct::offsets, - file_level_metadata, file_level_enum_descriptors, NULL); -} - -void protobuf_AssignDescriptorsOnce() { - static ::google::protobuf::internal::once_flag once; - ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors); -} - -void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; -void protobuf_RegisterTypes(const ::std::string&) { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 2); -} - -void AddDescriptorsImpl() { - InitDefaults(); - static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - "\n\023vssref_common.proto\022\006VSSRef\"D\n\005Robot\022\020" - "\n\010robot_id\030\001 \001(\r\022\t\n\001x\030\002 \001(\001\022\t\n\001y\030\003 \001(\001\022\023" - "\n\013orientation\030\004 \001(\001\"H\n\005Frame\022 \n\tteamColo" - "r\030\001 \001(\0162\r.VSSRef.Color\022\035\n\006robots\030\002 \003(\0132\r" - ".VSSRef.Robot*s\n\004Foul\022\r\n\tFREE_KICK\020\000\022\020\n\014" - "PENALTY_KICK\020\001\022\r\n\tGOAL_KICK\020\002\022\r\n\tFREE_BA" - "LL\020\003\022\013\n\007KICKOFF\020\004\022\010\n\004STOP\020\005\022\013\n\007GAME_ON\020\006" - "\022\010\n\004HALT\020\007*\'\n\005Color\022\010\n\004BLUE\020\000\022\n\n\006YELLOW\020" - "\001\022\010\n\004NONE\020\002*[\n\010Quadrant\022\017\n\013NO_QUADRANT\020\000" - "\022\016\n\nQUADRANT_1\020\001\022\016\n\nQUADRANT_2\020\002\022\016\n\nQUAD" - "RANT_3\020\003\022\016\n\nQUADRANT_4\020\004*~\n\004Half\022\013\n\007NO_H" - "ALF\020\000\022\016\n\nFIRST_HALF\020\001\022\017\n\013SECOND_HALF\020\002\022\027" - "\n\023OVERTIME_FIRST_HALF\020\003\022\030\n\024OVERTIME_SECO" - "ND_HALF\020\004\022\025\n\021PENALTY_SHOOTOUTS\020\005b\006proto3" - }; - ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( - descriptor, 560); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( - "vssref_common.proto", &protobuf_RegisterTypes); -} - -void AddDescriptors() { - static ::google::protobuf::internal::once_flag once; - ::google::protobuf::internal::call_once(once, AddDescriptorsImpl); -} -// Force AddDescriptors() to be called at dynamic initialization time. -struct StaticDescriptorInitializer { - StaticDescriptorInitializer() { - AddDescriptors(); - } -} static_descriptor_initializer; -} // namespace protobuf_vssref_5fcommon_2eproto -namespace VSSRef { -const ::google::protobuf::EnumDescriptor* Foul_descriptor() { - protobuf_vssref_5fcommon_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_vssref_5fcommon_2eproto::file_level_enum_descriptors[0]; -} -bool Foul_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - return true; - default: - return false; - } -} - -const ::google::protobuf::EnumDescriptor* Color_descriptor() { - protobuf_vssref_5fcommon_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_vssref_5fcommon_2eproto::file_level_enum_descriptors[1]; -} -bool Color_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} - -const ::google::protobuf::EnumDescriptor* Quadrant_descriptor() { - protobuf_vssref_5fcommon_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_vssref_5fcommon_2eproto::file_level_enum_descriptors[2]; -} -bool Quadrant_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - return true; - default: - return false; - } -} - -const ::google::protobuf::EnumDescriptor* Half_descriptor() { - protobuf_vssref_5fcommon_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_vssref_5fcommon_2eproto::file_level_enum_descriptors[3]; -} -bool Half_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - return true; - default: - return false; - } -} - - -// =================================================================== - -void Robot::InitAsDefaultInstance() { -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Robot::kRobotIdFieldNumber; -const int Robot::kXFieldNumber; -const int Robot::kYFieldNumber; -const int Robot::kOrientationFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Robot::Robot() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - ::google::protobuf::internal::InitSCC( - &protobuf_vssref_5fcommon_2eproto::scc_info_Robot.base); - SharedCtor(); - // @@protoc_insertion_point(constructor:VSSRef.Robot) -} -Robot::Robot(const Robot& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&x_, &from.x_, - static_cast(reinterpret_cast(&robot_id_) - - reinterpret_cast(&x_)) + sizeof(robot_id_)); - // @@protoc_insertion_point(copy_constructor:VSSRef.Robot) -} - -void Robot::SharedCtor() { - ::memset(&x_, 0, static_cast( - reinterpret_cast(&robot_id_) - - reinterpret_cast(&x_)) + sizeof(robot_id_)); -} - -Robot::~Robot() { - // @@protoc_insertion_point(destructor:VSSRef.Robot) - SharedDtor(); -} - -void Robot::SharedDtor() { -} - -void Robot::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ::google::protobuf::Descriptor* Robot::descriptor() { - ::protobuf_vssref_5fcommon_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_vssref_5fcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; -} - -const Robot& Robot::default_instance() { - ::google::protobuf::internal::InitSCC(&protobuf_vssref_5fcommon_2eproto::scc_info_Robot.base); - return *internal_default_instance(); -} - - -void Robot::Clear() { -// @@protoc_insertion_point(message_clear_start:VSSRef.Robot) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&x_, 0, static_cast( - reinterpret_cast(&robot_id_) - - reinterpret_cast(&x_)) + sizeof(robot_id_)); - _internal_metadata_.Clear(); -} - -bool Robot::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:VSSRef.Robot) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // uint32 robot_id = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &robot_id_))); - } else { - goto handle_unusual; - } - break; - } - - // double x = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(17u /* 17 & 0xFF */)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - input, &x_))); - } else { - goto handle_unusual; - } - break; - } - - // double y = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(25u /* 25 & 0xFF */)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - input, &y_))); - } else { - goto handle_unusual; - } - break; - } - - // double orientation = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(33u /* 33 & 0xFF */)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - input, &orientation_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:VSSRef.Robot) - return true; -failure: - // @@protoc_insertion_point(parse_failure:VSSRef.Robot) - return false; -#undef DO_ -} - -void Robot::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:VSSRef.Robot) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // uint32 robot_id = 1; - if (this->robot_id() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->robot_id(), output); - } - - // double x = 2; - if (this->x() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->x(), output); - } - - // double y = 3; - if (this->y() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteDouble(3, this->y(), output); - } - - // double orientation = 4; - if (this->orientation() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteDouble(4, this->orientation(), output); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); - } - // @@protoc_insertion_point(serialize_end:VSSRef.Robot) -} - -::google::protobuf::uint8* Robot::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:VSSRef.Robot) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // uint32 robot_id = 1; - if (this->robot_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->robot_id(), target); - } - - // double x = 2; - if (this->x() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->x(), target); - } - - // double y = 3; - if (this->y() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(3, this->y(), target); - } - - // double orientation = 4; - if (this->orientation() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(4, this->orientation(), target); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:VSSRef.Robot) - return target; -} - -size_t Robot::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:VSSRef.Robot) - size_t total_size = 0; - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); - } - // double x = 2; - if (this->x() != 0) { - total_size += 1 + 8; - } - - // double y = 3; - if (this->y() != 0) { - total_size += 1 + 8; - } - - // double orientation = 4; - if (this->orientation() != 0) { - total_size += 1 + 8; - } - - // uint32 robot_id = 1; - if (this->robot_id() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->robot_id()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Robot::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:VSSRef.Robot) - GOOGLE_DCHECK_NE(&from, this); - const Robot* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:VSSRef.Robot) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:VSSRef.Robot) - MergeFrom(*source); - } -} - -void Robot::MergeFrom(const Robot& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:VSSRef.Robot) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.x() != 0) { - set_x(from.x()); - } - if (from.y() != 0) { - set_y(from.y()); - } - if (from.orientation() != 0) { - set_orientation(from.orientation()); - } - if (from.robot_id() != 0) { - set_robot_id(from.robot_id()); - } -} - -void Robot::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:VSSRef.Robot) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Robot::CopyFrom(const Robot& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:VSSRef.Robot) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Robot::IsInitialized() const { - return true; -} - -void Robot::Swap(Robot* other) { - if (other == this) return; - InternalSwap(other); -} -void Robot::InternalSwap(Robot* other) { - using std::swap; - swap(x_, other->x_); - swap(y_, other->y_); - swap(orientation_, other->orientation_); - swap(robot_id_, other->robot_id_); - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata Robot::GetMetadata() const { - protobuf_vssref_5fcommon_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_vssref_5fcommon_2eproto::file_level_metadata[kIndexInFileMessages]; -} - - -// =================================================================== - -void Frame::InitAsDefaultInstance() { -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Frame::kTeamColorFieldNumber; -const int Frame::kRobotsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Frame::Frame() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - ::google::protobuf::internal::InitSCC( - &protobuf_vssref_5fcommon_2eproto::scc_info_Frame.base); - SharedCtor(); - // @@protoc_insertion_point(constructor:VSSRef.Frame) -} -Frame::Frame(const Frame& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL), - robots_(from.robots_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - teamcolor_ = from.teamcolor_; - // @@protoc_insertion_point(copy_constructor:VSSRef.Frame) -} - -void Frame::SharedCtor() { - teamcolor_ = 0; -} - -Frame::~Frame() { - // @@protoc_insertion_point(destructor:VSSRef.Frame) - SharedDtor(); -} - -void Frame::SharedDtor() { -} - -void Frame::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ::google::protobuf::Descriptor* Frame::descriptor() { - ::protobuf_vssref_5fcommon_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_vssref_5fcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; -} - -const Frame& Frame::default_instance() { - ::google::protobuf::internal::InitSCC(&protobuf_vssref_5fcommon_2eproto::scc_info_Frame.base); - return *internal_default_instance(); -} - - -void Frame::Clear() { -// @@protoc_insertion_point(message_clear_start:VSSRef.Frame) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - robots_.Clear(); - teamcolor_ = 0; - _internal_metadata_.Clear(); -} - -bool Frame::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:VSSRef.Frame) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .VSSRef.Color teamColor = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_teamcolor(static_cast< ::VSSRef::Color >(value)); - } else { - goto handle_unusual; - } - break; - } - - // repeated .VSSRef.Robot robots = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_robots())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:VSSRef.Frame) - return true; -failure: - // @@protoc_insertion_point(parse_failure:VSSRef.Frame) - return false; -#undef DO_ -} - -void Frame::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:VSSRef.Frame) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .VSSRef.Color teamColor = 1; - if (this->teamcolor() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->teamcolor(), output); - } - - // repeated .VSSRef.Robot robots = 2; - for (unsigned int i = 0, - n = static_cast(this->robots_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, - this->robots(static_cast(i)), - output); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); - } - // @@protoc_insertion_point(serialize_end:VSSRef.Frame) -} - -::google::protobuf::uint8* Frame::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:VSSRef.Frame) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .VSSRef.Color teamColor = 1; - if (this->teamcolor() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->teamcolor(), target); - } - - // repeated .VSSRef.Robot robots = 2; - for (unsigned int i = 0, - n = static_cast(this->robots_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, this->robots(static_cast(i)), deterministic, target); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:VSSRef.Frame) - return target; -} - -size_t Frame::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:VSSRef.Frame) - size_t total_size = 0; - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); - } - // repeated .VSSRef.Robot robots = 2; - { - unsigned int count = static_cast(this->robots_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->robots(static_cast(i))); - } - } - - // .VSSRef.Color teamColor = 1; - if (this->teamcolor() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->teamcolor()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Frame::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:VSSRef.Frame) - GOOGLE_DCHECK_NE(&from, this); - const Frame* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:VSSRef.Frame) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:VSSRef.Frame) - MergeFrom(*source); - } -} - -void Frame::MergeFrom(const Frame& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:VSSRef.Frame) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - robots_.MergeFrom(from.robots_); - if (from.teamcolor() != 0) { - set_teamcolor(from.teamcolor()); - } -} - -void Frame::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:VSSRef.Frame) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Frame::CopyFrom(const Frame& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:VSSRef.Frame) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Frame::IsInitialized() const { - return true; -} - -void Frame::Swap(Frame* other) { - if (other == this) return; - InternalSwap(other); -} -void Frame::InternalSwap(Frame* other) { - using std::swap; - CastToBase(&robots_)->InternalSwap(CastToBase(&other->robots_)); - swap(teamcolor_, other->teamcolor_); - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata Frame::GetMetadata() const { - protobuf_vssref_5fcommon_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_vssref_5fcommon_2eproto::file_level_metadata[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace VSSRef -namespace google { -namespace protobuf { -template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::VSSRef::Robot* Arena::CreateMaybeMessage< ::VSSRef::Robot >(Arena* arena) { - return Arena::CreateInternal< ::VSSRef::Robot >(arena); -} -template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::VSSRef::Frame* Arena::CreateMaybeMessage< ::VSSRef::Frame >(Arena* arena) { - return Arena::CreateInternal< ::VSSRef::Frame >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) diff --git a/include/vssref_common.pb.h b/include/vssref_common.pb.h deleted file mode 100644 index 06bcb79..0000000 --- a/include/vssref_common.pb.h +++ /dev/null @@ -1,557 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: vssref_common.proto - -#ifndef PROTOBUF_INCLUDED_vssref_5fcommon_2eproto -#define PROTOBUF_INCLUDED_vssref_5fcommon_2eproto - -#include - -#include - -#if GOOGLE_PROTOBUF_VERSION < 3006001 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -// @@protoc_insertion_point(includes) -#define PROTOBUF_INTERNAL_EXPORT_protobuf_vssref_5fcommon_2eproto - -namespace protobuf_vssref_5fcommon_2eproto { -// Internal implementation detail -- do not use these members. -struct TableStruct { - static const ::google::protobuf::internal::ParseTableField entries[]; - static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; - static const ::google::protobuf::internal::ParseTable schema[2]; - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors(); -} // namespace protobuf_vssref_5fcommon_2eproto -namespace VSSRef { -class Frame; -class FrameDefaultTypeInternal; -extern FrameDefaultTypeInternal _Frame_default_instance_; -class Robot; -class RobotDefaultTypeInternal; -extern RobotDefaultTypeInternal _Robot_default_instance_; -} // namespace VSSRef -namespace google { -namespace protobuf { -template<> ::VSSRef::Frame* Arena::CreateMaybeMessage<::VSSRef::Frame>(Arena*); -template<> ::VSSRef::Robot* Arena::CreateMaybeMessage<::VSSRef::Robot>(Arena*); -} // namespace protobuf -} // namespace google -namespace VSSRef { - -enum Foul { - FREE_KICK = 0, - PENALTY_KICK = 1, - GOAL_KICK = 2, - FREE_BALL = 3, - KICKOFF = 4, - STOP = 5, - GAME_ON = 6, - HALT = 7, - Foul_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, - Foul_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max -}; -bool Foul_IsValid(int value); -const Foul Foul_MIN = FREE_KICK; -const Foul Foul_MAX = HALT; -const int Foul_ARRAYSIZE = Foul_MAX + 1; - -const ::google::protobuf::EnumDescriptor* Foul_descriptor(); -inline const ::std::string& Foul_Name(Foul value) { - return ::google::protobuf::internal::NameOfEnum( - Foul_descriptor(), value); -} -inline bool Foul_Parse( - const ::std::string& name, Foul* value) { - return ::google::protobuf::internal::ParseNamedEnum( - Foul_descriptor(), name, value); -} -enum Color { - BLUE = 0, - YELLOW = 1, - NONE = 2, - Color_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, - Color_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max -}; -bool Color_IsValid(int value); -const Color Color_MIN = BLUE; -const Color Color_MAX = NONE; -const int Color_ARRAYSIZE = Color_MAX + 1; - -const ::google::protobuf::EnumDescriptor* Color_descriptor(); -inline const ::std::string& Color_Name(Color value) { - return ::google::protobuf::internal::NameOfEnum( - Color_descriptor(), value); -} -inline bool Color_Parse( - const ::std::string& name, Color* value) { - return ::google::protobuf::internal::ParseNamedEnum( - Color_descriptor(), name, value); -} -enum Quadrant { - NO_QUADRANT = 0, - QUADRANT_1 = 1, - QUADRANT_2 = 2, - QUADRANT_3 = 3, - QUADRANT_4 = 4, - Quadrant_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, - Quadrant_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max -}; -bool Quadrant_IsValid(int value); -const Quadrant Quadrant_MIN = NO_QUADRANT; -const Quadrant Quadrant_MAX = QUADRANT_4; -const int Quadrant_ARRAYSIZE = Quadrant_MAX + 1; - -const ::google::protobuf::EnumDescriptor* Quadrant_descriptor(); -inline const ::std::string& Quadrant_Name(Quadrant value) { - return ::google::protobuf::internal::NameOfEnum( - Quadrant_descriptor(), value); -} -inline bool Quadrant_Parse( - const ::std::string& name, Quadrant* value) { - return ::google::protobuf::internal::ParseNamedEnum( - Quadrant_descriptor(), name, value); -} -enum Half { - NO_HALF = 0, - FIRST_HALF = 1, - SECOND_HALF = 2, - OVERTIME_FIRST_HALF = 3, - OVERTIME_SECOND_HALF = 4, - PENALTY_SHOOTOUTS = 5, - Half_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, - Half_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max -}; -bool Half_IsValid(int value); -const Half Half_MIN = NO_HALF; -const Half Half_MAX = PENALTY_SHOOTOUTS; -const int Half_ARRAYSIZE = Half_MAX + 1; - -const ::google::protobuf::EnumDescriptor* Half_descriptor(); -inline const ::std::string& Half_Name(Half value) { - return ::google::protobuf::internal::NameOfEnum( - Half_descriptor(), value); -} -inline bool Half_Parse( - const ::std::string& name, Half* value) { - return ::google::protobuf::internal::ParseNamedEnum( - Half_descriptor(), name, value); -} -// =================================================================== - -class Robot : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:VSSRef.Robot) */ { - public: - Robot(); - virtual ~Robot(); - - Robot(const Robot& from); - - inline Robot& operator=(const Robot& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Robot(Robot&& from) noexcept - : Robot() { - *this = ::std::move(from); - } - - inline Robot& operator=(Robot&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const Robot& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Robot* internal_default_instance() { - return reinterpret_cast( - &_Robot_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(Robot* other); - friend void swap(Robot& a, Robot& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Robot* New() const final { - return CreateMaybeMessage(NULL); - } - - Robot* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const Robot& from); - void MergeFrom(const Robot& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Robot* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // double x = 2; - void clear_x(); - static const int kXFieldNumber = 2; - double x() const; - void set_x(double value); - - // double y = 3; - void clear_y(); - static const int kYFieldNumber = 3; - double y() const; - void set_y(double value); - - // double orientation = 4; - void clear_orientation(); - static const int kOrientationFieldNumber = 4; - double orientation() const; - void set_orientation(double value); - - // uint32 robot_id = 1; - void clear_robot_id(); - static const int kRobotIdFieldNumber = 1; - ::google::protobuf::uint32 robot_id() const; - void set_robot_id(::google::protobuf::uint32 value); - - // @@protoc_insertion_point(class_scope:VSSRef.Robot) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - double x_; - double y_; - double orientation_; - ::google::protobuf::uint32 robot_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_vssref_5fcommon_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class Frame : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:VSSRef.Frame) */ { - public: - Frame(); - virtual ~Frame(); - - Frame(const Frame& from); - - inline Frame& operator=(const Frame& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Frame(Frame&& from) noexcept - : Frame() { - *this = ::std::move(from); - } - - inline Frame& operator=(Frame&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const Frame& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Frame* internal_default_instance() { - return reinterpret_cast( - &_Frame_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void Swap(Frame* other); - friend void swap(Frame& a, Frame& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Frame* New() const final { - return CreateMaybeMessage(NULL); - } - - Frame* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const Frame& from); - void MergeFrom(const Frame& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Frame* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated .VSSRef.Robot robots = 2; - int robots_size() const; - void clear_robots(); - static const int kRobotsFieldNumber = 2; - ::VSSRef::Robot* mutable_robots(int index); - ::google::protobuf::RepeatedPtrField< ::VSSRef::Robot >* - mutable_robots(); - const ::VSSRef::Robot& robots(int index) const; - ::VSSRef::Robot* add_robots(); - const ::google::protobuf::RepeatedPtrField< ::VSSRef::Robot >& - robots() const; - - // .VSSRef.Color teamColor = 1; - void clear_teamcolor(); - static const int kTeamColorFieldNumber = 1; - ::VSSRef::Color teamcolor() const; - void set_teamcolor(::VSSRef::Color value); - - // @@protoc_insertion_point(class_scope:VSSRef.Frame) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::VSSRef::Robot > robots_; - int teamcolor_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_vssref_5fcommon_2eproto::TableStruct; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// Robot - -// uint32 robot_id = 1; -inline void Robot::clear_robot_id() { - robot_id_ = 0u; -} -inline ::google::protobuf::uint32 Robot::robot_id() const { - // @@protoc_insertion_point(field_get:VSSRef.Robot.robot_id) - return robot_id_; -} -inline void Robot::set_robot_id(::google::protobuf::uint32 value) { - - robot_id_ = value; - // @@protoc_insertion_point(field_set:VSSRef.Robot.robot_id) -} - -// double x = 2; -inline void Robot::clear_x() { - x_ = 0; -} -inline double Robot::x() const { - // @@protoc_insertion_point(field_get:VSSRef.Robot.x) - return x_; -} -inline void Robot::set_x(double value) { - - x_ = value; - // @@protoc_insertion_point(field_set:VSSRef.Robot.x) -} - -// double y = 3; -inline void Robot::clear_y() { - y_ = 0; -} -inline double Robot::y() const { - // @@protoc_insertion_point(field_get:VSSRef.Robot.y) - return y_; -} -inline void Robot::set_y(double value) { - - y_ = value; - // @@protoc_insertion_point(field_set:VSSRef.Robot.y) -} - -// double orientation = 4; -inline void Robot::clear_orientation() { - orientation_ = 0; -} -inline double Robot::orientation() const { - // @@protoc_insertion_point(field_get:VSSRef.Robot.orientation) - return orientation_; -} -inline void Robot::set_orientation(double value) { - - orientation_ = value; - // @@protoc_insertion_point(field_set:VSSRef.Robot.orientation) -} - -// ------------------------------------------------------------------- - -// Frame - -// .VSSRef.Color teamColor = 1; -inline void Frame::clear_teamcolor() { - teamcolor_ = 0; -} -inline ::VSSRef::Color Frame::teamcolor() const { - // @@protoc_insertion_point(field_get:VSSRef.Frame.teamColor) - return static_cast< ::VSSRef::Color >(teamcolor_); -} -inline void Frame::set_teamcolor(::VSSRef::Color value) { - - teamcolor_ = value; - // @@protoc_insertion_point(field_set:VSSRef.Frame.teamColor) -} - -// repeated .VSSRef.Robot robots = 2; -inline int Frame::robots_size() const { - return robots_.size(); -} -inline void Frame::clear_robots() { - robots_.Clear(); -} -inline ::VSSRef::Robot* Frame::mutable_robots(int index) { - // @@protoc_insertion_point(field_mutable:VSSRef.Frame.robots) - return robots_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::VSSRef::Robot >* -Frame::mutable_robots() { - // @@protoc_insertion_point(field_mutable_list:VSSRef.Frame.robots) - return &robots_; -} -inline const ::VSSRef::Robot& Frame::robots(int index) const { - // @@protoc_insertion_point(field_get:VSSRef.Frame.robots) - return robots_.Get(index); -} -inline ::VSSRef::Robot* Frame::add_robots() { - // @@protoc_insertion_point(field_add:VSSRef.Frame.robots) - return robots_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::VSSRef::Robot >& -Frame::robots() const { - // @@protoc_insertion_point(field_list:VSSRef.Frame.robots) - return robots_; -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace VSSRef - -namespace google { -namespace protobuf { - -template <> struct is_proto_enum< ::VSSRef::Foul> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::VSSRef::Foul>() { - return ::VSSRef::Foul_descriptor(); -} -template <> struct is_proto_enum< ::VSSRef::Color> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::VSSRef::Color>() { - return ::VSSRef::Color_descriptor(); -} -template <> struct is_proto_enum< ::VSSRef::Quadrant> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::VSSRef::Quadrant>() { - return ::VSSRef::Quadrant_descriptor(); -} -template <> struct is_proto_enum< ::VSSRef::Half> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::VSSRef::Half>() { - return ::VSSRef::Half_descriptor(); -} - -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_INCLUDED_vssref_5fcommon_2eproto diff --git a/include/vssref_placement.pb.cc b/include/vssref_placement.pb.cc deleted file mode 100644 index 5170386..0000000 --- a/include/vssref_placement.pb.cc +++ /dev/null @@ -1,370 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: vssref_placement.proto - -#include "vssref_placement.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// This is a temporary google only hack -#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS -#include "third_party/protobuf/version.h" -#endif -// @@protoc_insertion_point(includes) - -namespace protobuf_vssref_5fcommon_2eproto { -extern PROTOBUF_INTERNAL_EXPORT_protobuf_vssref_5fcommon_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Frame; -} // namespace protobuf_vssref_5fcommon_2eproto -namespace VSSRef { -namespace team_to_ref { -class VSSRef_PlacementDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed - _instance; -} _VSSRef_Placement_default_instance_; -} // namespace team_to_ref -} // namespace VSSRef -namespace protobuf_vssref_5fplacement_2eproto { -static void InitDefaultsVSSRef_Placement() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::VSSRef::team_to_ref::_VSSRef_Placement_default_instance_; - new (ptr) ::VSSRef::team_to_ref::VSSRef_Placement(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::VSSRef::team_to_ref::VSSRef_Placement::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_VSSRef_Placement = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsVSSRef_Placement}, { - &protobuf_vssref_5fcommon_2eproto::scc_info_Frame.base,}}; - -void InitDefaults() { - ::google::protobuf::internal::InitSCC(&scc_info_VSSRef_Placement.base); -} - -::google::protobuf::Metadata file_level_metadata[1]; - -const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::VSSRef::team_to_ref::VSSRef_Placement, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::VSSRef::team_to_ref::VSSRef_Placement, world_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::VSSRef::team_to_ref::VSSRef_Placement)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::VSSRef::team_to_ref::_VSSRef_Placement_default_instance_), -}; - -void protobuf_AssignDescriptors() { - AddDescriptors(); - AssignDescriptors( - "vssref_placement.proto", schemas, file_default_instances, TableStruct::offsets, - file_level_metadata, NULL, NULL); -} - -void protobuf_AssignDescriptorsOnce() { - static ::google::protobuf::internal::once_flag once; - ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors); -} - -void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; -void protobuf_RegisterTypes(const ::std::string&) { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1); -} - -void AddDescriptorsImpl() { - InitDefaults(); - static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - "\n\026vssref_placement.proto\022\022VSSRef.team_to" - "_ref\032\023vssref_common.proto\"0\n\020VSSRef_Plac" - "ement\022\034\n\005world\030\001 \001(\0132\r.VSSRef.Frameb\006pro" - "to3" - }; - ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( - descriptor, 123); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( - "vssref_placement.proto", &protobuf_RegisterTypes); - ::protobuf_vssref_5fcommon_2eproto::AddDescriptors(); -} - -void AddDescriptors() { - static ::google::protobuf::internal::once_flag once; - ::google::protobuf::internal::call_once(once, AddDescriptorsImpl); -} -// Force AddDescriptors() to be called at dynamic initialization time. -struct StaticDescriptorInitializer { - StaticDescriptorInitializer() { - AddDescriptors(); - } -} static_descriptor_initializer; -} // namespace protobuf_vssref_5fplacement_2eproto -namespace VSSRef { -namespace team_to_ref { - -// =================================================================== - -void VSSRef_Placement::InitAsDefaultInstance() { - ::VSSRef::team_to_ref::_VSSRef_Placement_default_instance_._instance.get_mutable()->world_ = const_cast< ::VSSRef::Frame*>( - ::VSSRef::Frame::internal_default_instance()); -} -void VSSRef_Placement::clear_world() { - if (GetArenaNoVirtual() == NULL && world_ != NULL) { - delete world_; - } - world_ = NULL; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int VSSRef_Placement::kWorldFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -VSSRef_Placement::VSSRef_Placement() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - ::google::protobuf::internal::InitSCC( - &protobuf_vssref_5fplacement_2eproto::scc_info_VSSRef_Placement.base); - SharedCtor(); - // @@protoc_insertion_point(constructor:VSSRef.team_to_ref.VSSRef_Placement) -} -VSSRef_Placement::VSSRef_Placement(const VSSRef_Placement& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_world()) { - world_ = new ::VSSRef::Frame(*from.world_); - } else { - world_ = NULL; - } - // @@protoc_insertion_point(copy_constructor:VSSRef.team_to_ref.VSSRef_Placement) -} - -void VSSRef_Placement::SharedCtor() { - world_ = NULL; -} - -VSSRef_Placement::~VSSRef_Placement() { - // @@protoc_insertion_point(destructor:VSSRef.team_to_ref.VSSRef_Placement) - SharedDtor(); -} - -void VSSRef_Placement::SharedDtor() { - if (this != internal_default_instance()) delete world_; -} - -void VSSRef_Placement::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ::google::protobuf::Descriptor* VSSRef_Placement::descriptor() { - ::protobuf_vssref_5fplacement_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_vssref_5fplacement_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; -} - -const VSSRef_Placement& VSSRef_Placement::default_instance() { - ::google::protobuf::internal::InitSCC(&protobuf_vssref_5fplacement_2eproto::scc_info_VSSRef_Placement.base); - return *internal_default_instance(); -} - - -void VSSRef_Placement::Clear() { -// @@protoc_insertion_point(message_clear_start:VSSRef.team_to_ref.VSSRef_Placement) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == NULL && world_ != NULL) { - delete world_; - } - world_ = NULL; - _internal_metadata_.Clear(); -} - -bool VSSRef_Placement::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:VSSRef.team_to_ref.VSSRef_Placement) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .VSSRef.Frame world = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_world())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:VSSRef.team_to_ref.VSSRef_Placement) - return true; -failure: - // @@protoc_insertion_point(parse_failure:VSSRef.team_to_ref.VSSRef_Placement) - return false; -#undef DO_ -} - -void VSSRef_Placement::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:VSSRef.team_to_ref.VSSRef_Placement) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .VSSRef.Frame world = 1; - if (this->has_world()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->_internal_world(), output); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); - } - // @@protoc_insertion_point(serialize_end:VSSRef.team_to_ref.VSSRef_Placement) -} - -::google::protobuf::uint8* VSSRef_Placement::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:VSSRef.team_to_ref.VSSRef_Placement) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .VSSRef.Frame world = 1; - if (this->has_world()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, this->_internal_world(), deterministic, target); - } - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:VSSRef.team_to_ref.VSSRef_Placement) - return target; -} - -size_t VSSRef_Placement::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:VSSRef.team_to_ref.VSSRef_Placement) - size_t total_size = 0; - - if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); - } - // .VSSRef.Frame world = 1; - if (this->has_world()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *world_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void VSSRef_Placement::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:VSSRef.team_to_ref.VSSRef_Placement) - GOOGLE_DCHECK_NE(&from, this); - const VSSRef_Placement* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:VSSRef.team_to_ref.VSSRef_Placement) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:VSSRef.team_to_ref.VSSRef_Placement) - MergeFrom(*source); - } -} - -void VSSRef_Placement::MergeFrom(const VSSRef_Placement& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:VSSRef.team_to_ref.VSSRef_Placement) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_world()) { - mutable_world()->::VSSRef::Frame::MergeFrom(from.world()); - } -} - -void VSSRef_Placement::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:VSSRef.team_to_ref.VSSRef_Placement) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void VSSRef_Placement::CopyFrom(const VSSRef_Placement& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:VSSRef.team_to_ref.VSSRef_Placement) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool VSSRef_Placement::IsInitialized() const { - return true; -} - -void VSSRef_Placement::Swap(VSSRef_Placement* other) { - if (other == this) return; - InternalSwap(other); -} -void VSSRef_Placement::InternalSwap(VSSRef_Placement* other) { - using std::swap; - swap(world_, other->world_); - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata VSSRef_Placement::GetMetadata() const { - protobuf_vssref_5fplacement_2eproto::protobuf_AssignDescriptorsOnce(); - return ::protobuf_vssref_5fplacement_2eproto::file_level_metadata[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace team_to_ref -} // namespace VSSRef -namespace google { -namespace protobuf { -template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::VSSRef::team_to_ref::VSSRef_Placement* Arena::CreateMaybeMessage< ::VSSRef::team_to_ref::VSSRef_Placement >(Arena* arena) { - return Arena::CreateInternal< ::VSSRef::team_to_ref::VSSRef_Placement >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) diff --git a/include/vssref_placement.pb.h b/include/vssref_placement.pb.h deleted file mode 100644 index 699ee0c..0000000 --- a/include/vssref_placement.pb.h +++ /dev/null @@ -1,243 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: vssref_placement.proto - -#ifndef PROTOBUF_INCLUDED_vssref_5fplacement_2eproto -#define PROTOBUF_INCLUDED_vssref_5fplacement_2eproto - -#include - -#include - -#if GOOGLE_PROTOBUF_VERSION < 3006001 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include "vssref_common.pb.h" -// @@protoc_insertion_point(includes) -#define PROTOBUF_INTERNAL_EXPORT_protobuf_vssref_5fplacement_2eproto - -namespace protobuf_vssref_5fplacement_2eproto { -// Internal implementation detail -- do not use these members. -struct TableStruct { - static const ::google::protobuf::internal::ParseTableField entries[]; - static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; - static const ::google::protobuf::internal::ParseTable schema[1]; - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors(); -} // namespace protobuf_vssref_5fplacement_2eproto -namespace VSSRef { -namespace team_to_ref { -class VSSRef_Placement; -class VSSRef_PlacementDefaultTypeInternal; -extern VSSRef_PlacementDefaultTypeInternal _VSSRef_Placement_default_instance_; -} // namespace team_to_ref -} // namespace VSSRef -namespace google { -namespace protobuf { -template<> ::VSSRef::team_to_ref::VSSRef_Placement* Arena::CreateMaybeMessage<::VSSRef::team_to_ref::VSSRef_Placement>(Arena*); -} // namespace protobuf -} // namespace google -namespace VSSRef { -namespace team_to_ref { - -// =================================================================== - -class VSSRef_Placement : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:VSSRef.team_to_ref.VSSRef_Placement) */ { - public: - VSSRef_Placement(); - virtual ~VSSRef_Placement(); - - VSSRef_Placement(const VSSRef_Placement& from); - - inline VSSRef_Placement& operator=(const VSSRef_Placement& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - VSSRef_Placement(VSSRef_Placement&& from) noexcept - : VSSRef_Placement() { - *this = ::std::move(from); - } - - inline VSSRef_Placement& operator=(VSSRef_Placement&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const VSSRef_Placement& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const VSSRef_Placement* internal_default_instance() { - return reinterpret_cast( - &_VSSRef_Placement_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(VSSRef_Placement* other); - friend void swap(VSSRef_Placement& a, VSSRef_Placement& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline VSSRef_Placement* New() const final { - return CreateMaybeMessage(NULL); - } - - VSSRef_Placement* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const VSSRef_Placement& from); - void MergeFrom(const VSSRef_Placement& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(VSSRef_Placement* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // .VSSRef.Frame world = 1; - bool has_world() const; - void clear_world(); - static const int kWorldFieldNumber = 1; - private: - const ::VSSRef::Frame& _internal_world() const; - public: - const ::VSSRef::Frame& world() const; - ::VSSRef::Frame* release_world(); - ::VSSRef::Frame* mutable_world(); - void set_allocated_world(::VSSRef::Frame* world); - - // @@protoc_insertion_point(class_scope:VSSRef.team_to_ref.VSSRef_Placement) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::VSSRef::Frame* world_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_vssref_5fplacement_2eproto::TableStruct; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// VSSRef_Placement - -// .VSSRef.Frame world = 1; -inline bool VSSRef_Placement::has_world() const { - return this != internal_default_instance() && world_ != NULL; -} -inline const ::VSSRef::Frame& VSSRef_Placement::_internal_world() const { - return *world_; -} -inline const ::VSSRef::Frame& VSSRef_Placement::world() const { - const ::VSSRef::Frame* p = world_; - // @@protoc_insertion_point(field_get:VSSRef.team_to_ref.VSSRef_Placement.world) - return p != NULL ? *p : *reinterpret_cast( - &::VSSRef::_Frame_default_instance_); -} -inline ::VSSRef::Frame* VSSRef_Placement::release_world() { - // @@protoc_insertion_point(field_release:VSSRef.team_to_ref.VSSRef_Placement.world) - - ::VSSRef::Frame* temp = world_; - world_ = NULL; - return temp; -} -inline ::VSSRef::Frame* VSSRef_Placement::mutable_world() { - - if (world_ == NULL) { - auto* p = CreateMaybeMessage<::VSSRef::Frame>(GetArenaNoVirtual()); - world_ = p; - } - // @@protoc_insertion_point(field_mutable:VSSRef.team_to_ref.VSSRef_Placement.world) - return world_; -} -inline void VSSRef_Placement::set_allocated_world(::VSSRef::Frame* world) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(world_); - } - if (world) { - ::google::protobuf::Arena* submessage_arena = NULL; - if (message_arena != submessage_arena) { - world = ::google::protobuf::internal::GetOwnedMessage( - message_arena, world, submessage_arena); - } - - } else { - - } - world_ = world; - // @@protoc_insertion_point(field_set_allocated:VSSRef.team_to_ref.VSSRef_Placement.world) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) - -} // namespace team_to_ref -} // namespace VSSRef - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_INCLUDED_vssref_5fplacement_2eproto diff --git a/libfira.so b/libfira.so deleted file mode 100755 index 1552d7e..0000000 Binary files a/libfira.so and /dev/null differ