tried building, didn't work

This commit is contained in:
Sem van der Hoeven
2023-04-12 13:06:22 +00:00
parent 450f34c912
commit f6affc015b
1719 changed files with 215821 additions and 10018 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -645,94 +645,25 @@ set(CMAKE_MAKEFILE_DEPENDS
"/usr/lib/aarch64-linux-gnu/cmake/spdlog/spdlogConfigTargets-none.cmake"
"/usr/lib/aarch64-linux-gnu/cmake/spdlog/spdlogConfigTargets.cmake"
"/usr/lib/aarch64-linux-gnu/cmake/spdlog/spdlogConfigVersion.cmake"
"/usr/share/cmake-3.22/Modules/CMakeCCompiler.cmake.in"
"/usr/share/cmake-3.22/Modules/CMakeCCompilerABI.c"
"/usr/share/cmake-3.22/Modules/CMakeCInformation.cmake"
"/usr/share/cmake-3.22/Modules/CMakeCXXCompiler.cmake.in"
"/usr/share/cmake-3.22/Modules/CMakeCXXCompilerABI.cpp"
"/usr/share/cmake-3.22/Modules/CMakeCXXInformation.cmake"
"/usr/share/cmake-3.22/Modules/CMakeCheckCompilerFlagCommonPatterns.cmake"
"/usr/share/cmake-3.22/Modules/CMakeCommonLanguageInclude.cmake"
"/usr/share/cmake-3.22/Modules/CMakeCompilerIdDetection.cmake"
"/usr/share/cmake-3.22/Modules/CMakeDetermineCCompiler.cmake"
"/usr/share/cmake-3.22/Modules/CMakeDetermineCXXCompiler.cmake"
"/usr/share/cmake-3.22/Modules/CMakeDetermineCompileFeatures.cmake"
"/usr/share/cmake-3.22/Modules/CMakeDetermineCompiler.cmake"
"/usr/share/cmake-3.22/Modules/CMakeDetermineCompilerABI.cmake"
"/usr/share/cmake-3.22/Modules/CMakeDetermineCompilerId.cmake"
"/usr/share/cmake-3.22/Modules/CMakeDetermineSystem.cmake"
"/usr/share/cmake-3.22/Modules/CMakeFindBinUtils.cmake"
"/usr/share/cmake-3.22/Modules/CMakeFindDependencyMacro.cmake"
"/usr/share/cmake-3.22/Modules/CMakeGenericSystem.cmake"
"/usr/share/cmake-3.22/Modules/CMakeInitializeConfigs.cmake"
"/usr/share/cmake-3.22/Modules/CMakeLanguageInformation.cmake"
"/usr/share/cmake-3.22/Modules/CMakeParseImplicitIncludeInfo.cmake"
"/usr/share/cmake-3.22/Modules/CMakeParseImplicitLinkInfo.cmake"
"/usr/share/cmake-3.22/Modules/CMakeParseLibraryArchitecture.cmake"
"/usr/share/cmake-3.22/Modules/CMakeSystem.cmake.in"
"/usr/share/cmake-3.22/Modules/CMakeSystemSpecificInformation.cmake"
"/usr/share/cmake-3.22/Modules/CMakeSystemSpecificInitialize.cmake"
"/usr/share/cmake-3.22/Modules/CMakeTestCCompiler.cmake"
"/usr/share/cmake-3.22/Modules/CMakeTestCXXCompiler.cmake"
"/usr/share/cmake-3.22/Modules/CMakeTestCompilerCommon.cmake"
"/usr/share/cmake-3.22/Modules/CMakeUnixFindMake.cmake"
"/usr/share/cmake-3.22/Modules/CheckCSourceCompiles.cmake"
"/usr/share/cmake-3.22/Modules/CheckCXXCompilerFlag.cmake"
"/usr/share/cmake-3.22/Modules/CheckCXXSourceCompiles.cmake"
"/usr/share/cmake-3.22/Modules/CheckIncludeFile.c.in"
"/usr/share/cmake-3.22/Modules/CheckIncludeFile.cmake"
"/usr/share/cmake-3.22/Modules/CheckLibraryExists.cmake"
"/usr/share/cmake-3.22/Modules/Compiler/ADSP-DetermineCompiler.cmake"
"/usr/share/cmake-3.22/Modules/Compiler/ARMCC-DetermineCompiler.cmake"
"/usr/share/cmake-3.22/Modules/Compiler/ARMClang-DetermineCompiler.cmake"
"/usr/share/cmake-3.22/Modules/Compiler/AppleClang-DetermineCompiler.cmake"
"/usr/share/cmake-3.22/Modules/Compiler/Borland-DetermineCompiler.cmake"
"/usr/share/cmake-3.22/Modules/Compiler/Bruce-C-DetermineCompiler.cmake"
"/usr/share/cmake-3.22/Modules/Compiler/CMakeCommonCompilerMacros.cmake"
"/usr/share/cmake-3.22/Modules/Compiler/Clang-DetermineCompiler.cmake"
"/usr/share/cmake-3.22/Modules/Compiler/Clang-DetermineCompilerInternal.cmake"
"/usr/share/cmake-3.22/Modules/Compiler/Comeau-CXX-DetermineCompiler.cmake"
"/usr/share/cmake-3.22/Modules/Compiler/Compaq-C-DetermineCompiler.cmake"
"/usr/share/cmake-3.22/Modules/Compiler/Compaq-CXX-DetermineCompiler.cmake"
"/usr/share/cmake-3.22/Modules/Compiler/Cray-DetermineCompiler.cmake"
"/usr/share/cmake-3.22/Modules/Compiler/Embarcadero-DetermineCompiler.cmake"
"/usr/share/cmake-3.22/Modules/Compiler/Fujitsu-DetermineCompiler.cmake"
"/usr/share/cmake-3.22/Modules/Compiler/FujitsuClang-DetermineCompiler.cmake"
"/usr/share/cmake-3.22/Modules/Compiler/GHS-DetermineCompiler.cmake"
"/usr/share/cmake-3.22/Modules/Compiler/GNU-C-DetermineCompiler.cmake"
"/usr/share/cmake-3.22/Modules/Compiler/GNU-C.cmake"
"/usr/share/cmake-3.22/Modules/Compiler/GNU-CXX-DetermineCompiler.cmake"
"/usr/share/cmake-3.22/Modules/Compiler/GNU-CXX.cmake"
"/usr/share/cmake-3.22/Modules/Compiler/GNU-FindBinUtils.cmake"
"/usr/share/cmake-3.22/Modules/Compiler/GNU.cmake"
"/usr/share/cmake-3.22/Modules/Compiler/HP-C-DetermineCompiler.cmake"
"/usr/share/cmake-3.22/Modules/Compiler/HP-CXX-DetermineCompiler.cmake"
"/usr/share/cmake-3.22/Modules/Compiler/IAR-DetermineCompiler.cmake"
"/usr/share/cmake-3.22/Modules/Compiler/IBMCPP-C-DetermineVersionInternal.cmake"
"/usr/share/cmake-3.22/Modules/Compiler/IBMCPP-CXX-DetermineVersionInternal.cmake"
"/usr/share/cmake-3.22/Modules/Compiler/Intel-DetermineCompiler.cmake"
"/usr/share/cmake-3.22/Modules/Compiler/IntelLLVM-DetermineCompiler.cmake"
"/usr/share/cmake-3.22/Modules/Compiler/MSVC-DetermineCompiler.cmake"
"/usr/share/cmake-3.22/Modules/Compiler/NVHPC-DetermineCompiler.cmake"
"/usr/share/cmake-3.22/Modules/Compiler/NVIDIA-DetermineCompiler.cmake"
"/usr/share/cmake-3.22/Modules/Compiler/OpenWatcom-DetermineCompiler.cmake"
"/usr/share/cmake-3.22/Modules/Compiler/PGI-DetermineCompiler.cmake"
"/usr/share/cmake-3.22/Modules/Compiler/PathScale-DetermineCompiler.cmake"
"/usr/share/cmake-3.22/Modules/Compiler/SCO-DetermineCompiler.cmake"
"/usr/share/cmake-3.22/Modules/Compiler/SDCC-C-DetermineCompiler.cmake"
"/usr/share/cmake-3.22/Modules/Compiler/SunPro-C-DetermineCompiler.cmake"
"/usr/share/cmake-3.22/Modules/Compiler/SunPro-CXX-DetermineCompiler.cmake"
"/usr/share/cmake-3.22/Modules/Compiler/TI-DetermineCompiler.cmake"
"/usr/share/cmake-3.22/Modules/Compiler/TinyCC-C-DetermineCompiler.cmake"
"/usr/share/cmake-3.22/Modules/Compiler/VisualAge-C-DetermineCompiler.cmake"
"/usr/share/cmake-3.22/Modules/Compiler/VisualAge-CXX-DetermineCompiler.cmake"
"/usr/share/cmake-3.22/Modules/Compiler/Watcom-DetermineCompiler.cmake"
"/usr/share/cmake-3.22/Modules/Compiler/XL-C-DetermineCompiler.cmake"
"/usr/share/cmake-3.22/Modules/Compiler/XL-CXX-DetermineCompiler.cmake"
"/usr/share/cmake-3.22/Modules/Compiler/XLClang-C-DetermineCompiler.cmake"
"/usr/share/cmake-3.22/Modules/Compiler/XLClang-CXX-DetermineCompiler.cmake"
"/usr/share/cmake-3.22/Modules/Compiler/zOS-C-DetermineCompiler.cmake"
"/usr/share/cmake-3.22/Modules/Compiler/zOS-CXX-DetermineCompiler.cmake"
"/usr/share/cmake-3.22/Modules/DartConfiguration.tcl.in"
"/usr/share/cmake-3.22/Modules/FindOpenSSL.cmake"
"/usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake"
@@ -744,8 +675,6 @@ set(CMAKE_MAKEFILE_DEPENDS
"/usr/share/cmake-3.22/Modules/FindThreads.cmake"
"/usr/share/cmake-3.22/Modules/Internal/CheckCompilerFlag.cmake"
"/usr/share/cmake-3.22/Modules/Internal/CheckSourceCompiles.cmake"
"/usr/share/cmake-3.22/Modules/Internal/FeatureTesting.cmake"
"/usr/share/cmake-3.22/Modules/Platform/Linux-Determine-CXX.cmake"
"/usr/share/cmake-3.22/Modules/Platform/Linux-GNU-C.cmake"
"/usr/share/cmake-3.22/Modules/Platform/Linux-GNU-CXX.cmake"
"/usr/share/cmake-3.22/Modules/Platform/Linux-GNU.cmake"
@@ -764,11 +693,6 @@ set(CMAKE_MAKEFILE_OUTPUTS
# Byproducts of CMake generate step:
set(CMAKE_MAKEFILE_PRODUCTS
"CMakeFiles/3.22.1/CMakeSystem.cmake"
"CMakeFiles/3.22.1/CMakeCCompiler.cmake"
"CMakeFiles/3.22.1/CMakeCXXCompiler.cmake"
"CMakeFiles/3.22.1/CMakeCCompiler.cmake"
"CMakeFiles/3.22.1/CMakeCXXCompiler.cmake"
"ament_cmake_core/stamps/templates_2_cmake.py.stamp"
"ament_cmake_uninstall_target/ament_cmake_uninstall_target.cmake"
"ament_cmake_symlink_install/ament_cmake_symlink_install.cmake"
+1
View File
@@ -0,0 +1 @@
empty
+1
View File
@@ -0,0 +1 @@
empty
+1
View File
@@ -0,0 +1 @@
empty
+1
View File
@@ -0,0 +1 @@
empty
+1
View File
@@ -0,0 +1 @@
empty
+1
View File
@@ -0,0 +1 @@
empty
File diff suppressed because it is too large Load Diff
@@ -4,7 +4,7 @@
# compile CXX with /usr/bin/c++
CXX_DEFINES = -DRCUTILS_ENABLE_FAULT_INJECTION -Dframe_transforms_EXPORTS
CXX_INCLUDES = -I/home/ubuntu/ros2_ws/src/px4_ros_com/include -I/home/ubuntu/ros2_ws/src/px4_ros_com/include/px4_ros_com -isystem /opt/ros/humble/include/geometry_msgs -isystem /opt/ros/humble/include/sensor_msgs -isystem /opt/ros/humble/include/std_msgs -isystem /opt/ros/humble/include/builtin_interfaces -isystem /opt/ros/humble/include/rosidl_runtime_c -isystem /opt/ros/humble/include/rcutils -isystem /opt/ros/humble/include/rosidl_typesupport_interface -isystem /opt/ros/humble/include/fastcdr -isystem /opt/ros/humble/include/rosidl_runtime_cpp -isystem /opt/ros/humble/include/rosidl_typesupport_fastrtps_cpp -isystem /opt/ros/humble/include/rmw -isystem /opt/ros/humble/include/rosidl_typesupport_fastrtps_c -isystem /opt/ros/humble/include/rosidl_typesupport_introspection_c -isystem /opt/ros/humble/include/rosidl_typesupport_introspection_cpp -isystem /usr/include/eigen3 -isystem /opt/ros/humble/include/rosidl_typesupport_c
CXX_INCLUDES = -I/home/ubuntu/ros2_ws/src/px4_ros_com/include -I/home/ubuntu/ros2_ws/src/px4_ros_com/include/px4_ros_com -isystem /opt/ros/humble/include/geometry_msgs -isystem /opt/ros/humble/include/sensor_msgs -isystem /opt/ros/humble/include/std_msgs -isystem /opt/ros/humble/include/builtin_interfaces -isystem /opt/ros/humble/include/rosidl_runtime_c -isystem /opt/ros/humble/include/rcutils -isystem /opt/ros/humble/include/rosidl_typesupport_interface -isystem /opt/ros/humble/include/fastcdr -isystem /opt/ros/humble/include/rosidl_runtime_cpp -isystem /opt/ros/humble/include/rosidl_typesupport_fastrtps_cpp -isystem /opt/ros/humble/include/rmw -isystem /opt/ros/humble/include/rosidl_typesupport_fastrtps_c -isystem /opt/ros/humble/include/rosidl_typesupport_introspection_c -isystem /opt/ros/humble/include/rosidl_typesupport_introspection_cpp
CXX_FLAGS = -Wall -Wextra -Wpedantic -O2 -g -DNDEBUG -fPIC -g3
File diff suppressed because one or more lines are too long
@@ -0,0 +1,182 @@
CMakeFiles/micrortps_agent.dir/src/micrortps_agent/DebugArray.cpp.o: \
/home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/DebugArray.cpp \
/usr/include/stdc-predef.h \
/home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/DebugArray.h \
/usr/lib/gcc/aarch64-linux-gnu/11/include/stdint.h /usr/include/stdint.h \
/usr/include/aarch64-linux-gnu/bits/libc-header-start.h \
/usr/include/features.h /usr/include/features-time64.h \
/usr/include/aarch64-linux-gnu/bits/wordsize.h \
/usr/include/aarch64-linux-gnu/bits/timesize.h \
/usr/include/aarch64-linux-gnu/sys/cdefs.h \
/usr/include/aarch64-linux-gnu/bits/long-double.h \
/usr/include/aarch64-linux-gnu/gnu/stubs.h \
/usr/include/aarch64-linux-gnu/gnu/stubs-lp64.h \
/usr/include/aarch64-linux-gnu/bits/types.h \
/usr/include/aarch64-linux-gnu/bits/typesizes.h \
/usr/include/aarch64-linux-gnu/bits/time64.h \
/usr/include/aarch64-linux-gnu/bits/wchar.h \
/usr/include/aarch64-linux-gnu/bits/stdint-intn.h \
/usr/include/aarch64-linux-gnu/bits/stdint-uintn.h \
/usr/include/c++/11/array /usr/include/c++/11/utility \
/usr/include/aarch64-linux-gnu/c++/11/bits/c++config.h \
/usr/include/aarch64-linux-gnu/c++/11/bits/os_defines.h \
/usr/include/aarch64-linux-gnu/c++/11/bits/cpu_defines.h \
/usr/include/c++/11/pstl/pstl_config.h \
/usr/include/c++/11/bits/stl_relops.h \
/usr/include/c++/11/bits/stl_pair.h /usr/include/c++/11/bits/move.h \
/usr/include/c++/11/type_traits /usr/include/c++/11/initializer_list \
/usr/include/c++/11/bits/functexcept.h \
/usr/include/c++/11/bits/exception_defines.h \
/usr/include/c++/11/bits/stl_algobase.h \
/usr/include/c++/11/bits/cpp_type_traits.h \
/usr/include/c++/11/ext/type_traits.h \
/usr/include/c++/11/ext/numeric_traits.h \
/usr/include/c++/11/bits/stl_iterator_base_types.h \
/usr/include/c++/11/bits/stl_iterator_base_funcs.h \
/usr/include/c++/11/bits/concept_check.h \
/usr/include/c++/11/debug/assertions.h \
/usr/include/c++/11/bits/stl_iterator.h \
/usr/include/c++/11/bits/ptr_traits.h /usr/include/c++/11/debug/debug.h \
/usr/include/c++/11/bits/predefined_ops.h \
/usr/include/c++/11/bits/range_access.h /usr/include/c++/11/string \
/usr/include/c++/11/bits/stringfwd.h \
/usr/include/c++/11/bits/memoryfwd.h \
/usr/include/c++/11/bits/char_traits.h \
/usr/include/c++/11/bits/postypes.h /usr/include/c++/11/cwchar \
/usr/include/wchar.h /usr/include/aarch64-linux-gnu/bits/floatn.h \
/usr/include/aarch64-linux-gnu/bits/floatn-common.h \
/usr/lib/gcc/aarch64-linux-gnu/11/include/stddef.h \
/usr/lib/gcc/aarch64-linux-gnu/11/include/stdarg.h \
/usr/include/aarch64-linux-gnu/bits/types/wint_t.h \
/usr/include/aarch64-linux-gnu/bits/types/mbstate_t.h \
/usr/include/aarch64-linux-gnu/bits/types/__mbstate_t.h \
/usr/include/aarch64-linux-gnu/bits/types/__FILE.h \
/usr/include/aarch64-linux-gnu/bits/types/FILE.h \
/usr/include/aarch64-linux-gnu/bits/types/locale_t.h \
/usr/include/aarch64-linux-gnu/bits/types/__locale_t.h \
/usr/include/aarch64-linux-gnu/bits/wchar2.h /usr/include/c++/11/cstdint \
/usr/include/c++/11/bits/allocator.h \
/usr/include/aarch64-linux-gnu/c++/11/bits/c++allocator.h \
/usr/include/c++/11/ext/new_allocator.h /usr/include/c++/11/new \
/usr/include/c++/11/bits/exception.h \
/usr/include/c++/11/bits/localefwd.h \
/usr/include/aarch64-linux-gnu/c++/11/bits/c++locale.h \
/usr/include/c++/11/clocale /usr/include/locale.h \
/usr/include/aarch64-linux-gnu/bits/locale.h /usr/include/c++/11/iosfwd \
/usr/include/c++/11/cctype /usr/include/ctype.h \
/usr/include/aarch64-linux-gnu/bits/endian.h \
/usr/include/aarch64-linux-gnu/bits/endianness.h \
/usr/include/c++/11/bits/ostream_insert.h \
/usr/include/c++/11/bits/cxxabi_forced.h \
/usr/include/c++/11/bits/stl_function.h \
/usr/include/c++/11/backward/binders.h \
/usr/include/c++/11/bits/basic_string.h \
/usr/include/c++/11/ext/atomicity.h \
/usr/include/aarch64-linux-gnu/c++/11/bits/gthr.h \
/usr/include/aarch64-linux-gnu/c++/11/bits/gthr-default.h \
/usr/include/pthread.h /usr/include/sched.h \
/usr/include/aarch64-linux-gnu/bits/types/time_t.h \
/usr/include/aarch64-linux-gnu/bits/types/struct_timespec.h \
/usr/include/aarch64-linux-gnu/bits/sched.h \
/usr/include/aarch64-linux-gnu/bits/types/struct_sched_param.h \
/usr/include/aarch64-linux-gnu/bits/cpu-set.h /usr/include/time.h \
/usr/include/aarch64-linux-gnu/bits/time.h \
/usr/include/aarch64-linux-gnu/bits/timex.h \
/usr/include/aarch64-linux-gnu/bits/types/struct_timeval.h \
/usr/include/aarch64-linux-gnu/bits/types/clock_t.h \
/usr/include/aarch64-linux-gnu/bits/types/struct_tm.h \
/usr/include/aarch64-linux-gnu/bits/types/clockid_t.h \
/usr/include/aarch64-linux-gnu/bits/types/timer_t.h \
/usr/include/aarch64-linux-gnu/bits/types/struct_itimerspec.h \
/usr/include/aarch64-linux-gnu/bits/pthreadtypes.h \
/usr/include/aarch64-linux-gnu/bits/thread-shared-types.h \
/usr/include/aarch64-linux-gnu/bits/pthreadtypes-arch.h \
/usr/include/aarch64-linux-gnu/bits/atomic_wide_counter.h \
/usr/include/aarch64-linux-gnu/bits/struct_mutex.h \
/usr/include/aarch64-linux-gnu/bits/struct_rwlock.h \
/usr/include/aarch64-linux-gnu/bits/setjmp.h \
/usr/include/aarch64-linux-gnu/bits/types/__sigset_t.h \
/usr/include/aarch64-linux-gnu/bits/types/struct___jmp_buf_tag.h \
/usr/include/aarch64-linux-gnu/bits/pthread_stack_min-dynamic.h \
/usr/include/aarch64-linux-gnu/c++/11/bits/atomic_word.h \
/usr/include/aarch64-linux-gnu/sys/single_threaded.h \
/usr/include/c++/11/ext/alloc_traits.h \
/usr/include/c++/11/bits/alloc_traits.h \
/usr/include/c++/11/bits/stl_construct.h /usr/include/c++/11/string_view \
/usr/include/c++/11/bits/functional_hash.h \
/usr/include/c++/11/bits/hash_bytes.h \
/usr/include/c++/11/bits/string_view.tcc \
/usr/include/c++/11/ext/string_conversions.h /usr/include/c++/11/cstdlib \
/usr/include/stdlib.h /usr/include/aarch64-linux-gnu/bits/waitflags.h \
/usr/include/aarch64-linux-gnu/bits/waitstatus.h \
/usr/include/aarch64-linux-gnu/sys/types.h /usr/include/endian.h \
/usr/include/aarch64-linux-gnu/bits/byteswap.h \
/usr/include/aarch64-linux-gnu/bits/uintn-identity.h \
/usr/include/aarch64-linux-gnu/sys/select.h \
/usr/include/aarch64-linux-gnu/bits/select.h \
/usr/include/aarch64-linux-gnu/bits/types/sigset_t.h \
/usr/include/aarch64-linux-gnu/bits/select2.h /usr/include/alloca.h \
/usr/include/aarch64-linux-gnu/bits/stdlib-bsearch.h \
/usr/include/aarch64-linux-gnu/bits/stdlib-float.h \
/usr/include/aarch64-linux-gnu/bits/stdlib.h \
/usr/include/c++/11/bits/std_abs.h /usr/include/c++/11/cstdio \
/usr/include/stdio.h \
/usr/include/aarch64-linux-gnu/bits/types/__fpos_t.h \
/usr/include/aarch64-linux-gnu/bits/types/__fpos64_t.h \
/usr/include/aarch64-linux-gnu/bits/types/struct_FILE.h \
/usr/include/aarch64-linux-gnu/bits/types/cookie_io_functions_t.h \
/usr/include/aarch64-linux-gnu/bits/stdio_lim.h \
/usr/include/aarch64-linux-gnu/bits/stdio.h \
/usr/include/aarch64-linux-gnu/bits/stdio2.h /usr/include/c++/11/cerrno \
/usr/include/errno.h /usr/include/aarch64-linux-gnu/bits/errno.h \
/usr/include/linux/errno.h /usr/include/aarch64-linux-gnu/asm/errno.h \
/usr/include/asm-generic/errno.h /usr/include/asm-generic/errno-base.h \
/usr/include/aarch64-linux-gnu/bits/types/error_t.h \
/usr/include/c++/11/bits/charconv.h \
/usr/include/c++/11/bits/basic_string.tcc /usr/include/c++/11/vector \
/usr/include/c++/11/bits/stl_uninitialized.h \
/usr/include/c++/11/bits/stl_vector.h \
/usr/include/c++/11/bits/stl_bvector.h \
/usr/include/c++/11/bits/vector.tcc /usr/include/c++/11/map \
/usr/include/c++/11/bits/stl_tree.h \
/usr/include/c++/11/ext/aligned_buffer.h \
/usr/include/c++/11/bits/node_handle.h \
/usr/include/c++/11/bits/stl_map.h /usr/include/c++/11/tuple \
/usr/include/c++/11/bits/uses_allocator.h \
/usr/include/c++/11/bits/invoke.h \
/usr/include/c++/11/bits/stl_multimap.h \
/usr/include/c++/11/bits/erase_if.h /usr/include/c++/11/bitset \
/opt/ros/humble/include/fastcdr/fastcdr/Cdr.h \
/opt/ros/humble/include/fastcdr/fastcdr/fastcdr_dll.h \
/opt/ros/humble/include/fastcdr/fastcdr/config.h \
/opt/ros/humble/include/fastcdr/fastcdr/eProsima_auto_link.h \
/opt/ros/humble/include/fastcdr/fastcdr/FastBuffer.h \
/usr/include/string.h /usr/include/strings.h \
/usr/include/aarch64-linux-gnu/bits/strings_fortified.h \
/usr/include/aarch64-linux-gnu/bits/string_fortified.h \
/usr/include/c++/11/cstddef \
/opt/ros/humble/include/fastcdr/fastcdr/exceptions/NotEnoughMemoryException.h \
/opt/ros/humble/include/fastcdr/fastcdr/exceptions/Exception.h \
/opt/ros/humble/include/fastcdr/fastcdr/fastcdr_dll.h \
/usr/include/c++/11/exception /usr/include/c++/11/bits/exception_ptr.h \
/usr/include/c++/11/bits/cxxabi_init_exception.h \
/usr/include/c++/11/typeinfo /usr/include/c++/11/bits/nested_exception.h \
/usr/include/c++/11/iostream /usr/include/c++/11/ostream \
/usr/include/c++/11/ios /usr/include/c++/11/bits/ios_base.h \
/usr/include/c++/11/bits/locale_classes.h \
/usr/include/c++/11/bits/locale_classes.tcc \
/usr/include/c++/11/system_error \
/usr/include/aarch64-linux-gnu/c++/11/bits/error_constants.h \
/usr/include/c++/11/stdexcept /usr/include/c++/11/streambuf \
/usr/include/c++/11/bits/streambuf.tcc \
/usr/include/c++/11/bits/basic_ios.h \
/usr/include/c++/11/bits/locale_facets.h /usr/include/c++/11/cwctype \
/usr/include/wctype.h /usr/include/aarch64-linux-gnu/bits/wctype-wchar.h \
/usr/include/aarch64-linux-gnu/c++/11/bits/ctype_base.h \
/usr/include/c++/11/bits/streambuf_iterator.h \
/usr/include/aarch64-linux-gnu/c++/11/bits/ctype_inline.h \
/usr/include/c++/11/bits/locale_facets.tcc \
/usr/include/c++/11/bits/basic_ios.tcc \
/usr/include/c++/11/bits/ostream.tcc /usr/include/c++/11/istream \
/usr/include/c++/11/bits/istream.tcc /usr/include/malloc.h \
/opt/ros/humble/include/fastcdr/fastcdr/exceptions/BadParamException.h
@@ -0,0 +1,133 @@
CMakeFiles/micrortps_agent.dir/src/micrortps_agent/microRTPS_transport.cpp.o: \
/home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/microRTPS_transport.cpp \
/usr/include/stdc-predef.h /usr/include/unistd.h /usr/include/features.h \
/usr/include/features-time64.h \
/usr/include/aarch64-linux-gnu/bits/wordsize.h \
/usr/include/aarch64-linux-gnu/bits/timesize.h \
/usr/include/aarch64-linux-gnu/sys/cdefs.h \
/usr/include/aarch64-linux-gnu/bits/long-double.h \
/usr/include/aarch64-linux-gnu/gnu/stubs.h \
/usr/include/aarch64-linux-gnu/gnu/stubs-lp64.h \
/usr/include/aarch64-linux-gnu/bits/posix_opt.h \
/usr/include/aarch64-linux-gnu/bits/environments.h \
/usr/include/aarch64-linux-gnu/bits/types.h \
/usr/include/aarch64-linux-gnu/bits/typesizes.h \
/usr/include/aarch64-linux-gnu/bits/time64.h \
/usr/lib/gcc/aarch64-linux-gnu/11/include/stddef.h \
/usr/include/aarch64-linux-gnu/bits/confname.h \
/usr/include/aarch64-linux-gnu/bits/getopt_posix.h \
/usr/include/aarch64-linux-gnu/bits/getopt_core.h \
/usr/include/aarch64-linux-gnu/bits/unistd.h \
/usr/include/aarch64-linux-gnu/bits/unistd_ext.h \
/usr/include/linux/close_range.h /usr/include/fcntl.h \
/usr/include/aarch64-linux-gnu/bits/fcntl.h \
/usr/include/aarch64-linux-gnu/bits/fcntl-linux.h \
/usr/include/aarch64-linux-gnu/bits/types/struct_iovec.h \
/usr/include/linux/falloc.h \
/usr/include/aarch64-linux-gnu/bits/types/struct_timespec.h \
/usr/include/aarch64-linux-gnu/bits/endian.h \
/usr/include/aarch64-linux-gnu/bits/endianness.h \
/usr/include/aarch64-linux-gnu/bits/types/time_t.h \
/usr/include/aarch64-linux-gnu/bits/stat.h \
/usr/include/aarch64-linux-gnu/bits/struct_stat.h \
/usr/include/aarch64-linux-gnu/bits/fcntl2.h /usr/include/stdio.h \
/usr/include/aarch64-linux-gnu/bits/libc-header-start.h \
/usr/lib/gcc/aarch64-linux-gnu/11/include/stdarg.h \
/usr/include/aarch64-linux-gnu/bits/types/__fpos_t.h \
/usr/include/aarch64-linux-gnu/bits/types/__mbstate_t.h \
/usr/include/aarch64-linux-gnu/bits/types/__fpos64_t.h \
/usr/include/aarch64-linux-gnu/bits/types/__FILE.h \
/usr/include/aarch64-linux-gnu/bits/types/FILE.h \
/usr/include/aarch64-linux-gnu/bits/types/struct_FILE.h \
/usr/include/aarch64-linux-gnu/bits/types/cookie_io_functions_t.h \
/usr/include/aarch64-linux-gnu/bits/stdio_lim.h \
/usr/include/aarch64-linux-gnu/bits/floatn.h \
/usr/include/aarch64-linux-gnu/bits/floatn-common.h \
/usr/include/aarch64-linux-gnu/bits/stdio.h \
/usr/include/aarch64-linux-gnu/bits/stdio2.h /usr/include/errno.h \
/usr/include/aarch64-linux-gnu/bits/errno.h /usr/include/linux/errno.h \
/usr/include/aarch64-linux-gnu/asm/errno.h \
/usr/include/asm-generic/errno.h /usr/include/asm-generic/errno-base.h \
/usr/include/aarch64-linux-gnu/bits/types/error_t.h \
/usr/include/aarch64-linux-gnu/sys/socket.h \
/usr/include/aarch64-linux-gnu/bits/socket.h \
/usr/include/aarch64-linux-gnu/sys/types.h \
/usr/include/aarch64-linux-gnu/bits/types/clock_t.h \
/usr/include/aarch64-linux-gnu/bits/types/clockid_t.h \
/usr/include/aarch64-linux-gnu/bits/types/timer_t.h \
/usr/include/aarch64-linux-gnu/bits/stdint-intn.h /usr/include/endian.h \
/usr/include/aarch64-linux-gnu/bits/byteswap.h \
/usr/include/aarch64-linux-gnu/bits/uintn-identity.h \
/usr/include/aarch64-linux-gnu/sys/select.h \
/usr/include/aarch64-linux-gnu/bits/select.h \
/usr/include/aarch64-linux-gnu/bits/types/sigset_t.h \
/usr/include/aarch64-linux-gnu/bits/types/__sigset_t.h \
/usr/include/aarch64-linux-gnu/bits/types/struct_timeval.h \
/usr/include/aarch64-linux-gnu/bits/select2.h \
/usr/include/aarch64-linux-gnu/bits/pthreadtypes.h \
/usr/include/aarch64-linux-gnu/bits/thread-shared-types.h \
/usr/include/aarch64-linux-gnu/bits/pthreadtypes-arch.h \
/usr/include/aarch64-linux-gnu/bits/atomic_wide_counter.h \
/usr/include/aarch64-linux-gnu/bits/struct_mutex.h \
/usr/include/aarch64-linux-gnu/bits/struct_rwlock.h \
/usr/include/aarch64-linux-gnu/bits/socket_type.h \
/usr/include/aarch64-linux-gnu/bits/sockaddr.h \
/usr/include/aarch64-linux-gnu/asm/socket.h \
/usr/include/asm-generic/socket.h /usr/include/linux/posix_types.h \
/usr/include/linux/stddef.h \
/usr/include/aarch64-linux-gnu/asm/posix_types.h \
/usr/include/asm-generic/posix_types.h \
/usr/include/aarch64-linux-gnu/asm/bitsperlong.h \
/usr/include/asm-generic/bitsperlong.h \
/usr/include/aarch64-linux-gnu/asm/sockios.h \
/usr/include/asm-generic/sockios.h \
/usr/include/aarch64-linux-gnu/bits/types/struct_osockaddr.h \
/usr/include/aarch64-linux-gnu/bits/socket2.h \
/usr/include/c++/11/cstdlib \
/usr/include/aarch64-linux-gnu/c++/11/bits/c++config.h \
/usr/include/aarch64-linux-gnu/c++/11/bits/os_defines.h \
/usr/include/aarch64-linux-gnu/c++/11/bits/cpu_defines.h \
/usr/include/c++/11/pstl/pstl_config.h /usr/include/stdlib.h \
/usr/include/aarch64-linux-gnu/bits/waitflags.h \
/usr/include/aarch64-linux-gnu/bits/waitstatus.h \
/usr/include/aarch64-linux-gnu/bits/types/locale_t.h \
/usr/include/aarch64-linux-gnu/bits/types/__locale_t.h \
/usr/include/alloca.h \
/usr/include/aarch64-linux-gnu/bits/stdlib-bsearch.h \
/usr/include/aarch64-linux-gnu/bits/stdlib-float.h \
/usr/include/aarch64-linux-gnu/bits/stdlib.h \
/usr/include/c++/11/bits/std_abs.h /usr/include/inttypes.h \
/usr/lib/gcc/aarch64-linux-gnu/11/include/stdint.h /usr/include/stdint.h \
/usr/include/aarch64-linux-gnu/bits/wchar.h \
/usr/include/aarch64-linux-gnu/bits/stdint-uintn.h \
/usr/include/aarch64-linux-gnu/sys/ioctl.h \
/usr/include/aarch64-linux-gnu/bits/ioctls.h \
/usr/include/aarch64-linux-gnu/asm/ioctls.h \
/usr/include/asm-generic/ioctls.h /usr/include/linux/ioctl.h \
/usr/include/aarch64-linux-gnu/asm/ioctl.h \
/usr/include/asm-generic/ioctl.h \
/usr/include/aarch64-linux-gnu/bits/ioctl-types.h \
/usr/include/aarch64-linux-gnu/sys/ttydefaults.h \
/usr/include/linux/serial.h /usr/include/linux/types.h \
/usr/include/aarch64-linux-gnu/asm/types.h \
/usr/include/asm-generic/types.h /usr/include/asm-generic/int-ll64.h \
/usr/include/linux/tty_flags.h \
/home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/microRTPS_transport.h \
/usr/include/c++/11/cstring /usr/include/string.h /usr/include/strings.h \
/usr/include/aarch64-linux-gnu/bits/strings_fortified.h \
/usr/include/aarch64-linux-gnu/bits/string_fortified.h \
/usr/include/arpa/inet.h /usr/include/netinet/in.h \
/usr/include/aarch64-linux-gnu/bits/in.h /usr/include/poll.h \
/usr/include/aarch64-linux-gnu/sys/poll.h \
/usr/include/aarch64-linux-gnu/bits/poll.h \
/usr/include/aarch64-linux-gnu/bits/poll2.h /usr/include/termios.h \
/usr/include/aarch64-linux-gnu/bits/termios.h \
/usr/include/aarch64-linux-gnu/bits/termios-struct.h \
/usr/include/aarch64-linux-gnu/bits/termios-c_cc.h \
/usr/include/aarch64-linux-gnu/bits/termios-c_iflag.h \
/usr/include/aarch64-linux-gnu/bits/termios-c_oflag.h \
/usr/include/aarch64-linux-gnu/bits/termios-baud.h \
/usr/include/aarch64-linux-gnu/bits/termios-c_cflag.h \
/usr/include/aarch64-linux-gnu/bits/termios-c_lflag.h \
/usr/include/aarch64-linux-gnu/bits/termios-tcflow.h \
/usr/include/aarch64-linux-gnu/bits/termios-misc.h
@@ -0,0 +1,631 @@
CMakeFiles/sensor_combined_listener.dir/src/examples/listeners/sensor_combined_listener.cpp.o: \
/home/ubuntu/ros2_ws/src/px4_ros_com/src/examples/listeners/sensor_combined_listener.cpp \
/usr/include/stdc-predef.h \
/opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp \
/usr/include/c++/11/csignal \
/usr/include/aarch64-linux-gnu/c++/11/bits/c++config.h \
/usr/include/aarch64-linux-gnu/c++/11/bits/os_defines.h \
/usr/include/features.h /usr/include/features-time64.h \
/usr/include/aarch64-linux-gnu/bits/wordsize.h \
/usr/include/aarch64-linux-gnu/bits/timesize.h \
/usr/include/aarch64-linux-gnu/sys/cdefs.h \
/usr/include/aarch64-linux-gnu/bits/long-double.h \
/usr/include/aarch64-linux-gnu/gnu/stubs.h \
/usr/include/aarch64-linux-gnu/gnu/stubs-lp64.h \
/usr/include/aarch64-linux-gnu/c++/11/bits/cpu_defines.h \
/usr/include/c++/11/pstl/pstl_config.h /usr/include/signal.h \
/usr/include/aarch64-linux-gnu/bits/types.h \
/usr/include/aarch64-linux-gnu/bits/typesizes.h \
/usr/include/aarch64-linux-gnu/bits/time64.h \
/usr/include/aarch64-linux-gnu/bits/signum-generic.h \
/usr/include/aarch64-linux-gnu/bits/signum-arch.h \
/usr/include/aarch64-linux-gnu/bits/types/sig_atomic_t.h \
/usr/include/aarch64-linux-gnu/bits/types/sigset_t.h \
/usr/include/aarch64-linux-gnu/bits/types/__sigset_t.h \
/usr/include/aarch64-linux-gnu/bits/types/struct_timespec.h \
/usr/include/aarch64-linux-gnu/bits/endian.h \
/usr/include/aarch64-linux-gnu/bits/endianness.h \
/usr/include/aarch64-linux-gnu/bits/types/time_t.h \
/usr/include/aarch64-linux-gnu/bits/types/siginfo_t.h \
/usr/include/aarch64-linux-gnu/bits/types/__sigval_t.h \
/usr/include/aarch64-linux-gnu/bits/siginfo-arch.h \
/usr/include/aarch64-linux-gnu/bits/siginfo-consts.h \
/usr/include/aarch64-linux-gnu/bits/siginfo-consts-arch.h \
/usr/include/aarch64-linux-gnu/bits/types/sigval_t.h \
/usr/include/aarch64-linux-gnu/bits/types/sigevent_t.h \
/usr/include/aarch64-linux-gnu/bits/sigevent-consts.h \
/usr/include/aarch64-linux-gnu/bits/sigaction.h \
/usr/include/aarch64-linux-gnu/bits/sigcontext.h \
/usr/include/aarch64-linux-gnu/asm/sigcontext.h \
/usr/include/linux/types.h /usr/include/aarch64-linux-gnu/asm/types.h \
/usr/include/asm-generic/types.h /usr/include/asm-generic/int-ll64.h \
/usr/include/aarch64-linux-gnu/asm/bitsperlong.h \
/usr/include/asm-generic/bitsperlong.h /usr/include/linux/posix_types.h \
/usr/include/linux/stddef.h \
/usr/include/aarch64-linux-gnu/asm/posix_types.h \
/usr/include/asm-generic/posix_types.h \
/usr/include/aarch64-linux-gnu/asm/sve_context.h \
/usr/lib/gcc/aarch64-linux-gnu/11/include/stddef.h \
/usr/include/aarch64-linux-gnu/bits/types/stack_t.h \
/usr/include/aarch64-linux-gnu/sys/ucontext.h \
/usr/include/aarch64-linux-gnu/sys/procfs.h \
/usr/include/aarch64-linux-gnu/sys/time.h \
/usr/include/aarch64-linux-gnu/bits/types/struct_timeval.h \
/usr/include/aarch64-linux-gnu/sys/select.h \
/usr/include/aarch64-linux-gnu/bits/select.h \
/usr/include/aarch64-linux-gnu/bits/select2.h \
/usr/include/aarch64-linux-gnu/sys/types.h \
/usr/include/aarch64-linux-gnu/bits/types/clock_t.h \
/usr/include/aarch64-linux-gnu/bits/types/clockid_t.h \
/usr/include/aarch64-linux-gnu/bits/types/timer_t.h \
/usr/include/aarch64-linux-gnu/bits/stdint-intn.h /usr/include/endian.h \
/usr/include/aarch64-linux-gnu/bits/byteswap.h \
/usr/include/aarch64-linux-gnu/bits/uintn-identity.h \
/usr/include/aarch64-linux-gnu/bits/pthreadtypes.h \
/usr/include/aarch64-linux-gnu/bits/thread-shared-types.h \
/usr/include/aarch64-linux-gnu/bits/pthreadtypes-arch.h \
/usr/include/aarch64-linux-gnu/bits/atomic_wide_counter.h \
/usr/include/aarch64-linux-gnu/bits/struct_mutex.h \
/usr/include/aarch64-linux-gnu/bits/struct_rwlock.h \
/usr/include/aarch64-linux-gnu/sys/user.h \
/usr/include/aarch64-linux-gnu/bits/procfs.h \
/usr/include/aarch64-linux-gnu/bits/procfs-id.h \
/usr/include/aarch64-linux-gnu/bits/procfs-prregset.h \
/usr/include/aarch64-linux-gnu/bits/procfs-extra.h \
/usr/include/aarch64-linux-gnu/bits/sigstack.h \
/usr/include/aarch64-linux-gnu/bits/sigstksz.h /usr/include/unistd.h \
/usr/include/aarch64-linux-gnu/bits/posix_opt.h \
/usr/include/aarch64-linux-gnu/bits/environments.h \
/usr/include/aarch64-linux-gnu/bits/confname.h \
/usr/include/aarch64-linux-gnu/bits/getopt_posix.h \
/usr/include/aarch64-linux-gnu/bits/getopt_core.h \
/usr/include/aarch64-linux-gnu/bits/unistd.h \
/usr/include/aarch64-linux-gnu/bits/unistd_ext.h \
/usr/include/linux/close_range.h \
/usr/include/aarch64-linux-gnu/bits/ss_flags.h \
/usr/include/aarch64-linux-gnu/bits/types/struct_sigstack.h \
/usr/include/aarch64-linux-gnu/bits/sigthread.h \
/usr/include/aarch64-linux-gnu/bits/signal_ext.h \
/usr/include/c++/11/memory /usr/include/c++/11/bits/stl_algobase.h \
/usr/include/c++/11/bits/functexcept.h \
/usr/include/c++/11/bits/exception_defines.h \
/usr/include/c++/11/bits/cpp_type_traits.h \
/usr/include/c++/11/ext/type_traits.h \
/usr/include/c++/11/ext/numeric_traits.h \
/usr/include/c++/11/bits/stl_pair.h /usr/include/c++/11/bits/move.h \
/usr/include/c++/11/type_traits \
/usr/include/c++/11/bits/stl_iterator_base_types.h \
/usr/include/c++/11/bits/stl_iterator_base_funcs.h \
/usr/include/c++/11/bits/concept_check.h \
/usr/include/c++/11/debug/assertions.h \
/usr/include/c++/11/bits/stl_iterator.h \
/usr/include/c++/11/bits/ptr_traits.h /usr/include/c++/11/debug/debug.h \
/usr/include/c++/11/bits/predefined_ops.h \
/usr/include/c++/11/bits/allocator.h \
/usr/include/aarch64-linux-gnu/c++/11/bits/c++allocator.h \
/usr/include/c++/11/ext/new_allocator.h /usr/include/c++/11/new \
/usr/include/c++/11/bits/exception.h \
/usr/include/c++/11/bits/memoryfwd.h \
/usr/include/c++/11/bits/stl_construct.h \
/usr/include/c++/11/bits/stl_uninitialized.h \
/usr/include/c++/11/ext/alloc_traits.h \
/usr/include/c++/11/bits/alloc_traits.h \
/usr/include/c++/11/bits/stl_tempbuf.h \
/usr/include/c++/11/bits/stl_raw_storage_iter.h \
/usr/include/c++/11/bits/align.h /usr/include/c++/11/bit \
/usr/lib/gcc/aarch64-linux-gnu/11/include/stdint.h /usr/include/stdint.h \
/usr/include/aarch64-linux-gnu/bits/libc-header-start.h \
/usr/include/aarch64-linux-gnu/bits/wchar.h \
/usr/include/aarch64-linux-gnu/bits/stdint-uintn.h \
/usr/include/c++/11/bits/uses_allocator.h \
/usr/include/c++/11/bits/unique_ptr.h /usr/include/c++/11/utility \
/usr/include/c++/11/bits/stl_relops.h \
/usr/include/c++/11/initializer_list /usr/include/c++/11/tuple \
/usr/include/c++/11/array /usr/include/c++/11/bits/range_access.h \
/usr/include/c++/11/bits/invoke.h \
/usr/include/c++/11/bits/stl_function.h \
/usr/include/c++/11/backward/binders.h \
/usr/include/c++/11/bits/functional_hash.h \
/usr/include/c++/11/bits/hash_bytes.h \
/usr/include/c++/11/bits/shared_ptr.h /usr/include/c++/11/iosfwd \
/usr/include/c++/11/bits/stringfwd.h /usr/include/c++/11/bits/postypes.h \
/usr/include/c++/11/cwchar /usr/include/wchar.h \
/usr/include/aarch64-linux-gnu/bits/floatn.h \
/usr/include/aarch64-linux-gnu/bits/floatn-common.h \
/usr/lib/gcc/aarch64-linux-gnu/11/include/stdarg.h \
/usr/include/aarch64-linux-gnu/bits/types/wint_t.h \
/usr/include/aarch64-linux-gnu/bits/types/mbstate_t.h \
/usr/include/aarch64-linux-gnu/bits/types/__mbstate_t.h \
/usr/include/aarch64-linux-gnu/bits/types/__FILE.h \
/usr/include/aarch64-linux-gnu/bits/types/FILE.h \
/usr/include/aarch64-linux-gnu/bits/types/locale_t.h \
/usr/include/aarch64-linux-gnu/bits/types/__locale_t.h \
/usr/include/aarch64-linux-gnu/bits/wchar2.h \
/usr/include/c++/11/bits/shared_ptr_base.h /usr/include/c++/11/typeinfo \
/usr/include/c++/11/bits/allocated_ptr.h \
/usr/include/c++/11/bits/refwrap.h \
/usr/include/c++/11/ext/aligned_buffer.h \
/usr/include/c++/11/ext/atomicity.h \
/usr/include/aarch64-linux-gnu/c++/11/bits/gthr.h \
/usr/include/aarch64-linux-gnu/c++/11/bits/gthr-default.h \
/usr/include/pthread.h /usr/include/sched.h \
/usr/include/aarch64-linux-gnu/bits/sched.h \
/usr/include/aarch64-linux-gnu/bits/types/struct_sched_param.h \
/usr/include/aarch64-linux-gnu/bits/cpu-set.h /usr/include/time.h \
/usr/include/aarch64-linux-gnu/bits/time.h \
/usr/include/aarch64-linux-gnu/bits/timex.h \
/usr/include/aarch64-linux-gnu/bits/types/struct_tm.h \
/usr/include/aarch64-linux-gnu/bits/types/struct_itimerspec.h \
/usr/include/aarch64-linux-gnu/bits/setjmp.h \
/usr/include/aarch64-linux-gnu/bits/types/struct___jmp_buf_tag.h \
/usr/include/aarch64-linux-gnu/bits/pthread_stack_min-dynamic.h \
/usr/include/aarch64-linux-gnu/c++/11/bits/atomic_word.h \
/usr/include/aarch64-linux-gnu/sys/single_threaded.h \
/usr/include/c++/11/ext/concurrence.h /usr/include/c++/11/exception \
/usr/include/c++/11/bits/exception_ptr.h \
/usr/include/c++/11/bits/cxxabi_init_exception.h \
/usr/include/c++/11/bits/nested_exception.h \
/usr/include/c++/11/bits/shared_ptr_atomic.h \
/usr/include/c++/11/bits/atomic_base.h \
/usr/include/c++/11/bits/atomic_lockfree_defines.h \
/usr/include/c++/11/backward/auto_ptr.h \
/usr/include/c++/11/pstl/glue_memory_defs.h \
/usr/include/c++/11/pstl/execution_defs.h \
/opt/ros/humble/include/rclcpp/rclcpp/executors.hpp \
/usr/include/c++/11/future /usr/include/c++/11/mutex \
/usr/include/c++/11/chrono /usr/include/c++/11/ratio \
/usr/include/c++/11/cstdint /usr/include/c++/11/limits \
/usr/include/c++/11/ctime /usr/include/c++/11/bits/parse_numbers.h \
/usr/include/c++/11/system_error \
/usr/include/aarch64-linux-gnu/c++/11/bits/error_constants.h \
/usr/include/c++/11/cerrno /usr/include/errno.h \
/usr/include/aarch64-linux-gnu/bits/errno.h /usr/include/linux/errno.h \
/usr/include/aarch64-linux-gnu/asm/errno.h \
/usr/include/asm-generic/errno.h /usr/include/asm-generic/errno-base.h \
/usr/include/aarch64-linux-gnu/bits/types/error_t.h \
/usr/include/c++/11/stdexcept /usr/include/c++/11/string \
/usr/include/c++/11/bits/char_traits.h \
/usr/include/c++/11/bits/localefwd.h \
/usr/include/aarch64-linux-gnu/c++/11/bits/c++locale.h \
/usr/include/c++/11/clocale /usr/include/locale.h \
/usr/include/aarch64-linux-gnu/bits/locale.h /usr/include/c++/11/cctype \
/usr/include/ctype.h /usr/include/c++/11/bits/ostream_insert.h \
/usr/include/c++/11/bits/cxxabi_forced.h \
/usr/include/c++/11/bits/basic_string.h /usr/include/c++/11/string_view \
/usr/include/c++/11/bits/string_view.tcc \
/usr/include/c++/11/ext/string_conversions.h /usr/include/c++/11/cstdlib \
/usr/include/stdlib.h /usr/include/aarch64-linux-gnu/bits/waitflags.h \
/usr/include/aarch64-linux-gnu/bits/waitstatus.h /usr/include/alloca.h \
/usr/include/aarch64-linux-gnu/bits/stdlib-bsearch.h \
/usr/include/aarch64-linux-gnu/bits/stdlib-float.h \
/usr/include/aarch64-linux-gnu/bits/stdlib.h \
/usr/include/c++/11/bits/std_abs.h /usr/include/c++/11/cstdio \
/usr/include/stdio.h \
/usr/include/aarch64-linux-gnu/bits/types/__fpos_t.h \
/usr/include/aarch64-linux-gnu/bits/types/__fpos64_t.h \
/usr/include/aarch64-linux-gnu/bits/types/struct_FILE.h \
/usr/include/aarch64-linux-gnu/bits/types/cookie_io_functions_t.h \
/usr/include/aarch64-linux-gnu/bits/stdio_lim.h \
/usr/include/aarch64-linux-gnu/bits/stdio.h \
/usr/include/aarch64-linux-gnu/bits/stdio2.h \
/usr/include/c++/11/bits/charconv.h \
/usr/include/c++/11/bits/basic_string.tcc \
/usr/include/c++/11/bits/std_mutex.h \
/usr/include/c++/11/bits/unique_lock.h \
/usr/include/c++/11/condition_variable /usr/include/c++/11/atomic \
/usr/include/c++/11/bits/atomic_futex.h \
/usr/include/c++/11/bits/std_function.h \
/usr/include/c++/11/bits/std_thread.h \
/opt/ros/humble/include/rclcpp/rclcpp/executors/multi_threaded_executor.hpp \
/usr/include/c++/11/set /usr/include/c++/11/bits/stl_tree.h \
/usr/include/c++/11/bits/node_handle.h \
/usr/include/c++/11/bits/stl_set.h \
/usr/include/c++/11/bits/stl_multiset.h \
/usr/include/c++/11/bits/erase_if.h /usr/include/c++/11/thread \
/usr/include/c++/11/bits/this_thread_sleep.h \
/usr/include/c++/11/unordered_map /usr/include/c++/11/bits/hashtable.h \
/usr/include/c++/11/bits/hashtable_policy.h \
/usr/include/c++/11/bits/enable_special_members.h \
/usr/include/c++/11/bits/unordered_map.h \
/opt/ros/humble/include/rclcpp/rclcpp/executor.hpp \
/usr/include/c++/11/algorithm /usr/include/c++/11/bits/stl_algo.h \
/usr/include/c++/11/bits/algorithmfwd.h \
/usr/include/c++/11/bits/stl_heap.h \
/usr/include/c++/11/bits/uniform_int_dist.h \
/usr/include/c++/11/pstl/glue_algorithm_defs.h \
/usr/include/c++/11/functional /usr/include/c++/11/vector \
/usr/include/c++/11/bits/stl_vector.h \
/usr/include/c++/11/bits/stl_bvector.h \
/usr/include/c++/11/bits/vector.tcc /usr/include/c++/11/cassert \
/usr/include/assert.h /usr/include/c++/11/iostream \
/usr/include/c++/11/ostream /usr/include/c++/11/ios \
/usr/include/c++/11/bits/ios_base.h \
/usr/include/c++/11/bits/locale_classes.h \
/usr/include/c++/11/bits/locale_classes.tcc \
/usr/include/c++/11/streambuf /usr/include/c++/11/bits/streambuf.tcc \
/usr/include/c++/11/bits/basic_ios.h \
/usr/include/c++/11/bits/locale_facets.h /usr/include/c++/11/cwctype \
/usr/include/wctype.h /usr/include/aarch64-linux-gnu/bits/wctype-wchar.h \
/usr/include/aarch64-linux-gnu/c++/11/bits/ctype_base.h \
/usr/include/c++/11/bits/streambuf_iterator.h \
/usr/include/aarch64-linux-gnu/c++/11/bits/ctype_inline.h \
/usr/include/c++/11/bits/locale_facets.tcc \
/usr/include/c++/11/bits/basic_ios.tcc \
/usr/include/c++/11/bits/ostream.tcc /usr/include/c++/11/istream \
/usr/include/c++/11/bits/istream.tcc /usr/include/c++/11/list \
/usr/include/c++/11/bits/stl_list.h /usr/include/c++/11/bits/list.tcc \
/usr/include/c++/11/map /usr/include/c++/11/bits/stl_map.h \
/usr/include/c++/11/bits/stl_multimap.h \
/opt/ros/humble/include/rcl/rcl/guard_condition.h \
/opt/ros/humble/include/rcl/rcl/allocator.h \
/opt/ros/humble/include/rcutils/rcutils/allocator.h \
/usr/lib/gcc/aarch64-linux-gnu/11/include/stdbool.h \
/opt/ros/humble/include/rcutils/rcutils/macros.h \
/opt/ros/humble/include/rcutils/rcutils/testing/fault_injection.h \
/opt/ros/humble/include/rcutils/rcutils/visibility_control.h \
/opt/ros/humble/include/rcutils/rcutils/visibility_control_macros.h \
/opt/ros/humble/include/rcutils/rcutils/types/rcutils_ret.h \
/opt/ros/humble/include/rcl/rcl/context.h \
/opt/ros/humble/include/rmw/rmw/init.h \
/opt/ros/humble/include/rmw/rmw/init_options.h \
/opt/ros/humble/include/rmw/rmw/domain_id.h \
/opt/ros/humble/include/rmw/rmw/localhost.h \
/opt/ros/humble/include/rmw/rmw/visibility_control.h \
/opt/ros/humble/include/rmw/rmw/macros.h \
/opt/ros/humble/include/rmw/rmw/ret_types.h \
/opt/ros/humble/include/rmw/rmw/security_options.h \
/opt/ros/humble/include/rcl/rcl/arguments.h \
/opt/ros/humble/include/rcl/rcl/log_level.h \
/opt/ros/humble/include/rcl/rcl/macros.h \
/opt/ros/humble/include/rcl/rcl/types.h \
/opt/ros/humble/include/rmw/rmw/types.h \
/opt/ros/humble/include/rcutils/rcutils/logging.h \
/opt/ros/humble/include/rcutils/rcutils/error_handling.h \
/usr/include/c++/11/stdlib.h /usr/include/string.h \
/usr/include/strings.h \
/usr/include/aarch64-linux-gnu/bits/strings_fortified.h \
/usr/include/aarch64-linux-gnu/bits/string_fortified.h \
/opt/ros/humble/include/rcutils/rcutils/snprintf.h \
/opt/ros/humble/include/rcutils/rcutils/time.h \
/opt/ros/humble/include/rcutils/rcutils/types.h \
/opt/ros/humble/include/rcutils/rcutils/types/array_list.h \
/opt/ros/humble/include/rcutils/rcutils/types/char_array.h \
/opt/ros/humble/include/rcutils/rcutils/types/hash_map.h \
/opt/ros/humble/include/rcutils/rcutils/types/string_array.h \
/opt/ros/humble/include/rcutils/rcutils/qsort.h \
/opt/ros/humble/include/rcutils/rcutils/types/string_map.h \
/opt/ros/humble/include/rcutils/rcutils/types/uint8_array.h \
/opt/ros/humble/include/rmw/rmw/events_statuses/events_statuses.h \
/opt/ros/humble/include/rmw/rmw/events_statuses/incompatible_qos.h \
/opt/ros/humble/include/rmw/rmw/qos_policy_kind.h \
/opt/ros/humble/include/rmw/rmw/events_statuses/liveliness_changed.h \
/opt/ros/humble/include/rmw/rmw/events_statuses/liveliness_lost.h \
/opt/ros/humble/include/rmw/rmw/events_statuses/message_lost.h \
/opt/ros/humble/include/rmw/rmw/events_statuses/offered_deadline_missed.h \
/opt/ros/humble/include/rmw/rmw/events_statuses/requested_deadline_missed.h \
/opt/ros/humble/include/rmw/rmw/serialized_message.h \
/opt/ros/humble/include/rmw/rmw/subscription_content_filter_options.h \
/opt/ros/humble/include/rmw/rmw/time.h \
/opt/ros/humble/include/rcl/rcl/visibility_control.h \
/opt/ros/humble/include/rcl_yaml_param_parser/rcl_yaml_param_parser/types.h \
/opt/ros/humble/include/rcl/rcl/init_options.h \
/usr/lib/gcc/aarch64-linux-gnu/11/include/stdalign.h \
/opt/ros/humble/include/rcl/rcl/wait.h \
/opt/ros/humble/include/rcl/rcl/client.h \
/opt/ros/humble/include/rosidl_runtime_c/rosidl_runtime_c/service_type_support_struct.h \
/opt/ros/humble/include/rosidl_runtime_c/rosidl_runtime_c/visibility_control.h \
/opt/ros/humble/include/rosidl_typesupport_interface/rosidl_typesupport_interface/macros.h \
/opt/ros/humble/include/rcl/rcl/event_callback.h \
/opt/ros/humble/include/rmw/rmw/event_callback_type.h \
/opt/ros/humble/include/rcl/rcl/node.h \
/opt/ros/humble/include/rcl/rcl/node_options.h \
/opt/ros/humble/include/rcl/rcl/domain_id.h \
/opt/ros/humble/include/rcl/rcl/service.h \
/opt/ros/humble/include/rcl/rcl/subscription.h \
/opt/ros/humble/include/rosidl_runtime_c/rosidl_runtime_c/message_type_support_struct.h \
/opt/ros/humble/include/rmw/rmw/message_sequence.h \
/opt/ros/humble/include/rcl/rcl/timer.h \
/opt/ros/humble/include/rcl/rcl/time.h \
/opt/ros/humble/include/rmw/rmw/rmw.h \
/opt/ros/humble/include/rosidl_runtime_c/rosidl_runtime_c/sequence_bound.h \
/opt/ros/humble/include/rmw/rmw/event.h \
/opt/ros/humble/include/rmw/rmw/publisher_options.h \
/opt/ros/humble/include/rmw/rmw/qos_profiles.h \
/opt/ros/humble/include/rmw/rmw/subscription_options.h \
/opt/ros/humble/include/rcl/rcl/event.h \
/opt/ros/humble/include/rcl/rcl/publisher.h \
/opt/ros/humble/include/rcpputils/rcpputils/scope_exit.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/context.hpp \
/usr/include/c++/11/typeindex /usr/include/c++/11/unordered_set \
/usr/include/c++/11/bits/unordered_set.h \
/opt/ros/humble/include/rclcpp/rclcpp/init_options.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/visibility_control.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/macros.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/contexts/default_context.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/guard_condition.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/executor_options.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/memory_strategies.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/memory_strategy.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/any_executable.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/callback_group.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/client.hpp \
/usr/include/c++/11/optional /usr/include/c++/11/sstream \
/usr/include/c++/11/bits/sstream.tcc /usr/include/c++/11/variant \
/opt/ros/humble/include/rcl/rcl/error_handling.h \
/opt/ros/humble/include/rclcpp/rclcpp/detail/cpp_callback_trampoline.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/exceptions.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/exceptions/exceptions.hpp \
/opt/ros/humble/include/rcpputils/rcpputils/join.hpp \
/usr/include/c++/11/iterator /usr/include/c++/11/bits/stream_iterator.h \
/opt/ros/humble/include/rclcpp/rclcpp/expand_topic_or_service_name.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/function_traits.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/logging.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/logger.hpp \
/opt/ros/humble/include/rcpputils/rcpputils/filesystem_helper.hpp \
/opt/ros/humble/include/rcpputils/rcpputils/visibility_control.hpp \
/opt/ros/humble/include/rcutils/rcutils/logging_macros.h \
/opt/ros/humble/include/rclcpp/rclcpp/utilities.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/node_interfaces/node_graph_interface.hpp \
/opt/ros/humble/include/rcl/rcl/graph.h \
/opt/ros/humble/include/rmw/rmw/names_and_types.h \
/opt/ros/humble/include/rmw/rmw/get_topic_names_and_types.h \
/opt/ros/humble/include/rmw/rmw/topic_endpoint_info_array.h \
/opt/ros/humble/include/rmw/rmw/topic_endpoint_info.h \
/opt/ros/humble/include/rclcpp/rclcpp/event.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/qos.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/duration.hpp \
/opt/ros/humble/include/builtin_interfaces/builtin_interfaces/msg/duration.hpp \
/opt/ros/humble/include/builtin_interfaces/builtin_interfaces/msg/detail/duration__struct.hpp \
/opt/ros/humble/include/rosidl_runtime_cpp/rosidl_runtime_cpp/bounded_vector.hpp \
/opt/ros/humble/include/rosidl_runtime_cpp/rosidl_runtime_cpp/message_initialization.hpp \
/opt/ros/humble/include/rosidl_runtime_c/rosidl_runtime_c/message_initialization.h \
/opt/ros/humble/include/builtin_interfaces/builtin_interfaces/msg/detail/duration__builder.hpp \
/opt/ros/humble/include/builtin_interfaces/builtin_interfaces/msg/detail/duration__traits.hpp \
/opt/ros/humble/include/rosidl_runtime_cpp/rosidl_runtime_cpp/traits.hpp \
/usr/include/c++/11/codecvt /usr/include/c++/11/bits/codecvt.h \
/usr/include/c++/11/iomanip /usr/include/c++/11/locale \
/usr/include/c++/11/bits/locale_facets_nonio.h \
/usr/include/aarch64-linux-gnu/c++/11/bits/time_members.h \
/usr/include/aarch64-linux-gnu/c++/11/bits/messages_members.h \
/usr/include/libintl.h /usr/include/c++/11/bits/locale_facets_nonio.tcc \
/usr/include/c++/11/bits/locale_conv.h \
/usr/include/c++/11/bits/quoted_string.h \
/opt/ros/humble/include/rcl/rcl/logging_rosout.h \
/opt/ros/humble/include/rmw/rmw/incompatible_qos_events_statuses.h \
/opt/ros/humble/include/rclcpp/rclcpp/type_support_decl.hpp \
/opt/ros/humble/include/rosidl_runtime_cpp/rosidl_runtime_cpp/message_type_support_decl.hpp \
/opt/ros/humble/include/rosidl_runtime_cpp/rosidl_runtime_cpp/service_type_support_decl.hpp \
/opt/ros/humble/include/rosidl_runtime_cpp/rosidl_typesupport_cpp/message_type_support.hpp \
/opt/ros/humble/include/rosidl_runtime_cpp/rosidl_typesupport_cpp/service_type_support.hpp \
/opt/ros/humble/include/rmw/rmw/error_handling.h \
/opt/ros/humble/include/rmw/rmw/impl/cpp/demangle.hpp \
/usr/include/c++/11/cxxabi.h \
/usr/include/aarch64-linux-gnu/c++/11/bits/cxxabi_tweaks.h \
/opt/ros/humble/include/rmw/rmw/impl/config.h \
/opt/ros/humble/include/rclcpp/rclcpp/publisher_base.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/network_flow_endpoint.hpp \
/opt/ros/humble/include/rcl/rcl/network_flow_endpoints.h \
/opt/ros/humble/include/rmw/rmw/network_flow_endpoint.h \
/opt/ros/humble/include/rmw/rmw/network_flow_endpoint_array.h \
/opt/ros/humble/include/rclcpp/rclcpp/qos_event.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/waitable.hpp \
/opt/ros/humble/include/rcpputils/rcpputils/time.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/service.hpp \
/opt/ros/humble/include/tracetools/tracetools/tracetools.h \
/opt/ros/humble/include/tracetools/tracetools/config.h \
/opt/ros/humble/include/tracetools/tracetools/visibility_control.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/any_service_callback.hpp \
/opt/ros/humble/include/tracetools/tracetools/utils.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/subscription_base.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/any_subscription_callback.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/allocator/allocator_common.hpp \
/usr/include/c++/11/cstring \
/opt/ros/humble/include/rclcpp/rclcpp/allocator/allocator_deleter.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/detail/subscription_callback_type_helper.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/message_info.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/serialized_message.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/type_adapter.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/experimental/intra_process_manager.hpp \
/usr/include/c++/11/shared_mutex \
/opt/ros/humble/include/rclcpp/rclcpp/experimental/ros_message_intra_process_buffer.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/experimental/subscription_intra_process_base.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/experimental/subscription_intra_process.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/experimental/buffers/intra_process_buffer.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/experimental/buffers/buffer_implementation_base.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/experimental/subscription_intra_process_buffer.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/experimental/create_intra_process_buffer.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/experimental/buffers/ring_buffer_implementation.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/intra_process_buffer_type.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/subscription_content_filter_options.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/timer.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/clock.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/time.hpp \
/opt/ros/humble/include/builtin_interfaces/builtin_interfaces/msg/time.hpp \
/opt/ros/humble/include/builtin_interfaces/builtin_interfaces/msg/detail/time__struct.hpp \
/opt/ros/humble/include/builtin_interfaces/builtin_interfaces/msg/detail/time__builder.hpp \
/opt/ros/humble/include/builtin_interfaces/builtin_interfaces/msg/detail/time__traits.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/rate.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/node_interfaces/node_base_interface.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/subscription.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/detail/resolve_use_intra_process.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/intra_process_setting.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/detail/resolve_intra_process_buffer_type.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/message_memory_strategy.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/subscription_options.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/detail/rmw_implementation_specific_subscription_payload.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/detail/rmw_implementation_specific_payload.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/qos_overriding_options.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/set_parameters_result.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/detail/set_parameters_result__struct.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/detail/set_parameters_result__builder.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/detail/set_parameters_result__traits.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/topic_statistics_state.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/subscription_traits.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/topic_statistics/subscription_topic_statistics.hpp \
/opt/ros/humble/include/libstatistics_collector/libstatistics_collector/collector/generate_statistics_message.hpp \
/opt/ros/humble/include/statistics_msgs/statistics_msgs/msg/metrics_message.hpp \
/opt/ros/humble/include/statistics_msgs/statistics_msgs/msg/detail/metrics_message__struct.hpp \
/opt/ros/humble/include/statistics_msgs/statistics_msgs/msg/detail/statistic_data_point__struct.hpp \
/opt/ros/humble/include/statistics_msgs/statistics_msgs/msg/detail/metrics_message__builder.hpp \
/opt/ros/humble/include/statistics_msgs/statistics_msgs/msg/detail/metrics_message__traits.hpp \
/opt/ros/humble/include/statistics_msgs/statistics_msgs/msg/detail/statistic_data_point__traits.hpp \
/opt/ros/humble/include/libstatistics_collector/libstatistics_collector/visibility_control.hpp \
/opt/ros/humble/include/libstatistics_collector/libstatistics_collector/moving_average_statistics/types.hpp \
/usr/include/c++/11/cmath /usr/include/math.h \
/usr/include/aarch64-linux-gnu/bits/math-vector.h \
/usr/include/aarch64-linux-gnu/bits/libm-simd-decl-stubs.h \
/usr/include/aarch64-linux-gnu/bits/flt-eval-method.h \
/usr/include/aarch64-linux-gnu/bits/fp-logb.h \
/usr/include/aarch64-linux-gnu/bits/fp-fast.h \
/usr/include/aarch64-linux-gnu/bits/mathcalls-helper-functions.h \
/usr/include/aarch64-linux-gnu/bits/mathcalls.h \
/usr/include/aarch64-linux-gnu/bits/mathcalls-narrow.h \
/usr/include/aarch64-linux-gnu/bits/iscanonical.h \
/usr/include/c++/11/bits/specfun.h /usr/include/c++/11/tr1/gamma.tcc \
/usr/include/c++/11/tr1/special_function_util.h \
/usr/include/c++/11/tr1/bessel_function.tcc \
/usr/include/c++/11/tr1/beta_function.tcc \
/usr/include/c++/11/tr1/ell_integral.tcc \
/usr/include/c++/11/tr1/exp_integral.tcc \
/usr/include/c++/11/tr1/hypergeometric.tcc \
/usr/include/c++/11/tr1/legendre_function.tcc \
/usr/include/c++/11/tr1/modified_bessel_func.tcc \
/usr/include/c++/11/tr1/poly_hermite.tcc \
/usr/include/c++/11/tr1/poly_laguerre.tcc \
/usr/include/c++/11/tr1/riemann_zeta.tcc \
/opt/ros/humble/include/libstatistics_collector/libstatistics_collector/topic_statistics_collector/constants.hpp \
/opt/ros/humble/include/libstatistics_collector/libstatistics_collector/topic_statistics_collector/received_message_age.hpp \
/opt/ros/humble/include/libstatistics_collector/libstatistics_collector/topic_statistics_collector/constants.hpp \
/opt/ros/humble/include/libstatistics_collector/libstatistics_collector/topic_statistics_collector/topic_statistics_collector.hpp \
/opt/ros/humble/include/libstatistics_collector/libstatistics_collector/collector/collector.hpp \
/opt/ros/humble/include/libstatistics_collector/libstatistics_collector/moving_average_statistics/moving_average.hpp \
/usr/include/c++/11/numeric /usr/include/c++/11/bits/stl_numeric.h \
/usr/include/c++/11/pstl/glue_numeric_defs.h \
/opt/ros/humble/include/libstatistics_collector/libstatistics_collector/moving_average_statistics/types.hpp \
/opt/ros/humble/include/rcpputils/rcpputils/thread_safety_annotations.hpp \
/opt/ros/humble/include/libstatistics_collector/libstatistics_collector/collector/metric_details_interface.hpp \
/opt/ros/humble/include/libstatistics_collector/libstatistics_collector/topic_statistics_collector/received_message_period.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/publisher.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/get_message_type_support_handle.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/is_ros_compatible_type.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/loaned_message.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/publisher_options.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/detail/rmw_implementation_specific_publisher_payload.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/future_return_code.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/executors/single_threaded_executor.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/node.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/list_parameters_result.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/detail/list_parameters_result__struct.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/detail/list_parameters_result__builder.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/detail/list_parameters_result__traits.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/parameter_descriptor.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/detail/parameter_descriptor__struct.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/detail/floating_point_range__struct.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/detail/integer_range__struct.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/detail/parameter_descriptor__builder.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/detail/parameter_descriptor__traits.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/detail/floating_point_range__traits.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/detail/integer_range__traits.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/parameter_event.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/detail/parameter_event__struct.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/detail/parameter__struct.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/detail/parameter_value__struct.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/detail/parameter_event__builder.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/detail/parameter_event__traits.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/detail/parameter__traits.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/detail/parameter_value__traits.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/generic_publisher.hpp \
/opt/ros/humble/include/rcpputils/rcpputils/shared_library.hpp \
/opt/ros/humble/include/rcutils/rcutils/shared_library.h \
/opt/ros/humble/include/rclcpp/rclcpp/node_interfaces/node_topics_interface.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/node_interfaces/node_timers_interface.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/publisher_factory.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/subscription_factory.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/typesupport_helpers.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/generic_subscription.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/node_interfaces/node_clock_interface.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/node_interfaces/node_logging_interface.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/node_interfaces/node_parameters_interface.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/parameter.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/parameter.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/detail/parameter__builder.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/parameter_value.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/parameter_type.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/detail/parameter_type__struct.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/detail/parameter_type__builder.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/detail/parameter_type__traits.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/parameter_value.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/detail/parameter_value__builder.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/node_interfaces/node_services_interface.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/node_interfaces/node_time_source_interface.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/node_interfaces/node_waitables_interface.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/node_options.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/node_impl.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/create_client.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/create_generic_publisher.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/create_generic_subscription.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/create_publisher.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/node_interfaces/get_node_topics_interface.hpp \
/opt/ros/humble/include/rcpputils/rcpputils/pointer_traits.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/node_interfaces/node_topics_interface_traits.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/detail/qos_parameters.hpp \
/opt/ros/humble/include/rmw/rmw/qos_string_conversions.h \
/opt/ros/humble/include/rclcpp/rclcpp/node_interfaces/get_node_parameters_interface.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/node_interfaces/node_parameters_interface_traits.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/create_service.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/create_subscription.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/detail/resolve_enable_topic_statistics.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/node_interfaces/get_node_timers_interface.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/node_interfaces/node_timers_interface_traits.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/create_timer.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/node_interfaces/get_node_base_interface.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/node_interfaces/node_base_interface_traits.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/executors/static_single_threaded_executor.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/executors/static_executor_entities_collector.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/experimental/executable_list.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/parameter_client.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/srv/describe_parameters.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/srv/detail/describe_parameters__struct.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/srv/detail/describe_parameters__builder.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/srv/detail/describe_parameters__traits.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/srv/get_parameter_types.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/srv/detail/get_parameter_types__struct.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/srv/detail/get_parameter_types__builder.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/srv/detail/get_parameter_types__traits.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/srv/get_parameters.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/srv/detail/get_parameters__struct.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/srv/detail/get_parameters__builder.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/srv/detail/get_parameters__traits.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/srv/list_parameters.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/srv/detail/list_parameters__struct.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/srv/detail/list_parameters__builder.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/srv/detail/list_parameters__traits.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/srv/set_parameters.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/srv/detail/set_parameters__struct.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/srv/detail/set_parameters__builder.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/srv/detail/set_parameters__traits.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/srv/set_parameters_atomically.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/srv/detail/set_parameters_atomically__struct.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/srv/detail/set_parameters_atomically__builder.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/srv/detail/set_parameters_atomically__traits.hpp \
/opt/ros/humble/include/rcl_yaml_param_parser/rcl_yaml_param_parser/parser.h \
/opt/ros/humble/include/rcl_yaml_param_parser/rcl_yaml_param_parser/visibility_control.h \
/opt/ros/humble/include/rclcpp/rclcpp/parameter_map.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/parameter_event_handler.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/parameter_service.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/wait_set.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/wait_set_policies/dynamic_storage.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/subscription_wait_set_mask.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/wait_set_policies/detail/storage_policy_common.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/wait_set_policies/sequential_synchronization.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/wait_result.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/wait_result_kind.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/wait_set_policies/detail/synchronization_policy_common.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/wait_set_policies/static_storage.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/wait_set_policies/thread_safe_synchronization.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/wait_set_policies/detail/write_preferring_read_write_lock.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/wait_set_template.hpp \
/home/ubuntu/ros2_ws/install/px4_msgs/include/px4_msgs/px4_msgs/msg/sensor_combined.hpp \
/home/ubuntu/ros2_ws/install/px4_msgs/include/px4_msgs/px4_msgs/msg/detail/sensor_combined__struct.hpp \
/home/ubuntu/ros2_ws/install/px4_msgs/include/px4_msgs/px4_msgs/msg/detail/sensor_combined__builder.hpp \
/home/ubuntu/ros2_ws/install/px4_msgs/include/px4_msgs/px4_msgs/msg/detail/sensor_combined__traits.hpp
@@ -0,0 +1,631 @@
CMakeFiles/vehicle_gps_position_listener.dir/src/examples/listeners/vehicle_gps_position_listener.cpp.o: \
/home/ubuntu/ros2_ws/src/px4_ros_com/src/examples/listeners/vehicle_gps_position_listener.cpp \
/usr/include/stdc-predef.h \
/opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp \
/usr/include/c++/11/csignal \
/usr/include/aarch64-linux-gnu/c++/11/bits/c++config.h \
/usr/include/aarch64-linux-gnu/c++/11/bits/os_defines.h \
/usr/include/features.h /usr/include/features-time64.h \
/usr/include/aarch64-linux-gnu/bits/wordsize.h \
/usr/include/aarch64-linux-gnu/bits/timesize.h \
/usr/include/aarch64-linux-gnu/sys/cdefs.h \
/usr/include/aarch64-linux-gnu/bits/long-double.h \
/usr/include/aarch64-linux-gnu/gnu/stubs.h \
/usr/include/aarch64-linux-gnu/gnu/stubs-lp64.h \
/usr/include/aarch64-linux-gnu/c++/11/bits/cpu_defines.h \
/usr/include/c++/11/pstl/pstl_config.h /usr/include/signal.h \
/usr/include/aarch64-linux-gnu/bits/types.h \
/usr/include/aarch64-linux-gnu/bits/typesizes.h \
/usr/include/aarch64-linux-gnu/bits/time64.h \
/usr/include/aarch64-linux-gnu/bits/signum-generic.h \
/usr/include/aarch64-linux-gnu/bits/signum-arch.h \
/usr/include/aarch64-linux-gnu/bits/types/sig_atomic_t.h \
/usr/include/aarch64-linux-gnu/bits/types/sigset_t.h \
/usr/include/aarch64-linux-gnu/bits/types/__sigset_t.h \
/usr/include/aarch64-linux-gnu/bits/types/struct_timespec.h \
/usr/include/aarch64-linux-gnu/bits/endian.h \
/usr/include/aarch64-linux-gnu/bits/endianness.h \
/usr/include/aarch64-linux-gnu/bits/types/time_t.h \
/usr/include/aarch64-linux-gnu/bits/types/siginfo_t.h \
/usr/include/aarch64-linux-gnu/bits/types/__sigval_t.h \
/usr/include/aarch64-linux-gnu/bits/siginfo-arch.h \
/usr/include/aarch64-linux-gnu/bits/siginfo-consts.h \
/usr/include/aarch64-linux-gnu/bits/siginfo-consts-arch.h \
/usr/include/aarch64-linux-gnu/bits/types/sigval_t.h \
/usr/include/aarch64-linux-gnu/bits/types/sigevent_t.h \
/usr/include/aarch64-linux-gnu/bits/sigevent-consts.h \
/usr/include/aarch64-linux-gnu/bits/sigaction.h \
/usr/include/aarch64-linux-gnu/bits/sigcontext.h \
/usr/include/aarch64-linux-gnu/asm/sigcontext.h \
/usr/include/linux/types.h /usr/include/aarch64-linux-gnu/asm/types.h \
/usr/include/asm-generic/types.h /usr/include/asm-generic/int-ll64.h \
/usr/include/aarch64-linux-gnu/asm/bitsperlong.h \
/usr/include/asm-generic/bitsperlong.h /usr/include/linux/posix_types.h \
/usr/include/linux/stddef.h \
/usr/include/aarch64-linux-gnu/asm/posix_types.h \
/usr/include/asm-generic/posix_types.h \
/usr/include/aarch64-linux-gnu/asm/sve_context.h \
/usr/lib/gcc/aarch64-linux-gnu/11/include/stddef.h \
/usr/include/aarch64-linux-gnu/bits/types/stack_t.h \
/usr/include/aarch64-linux-gnu/sys/ucontext.h \
/usr/include/aarch64-linux-gnu/sys/procfs.h \
/usr/include/aarch64-linux-gnu/sys/time.h \
/usr/include/aarch64-linux-gnu/bits/types/struct_timeval.h \
/usr/include/aarch64-linux-gnu/sys/select.h \
/usr/include/aarch64-linux-gnu/bits/select.h \
/usr/include/aarch64-linux-gnu/bits/select2.h \
/usr/include/aarch64-linux-gnu/sys/types.h \
/usr/include/aarch64-linux-gnu/bits/types/clock_t.h \
/usr/include/aarch64-linux-gnu/bits/types/clockid_t.h \
/usr/include/aarch64-linux-gnu/bits/types/timer_t.h \
/usr/include/aarch64-linux-gnu/bits/stdint-intn.h /usr/include/endian.h \
/usr/include/aarch64-linux-gnu/bits/byteswap.h \
/usr/include/aarch64-linux-gnu/bits/uintn-identity.h \
/usr/include/aarch64-linux-gnu/bits/pthreadtypes.h \
/usr/include/aarch64-linux-gnu/bits/thread-shared-types.h \
/usr/include/aarch64-linux-gnu/bits/pthreadtypes-arch.h \
/usr/include/aarch64-linux-gnu/bits/atomic_wide_counter.h \
/usr/include/aarch64-linux-gnu/bits/struct_mutex.h \
/usr/include/aarch64-linux-gnu/bits/struct_rwlock.h \
/usr/include/aarch64-linux-gnu/sys/user.h \
/usr/include/aarch64-linux-gnu/bits/procfs.h \
/usr/include/aarch64-linux-gnu/bits/procfs-id.h \
/usr/include/aarch64-linux-gnu/bits/procfs-prregset.h \
/usr/include/aarch64-linux-gnu/bits/procfs-extra.h \
/usr/include/aarch64-linux-gnu/bits/sigstack.h \
/usr/include/aarch64-linux-gnu/bits/sigstksz.h /usr/include/unistd.h \
/usr/include/aarch64-linux-gnu/bits/posix_opt.h \
/usr/include/aarch64-linux-gnu/bits/environments.h \
/usr/include/aarch64-linux-gnu/bits/confname.h \
/usr/include/aarch64-linux-gnu/bits/getopt_posix.h \
/usr/include/aarch64-linux-gnu/bits/getopt_core.h \
/usr/include/aarch64-linux-gnu/bits/unistd.h \
/usr/include/aarch64-linux-gnu/bits/unistd_ext.h \
/usr/include/linux/close_range.h \
/usr/include/aarch64-linux-gnu/bits/ss_flags.h \
/usr/include/aarch64-linux-gnu/bits/types/struct_sigstack.h \
/usr/include/aarch64-linux-gnu/bits/sigthread.h \
/usr/include/aarch64-linux-gnu/bits/signal_ext.h \
/usr/include/c++/11/memory /usr/include/c++/11/bits/stl_algobase.h \
/usr/include/c++/11/bits/functexcept.h \
/usr/include/c++/11/bits/exception_defines.h \
/usr/include/c++/11/bits/cpp_type_traits.h \
/usr/include/c++/11/ext/type_traits.h \
/usr/include/c++/11/ext/numeric_traits.h \
/usr/include/c++/11/bits/stl_pair.h /usr/include/c++/11/bits/move.h \
/usr/include/c++/11/type_traits \
/usr/include/c++/11/bits/stl_iterator_base_types.h \
/usr/include/c++/11/bits/stl_iterator_base_funcs.h \
/usr/include/c++/11/bits/concept_check.h \
/usr/include/c++/11/debug/assertions.h \
/usr/include/c++/11/bits/stl_iterator.h \
/usr/include/c++/11/bits/ptr_traits.h /usr/include/c++/11/debug/debug.h \
/usr/include/c++/11/bits/predefined_ops.h \
/usr/include/c++/11/bits/allocator.h \
/usr/include/aarch64-linux-gnu/c++/11/bits/c++allocator.h \
/usr/include/c++/11/ext/new_allocator.h /usr/include/c++/11/new \
/usr/include/c++/11/bits/exception.h \
/usr/include/c++/11/bits/memoryfwd.h \
/usr/include/c++/11/bits/stl_construct.h \
/usr/include/c++/11/bits/stl_uninitialized.h \
/usr/include/c++/11/ext/alloc_traits.h \
/usr/include/c++/11/bits/alloc_traits.h \
/usr/include/c++/11/bits/stl_tempbuf.h \
/usr/include/c++/11/bits/stl_raw_storage_iter.h \
/usr/include/c++/11/bits/align.h /usr/include/c++/11/bit \
/usr/lib/gcc/aarch64-linux-gnu/11/include/stdint.h /usr/include/stdint.h \
/usr/include/aarch64-linux-gnu/bits/libc-header-start.h \
/usr/include/aarch64-linux-gnu/bits/wchar.h \
/usr/include/aarch64-linux-gnu/bits/stdint-uintn.h \
/usr/include/c++/11/bits/uses_allocator.h \
/usr/include/c++/11/bits/unique_ptr.h /usr/include/c++/11/utility \
/usr/include/c++/11/bits/stl_relops.h \
/usr/include/c++/11/initializer_list /usr/include/c++/11/tuple \
/usr/include/c++/11/array /usr/include/c++/11/bits/range_access.h \
/usr/include/c++/11/bits/invoke.h \
/usr/include/c++/11/bits/stl_function.h \
/usr/include/c++/11/backward/binders.h \
/usr/include/c++/11/bits/functional_hash.h \
/usr/include/c++/11/bits/hash_bytes.h \
/usr/include/c++/11/bits/shared_ptr.h /usr/include/c++/11/iosfwd \
/usr/include/c++/11/bits/stringfwd.h /usr/include/c++/11/bits/postypes.h \
/usr/include/c++/11/cwchar /usr/include/wchar.h \
/usr/include/aarch64-linux-gnu/bits/floatn.h \
/usr/include/aarch64-linux-gnu/bits/floatn-common.h \
/usr/lib/gcc/aarch64-linux-gnu/11/include/stdarg.h \
/usr/include/aarch64-linux-gnu/bits/types/wint_t.h \
/usr/include/aarch64-linux-gnu/bits/types/mbstate_t.h \
/usr/include/aarch64-linux-gnu/bits/types/__mbstate_t.h \
/usr/include/aarch64-linux-gnu/bits/types/__FILE.h \
/usr/include/aarch64-linux-gnu/bits/types/FILE.h \
/usr/include/aarch64-linux-gnu/bits/types/locale_t.h \
/usr/include/aarch64-linux-gnu/bits/types/__locale_t.h \
/usr/include/aarch64-linux-gnu/bits/wchar2.h \
/usr/include/c++/11/bits/shared_ptr_base.h /usr/include/c++/11/typeinfo \
/usr/include/c++/11/bits/allocated_ptr.h \
/usr/include/c++/11/bits/refwrap.h \
/usr/include/c++/11/ext/aligned_buffer.h \
/usr/include/c++/11/ext/atomicity.h \
/usr/include/aarch64-linux-gnu/c++/11/bits/gthr.h \
/usr/include/aarch64-linux-gnu/c++/11/bits/gthr-default.h \
/usr/include/pthread.h /usr/include/sched.h \
/usr/include/aarch64-linux-gnu/bits/sched.h \
/usr/include/aarch64-linux-gnu/bits/types/struct_sched_param.h \
/usr/include/aarch64-linux-gnu/bits/cpu-set.h /usr/include/time.h \
/usr/include/aarch64-linux-gnu/bits/time.h \
/usr/include/aarch64-linux-gnu/bits/timex.h \
/usr/include/aarch64-linux-gnu/bits/types/struct_tm.h \
/usr/include/aarch64-linux-gnu/bits/types/struct_itimerspec.h \
/usr/include/aarch64-linux-gnu/bits/setjmp.h \
/usr/include/aarch64-linux-gnu/bits/types/struct___jmp_buf_tag.h \
/usr/include/aarch64-linux-gnu/bits/pthread_stack_min-dynamic.h \
/usr/include/aarch64-linux-gnu/c++/11/bits/atomic_word.h \
/usr/include/aarch64-linux-gnu/sys/single_threaded.h \
/usr/include/c++/11/ext/concurrence.h /usr/include/c++/11/exception \
/usr/include/c++/11/bits/exception_ptr.h \
/usr/include/c++/11/bits/cxxabi_init_exception.h \
/usr/include/c++/11/bits/nested_exception.h \
/usr/include/c++/11/bits/shared_ptr_atomic.h \
/usr/include/c++/11/bits/atomic_base.h \
/usr/include/c++/11/bits/atomic_lockfree_defines.h \
/usr/include/c++/11/backward/auto_ptr.h \
/usr/include/c++/11/pstl/glue_memory_defs.h \
/usr/include/c++/11/pstl/execution_defs.h \
/opt/ros/humble/include/rclcpp/rclcpp/executors.hpp \
/usr/include/c++/11/future /usr/include/c++/11/mutex \
/usr/include/c++/11/chrono /usr/include/c++/11/ratio \
/usr/include/c++/11/cstdint /usr/include/c++/11/limits \
/usr/include/c++/11/ctime /usr/include/c++/11/bits/parse_numbers.h \
/usr/include/c++/11/system_error \
/usr/include/aarch64-linux-gnu/c++/11/bits/error_constants.h \
/usr/include/c++/11/cerrno /usr/include/errno.h \
/usr/include/aarch64-linux-gnu/bits/errno.h /usr/include/linux/errno.h \
/usr/include/aarch64-linux-gnu/asm/errno.h \
/usr/include/asm-generic/errno.h /usr/include/asm-generic/errno-base.h \
/usr/include/aarch64-linux-gnu/bits/types/error_t.h \
/usr/include/c++/11/stdexcept /usr/include/c++/11/string \
/usr/include/c++/11/bits/char_traits.h \
/usr/include/c++/11/bits/localefwd.h \
/usr/include/aarch64-linux-gnu/c++/11/bits/c++locale.h \
/usr/include/c++/11/clocale /usr/include/locale.h \
/usr/include/aarch64-linux-gnu/bits/locale.h /usr/include/c++/11/cctype \
/usr/include/ctype.h /usr/include/c++/11/bits/ostream_insert.h \
/usr/include/c++/11/bits/cxxabi_forced.h \
/usr/include/c++/11/bits/basic_string.h /usr/include/c++/11/string_view \
/usr/include/c++/11/bits/string_view.tcc \
/usr/include/c++/11/ext/string_conversions.h /usr/include/c++/11/cstdlib \
/usr/include/stdlib.h /usr/include/aarch64-linux-gnu/bits/waitflags.h \
/usr/include/aarch64-linux-gnu/bits/waitstatus.h /usr/include/alloca.h \
/usr/include/aarch64-linux-gnu/bits/stdlib-bsearch.h \
/usr/include/aarch64-linux-gnu/bits/stdlib-float.h \
/usr/include/aarch64-linux-gnu/bits/stdlib.h \
/usr/include/c++/11/bits/std_abs.h /usr/include/c++/11/cstdio \
/usr/include/stdio.h \
/usr/include/aarch64-linux-gnu/bits/types/__fpos_t.h \
/usr/include/aarch64-linux-gnu/bits/types/__fpos64_t.h \
/usr/include/aarch64-linux-gnu/bits/types/struct_FILE.h \
/usr/include/aarch64-linux-gnu/bits/types/cookie_io_functions_t.h \
/usr/include/aarch64-linux-gnu/bits/stdio_lim.h \
/usr/include/aarch64-linux-gnu/bits/stdio.h \
/usr/include/aarch64-linux-gnu/bits/stdio2.h \
/usr/include/c++/11/bits/charconv.h \
/usr/include/c++/11/bits/basic_string.tcc \
/usr/include/c++/11/bits/std_mutex.h \
/usr/include/c++/11/bits/unique_lock.h \
/usr/include/c++/11/condition_variable /usr/include/c++/11/atomic \
/usr/include/c++/11/bits/atomic_futex.h \
/usr/include/c++/11/bits/std_function.h \
/usr/include/c++/11/bits/std_thread.h \
/opt/ros/humble/include/rclcpp/rclcpp/executors/multi_threaded_executor.hpp \
/usr/include/c++/11/set /usr/include/c++/11/bits/stl_tree.h \
/usr/include/c++/11/bits/node_handle.h \
/usr/include/c++/11/bits/stl_set.h \
/usr/include/c++/11/bits/stl_multiset.h \
/usr/include/c++/11/bits/erase_if.h /usr/include/c++/11/thread \
/usr/include/c++/11/bits/this_thread_sleep.h \
/usr/include/c++/11/unordered_map /usr/include/c++/11/bits/hashtable.h \
/usr/include/c++/11/bits/hashtable_policy.h \
/usr/include/c++/11/bits/enable_special_members.h \
/usr/include/c++/11/bits/unordered_map.h \
/opt/ros/humble/include/rclcpp/rclcpp/executor.hpp \
/usr/include/c++/11/algorithm /usr/include/c++/11/bits/stl_algo.h \
/usr/include/c++/11/bits/algorithmfwd.h \
/usr/include/c++/11/bits/stl_heap.h \
/usr/include/c++/11/bits/uniform_int_dist.h \
/usr/include/c++/11/pstl/glue_algorithm_defs.h \
/usr/include/c++/11/functional /usr/include/c++/11/vector \
/usr/include/c++/11/bits/stl_vector.h \
/usr/include/c++/11/bits/stl_bvector.h \
/usr/include/c++/11/bits/vector.tcc /usr/include/c++/11/cassert \
/usr/include/assert.h /usr/include/c++/11/iostream \
/usr/include/c++/11/ostream /usr/include/c++/11/ios \
/usr/include/c++/11/bits/ios_base.h \
/usr/include/c++/11/bits/locale_classes.h \
/usr/include/c++/11/bits/locale_classes.tcc \
/usr/include/c++/11/streambuf /usr/include/c++/11/bits/streambuf.tcc \
/usr/include/c++/11/bits/basic_ios.h \
/usr/include/c++/11/bits/locale_facets.h /usr/include/c++/11/cwctype \
/usr/include/wctype.h /usr/include/aarch64-linux-gnu/bits/wctype-wchar.h \
/usr/include/aarch64-linux-gnu/c++/11/bits/ctype_base.h \
/usr/include/c++/11/bits/streambuf_iterator.h \
/usr/include/aarch64-linux-gnu/c++/11/bits/ctype_inline.h \
/usr/include/c++/11/bits/locale_facets.tcc \
/usr/include/c++/11/bits/basic_ios.tcc \
/usr/include/c++/11/bits/ostream.tcc /usr/include/c++/11/istream \
/usr/include/c++/11/bits/istream.tcc /usr/include/c++/11/list \
/usr/include/c++/11/bits/stl_list.h /usr/include/c++/11/bits/list.tcc \
/usr/include/c++/11/map /usr/include/c++/11/bits/stl_map.h \
/usr/include/c++/11/bits/stl_multimap.h \
/opt/ros/humble/include/rcl/rcl/guard_condition.h \
/opt/ros/humble/include/rcl/rcl/allocator.h \
/opt/ros/humble/include/rcutils/rcutils/allocator.h \
/usr/lib/gcc/aarch64-linux-gnu/11/include/stdbool.h \
/opt/ros/humble/include/rcutils/rcutils/macros.h \
/opt/ros/humble/include/rcutils/rcutils/testing/fault_injection.h \
/opt/ros/humble/include/rcutils/rcutils/visibility_control.h \
/opt/ros/humble/include/rcutils/rcutils/visibility_control_macros.h \
/opt/ros/humble/include/rcutils/rcutils/types/rcutils_ret.h \
/opt/ros/humble/include/rcl/rcl/context.h \
/opt/ros/humble/include/rmw/rmw/init.h \
/opt/ros/humble/include/rmw/rmw/init_options.h \
/opt/ros/humble/include/rmw/rmw/domain_id.h \
/opt/ros/humble/include/rmw/rmw/localhost.h \
/opt/ros/humble/include/rmw/rmw/visibility_control.h \
/opt/ros/humble/include/rmw/rmw/macros.h \
/opt/ros/humble/include/rmw/rmw/ret_types.h \
/opt/ros/humble/include/rmw/rmw/security_options.h \
/opt/ros/humble/include/rcl/rcl/arguments.h \
/opt/ros/humble/include/rcl/rcl/log_level.h \
/opt/ros/humble/include/rcl/rcl/macros.h \
/opt/ros/humble/include/rcl/rcl/types.h \
/opt/ros/humble/include/rmw/rmw/types.h \
/opt/ros/humble/include/rcutils/rcutils/logging.h \
/opt/ros/humble/include/rcutils/rcutils/error_handling.h \
/usr/include/c++/11/stdlib.h /usr/include/string.h \
/usr/include/strings.h \
/usr/include/aarch64-linux-gnu/bits/strings_fortified.h \
/usr/include/aarch64-linux-gnu/bits/string_fortified.h \
/opt/ros/humble/include/rcutils/rcutils/snprintf.h \
/opt/ros/humble/include/rcutils/rcutils/time.h \
/opt/ros/humble/include/rcutils/rcutils/types.h \
/opt/ros/humble/include/rcutils/rcutils/types/array_list.h \
/opt/ros/humble/include/rcutils/rcutils/types/char_array.h \
/opt/ros/humble/include/rcutils/rcutils/types/hash_map.h \
/opt/ros/humble/include/rcutils/rcutils/types/string_array.h \
/opt/ros/humble/include/rcutils/rcutils/qsort.h \
/opt/ros/humble/include/rcutils/rcutils/types/string_map.h \
/opt/ros/humble/include/rcutils/rcutils/types/uint8_array.h \
/opt/ros/humble/include/rmw/rmw/events_statuses/events_statuses.h \
/opt/ros/humble/include/rmw/rmw/events_statuses/incompatible_qos.h \
/opt/ros/humble/include/rmw/rmw/qos_policy_kind.h \
/opt/ros/humble/include/rmw/rmw/events_statuses/liveliness_changed.h \
/opt/ros/humble/include/rmw/rmw/events_statuses/liveliness_lost.h \
/opt/ros/humble/include/rmw/rmw/events_statuses/message_lost.h \
/opt/ros/humble/include/rmw/rmw/events_statuses/offered_deadline_missed.h \
/opt/ros/humble/include/rmw/rmw/events_statuses/requested_deadline_missed.h \
/opt/ros/humble/include/rmw/rmw/serialized_message.h \
/opt/ros/humble/include/rmw/rmw/subscription_content_filter_options.h \
/opt/ros/humble/include/rmw/rmw/time.h \
/opt/ros/humble/include/rcl/rcl/visibility_control.h \
/opt/ros/humble/include/rcl_yaml_param_parser/rcl_yaml_param_parser/types.h \
/opt/ros/humble/include/rcl/rcl/init_options.h \
/usr/lib/gcc/aarch64-linux-gnu/11/include/stdalign.h \
/opt/ros/humble/include/rcl/rcl/wait.h \
/opt/ros/humble/include/rcl/rcl/client.h \
/opt/ros/humble/include/rosidl_runtime_c/rosidl_runtime_c/service_type_support_struct.h \
/opt/ros/humble/include/rosidl_runtime_c/rosidl_runtime_c/visibility_control.h \
/opt/ros/humble/include/rosidl_typesupport_interface/rosidl_typesupport_interface/macros.h \
/opt/ros/humble/include/rcl/rcl/event_callback.h \
/opt/ros/humble/include/rmw/rmw/event_callback_type.h \
/opt/ros/humble/include/rcl/rcl/node.h \
/opt/ros/humble/include/rcl/rcl/node_options.h \
/opt/ros/humble/include/rcl/rcl/domain_id.h \
/opt/ros/humble/include/rcl/rcl/service.h \
/opt/ros/humble/include/rcl/rcl/subscription.h \
/opt/ros/humble/include/rosidl_runtime_c/rosidl_runtime_c/message_type_support_struct.h \
/opt/ros/humble/include/rmw/rmw/message_sequence.h \
/opt/ros/humble/include/rcl/rcl/timer.h \
/opt/ros/humble/include/rcl/rcl/time.h \
/opt/ros/humble/include/rmw/rmw/rmw.h \
/opt/ros/humble/include/rosidl_runtime_c/rosidl_runtime_c/sequence_bound.h \
/opt/ros/humble/include/rmw/rmw/event.h \
/opt/ros/humble/include/rmw/rmw/publisher_options.h \
/opt/ros/humble/include/rmw/rmw/qos_profiles.h \
/opt/ros/humble/include/rmw/rmw/subscription_options.h \
/opt/ros/humble/include/rcl/rcl/event.h \
/opt/ros/humble/include/rcl/rcl/publisher.h \
/opt/ros/humble/include/rcpputils/rcpputils/scope_exit.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/context.hpp \
/usr/include/c++/11/typeindex /usr/include/c++/11/unordered_set \
/usr/include/c++/11/bits/unordered_set.h \
/opt/ros/humble/include/rclcpp/rclcpp/init_options.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/visibility_control.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/macros.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/contexts/default_context.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/guard_condition.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/executor_options.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/memory_strategies.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/memory_strategy.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/any_executable.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/callback_group.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/client.hpp \
/usr/include/c++/11/optional /usr/include/c++/11/sstream \
/usr/include/c++/11/bits/sstream.tcc /usr/include/c++/11/variant \
/opt/ros/humble/include/rcl/rcl/error_handling.h \
/opt/ros/humble/include/rclcpp/rclcpp/detail/cpp_callback_trampoline.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/exceptions.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/exceptions/exceptions.hpp \
/opt/ros/humble/include/rcpputils/rcpputils/join.hpp \
/usr/include/c++/11/iterator /usr/include/c++/11/bits/stream_iterator.h \
/opt/ros/humble/include/rclcpp/rclcpp/expand_topic_or_service_name.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/function_traits.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/logging.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/logger.hpp \
/opt/ros/humble/include/rcpputils/rcpputils/filesystem_helper.hpp \
/opt/ros/humble/include/rcpputils/rcpputils/visibility_control.hpp \
/opt/ros/humble/include/rcutils/rcutils/logging_macros.h \
/opt/ros/humble/include/rclcpp/rclcpp/utilities.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/node_interfaces/node_graph_interface.hpp \
/opt/ros/humble/include/rcl/rcl/graph.h \
/opt/ros/humble/include/rmw/rmw/names_and_types.h \
/opt/ros/humble/include/rmw/rmw/get_topic_names_and_types.h \
/opt/ros/humble/include/rmw/rmw/topic_endpoint_info_array.h \
/opt/ros/humble/include/rmw/rmw/topic_endpoint_info.h \
/opt/ros/humble/include/rclcpp/rclcpp/event.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/qos.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/duration.hpp \
/opt/ros/humble/include/builtin_interfaces/builtin_interfaces/msg/duration.hpp \
/opt/ros/humble/include/builtin_interfaces/builtin_interfaces/msg/detail/duration__struct.hpp \
/opt/ros/humble/include/rosidl_runtime_cpp/rosidl_runtime_cpp/bounded_vector.hpp \
/opt/ros/humble/include/rosidl_runtime_cpp/rosidl_runtime_cpp/message_initialization.hpp \
/opt/ros/humble/include/rosidl_runtime_c/rosidl_runtime_c/message_initialization.h \
/opt/ros/humble/include/builtin_interfaces/builtin_interfaces/msg/detail/duration__builder.hpp \
/opt/ros/humble/include/builtin_interfaces/builtin_interfaces/msg/detail/duration__traits.hpp \
/opt/ros/humble/include/rosidl_runtime_cpp/rosidl_runtime_cpp/traits.hpp \
/usr/include/c++/11/codecvt /usr/include/c++/11/bits/codecvt.h \
/usr/include/c++/11/iomanip /usr/include/c++/11/locale \
/usr/include/c++/11/bits/locale_facets_nonio.h \
/usr/include/aarch64-linux-gnu/c++/11/bits/time_members.h \
/usr/include/aarch64-linux-gnu/c++/11/bits/messages_members.h \
/usr/include/libintl.h /usr/include/c++/11/bits/locale_facets_nonio.tcc \
/usr/include/c++/11/bits/locale_conv.h \
/usr/include/c++/11/bits/quoted_string.h \
/opt/ros/humble/include/rcl/rcl/logging_rosout.h \
/opt/ros/humble/include/rmw/rmw/incompatible_qos_events_statuses.h \
/opt/ros/humble/include/rclcpp/rclcpp/type_support_decl.hpp \
/opt/ros/humble/include/rosidl_runtime_cpp/rosidl_runtime_cpp/message_type_support_decl.hpp \
/opt/ros/humble/include/rosidl_runtime_cpp/rosidl_runtime_cpp/service_type_support_decl.hpp \
/opt/ros/humble/include/rosidl_runtime_cpp/rosidl_typesupport_cpp/message_type_support.hpp \
/opt/ros/humble/include/rosidl_runtime_cpp/rosidl_typesupport_cpp/service_type_support.hpp \
/opt/ros/humble/include/rmw/rmw/error_handling.h \
/opt/ros/humble/include/rmw/rmw/impl/cpp/demangle.hpp \
/usr/include/c++/11/cxxabi.h \
/usr/include/aarch64-linux-gnu/c++/11/bits/cxxabi_tweaks.h \
/opt/ros/humble/include/rmw/rmw/impl/config.h \
/opt/ros/humble/include/rclcpp/rclcpp/publisher_base.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/network_flow_endpoint.hpp \
/opt/ros/humble/include/rcl/rcl/network_flow_endpoints.h \
/opt/ros/humble/include/rmw/rmw/network_flow_endpoint.h \
/opt/ros/humble/include/rmw/rmw/network_flow_endpoint_array.h \
/opt/ros/humble/include/rclcpp/rclcpp/qos_event.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/waitable.hpp \
/opt/ros/humble/include/rcpputils/rcpputils/time.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/service.hpp \
/opt/ros/humble/include/tracetools/tracetools/tracetools.h \
/opt/ros/humble/include/tracetools/tracetools/config.h \
/opt/ros/humble/include/tracetools/tracetools/visibility_control.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/any_service_callback.hpp \
/opt/ros/humble/include/tracetools/tracetools/utils.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/subscription_base.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/any_subscription_callback.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/allocator/allocator_common.hpp \
/usr/include/c++/11/cstring \
/opt/ros/humble/include/rclcpp/rclcpp/allocator/allocator_deleter.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/detail/subscription_callback_type_helper.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/message_info.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/serialized_message.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/type_adapter.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/experimental/intra_process_manager.hpp \
/usr/include/c++/11/shared_mutex \
/opt/ros/humble/include/rclcpp/rclcpp/experimental/ros_message_intra_process_buffer.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/experimental/subscription_intra_process_base.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/experimental/subscription_intra_process.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/experimental/buffers/intra_process_buffer.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/experimental/buffers/buffer_implementation_base.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/experimental/subscription_intra_process_buffer.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/experimental/create_intra_process_buffer.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/experimental/buffers/ring_buffer_implementation.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/intra_process_buffer_type.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/subscription_content_filter_options.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/timer.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/clock.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/time.hpp \
/opt/ros/humble/include/builtin_interfaces/builtin_interfaces/msg/time.hpp \
/opt/ros/humble/include/builtin_interfaces/builtin_interfaces/msg/detail/time__struct.hpp \
/opt/ros/humble/include/builtin_interfaces/builtin_interfaces/msg/detail/time__builder.hpp \
/opt/ros/humble/include/builtin_interfaces/builtin_interfaces/msg/detail/time__traits.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/rate.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/node_interfaces/node_base_interface.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/subscription.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/detail/resolve_use_intra_process.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/intra_process_setting.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/detail/resolve_intra_process_buffer_type.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/message_memory_strategy.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/subscription_options.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/detail/rmw_implementation_specific_subscription_payload.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/detail/rmw_implementation_specific_payload.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/qos_overriding_options.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/set_parameters_result.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/detail/set_parameters_result__struct.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/detail/set_parameters_result__builder.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/detail/set_parameters_result__traits.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/topic_statistics_state.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/subscription_traits.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/topic_statistics/subscription_topic_statistics.hpp \
/opt/ros/humble/include/libstatistics_collector/libstatistics_collector/collector/generate_statistics_message.hpp \
/opt/ros/humble/include/statistics_msgs/statistics_msgs/msg/metrics_message.hpp \
/opt/ros/humble/include/statistics_msgs/statistics_msgs/msg/detail/metrics_message__struct.hpp \
/opt/ros/humble/include/statistics_msgs/statistics_msgs/msg/detail/statistic_data_point__struct.hpp \
/opt/ros/humble/include/statistics_msgs/statistics_msgs/msg/detail/metrics_message__builder.hpp \
/opt/ros/humble/include/statistics_msgs/statistics_msgs/msg/detail/metrics_message__traits.hpp \
/opt/ros/humble/include/statistics_msgs/statistics_msgs/msg/detail/statistic_data_point__traits.hpp \
/opt/ros/humble/include/libstatistics_collector/libstatistics_collector/visibility_control.hpp \
/opt/ros/humble/include/libstatistics_collector/libstatistics_collector/moving_average_statistics/types.hpp \
/usr/include/c++/11/cmath /usr/include/math.h \
/usr/include/aarch64-linux-gnu/bits/math-vector.h \
/usr/include/aarch64-linux-gnu/bits/libm-simd-decl-stubs.h \
/usr/include/aarch64-linux-gnu/bits/flt-eval-method.h \
/usr/include/aarch64-linux-gnu/bits/fp-logb.h \
/usr/include/aarch64-linux-gnu/bits/fp-fast.h \
/usr/include/aarch64-linux-gnu/bits/mathcalls-helper-functions.h \
/usr/include/aarch64-linux-gnu/bits/mathcalls.h \
/usr/include/aarch64-linux-gnu/bits/mathcalls-narrow.h \
/usr/include/aarch64-linux-gnu/bits/iscanonical.h \
/usr/include/c++/11/bits/specfun.h /usr/include/c++/11/tr1/gamma.tcc \
/usr/include/c++/11/tr1/special_function_util.h \
/usr/include/c++/11/tr1/bessel_function.tcc \
/usr/include/c++/11/tr1/beta_function.tcc \
/usr/include/c++/11/tr1/ell_integral.tcc \
/usr/include/c++/11/tr1/exp_integral.tcc \
/usr/include/c++/11/tr1/hypergeometric.tcc \
/usr/include/c++/11/tr1/legendre_function.tcc \
/usr/include/c++/11/tr1/modified_bessel_func.tcc \
/usr/include/c++/11/tr1/poly_hermite.tcc \
/usr/include/c++/11/tr1/poly_laguerre.tcc \
/usr/include/c++/11/tr1/riemann_zeta.tcc \
/opt/ros/humble/include/libstatistics_collector/libstatistics_collector/topic_statistics_collector/constants.hpp \
/opt/ros/humble/include/libstatistics_collector/libstatistics_collector/topic_statistics_collector/received_message_age.hpp \
/opt/ros/humble/include/libstatistics_collector/libstatistics_collector/topic_statistics_collector/constants.hpp \
/opt/ros/humble/include/libstatistics_collector/libstatistics_collector/topic_statistics_collector/topic_statistics_collector.hpp \
/opt/ros/humble/include/libstatistics_collector/libstatistics_collector/collector/collector.hpp \
/opt/ros/humble/include/libstatistics_collector/libstatistics_collector/moving_average_statistics/moving_average.hpp \
/usr/include/c++/11/numeric /usr/include/c++/11/bits/stl_numeric.h \
/usr/include/c++/11/pstl/glue_numeric_defs.h \
/opt/ros/humble/include/libstatistics_collector/libstatistics_collector/moving_average_statistics/types.hpp \
/opt/ros/humble/include/rcpputils/rcpputils/thread_safety_annotations.hpp \
/opt/ros/humble/include/libstatistics_collector/libstatistics_collector/collector/metric_details_interface.hpp \
/opt/ros/humble/include/libstatistics_collector/libstatistics_collector/topic_statistics_collector/received_message_period.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/publisher.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/get_message_type_support_handle.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/is_ros_compatible_type.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/loaned_message.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/publisher_options.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/detail/rmw_implementation_specific_publisher_payload.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/future_return_code.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/executors/single_threaded_executor.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/node.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/list_parameters_result.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/detail/list_parameters_result__struct.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/detail/list_parameters_result__builder.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/detail/list_parameters_result__traits.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/parameter_descriptor.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/detail/parameter_descriptor__struct.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/detail/floating_point_range__struct.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/detail/integer_range__struct.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/detail/parameter_descriptor__builder.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/detail/parameter_descriptor__traits.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/detail/floating_point_range__traits.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/detail/integer_range__traits.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/parameter_event.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/detail/parameter_event__struct.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/detail/parameter__struct.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/detail/parameter_value__struct.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/detail/parameter_event__builder.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/detail/parameter_event__traits.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/detail/parameter__traits.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/detail/parameter_value__traits.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/generic_publisher.hpp \
/opt/ros/humble/include/rcpputils/rcpputils/shared_library.hpp \
/opt/ros/humble/include/rcutils/rcutils/shared_library.h \
/opt/ros/humble/include/rclcpp/rclcpp/node_interfaces/node_topics_interface.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/node_interfaces/node_timers_interface.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/publisher_factory.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/subscription_factory.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/typesupport_helpers.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/generic_subscription.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/node_interfaces/node_clock_interface.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/node_interfaces/node_logging_interface.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/node_interfaces/node_parameters_interface.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/parameter.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/parameter.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/detail/parameter__builder.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/parameter_value.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/parameter_type.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/detail/parameter_type__struct.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/detail/parameter_type__builder.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/detail/parameter_type__traits.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/parameter_value.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/msg/detail/parameter_value__builder.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/node_interfaces/node_services_interface.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/node_interfaces/node_time_source_interface.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/node_interfaces/node_waitables_interface.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/node_options.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/node_impl.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/create_client.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/create_generic_publisher.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/create_generic_subscription.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/create_publisher.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/node_interfaces/get_node_topics_interface.hpp \
/opt/ros/humble/include/rcpputils/rcpputils/pointer_traits.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/node_interfaces/node_topics_interface_traits.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/detail/qos_parameters.hpp \
/opt/ros/humble/include/rmw/rmw/qos_string_conversions.h \
/opt/ros/humble/include/rclcpp/rclcpp/node_interfaces/get_node_parameters_interface.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/node_interfaces/node_parameters_interface_traits.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/create_service.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/create_subscription.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/detail/resolve_enable_topic_statistics.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/node_interfaces/get_node_timers_interface.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/node_interfaces/node_timers_interface_traits.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/create_timer.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/node_interfaces/get_node_base_interface.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/node_interfaces/node_base_interface_traits.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/executors/static_single_threaded_executor.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/executors/static_executor_entities_collector.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/experimental/executable_list.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/parameter_client.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/srv/describe_parameters.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/srv/detail/describe_parameters__struct.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/srv/detail/describe_parameters__builder.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/srv/detail/describe_parameters__traits.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/srv/get_parameter_types.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/srv/detail/get_parameter_types__struct.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/srv/detail/get_parameter_types__builder.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/srv/detail/get_parameter_types__traits.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/srv/get_parameters.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/srv/detail/get_parameters__struct.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/srv/detail/get_parameters__builder.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/srv/detail/get_parameters__traits.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/srv/list_parameters.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/srv/detail/list_parameters__struct.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/srv/detail/list_parameters__builder.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/srv/detail/list_parameters__traits.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/srv/set_parameters.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/srv/detail/set_parameters__struct.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/srv/detail/set_parameters__builder.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/srv/detail/set_parameters__traits.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/srv/set_parameters_atomically.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/srv/detail/set_parameters_atomically__struct.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/srv/detail/set_parameters_atomically__builder.hpp \
/opt/ros/humble/include/rcl_interfaces/rcl_interfaces/srv/detail/set_parameters_atomically__traits.hpp \
/opt/ros/humble/include/rcl_yaml_param_parser/rcl_yaml_param_parser/parser.h \
/opt/ros/humble/include/rcl_yaml_param_parser/rcl_yaml_param_parser/visibility_control.h \
/opt/ros/humble/include/rclcpp/rclcpp/parameter_map.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/parameter_event_handler.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/parameter_service.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/wait_set.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/wait_set_policies/dynamic_storage.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/subscription_wait_set_mask.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/wait_set_policies/detail/storage_policy_common.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/wait_set_policies/sequential_synchronization.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/wait_result.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/wait_result_kind.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/wait_set_policies/detail/synchronization_policy_common.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/wait_set_policies/static_storage.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/wait_set_policies/thread_safe_synchronization.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/wait_set_policies/detail/write_preferring_read_write_lock.hpp \
/opt/ros/humble/include/rclcpp/rclcpp/wait_set_template.hpp \
/home/ubuntu/ros2_ws/install/px4_msgs/include/px4_msgs/px4_msgs/msg/vehicle_gps_position.hpp \
/home/ubuntu/ros2_ws/install/px4_msgs/include/px4_msgs/px4_msgs/msg/detail/vehicle_gps_position__struct.hpp \
/home/ubuntu/ros2_ws/install/px4_msgs/include/px4_msgs/px4_msgs/msg/detail/vehicle_gps_position__builder.hpp \
/home/ubuntu/ros2_ws/install/px4_msgs/include/px4_msgs/px4_msgs/msg/detail/vehicle_gps_position__traits.hpp
@@ -5,8 +5,8 @@ COLCON_PREFIX_PATH=/home/ubuntu/ros2_ws/install
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
HOME=/home/ubuntu
HUSHLOGIN=FALSE
INVOCATION_ID=16547be097dc4c9995f6a5f79df567a7
JOURNAL_STREAM=8:21876
INVOCATION_ID=a12e2f9d9f294e258c43eb01c5b1f789
JOURNAL_STREAM=8:21268
LANG=en_US.UTF-8
LC_ALL=en_US.UTF-8
LD_LIBRARY_PATH=/home/ubuntu/ros2_ws/install/px4_msgs/lib:/opt/ros/humble/lib/aarch64-linux-gnu:/opt/ros/humble/lib
@@ -28,7 +28,7 @@ ROS_PYTHON_VERSION=3
ROS_VERSION=2
SHELL=/bin/bash
SHLVL=2
SYSTEMD_EXEC_PID=750
SYSTEMD_EXEC_PID=767
TERM=linux
USER=ubuntu
XDG_DATA_DIRS=/usr/local/share:/usr/share:/var/lib/snapd/desktop
+209
View File
@@ -198,3 +198,212 @@ Generating main file...
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/VehicleTrajectoryBezierPubSubMain.cxx exists. Skipping.
Adding project: /home/ubuntu/ros2_ws/install/px4_msgs/share/px4_msgs/msg/VehicleTrajectoryBezier.idl
Processing the file /home/ubuntu/ros2_ws/install/px4_msgs/share/px4_msgs/msg/Timesync.idl...
Generating Type definition files...
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/Timesync.h exists. Skipping.
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/Timesync.cxx exists. Skipping.
Generating TopicDataTypes files...
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/TimesyncPubSubTypes.h exists. Skipping.
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/TimesyncPubSubTypes.cxx exists. Skipping.
Generating Publisher files...
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/TimesyncPublisher.h exists. Skipping.
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/TimesyncPublisher.cxx exists. Skipping.
Generating Subscriber files...
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/TimesyncSubscriber.h exists. Skipping.
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/TimesyncSubscriber.cxx exists. Skipping.
Generating main file...
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/TimesyncPubSubMain.cxx exists. Skipping.
Adding project: /home/ubuntu/ros2_ws/install/px4_msgs/share/px4_msgs/msg/Timesync.idl
Processing the file /home/ubuntu/ros2_ws/install/px4_msgs/share/px4_msgs/msg/PositionSetpointTriplet.idl...
Generating Type definition files...
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/PositionSetpointTriplet.h exists. Skipping.
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/PositionSetpointTriplet.cxx exists. Skipping.
Generating TopicDataTypes files...
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/PositionSetpointTripletPubSubTypes.h exists. Skipping.
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/PositionSetpointTripletPubSubTypes.cxx exists. Skipping.
Generating Publisher files...
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/PositionSetpointTripletPublisher.h exists. Skipping.
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/PositionSetpointTripletPublisher.cxx exists. Skipping.
Generating Subscriber files...
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/PositionSetpointTripletSubscriber.h exists. Skipping.
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/PositionSetpointTripletSubscriber.cxx exists. Skipping.
Generating main file...
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/PositionSetpointTripletPubSubMain.cxx exists. Skipping.
Adding project: /home/ubuntu/ros2_ws/install/px4_msgs/share/px4_msgs/msg/PositionSetpointTriplet.idl
Processing the file /home/ubuntu/ros2_ws/install/px4_msgs/share/px4_msgs/msg/DebugArray.idl...
Generating Type definition files...
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/DebugArray.h exists. Skipping.
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/DebugArray.cxx exists. Skipping.
Generating TopicDataTypes files...
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/DebugArrayPubSubTypes.h exists. Skipping.
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/DebugArrayPubSubTypes.cxx exists. Skipping.
Generating Publisher files...
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/DebugArrayPublisher.h exists. Skipping.
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/DebugArrayPublisher.cxx exists. Skipping.
Generating Subscriber files...
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/DebugArraySubscriber.h exists. Skipping.
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/DebugArraySubscriber.cxx exists. Skipping.
Generating main file...
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/DebugArrayPubSubMain.cxx exists. Skipping.
Adding project: /home/ubuntu/ros2_ws/install/px4_msgs/share/px4_msgs/msg/DebugArray.idl
Processing the file /home/ubuntu/ros2_ws/install/px4_msgs/share/px4_msgs/msg/DebugVect.idl...
Generating Type definition files...
Generating TopicDataTypes files...
Generating Publisher files...
Generating Subscriber files...
Generating main file...
Adding project: /home/ubuntu/ros2_ws/install/px4_msgs/share/px4_msgs/msg/DebugVect.idl
Processing the file /home/ubuntu/ros2_ws/install/px4_msgs/share/px4_msgs/msg/TrajectoryWaypoint.idl...
Generating Type definition files...
Generating TopicDataTypes files...
Generating Publisher files...
Generating Subscriber files...
Generating main file...
Adding project: /home/ubuntu/ros2_ws/install/px4_msgs/share/px4_msgs/msg/TrajectoryWaypoint.idl
Processing the file /home/ubuntu/ros2_ws/install/px4_msgs/share/px4_msgs/msg/TelemetryStatus.idl...
Generating Type definition files...
Generating TopicDataTypes files...
Generating Publisher files...
Generating Subscriber files...
Generating main file...
Adding project: /home/ubuntu/ros2_ws/install/px4_msgs/share/px4_msgs/msg/TelemetryStatus.idl
Processing the file /home/ubuntu/ros2_ws/install/px4_msgs/share/px4_msgs/msg/OpticalFlow.idl...
Generating Type definition files...
Generating TopicDataTypes files...
Generating Publisher files...
Generating Subscriber files...
Generating main file...
Adding project: /home/ubuntu/ros2_ws/install/px4_msgs/share/px4_msgs/msg/OpticalFlow.idl
Processing the file /home/ubuntu/ros2_ws/install/px4_msgs/share/px4_msgs/msg/VehicleStatus.idl...
Generating Type definition files...
Generating TopicDataTypes files...
Generating Publisher files...
Generating Subscriber files...
Generating main file...
Adding project: /home/ubuntu/ros2_ws/install/px4_msgs/share/px4_msgs/msg/VehicleStatus.idl
Processing the file /home/ubuntu/ros2_ws/install/px4_msgs/share/px4_msgs/msg/VehicleOdometry.idl...
Generating Type definition files...
Generating TopicDataTypes files...
Generating Publisher files...
Generating Subscriber files...
Generating main file...
Adding project: /home/ubuntu/ros2_ws/install/px4_msgs/share/px4_msgs/msg/VehicleOdometry.idl
Processing the file /home/ubuntu/ros2_ws/install/px4_msgs/share/px4_msgs/msg/VehicleLocalPositionSetpoint.idl...
Generating Type definition files...
Generating TopicDataTypes files...
Generating Publisher files...
Generating Subscriber files...
Generating main file...
Adding project: /home/ubuntu/ros2_ws/install/px4_msgs/share/px4_msgs/msg/VehicleLocalPositionSetpoint.idl
Processing the file /home/ubuntu/ros2_ws/install/px4_msgs/share/px4_msgs/msg/OffboardControlMode.idl...
Generating Type definition files...
Generating TopicDataTypes files...
Generating Publisher files...
Generating Subscriber files...
Generating main file...
Adding project: /home/ubuntu/ros2_ws/install/px4_msgs/share/px4_msgs/msg/OffboardControlMode.idl
Processing the file /home/ubuntu/ros2_ws/install/px4_msgs/share/px4_msgs/msg/TrajectorySetpoint.idl...
Generating Type definition files...
Generating TopicDataTypes files...
Generating Publisher files...
Generating Subscriber files...
Generating main file...
Adding project: /home/ubuntu/ros2_ws/install/px4_msgs/share/px4_msgs/msg/TrajectorySetpoint.idl
Processing the file /home/ubuntu/ros2_ws/install/px4_msgs/share/px4_msgs/msg/TrajectoryBezier.idl...
Generating Type definition files...
Generating TopicDataTypes files...
Generating Publisher files...
Generating Subscriber files...
Generating main file...
Adding project: /home/ubuntu/ros2_ws/install/px4_msgs/share/px4_msgs/msg/TrajectoryBezier.idl
Processing the file /home/ubuntu/ros2_ws/install/px4_msgs/share/px4_msgs/msg/CollisionConstraints.idl...
Generating Type definition files...
Generating TopicDataTypes files...
Generating Publisher files...
Generating Subscriber files...
Generating main file...
Adding project: /home/ubuntu/ros2_ws/install/px4_msgs/share/px4_msgs/msg/CollisionConstraints.idl
Processing the file /home/ubuntu/ros2_ws/install/px4_msgs/share/px4_msgs/msg/OnboardComputerStatus.idl...
WARNING (File OnboardComputerStatus, Line 20): Annotation unit not supported. Ignoring...
WARNING (File OnboardComputerStatus, Line 25): Annotation unit not supported. Ignoring...
WARNING (File OnboardComputerStatus, Line 50): Annotation unit not supported. Ignoring...
WARNING (File OnboardComputerStatus, Line 55): Annotation unit not supported. Ignoring...
WARNING (File OnboardComputerStatus, Line 60): Annotation unit not supported. Ignoring...
WARNING (File OnboardComputerStatus, Line 65): Annotation unit not supported. Ignoring...
WARNING (File OnboardComputerStatus, Line 70): Annotation unit not supported. Ignoring...
WARNING (File OnboardComputerStatus, Line 79): Annotation unit not supported. Ignoring...
WARNING (File OnboardComputerStatus, Line 84): Annotation unit not supported. Ignoring...
WARNING (File OnboardComputerStatus, Line 89): Annotation unit not supported. Ignoring...
WARNING (File OnboardComputerStatus, Line 94): Annotation unit not supported. Ignoring...
WARNING (File OnboardComputerStatus, Line 99): Annotation unit not supported. Ignoring...
WARNING (File OnboardComputerStatus, Line 104): Annotation unit not supported. Ignoring...
WARNING (File OnboardComputerStatus, Line 109): Annotation unit not supported. Ignoring...
Generating Type definition files...
Generating TopicDataTypes files...
Generating Publisher files...
Generating Subscriber files...
Generating main file...
Adding project: /home/ubuntu/ros2_ws/install/px4_msgs/share/px4_msgs/msg/OnboardComputerStatus.idl
Processing the file /home/ubuntu/ros2_ws/install/px4_msgs/share/px4_msgs/msg/TrajectoryWaypoint.idl...
Generating Type definition files...
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/TrajectoryWaypoint.h exists. Skipping.
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/TrajectoryWaypoint.cxx exists. Skipping.
Generating TopicDataTypes files...
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/TrajectoryWaypointPubSubTypes.h exists. Skipping.
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/TrajectoryWaypointPubSubTypes.cxx exists. Skipping.
Generating Publisher files...
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/TrajectoryWaypointPublisher.h exists. Skipping.
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/TrajectoryWaypointPublisher.cxx exists. Skipping.
Generating Subscriber files...
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/TrajectoryWaypointSubscriber.h exists. Skipping.
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/TrajectoryWaypointSubscriber.cxx exists. Skipping.
Generating main file...
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/TrajectoryWaypointPubSubMain.cxx exists. Skipping.
Processing the file /home/ubuntu/ros2_ws/install/px4_msgs/share/px4_msgs/msg/TrajectoryWaypoint.idl...
Generating Type definition files...
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/TrajectoryWaypoint.h exists. Skipping.
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/TrajectoryWaypoint.cxx exists. Skipping.
Generating TopicDataTypes files...
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/TrajectoryWaypointPubSubTypes.h exists. Skipping.
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/TrajectoryWaypointPubSubTypes.cxx exists. Skipping.
Generating Publisher files...
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/TrajectoryWaypointPublisher.h exists. Skipping.
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/TrajectoryWaypointPublisher.cxx exists. Skipping.
Generating Subscriber files...
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/TrajectoryWaypointSubscriber.h exists. Skipping.
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/TrajectoryWaypointSubscriber.cxx exists. Skipping.
Generating main file...
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/TrajectoryWaypointPubSubMain.cxx exists. Skipping.
Processing the file /home/ubuntu/ros2_ws/install/px4_msgs/share/px4_msgs/msg/TrajectoryBezier.idl...
Generating Type definition files...
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/TrajectoryBezier.h exists. Skipping.
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/TrajectoryBezier.cxx exists. Skipping.
Generating TopicDataTypes files...
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/TrajectoryBezierPubSubTypes.h exists. Skipping.
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/TrajectoryBezierPubSubTypes.cxx exists. Skipping.
Generating Publisher files...
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/TrajectoryBezierPublisher.h exists. Skipping.
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/TrajectoryBezierPublisher.cxx exists. Skipping.
Generating Subscriber files...
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/TrajectoryBezierSubscriber.h exists. Skipping.
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/TrajectoryBezierSubscriber.cxx exists. Skipping.
Generating main file...
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/TrajectoryBezierPubSubMain.cxx exists. Skipping.
Processing the file /home/ubuntu/ros2_ws/install/px4_msgs/share/px4_msgs/msg/PositionSetpoint.idl...
Generating Type definition files...
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/PositionSetpoint.h exists. Skipping.
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/PositionSetpoint.cxx exists. Skipping.
Generating TopicDataTypes files...
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/PositionSetpointPubSubTypes.h exists. Skipping.
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/PositionSetpointPubSubTypes.cxx exists. Skipping.
Generating Publisher files...
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/PositionSetpointPublisher.h exists. Skipping.
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/PositionSetpointPublisher.cxx exists. Skipping.
Generating Subscriber files...
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/PositionSetpointSubscriber.h exists. Skipping.
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/PositionSetpointSubscriber.cxx exists. Skipping.
Generating main file...
INFO: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent/fastrtpsgen/PositionSetpointPubSubMain.cxx exists. Skipping.
Generating solution for arch x64Linux2.6gcc...
Generating makefile solution
Agent created in: /home/ubuntu/ros2_ws/build/px4_ros_com/src/micrortps_agent
@@ -0,0 +1,272 @@
// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
/*!
* @file CollisionConstraints.cpp
* This source file contains the definition of the described types in the IDL file.
*
* This file was generated by the tool gen.
*/
#ifdef _WIN32
// Remove linker warning LNK4221 on Visual Studio
namespace { char dummy; }
#endif
#include "CollisionConstraints.h"
#include <fastcdr/Cdr.h>
#include <fastcdr/exceptions/BadParamException.h>
using namespace eprosima::fastcdr::exception;
#include <utility>
px4_msgs::msg::CollisionConstraints::CollisionConstraints()
{
// m_timestamp com.eprosima.idl.parser.typecode.PrimitiveTypeCode@27adc16e
m_timestamp = 0;
// m_original_setpoint com.eprosima.idl.parser.typecode.AliasTypeCode@b83a9be
memset(&m_original_setpoint, 0, (2) * 4);
// m_adapted_setpoint com.eprosima.idl.parser.typecode.AliasTypeCode@b83a9be
memset(&m_adapted_setpoint, 0, (2) * 4);
}
px4_msgs::msg::CollisionConstraints::~CollisionConstraints()
{
}
px4_msgs::msg::CollisionConstraints::CollisionConstraints(const CollisionConstraints &x)
{
m_timestamp = x.m_timestamp;
m_original_setpoint = x.m_original_setpoint;
m_adapted_setpoint = x.m_adapted_setpoint;
}
px4_msgs::msg::CollisionConstraints::CollisionConstraints(CollisionConstraints &&x)
{
m_timestamp = x.m_timestamp;
m_original_setpoint = std::move(x.m_original_setpoint);
m_adapted_setpoint = std::move(x.m_adapted_setpoint);
}
px4_msgs::msg::CollisionConstraints& px4_msgs::msg::CollisionConstraints::operator=(const CollisionConstraints &x)
{
m_timestamp = x.m_timestamp;
m_original_setpoint = x.m_original_setpoint;
m_adapted_setpoint = x.m_adapted_setpoint;
return *this;
}
px4_msgs::msg::CollisionConstraints& px4_msgs::msg::CollisionConstraints::operator=(CollisionConstraints &&x)
{
m_timestamp = x.m_timestamp;
m_original_setpoint = std::move(x.m_original_setpoint);
m_adapted_setpoint = std::move(x.m_adapted_setpoint);
return *this;
}
size_t px4_msgs::msg::CollisionConstraints::getMaxCdrSerializedSize(size_t current_alignment)
{
size_t initial_alignment = current_alignment;
current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8);
current_alignment += ((2) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += ((2) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
return current_alignment - initial_alignment;
}
size_t px4_msgs::msg::CollisionConstraints::getCdrSerializedSize(const px4_msgs::msg::CollisionConstraints& data, size_t current_alignment)
{
(void)data;
size_t initial_alignment = current_alignment;
current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8);
if ((2) > 0)
{
current_alignment += ((2) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
}
if ((2) > 0)
{
current_alignment += ((2) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
}
return current_alignment - initial_alignment;
}
void px4_msgs::msg::CollisionConstraints::serialize(eprosima::fastcdr::Cdr &scdr) const
{
scdr << m_timestamp;
scdr << m_original_setpoint;
scdr << m_adapted_setpoint;
}
void px4_msgs::msg::CollisionConstraints::deserialize(eprosima::fastcdr::Cdr &dcdr)
{
dcdr >> m_timestamp;
dcdr >> m_original_setpoint;
dcdr >> m_adapted_setpoint;
}
/*!
* @brief This function sets a value in member timestamp
* @param _timestamp New value for member timestamp
*/
void px4_msgs::msg::CollisionConstraints::timestamp(uint64_t _timestamp)
{
m_timestamp = _timestamp;
}
/*!
* @brief This function returns the value of member timestamp
* @return Value of member timestamp
*/
uint64_t px4_msgs::msg::CollisionConstraints::timestamp() const
{
return m_timestamp;
}
/*!
* @brief This function returns a reference to member timestamp
* @return Reference to member timestamp
*/
uint64_t& px4_msgs::msg::CollisionConstraints::timestamp()
{
return m_timestamp;
}
/*!
* @brief This function copies the value in member original_setpoint
* @param _original_setpoint New value to be copied in member original_setpoint
*/
void px4_msgs::msg::CollisionConstraints::original_setpoint(const px4_msgs::msg::float__2 &_original_setpoint)
{
m_original_setpoint = _original_setpoint;
}
/*!
* @brief This function moves the value in member original_setpoint
* @param _original_setpoint New value to be moved in member original_setpoint
*/
void px4_msgs::msg::CollisionConstraints::original_setpoint(px4_msgs::msg::float__2 &&_original_setpoint)
{
m_original_setpoint = std::move(_original_setpoint);
}
/*!
* @brief This function returns a constant reference to member original_setpoint
* @return Constant reference to member original_setpoint
*/
const px4_msgs::msg::float__2& px4_msgs::msg::CollisionConstraints::original_setpoint() const
{
return m_original_setpoint;
}
/*!
* @brief This function returns a reference to member original_setpoint
* @return Reference to member original_setpoint
*/
px4_msgs::msg::float__2& px4_msgs::msg::CollisionConstraints::original_setpoint()
{
return m_original_setpoint;
}
/*!
* @brief This function copies the value in member adapted_setpoint
* @param _adapted_setpoint New value to be copied in member adapted_setpoint
*/
void px4_msgs::msg::CollisionConstraints::adapted_setpoint(const px4_msgs::msg::float__2 &_adapted_setpoint)
{
m_adapted_setpoint = _adapted_setpoint;
}
/*!
* @brief This function moves the value in member adapted_setpoint
* @param _adapted_setpoint New value to be moved in member adapted_setpoint
*/
void px4_msgs::msg::CollisionConstraints::adapted_setpoint(px4_msgs::msg::float__2 &&_adapted_setpoint)
{
m_adapted_setpoint = std::move(_adapted_setpoint);
}
/*!
* @brief This function returns a constant reference to member adapted_setpoint
* @return Constant reference to member adapted_setpoint
*/
const px4_msgs::msg::float__2& px4_msgs::msg::CollisionConstraints::adapted_setpoint() const
{
return m_adapted_setpoint;
}
/*!
* @brief This function returns a reference to member adapted_setpoint
* @return Reference to member adapted_setpoint
*/
px4_msgs::msg::float__2& px4_msgs::msg::CollisionConstraints::adapted_setpoint()
{
return m_adapted_setpoint;
}
size_t px4_msgs::msg::CollisionConstraints::getKeyMaxCdrSerializedSize(size_t current_alignment)
{
size_t current_align = current_alignment;
return current_align;
}
bool px4_msgs::msg::CollisionConstraints::isKeyDefined()
{
return false;
}
void px4_msgs::msg::CollisionConstraints::serializeKey(eprosima::fastcdr::Cdr &scdr) const
{
(void) scdr;
}
@@ -0,0 +1,237 @@
// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
/*!
* @file CollisionConstraints.h
* This header file contains the declaration of the described types in the IDL file.
*
* This file was generated by the tool gen.
*/
#ifndef _PX4_MSGS_MSG_COLLISIONCONSTRAINTS_H_
#define _PX4_MSGS_MSG_COLLISIONCONSTRAINTS_H_
// TODO Poner en el contexto.
#include <stdint.h>
#include <array>
#include <string>
#include <vector>
#include <map>
#include <bitset>
#if defined(_WIN32)
#if defined(EPROSIMA_USER_DLL_EXPORT)
#define eProsima_user_DllExport __declspec( dllexport )
#else
#define eProsima_user_DllExport
#endif
#else
#define eProsima_user_DllExport
#endif
#if defined(_WIN32)
#if defined(EPROSIMA_USER_DLL_EXPORT)
#if defined(CollisionConstraints_SOURCE)
#define CollisionConstraints_DllAPI __declspec( dllexport )
#else
#define CollisionConstraints_DllAPI __declspec( dllimport )
#endif // CollisionConstraints_SOURCE
#else
#define CollisionConstraints_DllAPI
#endif
#else
#define CollisionConstraints_DllAPI
#endif // _WIN32
namespace eprosima
{
namespace fastcdr
{
class Cdr;
}
}
namespace px4_msgs
{
namespace msg
{
typedef std::array<float, 2> float__2;
/*!
* @brief This class represents the structure CollisionConstraints defined by the user in the IDL file.
* @ingroup COLLISIONCONSTRAINTS
*/
class CollisionConstraints
{
public:
/*!
* @brief Default constructor.
*/
eProsima_user_DllExport CollisionConstraints();
/*!
* @brief Default destructor.
*/
eProsima_user_DllExport ~CollisionConstraints();
/*!
* @brief Copy constructor.
* @param x Reference to the object px4_msgs::msg::CollisionConstraints that will be copied.
*/
eProsima_user_DllExport CollisionConstraints(const CollisionConstraints &x);
/*!
* @brief Move constructor.
* @param x Reference to the object px4_msgs::msg::CollisionConstraints that will be copied.
*/
eProsima_user_DllExport CollisionConstraints(CollisionConstraints &&x);
/*!
* @brief Copy assignment.
* @param x Reference to the object px4_msgs::msg::CollisionConstraints that will be copied.
*/
eProsima_user_DllExport CollisionConstraints& operator=(const CollisionConstraints &x);
/*!
* @brief Move assignment.
* @param x Reference to the object px4_msgs::msg::CollisionConstraints that will be copied.
*/
eProsima_user_DllExport CollisionConstraints& operator=(CollisionConstraints &&x);
/*!
* @brief This function sets a value in member timestamp
* @param _timestamp New value for member timestamp
*/
eProsima_user_DllExport void timestamp(uint64_t _timestamp);
/*!
* @brief This function returns the value of member timestamp
* @return Value of member timestamp
*/
eProsima_user_DllExport uint64_t timestamp() const;
/*!
* @brief This function returns a reference to member timestamp
* @return Reference to member timestamp
*/
eProsima_user_DllExport uint64_t& timestamp();
/*!
* @brief This function copies the value in member original_setpoint
* @param _original_setpoint New value to be copied in member original_setpoint
*/
eProsima_user_DllExport void original_setpoint(const px4_msgs::msg::float__2 &_original_setpoint);
/*!
* @brief This function moves the value in member original_setpoint
* @param _original_setpoint New value to be moved in member original_setpoint
*/
eProsima_user_DllExport void original_setpoint(px4_msgs::msg::float__2 &&_original_setpoint);
/*!
* @brief This function returns a constant reference to member original_setpoint
* @return Constant reference to member original_setpoint
*/
eProsima_user_DllExport const px4_msgs::msg::float__2& original_setpoint() const;
/*!
* @brief This function returns a reference to member original_setpoint
* @return Reference to member original_setpoint
*/
eProsima_user_DllExport px4_msgs::msg::float__2& original_setpoint();
/*!
* @brief This function copies the value in member adapted_setpoint
* @param _adapted_setpoint New value to be copied in member adapted_setpoint
*/
eProsima_user_DllExport void adapted_setpoint(const px4_msgs::msg::float__2 &_adapted_setpoint);
/*!
* @brief This function moves the value in member adapted_setpoint
* @param _adapted_setpoint New value to be moved in member adapted_setpoint
*/
eProsima_user_DllExport void adapted_setpoint(px4_msgs::msg::float__2 &&_adapted_setpoint);
/*!
* @brief This function returns a constant reference to member adapted_setpoint
* @return Constant reference to member adapted_setpoint
*/
eProsima_user_DllExport const px4_msgs::msg::float__2& adapted_setpoint() const;
/*!
* @brief This function returns a reference to member adapted_setpoint
* @return Reference to member adapted_setpoint
*/
eProsima_user_DllExport px4_msgs::msg::float__2& adapted_setpoint();
/*!
* @brief This function returns the maximum serialized size of an object
* depending on the buffer alignment.
* @param current_alignment Buffer alignment.
* @return Maximum serialized size.
*/
eProsima_user_DllExport static size_t getMaxCdrSerializedSize(size_t current_alignment = 0);
/*!
* @brief This function returns the serialized size of a data depending on the buffer alignment.
* @param data Data which is calculated its serialized size.
* @param current_alignment Buffer alignment.
* @return Serialized size.
*/
eProsima_user_DllExport static size_t getCdrSerializedSize(const px4_msgs::msg::CollisionConstraints& data, size_t current_alignment = 0);
/*!
* @brief This function serializes an object using CDR serialization.
* @param cdr CDR serialization object.
*/
eProsima_user_DllExport void serialize(eprosima::fastcdr::Cdr &cdr) const;
/*!
* @brief This function deserializes an object using CDR serialization.
* @param cdr CDR serialization object.
*/
eProsima_user_DllExport void deserialize(eprosima::fastcdr::Cdr &cdr);
/*!
* @brief This function returns the maximum serialized size of the Key of an object
* depending on the buffer alignment.
* @param current_alignment Buffer alignment.
* @return Maximum serialized size.
*/
eProsima_user_DllExport static size_t getKeyMaxCdrSerializedSize(size_t current_alignment = 0);
/*!
* @brief This function tells you if the Key has been defined for this type
*/
eProsima_user_DllExport static bool isKeyDefined();
/*!
* @brief This function serializes the key members of an object using CDR serialization.
* @param cdr CDR serialization object.
*/
eProsima_user_DllExport void serializeKey(eprosima::fastcdr::Cdr &cdr) const;
private:
uint64_t m_timestamp;
px4_msgs::msg::float__2 m_original_setpoint;
px4_msgs::msg::float__2 m_adapted_setpoint;
};
}
}
#endif // _PX4_MSGS_MSG_COLLISIONCONSTRAINTS_H_
@@ -0,0 +1,142 @@
// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
/*!
* @file CollisionConstraintsPubSubTypes.cpp
* This header file contains the implementation of the serialization functions.
*
* This file was generated by the tool fastcdrgen.
*/
#include <fastcdr/FastBuffer.h>
#include <fastcdr/Cdr.h>
#include "CollisionConstraintsPubSubTypes.h"
using namespace eprosima::fastrtps;
using namespace eprosima::fastrtps::rtps;
namespace px4_msgs
{
namespace msg
{
CollisionConstraintsPubSubType::CollisionConstraintsPubSubType()
{
setName("px4_msgs::msg::CollisionConstraints");
m_typeSize = static_cast<uint32_t>(CollisionConstraints::getMaxCdrSerializedSize()) + 4 /*encapsulation*/;
m_isGetKeyDefined = CollisionConstraints::isKeyDefined();
size_t keyLength = CollisionConstraints::getKeyMaxCdrSerializedSize()>16 ? CollisionConstraints::getKeyMaxCdrSerializedSize() : 16;
m_keyBuffer = reinterpret_cast<unsigned char*>(malloc(keyLength));
memset(m_keyBuffer, 0, keyLength);
}
CollisionConstraintsPubSubType::~CollisionConstraintsPubSubType()
{
if(m_keyBuffer!=nullptr)
free(m_keyBuffer);
}
bool CollisionConstraintsPubSubType::serialize(void *data, SerializedPayload_t *payload)
{
CollisionConstraints *p_type = static_cast<CollisionConstraints*>(data);
eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast<char*>(payload->data), payload->max_size); // Object that manages the raw buffer.
eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN,
eprosima::fastcdr::Cdr::DDS_CDR); // Object that serializes the data.
payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE;
// Serialize encapsulation
ser.serialize_encapsulation();
try
{
p_type->serialize(ser); // Serialize the object:
}
catch(eprosima::fastcdr::exception::NotEnoughMemoryException& /*exception*/)
{
return false;
}
payload->length = static_cast<uint32_t>(ser.getSerializedDataLength()); //Get the serialized length
return true;
}
bool CollisionConstraintsPubSubType::deserialize(SerializedPayload_t* payload, void* data)
{
CollisionConstraints* p_type = static_cast<CollisionConstraints*>(data); //Convert DATA to pointer of your type
eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast<char*>(payload->data), payload->length); // Object that manages the raw buffer.
eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN,
eprosima::fastcdr::Cdr::DDS_CDR); // Object that deserializes the data.
// Deserialize encapsulation.
deser.read_encapsulation();
payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE;
try
{
p_type->deserialize(deser); //Deserialize the object:
}
catch(eprosima::fastcdr::exception::NotEnoughMemoryException& /*exception*/)
{
return false;
}
return true;
}
std::function<uint32_t()> CollisionConstraintsPubSubType::getSerializedSizeProvider(void* data)
{
return [data]() -> uint32_t
{
return static_cast<uint32_t>(type::getCdrSerializedSize(*static_cast<CollisionConstraints*>(data))) + 4 /*encapsulation*/;
};
}
void* CollisionConstraintsPubSubType::createData()
{
return reinterpret_cast<void*>(new CollisionConstraints());
}
void CollisionConstraintsPubSubType::deleteData(void* data)
{
delete(reinterpret_cast<CollisionConstraints*>(data));
}
bool CollisionConstraintsPubSubType::getKey(void *data, InstanceHandle_t* handle, bool force_md5)
{
if(!m_isGetKeyDefined)
return false;
CollisionConstraints* p_type = static_cast<CollisionConstraints*>(data);
eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast<char*>(m_keyBuffer),CollisionConstraints::getKeyMaxCdrSerializedSize()); // Object that manages the raw buffer.
eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS); // Object that serializes the data.
p_type->serializeKey(ser);
if(force_md5 || CollisionConstraints::getKeyMaxCdrSerializedSize()>16) {
m_md5.init();
m_md5.update(m_keyBuffer, static_cast<unsigned int>(ser.getSerializedDataLength()));
m_md5.finalize();
for(uint8_t i = 0;i<16;++i) {
handle->value[i] = m_md5.digest[i];
}
}
else {
for(uint8_t i = 0;i<16;++i) {
handle->value[i] = m_keyBuffer[i];
}
}
return true;
}
} //End of namespace msg
} //End of namespace px4_msgs
@@ -0,0 +1,64 @@
// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
/*!
* @file CollisionConstraintsPubSubTypes.h
* This header file contains the declaration of the serialization functions.
*
* This file was generated by the tool fastcdrgen.
*/
#ifndef _PX4_MSGS_MSG_COLLISIONCONSTRAINTS_PUBSUBTYPES_H_
#define _PX4_MSGS_MSG_COLLISIONCONSTRAINTS_PUBSUBTYPES_H_
#include <fastrtps/config.h>
#include <fastrtps/TopicDataType.h>
#include "CollisionConstraints.h"
#if !defined(GEN_API_VER) || (GEN_API_VER != 1)
#error Generated CollisionConstraints is not compatible with current installed Fast-RTPS. Please, regenerate it with fastrtpsgen.
#endif
namespace px4_msgs
{
namespace msg
{
typedef std::array<float, 2> float__2;
/*!
* @brief This class represents the TopicDataType of the type CollisionConstraints defined by the user in the IDL file.
* @ingroup COLLISIONCONSTRAINTS
*/
class CollisionConstraintsPubSubType : public eprosima::fastrtps::TopicDataType {
public:
typedef CollisionConstraints type;
eProsima_user_DllExport CollisionConstraintsPubSubType();
eProsima_user_DllExport virtual ~CollisionConstraintsPubSubType();
eProsima_user_DllExport virtual bool serialize(void *data, eprosima::fastrtps::rtps::SerializedPayload_t *payload) override;
eProsima_user_DllExport virtual bool deserialize(eprosima::fastrtps::rtps::SerializedPayload_t *payload, void *data) override;
eProsima_user_DllExport virtual std::function<uint32_t()> getSerializedSizeProvider(void* data) override;
eProsima_user_DllExport virtual bool getKey(void *data, eprosima::fastrtps::rtps::InstanceHandle_t *ihandle,
bool force_md5 = false) override;
eProsima_user_DllExport virtual void* createData() override;
eProsima_user_DllExport virtual void deleteData(void * data) override;
MD5 m_md5;
unsigned char* m_keyBuffer;
};
}
}
#endif // _PX4_MSGS_MSG_COLLISIONCONSTRAINTS_PUBSUBTYPES_H_
@@ -0,0 +1,348 @@
// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
/*!
* @file DebugVect.cpp
* This source file contains the definition of the described types in the IDL file.
*
* This file was generated by the tool gen.
*/
#ifdef _WIN32
// Remove linker warning LNK4221 on Visual Studio
namespace { char dummy; }
#endif
#include "DebugVect.h"
#include <fastcdr/Cdr.h>
#include <fastcdr/exceptions/BadParamException.h>
using namespace eprosima::fastcdr::exception;
#include <utility>
px4_msgs::msg::DebugVect::DebugVect()
{
// m_timestamp com.eprosima.idl.parser.typecode.PrimitiveTypeCode@7139992f
m_timestamp = 0;
// m_name com.eprosima.idl.parser.typecode.AliasTypeCode@69504ae9
memset(&m_name, 0, (10) * 1);
// m_x com.eprosima.idl.parser.typecode.PrimitiveTypeCode@387a8303
m_x = 0.0;
// m_y com.eprosima.idl.parser.typecode.PrimitiveTypeCode@28cda624
m_y = 0.0;
// m_z com.eprosima.idl.parser.typecode.PrimitiveTypeCode@1500b2f3
m_z = 0.0;
}
px4_msgs::msg::DebugVect::~DebugVect()
{
}
px4_msgs::msg::DebugVect::DebugVect(const DebugVect &x)
{
m_timestamp = x.m_timestamp;
m_name = x.m_name;
m_x = x.m_x;
m_y = x.m_y;
m_z = x.m_z;
}
px4_msgs::msg::DebugVect::DebugVect(DebugVect &&x)
{
m_timestamp = x.m_timestamp;
m_name = std::move(x.m_name);
m_x = x.m_x;
m_y = x.m_y;
m_z = x.m_z;
}
px4_msgs::msg::DebugVect& px4_msgs::msg::DebugVect::operator=(const DebugVect &x)
{
m_timestamp = x.m_timestamp;
m_name = x.m_name;
m_x = x.m_x;
m_y = x.m_y;
m_z = x.m_z;
return *this;
}
px4_msgs::msg::DebugVect& px4_msgs::msg::DebugVect::operator=(DebugVect &&x)
{
m_timestamp = x.m_timestamp;
m_name = std::move(x.m_name);
m_x = x.m_x;
m_y = x.m_y;
m_z = x.m_z;
return *this;
}
size_t px4_msgs::msg::DebugVect::getMaxCdrSerializedSize(size_t current_alignment)
{
size_t initial_alignment = current_alignment;
current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8);
current_alignment += ((10) * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
return current_alignment - initial_alignment;
}
size_t px4_msgs::msg::DebugVect::getCdrSerializedSize(const px4_msgs::msg::DebugVect& data, size_t current_alignment)
{
(void)data;
size_t initial_alignment = current_alignment;
current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8);
if ((10) > 0)
{
current_alignment += ((10) * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1);
}
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
return current_alignment - initial_alignment;
}
void px4_msgs::msg::DebugVect::serialize(eprosima::fastcdr::Cdr &scdr) const
{
scdr << m_timestamp;
scdr << m_name;
scdr << m_x;
scdr << m_y;
scdr << m_z;
}
void px4_msgs::msg::DebugVect::deserialize(eprosima::fastcdr::Cdr &dcdr)
{
dcdr >> m_timestamp;
dcdr >> m_name;
dcdr >> m_x;
dcdr >> m_y;
dcdr >> m_z;
}
/*!
* @brief This function sets a value in member timestamp
* @param _timestamp New value for member timestamp
*/
void px4_msgs::msg::DebugVect::timestamp(uint64_t _timestamp)
{
m_timestamp = _timestamp;
}
/*!
* @brief This function returns the value of member timestamp
* @return Value of member timestamp
*/
uint64_t px4_msgs::msg::DebugVect::timestamp() const
{
return m_timestamp;
}
/*!
* @brief This function returns a reference to member timestamp
* @return Reference to member timestamp
*/
uint64_t& px4_msgs::msg::DebugVect::timestamp()
{
return m_timestamp;
}
/*!
* @brief This function copies the value in member name
* @param _name New value to be copied in member name
*/
void px4_msgs::msg::DebugVect::name(const px4_msgs::msg::uint8__10 &_name)
{
m_name = _name;
}
/*!
* @brief This function moves the value in member name
* @param _name New value to be moved in member name
*/
void px4_msgs::msg::DebugVect::name(px4_msgs::msg::uint8__10 &&_name)
{
m_name = std::move(_name);
}
/*!
* @brief This function returns a constant reference to member name
* @return Constant reference to member name
*/
const px4_msgs::msg::uint8__10& px4_msgs::msg::DebugVect::name() const
{
return m_name;
}
/*!
* @brief This function returns a reference to member name
* @return Reference to member name
*/
px4_msgs::msg::uint8__10& px4_msgs::msg::DebugVect::name()
{
return m_name;
}
/*!
* @brief This function sets a value in member x
* @param _x New value for member x
*/
void px4_msgs::msg::DebugVect::x(float _x)
{
m_x = _x;
}
/*!
* @brief This function returns the value of member x
* @return Value of member x
*/
float px4_msgs::msg::DebugVect::x() const
{
return m_x;
}
/*!
* @brief This function returns a reference to member x
* @return Reference to member x
*/
float& px4_msgs::msg::DebugVect::x()
{
return m_x;
}
/*!
* @brief This function sets a value in member y
* @param _y New value for member y
*/
void px4_msgs::msg::DebugVect::y(float _y)
{
m_y = _y;
}
/*!
* @brief This function returns the value of member y
* @return Value of member y
*/
float px4_msgs::msg::DebugVect::y() const
{
return m_y;
}
/*!
* @brief This function returns a reference to member y
* @return Reference to member y
*/
float& px4_msgs::msg::DebugVect::y()
{
return m_y;
}
/*!
* @brief This function sets a value in member z
* @param _z New value for member z
*/
void px4_msgs::msg::DebugVect::z(float _z)
{
m_z = _z;
}
/*!
* @brief This function returns the value of member z
* @return Value of member z
*/
float px4_msgs::msg::DebugVect::z() const
{
return m_z;
}
/*!
* @brief This function returns a reference to member z
* @return Reference to member z
*/
float& px4_msgs::msg::DebugVect::z()
{
return m_z;
}
size_t px4_msgs::msg::DebugVect::getKeyMaxCdrSerializedSize(size_t current_alignment)
{
size_t current_align = current_alignment;
return current_align;
}
bool px4_msgs::msg::DebugVect::isKeyDefined()
{
return false;
}
void px4_msgs::msg::DebugVect::serializeKey(eprosima::fastcdr::Cdr &scdr) const
{
(void) scdr;
}
@@ -0,0 +1,270 @@
// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
/*!
* @file DebugVect.h
* This header file contains the declaration of the described types in the IDL file.
*
* This file was generated by the tool gen.
*/
#ifndef _PX4_MSGS_MSG_DEBUGVECT_H_
#define _PX4_MSGS_MSG_DEBUGVECT_H_
// TODO Poner en el contexto.
#include <stdint.h>
#include <array>
#include <string>
#include <vector>
#include <map>
#include <bitset>
#if defined(_WIN32)
#if defined(EPROSIMA_USER_DLL_EXPORT)
#define eProsima_user_DllExport __declspec( dllexport )
#else
#define eProsima_user_DllExport
#endif
#else
#define eProsima_user_DllExport
#endif
#if defined(_WIN32)
#if defined(EPROSIMA_USER_DLL_EXPORT)
#if defined(DebugVect_SOURCE)
#define DebugVect_DllAPI __declspec( dllexport )
#else
#define DebugVect_DllAPI __declspec( dllimport )
#endif // DebugVect_SOURCE
#else
#define DebugVect_DllAPI
#endif
#else
#define DebugVect_DllAPI
#endif // _WIN32
namespace eprosima
{
namespace fastcdr
{
class Cdr;
}
}
namespace px4_msgs
{
namespace msg
{
typedef std::array<uint8_t, 10> uint8__10;
/*!
* @brief This class represents the structure DebugVect defined by the user in the IDL file.
* @ingroup DEBUGVECT
*/
class DebugVect
{
public:
/*!
* @brief Default constructor.
*/
eProsima_user_DllExport DebugVect();
/*!
* @brief Default destructor.
*/
eProsima_user_DllExport ~DebugVect();
/*!
* @brief Copy constructor.
* @param x Reference to the object px4_msgs::msg::DebugVect that will be copied.
*/
eProsima_user_DllExport DebugVect(const DebugVect &x);
/*!
* @brief Move constructor.
* @param x Reference to the object px4_msgs::msg::DebugVect that will be copied.
*/
eProsima_user_DllExport DebugVect(DebugVect &&x);
/*!
* @brief Copy assignment.
* @param x Reference to the object px4_msgs::msg::DebugVect that will be copied.
*/
eProsima_user_DllExport DebugVect& operator=(const DebugVect &x);
/*!
* @brief Move assignment.
* @param x Reference to the object px4_msgs::msg::DebugVect that will be copied.
*/
eProsima_user_DllExport DebugVect& operator=(DebugVect &&x);
/*!
* @brief This function sets a value in member timestamp
* @param _timestamp New value for member timestamp
*/
eProsima_user_DllExport void timestamp(uint64_t _timestamp);
/*!
* @brief This function returns the value of member timestamp
* @return Value of member timestamp
*/
eProsima_user_DllExport uint64_t timestamp() const;
/*!
* @brief This function returns a reference to member timestamp
* @return Reference to member timestamp
*/
eProsima_user_DllExport uint64_t& timestamp();
/*!
* @brief This function copies the value in member name
* @param _name New value to be copied in member name
*/
eProsima_user_DllExport void name(const px4_msgs::msg::uint8__10 &_name);
/*!
* @brief This function moves the value in member name
* @param _name New value to be moved in member name
*/
eProsima_user_DllExport void name(px4_msgs::msg::uint8__10 &&_name);
/*!
* @brief This function returns a constant reference to member name
* @return Constant reference to member name
*/
eProsima_user_DllExport const px4_msgs::msg::uint8__10& name() const;
/*!
* @brief This function returns a reference to member name
* @return Reference to member name
*/
eProsima_user_DllExport px4_msgs::msg::uint8__10& name();
/*!
* @brief This function sets a value in member x
* @param _x New value for member x
*/
eProsima_user_DllExport void x(float _x);
/*!
* @brief This function returns the value of member x
* @return Value of member x
*/
eProsima_user_DllExport float x() const;
/*!
* @brief This function returns a reference to member x
* @return Reference to member x
*/
eProsima_user_DllExport float& x();
/*!
* @brief This function sets a value in member y
* @param _y New value for member y
*/
eProsima_user_DllExport void y(float _y);
/*!
* @brief This function returns the value of member y
* @return Value of member y
*/
eProsima_user_DllExport float y() const;
/*!
* @brief This function returns a reference to member y
* @return Reference to member y
*/
eProsima_user_DllExport float& y();
/*!
* @brief This function sets a value in member z
* @param _z New value for member z
*/
eProsima_user_DllExport void z(float _z);
/*!
* @brief This function returns the value of member z
* @return Value of member z
*/
eProsima_user_DllExport float z() const;
/*!
* @brief This function returns a reference to member z
* @return Reference to member z
*/
eProsima_user_DllExport float& z();
/*!
* @brief This function returns the maximum serialized size of an object
* depending on the buffer alignment.
* @param current_alignment Buffer alignment.
* @return Maximum serialized size.
*/
eProsima_user_DllExport static size_t getMaxCdrSerializedSize(size_t current_alignment = 0);
/*!
* @brief This function returns the serialized size of a data depending on the buffer alignment.
* @param data Data which is calculated its serialized size.
* @param current_alignment Buffer alignment.
* @return Serialized size.
*/
eProsima_user_DllExport static size_t getCdrSerializedSize(const px4_msgs::msg::DebugVect& data, size_t current_alignment = 0);
/*!
* @brief This function serializes an object using CDR serialization.
* @param cdr CDR serialization object.
*/
eProsima_user_DllExport void serialize(eprosima::fastcdr::Cdr &cdr) const;
/*!
* @brief This function deserializes an object using CDR serialization.
* @param cdr CDR serialization object.
*/
eProsima_user_DllExport void deserialize(eprosima::fastcdr::Cdr &cdr);
/*!
* @brief This function returns the maximum serialized size of the Key of an object
* depending on the buffer alignment.
* @param current_alignment Buffer alignment.
* @return Maximum serialized size.
*/
eProsima_user_DllExport static size_t getKeyMaxCdrSerializedSize(size_t current_alignment = 0);
/*!
* @brief This function tells you if the Key has been defined for this type
*/
eProsima_user_DllExport static bool isKeyDefined();
/*!
* @brief This function serializes the key members of an object using CDR serialization.
* @param cdr CDR serialization object.
*/
eProsima_user_DllExport void serializeKey(eprosima::fastcdr::Cdr &cdr) const;
private:
uint64_t m_timestamp;
px4_msgs::msg::uint8__10 m_name;
float m_x;
float m_y;
float m_z;
};
}
}
#endif // _PX4_MSGS_MSG_DEBUGVECT_H_
@@ -0,0 +1,142 @@
// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
/*!
* @file DebugVectPubSubTypes.cpp
* This header file contains the implementation of the serialization functions.
*
* This file was generated by the tool fastcdrgen.
*/
#include <fastcdr/FastBuffer.h>
#include <fastcdr/Cdr.h>
#include "DebugVectPubSubTypes.h"
using namespace eprosima::fastrtps;
using namespace eprosima::fastrtps::rtps;
namespace px4_msgs
{
namespace msg
{
DebugVectPubSubType::DebugVectPubSubType()
{
setName("px4_msgs::msg::DebugVect");
m_typeSize = static_cast<uint32_t>(DebugVect::getMaxCdrSerializedSize()) + 4 /*encapsulation*/;
m_isGetKeyDefined = DebugVect::isKeyDefined();
size_t keyLength = DebugVect::getKeyMaxCdrSerializedSize()>16 ? DebugVect::getKeyMaxCdrSerializedSize() : 16;
m_keyBuffer = reinterpret_cast<unsigned char*>(malloc(keyLength));
memset(m_keyBuffer, 0, keyLength);
}
DebugVectPubSubType::~DebugVectPubSubType()
{
if(m_keyBuffer!=nullptr)
free(m_keyBuffer);
}
bool DebugVectPubSubType::serialize(void *data, SerializedPayload_t *payload)
{
DebugVect *p_type = static_cast<DebugVect*>(data);
eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast<char*>(payload->data), payload->max_size); // Object that manages the raw buffer.
eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN,
eprosima::fastcdr::Cdr::DDS_CDR); // Object that serializes the data.
payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE;
// Serialize encapsulation
ser.serialize_encapsulation();
try
{
p_type->serialize(ser); // Serialize the object:
}
catch(eprosima::fastcdr::exception::NotEnoughMemoryException& /*exception*/)
{
return false;
}
payload->length = static_cast<uint32_t>(ser.getSerializedDataLength()); //Get the serialized length
return true;
}
bool DebugVectPubSubType::deserialize(SerializedPayload_t* payload, void* data)
{
DebugVect* p_type = static_cast<DebugVect*>(data); //Convert DATA to pointer of your type
eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast<char*>(payload->data), payload->length); // Object that manages the raw buffer.
eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN,
eprosima::fastcdr::Cdr::DDS_CDR); // Object that deserializes the data.
// Deserialize encapsulation.
deser.read_encapsulation();
payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE;
try
{
p_type->deserialize(deser); //Deserialize the object:
}
catch(eprosima::fastcdr::exception::NotEnoughMemoryException& /*exception*/)
{
return false;
}
return true;
}
std::function<uint32_t()> DebugVectPubSubType::getSerializedSizeProvider(void* data)
{
return [data]() -> uint32_t
{
return static_cast<uint32_t>(type::getCdrSerializedSize(*static_cast<DebugVect*>(data))) + 4 /*encapsulation*/;
};
}
void* DebugVectPubSubType::createData()
{
return reinterpret_cast<void*>(new DebugVect());
}
void DebugVectPubSubType::deleteData(void* data)
{
delete(reinterpret_cast<DebugVect*>(data));
}
bool DebugVectPubSubType::getKey(void *data, InstanceHandle_t* handle, bool force_md5)
{
if(!m_isGetKeyDefined)
return false;
DebugVect* p_type = static_cast<DebugVect*>(data);
eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast<char*>(m_keyBuffer),DebugVect::getKeyMaxCdrSerializedSize()); // Object that manages the raw buffer.
eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS); // Object that serializes the data.
p_type->serializeKey(ser);
if(force_md5 || DebugVect::getKeyMaxCdrSerializedSize()>16) {
m_md5.init();
m_md5.update(m_keyBuffer, static_cast<unsigned int>(ser.getSerializedDataLength()));
m_md5.finalize();
for(uint8_t i = 0;i<16;++i) {
handle->value[i] = m_md5.digest[i];
}
}
else {
for(uint8_t i = 0;i<16;++i) {
handle->value[i] = m_keyBuffer[i];
}
}
return true;
}
} //End of namespace msg
} //End of namespace px4_msgs
@@ -0,0 +1,64 @@
// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
/*!
* @file DebugVectPubSubTypes.h
* This header file contains the declaration of the serialization functions.
*
* This file was generated by the tool fastcdrgen.
*/
#ifndef _PX4_MSGS_MSG_DEBUGVECT_PUBSUBTYPES_H_
#define _PX4_MSGS_MSG_DEBUGVECT_PUBSUBTYPES_H_
#include <fastrtps/config.h>
#include <fastrtps/TopicDataType.h>
#include "DebugVect.h"
#if !defined(GEN_API_VER) || (GEN_API_VER != 1)
#error Generated DebugVect is not compatible with current installed Fast-RTPS. Please, regenerate it with fastrtpsgen.
#endif
namespace px4_msgs
{
namespace msg
{
typedef std::array<uint8_t, 10> uint8__10;
/*!
* @brief This class represents the TopicDataType of the type DebugVect defined by the user in the IDL file.
* @ingroup DEBUGVECT
*/
class DebugVectPubSubType : public eprosima::fastrtps::TopicDataType {
public:
typedef DebugVect type;
eProsima_user_DllExport DebugVectPubSubType();
eProsima_user_DllExport virtual ~DebugVectPubSubType();
eProsima_user_DllExport virtual bool serialize(void *data, eprosima::fastrtps::rtps::SerializedPayload_t *payload) override;
eProsima_user_DllExport virtual bool deserialize(eprosima::fastrtps::rtps::SerializedPayload_t *payload, void *data) override;
eProsima_user_DllExport virtual std::function<uint32_t()> getSerializedSizeProvider(void* data) override;
eProsima_user_DllExport virtual bool getKey(void *data, eprosima::fastrtps::rtps::InstanceHandle_t *ihandle,
bool force_md5 = false) override;
eProsima_user_DllExport virtual void* createData() override;
eProsima_user_DllExport virtual void deleteData(void * data) override;
MD5 m_md5;
unsigned char* m_keyBuffer;
};
}
}
#endif // _PX4_MSGS_MSG_DEBUGVECT_PUBSUBTYPES_H_
@@ -0,0 +1,423 @@
// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
/*!
* @file OffboardControlMode.cpp
* This source file contains the definition of the described types in the IDL file.
*
* This file was generated by the tool gen.
*/
#ifdef _WIN32
// Remove linker warning LNK4221 on Visual Studio
namespace { char dummy; }
#endif
#include "OffboardControlMode.h"
#include <fastcdr/Cdr.h>
#include <fastcdr/exceptions/BadParamException.h>
using namespace eprosima::fastcdr::exception;
#include <utility>
px4_msgs::msg::OffboardControlMode::OffboardControlMode()
{
// m_timestamp com.eprosima.idl.parser.typecode.PrimitiveTypeCode@7f8a9499
m_timestamp = 0;
// m_position com.eprosima.idl.parser.typecode.PrimitiveTypeCode@5d43661b
m_position = false;
// m_velocity com.eprosima.idl.parser.typecode.PrimitiveTypeCode@12299890
m_velocity = false;
// m_acceleration com.eprosima.idl.parser.typecode.PrimitiveTypeCode@2fba3fc4
m_acceleration = false;
// m_attitude com.eprosima.idl.parser.typecode.PrimitiveTypeCode@4bf48f6
m_attitude = false;
// m_body_rate com.eprosima.idl.parser.typecode.PrimitiveTypeCode@420a85c4
m_body_rate = false;
// m_actuator com.eprosima.idl.parser.typecode.PrimitiveTypeCode@1c39680d
m_actuator = false;
}
px4_msgs::msg::OffboardControlMode::~OffboardControlMode()
{
}
px4_msgs::msg::OffboardControlMode::OffboardControlMode(const OffboardControlMode &x)
{
m_timestamp = x.m_timestamp;
m_position = x.m_position;
m_velocity = x.m_velocity;
m_acceleration = x.m_acceleration;
m_attitude = x.m_attitude;
m_body_rate = x.m_body_rate;
m_actuator = x.m_actuator;
}
px4_msgs::msg::OffboardControlMode::OffboardControlMode(OffboardControlMode &&x)
{
m_timestamp = x.m_timestamp;
m_position = x.m_position;
m_velocity = x.m_velocity;
m_acceleration = x.m_acceleration;
m_attitude = x.m_attitude;
m_body_rate = x.m_body_rate;
m_actuator = x.m_actuator;
}
px4_msgs::msg::OffboardControlMode& px4_msgs::msg::OffboardControlMode::operator=(const OffboardControlMode &x)
{
m_timestamp = x.m_timestamp;
m_position = x.m_position;
m_velocity = x.m_velocity;
m_acceleration = x.m_acceleration;
m_attitude = x.m_attitude;
m_body_rate = x.m_body_rate;
m_actuator = x.m_actuator;
return *this;
}
px4_msgs::msg::OffboardControlMode& px4_msgs::msg::OffboardControlMode::operator=(OffboardControlMode &&x)
{
m_timestamp = x.m_timestamp;
m_position = x.m_position;
m_velocity = x.m_velocity;
m_acceleration = x.m_acceleration;
m_attitude = x.m_attitude;
m_body_rate = x.m_body_rate;
m_actuator = x.m_actuator;
return *this;
}
size_t px4_msgs::msg::OffboardControlMode::getMaxCdrSerializedSize(size_t current_alignment)
{
size_t initial_alignment = current_alignment;
current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8);
current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1);
current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1);
current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1);
current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1);
current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1);
current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1);
return current_alignment - initial_alignment;
}
size_t px4_msgs::msg::OffboardControlMode::getCdrSerializedSize(const px4_msgs::msg::OffboardControlMode& data, size_t current_alignment)
{
(void)data;
size_t initial_alignment = current_alignment;
current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8);
current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1);
current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1);
current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1);
current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1);
current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1);
current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1);
return current_alignment - initial_alignment;
}
void px4_msgs::msg::OffboardControlMode::serialize(eprosima::fastcdr::Cdr &scdr) const
{
scdr << m_timestamp;
scdr << m_position;
scdr << m_velocity;
scdr << m_acceleration;
scdr << m_attitude;
scdr << m_body_rate;
scdr << m_actuator;
}
void px4_msgs::msg::OffboardControlMode::deserialize(eprosima::fastcdr::Cdr &dcdr)
{
dcdr >> m_timestamp;
dcdr >> m_position;
dcdr >> m_velocity;
dcdr >> m_acceleration;
dcdr >> m_attitude;
dcdr >> m_body_rate;
dcdr >> m_actuator;
}
/*!
* @brief This function sets a value in member timestamp
* @param _timestamp New value for member timestamp
*/
void px4_msgs::msg::OffboardControlMode::timestamp(uint64_t _timestamp)
{
m_timestamp = _timestamp;
}
/*!
* @brief This function returns the value of member timestamp
* @return Value of member timestamp
*/
uint64_t px4_msgs::msg::OffboardControlMode::timestamp() const
{
return m_timestamp;
}
/*!
* @brief This function returns a reference to member timestamp
* @return Reference to member timestamp
*/
uint64_t& px4_msgs::msg::OffboardControlMode::timestamp()
{
return m_timestamp;
}
/*!
* @brief This function sets a value in member position
* @param _position New value for member position
*/
void px4_msgs::msg::OffboardControlMode::position(bool _position)
{
m_position = _position;
}
/*!
* @brief This function returns the value of member position
* @return Value of member position
*/
bool px4_msgs::msg::OffboardControlMode::position() const
{
return m_position;
}
/*!
* @brief This function returns a reference to member position
* @return Reference to member position
*/
bool& px4_msgs::msg::OffboardControlMode::position()
{
return m_position;
}
/*!
* @brief This function sets a value in member velocity
* @param _velocity New value for member velocity
*/
void px4_msgs::msg::OffboardControlMode::velocity(bool _velocity)
{
m_velocity = _velocity;
}
/*!
* @brief This function returns the value of member velocity
* @return Value of member velocity
*/
bool px4_msgs::msg::OffboardControlMode::velocity() const
{
return m_velocity;
}
/*!
* @brief This function returns a reference to member velocity
* @return Reference to member velocity
*/
bool& px4_msgs::msg::OffboardControlMode::velocity()
{
return m_velocity;
}
/*!
* @brief This function sets a value in member acceleration
* @param _acceleration New value for member acceleration
*/
void px4_msgs::msg::OffboardControlMode::acceleration(bool _acceleration)
{
m_acceleration = _acceleration;
}
/*!
* @brief This function returns the value of member acceleration
* @return Value of member acceleration
*/
bool px4_msgs::msg::OffboardControlMode::acceleration() const
{
return m_acceleration;
}
/*!
* @brief This function returns a reference to member acceleration
* @return Reference to member acceleration
*/
bool& px4_msgs::msg::OffboardControlMode::acceleration()
{
return m_acceleration;
}
/*!
* @brief This function sets a value in member attitude
* @param _attitude New value for member attitude
*/
void px4_msgs::msg::OffboardControlMode::attitude(bool _attitude)
{
m_attitude = _attitude;
}
/*!
* @brief This function returns the value of member attitude
* @return Value of member attitude
*/
bool px4_msgs::msg::OffboardControlMode::attitude() const
{
return m_attitude;
}
/*!
* @brief This function returns a reference to member attitude
* @return Reference to member attitude
*/
bool& px4_msgs::msg::OffboardControlMode::attitude()
{
return m_attitude;
}
/*!
* @brief This function sets a value in member body_rate
* @param _body_rate New value for member body_rate
*/
void px4_msgs::msg::OffboardControlMode::body_rate(bool _body_rate)
{
m_body_rate = _body_rate;
}
/*!
* @brief This function returns the value of member body_rate
* @return Value of member body_rate
*/
bool px4_msgs::msg::OffboardControlMode::body_rate() const
{
return m_body_rate;
}
/*!
* @brief This function returns a reference to member body_rate
* @return Reference to member body_rate
*/
bool& px4_msgs::msg::OffboardControlMode::body_rate()
{
return m_body_rate;
}
/*!
* @brief This function sets a value in member actuator
* @param _actuator New value for member actuator
*/
void px4_msgs::msg::OffboardControlMode::actuator(bool _actuator)
{
m_actuator = _actuator;
}
/*!
* @brief This function returns the value of member actuator
* @return Value of member actuator
*/
bool px4_msgs::msg::OffboardControlMode::actuator() const
{
return m_actuator;
}
/*!
* @brief This function returns a reference to member actuator
* @return Reference to member actuator
*/
bool& px4_msgs::msg::OffboardControlMode::actuator()
{
return m_actuator;
}
size_t px4_msgs::msg::OffboardControlMode::getKeyMaxCdrSerializedSize(size_t current_alignment)
{
size_t current_align = current_alignment;
return current_align;
}
bool px4_msgs::msg::OffboardControlMode::isKeyDefined()
{
return false;
}
void px4_msgs::msg::OffboardControlMode::serializeKey(eprosima::fastcdr::Cdr &scdr) const
{
(void) scdr;
}
@@ -0,0 +1,302 @@
// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
/*!
* @file OffboardControlMode.h
* This header file contains the declaration of the described types in the IDL file.
*
* This file was generated by the tool gen.
*/
#ifndef _PX4_MSGS_MSG_OFFBOARDCONTROLMODE_H_
#define _PX4_MSGS_MSG_OFFBOARDCONTROLMODE_H_
// TODO Poner en el contexto.
#include <stdint.h>
#include <array>
#include <string>
#include <vector>
#include <map>
#include <bitset>
#if defined(_WIN32)
#if defined(EPROSIMA_USER_DLL_EXPORT)
#define eProsima_user_DllExport __declspec( dllexport )
#else
#define eProsima_user_DllExport
#endif
#else
#define eProsima_user_DllExport
#endif
#if defined(_WIN32)
#if defined(EPROSIMA_USER_DLL_EXPORT)
#if defined(OffboardControlMode_SOURCE)
#define OffboardControlMode_DllAPI __declspec( dllexport )
#else
#define OffboardControlMode_DllAPI __declspec( dllimport )
#endif // OffboardControlMode_SOURCE
#else
#define OffboardControlMode_DllAPI
#endif
#else
#define OffboardControlMode_DllAPI
#endif // _WIN32
namespace eprosima
{
namespace fastcdr
{
class Cdr;
}
}
namespace px4_msgs
{
namespace msg
{
/*!
* @brief This class represents the structure OffboardControlMode defined by the user in the IDL file.
* @ingroup OFFBOARDCONTROLMODE
*/
class OffboardControlMode
{
public:
/*!
* @brief Default constructor.
*/
eProsima_user_DllExport OffboardControlMode();
/*!
* @brief Default destructor.
*/
eProsima_user_DllExport ~OffboardControlMode();
/*!
* @brief Copy constructor.
* @param x Reference to the object px4_msgs::msg::OffboardControlMode that will be copied.
*/
eProsima_user_DllExport OffboardControlMode(const OffboardControlMode &x);
/*!
* @brief Move constructor.
* @param x Reference to the object px4_msgs::msg::OffboardControlMode that will be copied.
*/
eProsima_user_DllExport OffboardControlMode(OffboardControlMode &&x);
/*!
* @brief Copy assignment.
* @param x Reference to the object px4_msgs::msg::OffboardControlMode that will be copied.
*/
eProsima_user_DllExport OffboardControlMode& operator=(const OffboardControlMode &x);
/*!
* @brief Move assignment.
* @param x Reference to the object px4_msgs::msg::OffboardControlMode that will be copied.
*/
eProsima_user_DllExport OffboardControlMode& operator=(OffboardControlMode &&x);
/*!
* @brief This function sets a value in member timestamp
* @param _timestamp New value for member timestamp
*/
eProsima_user_DllExport void timestamp(uint64_t _timestamp);
/*!
* @brief This function returns the value of member timestamp
* @return Value of member timestamp
*/
eProsima_user_DllExport uint64_t timestamp() const;
/*!
* @brief This function returns a reference to member timestamp
* @return Reference to member timestamp
*/
eProsima_user_DllExport uint64_t& timestamp();
/*!
* @brief This function sets a value in member position
* @param _position New value for member position
*/
eProsima_user_DllExport void position(bool _position);
/*!
* @brief This function returns the value of member position
* @return Value of member position
*/
eProsima_user_DllExport bool position() const;
/*!
* @brief This function returns a reference to member position
* @return Reference to member position
*/
eProsima_user_DllExport bool& position();
/*!
* @brief This function sets a value in member velocity
* @param _velocity New value for member velocity
*/
eProsima_user_DllExport void velocity(bool _velocity);
/*!
* @brief This function returns the value of member velocity
* @return Value of member velocity
*/
eProsima_user_DllExport bool velocity() const;
/*!
* @brief This function returns a reference to member velocity
* @return Reference to member velocity
*/
eProsima_user_DllExport bool& velocity();
/*!
* @brief This function sets a value in member acceleration
* @param _acceleration New value for member acceleration
*/
eProsima_user_DllExport void acceleration(bool _acceleration);
/*!
* @brief This function returns the value of member acceleration
* @return Value of member acceleration
*/
eProsima_user_DllExport bool acceleration() const;
/*!
* @brief This function returns a reference to member acceleration
* @return Reference to member acceleration
*/
eProsima_user_DllExport bool& acceleration();
/*!
* @brief This function sets a value in member attitude
* @param _attitude New value for member attitude
*/
eProsima_user_DllExport void attitude(bool _attitude);
/*!
* @brief This function returns the value of member attitude
* @return Value of member attitude
*/
eProsima_user_DllExport bool attitude() const;
/*!
* @brief This function returns a reference to member attitude
* @return Reference to member attitude
*/
eProsima_user_DllExport bool& attitude();
/*!
* @brief This function sets a value in member body_rate
* @param _body_rate New value for member body_rate
*/
eProsima_user_DllExport void body_rate(bool _body_rate);
/*!
* @brief This function returns the value of member body_rate
* @return Value of member body_rate
*/
eProsima_user_DllExport bool body_rate() const;
/*!
* @brief This function returns a reference to member body_rate
* @return Reference to member body_rate
*/
eProsima_user_DllExport bool& body_rate();
/*!
* @brief This function sets a value in member actuator
* @param _actuator New value for member actuator
*/
eProsima_user_DllExport void actuator(bool _actuator);
/*!
* @brief This function returns the value of member actuator
* @return Value of member actuator
*/
eProsima_user_DllExport bool actuator() const;
/*!
* @brief This function returns a reference to member actuator
* @return Reference to member actuator
*/
eProsima_user_DllExport bool& actuator();
/*!
* @brief This function returns the maximum serialized size of an object
* depending on the buffer alignment.
* @param current_alignment Buffer alignment.
* @return Maximum serialized size.
*/
eProsima_user_DllExport static size_t getMaxCdrSerializedSize(size_t current_alignment = 0);
/*!
* @brief This function returns the serialized size of a data depending on the buffer alignment.
* @param data Data which is calculated its serialized size.
* @param current_alignment Buffer alignment.
* @return Serialized size.
*/
eProsima_user_DllExport static size_t getCdrSerializedSize(const px4_msgs::msg::OffboardControlMode& data, size_t current_alignment = 0);
/*!
* @brief This function serializes an object using CDR serialization.
* @param cdr CDR serialization object.
*/
eProsima_user_DllExport void serialize(eprosima::fastcdr::Cdr &cdr) const;
/*!
* @brief This function deserializes an object using CDR serialization.
* @param cdr CDR serialization object.
*/
eProsima_user_DllExport void deserialize(eprosima::fastcdr::Cdr &cdr);
/*!
* @brief This function returns the maximum serialized size of the Key of an object
* depending on the buffer alignment.
* @param current_alignment Buffer alignment.
* @return Maximum serialized size.
*/
eProsima_user_DllExport static size_t getKeyMaxCdrSerializedSize(size_t current_alignment = 0);
/*!
* @brief This function tells you if the Key has been defined for this type
*/
eProsima_user_DllExport static bool isKeyDefined();
/*!
* @brief This function serializes the key members of an object using CDR serialization.
* @param cdr CDR serialization object.
*/
eProsima_user_DllExport void serializeKey(eprosima::fastcdr::Cdr &cdr) const;
private:
uint64_t m_timestamp;
bool m_position;
bool m_velocity;
bool m_acceleration;
bool m_attitude;
bool m_body_rate;
bool m_actuator;
};
}
}
#endif // _PX4_MSGS_MSG_OFFBOARDCONTROLMODE_H_
@@ -0,0 +1,141 @@
// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
/*!
* @file OffboardControlModePubSubTypes.cpp
* This header file contains the implementation of the serialization functions.
*
* This file was generated by the tool fastcdrgen.
*/
#include <fastcdr/FastBuffer.h>
#include <fastcdr/Cdr.h>
#include "OffboardControlModePubSubTypes.h"
using namespace eprosima::fastrtps;
using namespace eprosima::fastrtps::rtps;
namespace px4_msgs
{
namespace msg
{
OffboardControlModePubSubType::OffboardControlModePubSubType()
{
setName("px4_msgs::msg::OffboardControlMode");
m_typeSize = static_cast<uint32_t>(OffboardControlMode::getMaxCdrSerializedSize()) + 4 /*encapsulation*/;
m_isGetKeyDefined = OffboardControlMode::isKeyDefined();
size_t keyLength = OffboardControlMode::getKeyMaxCdrSerializedSize()>16 ? OffboardControlMode::getKeyMaxCdrSerializedSize() : 16;
m_keyBuffer = reinterpret_cast<unsigned char*>(malloc(keyLength));
memset(m_keyBuffer, 0, keyLength);
}
OffboardControlModePubSubType::~OffboardControlModePubSubType()
{
if(m_keyBuffer!=nullptr)
free(m_keyBuffer);
}
bool OffboardControlModePubSubType::serialize(void *data, SerializedPayload_t *payload)
{
OffboardControlMode *p_type = static_cast<OffboardControlMode*>(data);
eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast<char*>(payload->data), payload->max_size); // Object that manages the raw buffer.
eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN,
eprosima::fastcdr::Cdr::DDS_CDR); // Object that serializes the data.
payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE;
// Serialize encapsulation
ser.serialize_encapsulation();
try
{
p_type->serialize(ser); // Serialize the object:
}
catch(eprosima::fastcdr::exception::NotEnoughMemoryException& /*exception*/)
{
return false;
}
payload->length = static_cast<uint32_t>(ser.getSerializedDataLength()); //Get the serialized length
return true;
}
bool OffboardControlModePubSubType::deserialize(SerializedPayload_t* payload, void* data)
{
OffboardControlMode* p_type = static_cast<OffboardControlMode*>(data); //Convert DATA to pointer of your type
eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast<char*>(payload->data), payload->length); // Object that manages the raw buffer.
eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN,
eprosima::fastcdr::Cdr::DDS_CDR); // Object that deserializes the data.
// Deserialize encapsulation.
deser.read_encapsulation();
payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE;
try
{
p_type->deserialize(deser); //Deserialize the object:
}
catch(eprosima::fastcdr::exception::NotEnoughMemoryException& /*exception*/)
{
return false;
}
return true;
}
std::function<uint32_t()> OffboardControlModePubSubType::getSerializedSizeProvider(void* data)
{
return [data]() -> uint32_t
{
return static_cast<uint32_t>(type::getCdrSerializedSize(*static_cast<OffboardControlMode*>(data))) + 4 /*encapsulation*/;
};
}
void* OffboardControlModePubSubType::createData()
{
return reinterpret_cast<void*>(new OffboardControlMode());
}
void OffboardControlModePubSubType::deleteData(void* data)
{
delete(reinterpret_cast<OffboardControlMode*>(data));
}
bool OffboardControlModePubSubType::getKey(void *data, InstanceHandle_t* handle, bool force_md5)
{
if(!m_isGetKeyDefined)
return false;
OffboardControlMode* p_type = static_cast<OffboardControlMode*>(data);
eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast<char*>(m_keyBuffer),OffboardControlMode::getKeyMaxCdrSerializedSize()); // Object that manages the raw buffer.
eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS); // Object that serializes the data.
p_type->serializeKey(ser);
if(force_md5 || OffboardControlMode::getKeyMaxCdrSerializedSize()>16) {
m_md5.init();
m_md5.update(m_keyBuffer, static_cast<unsigned int>(ser.getSerializedDataLength()));
m_md5.finalize();
for(uint8_t i = 0;i<16;++i) {
handle->value[i] = m_md5.digest[i];
}
}
else {
for(uint8_t i = 0;i<16;++i) {
handle->value[i] = m_keyBuffer[i];
}
}
return true;
}
} //End of namespace msg
} //End of namespace px4_msgs
@@ -0,0 +1,63 @@
// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
/*!
* @file OffboardControlModePubSubTypes.h
* This header file contains the declaration of the serialization functions.
*
* This file was generated by the tool fastcdrgen.
*/
#ifndef _PX4_MSGS_MSG_OFFBOARDCONTROLMODE_PUBSUBTYPES_H_
#define _PX4_MSGS_MSG_OFFBOARDCONTROLMODE_PUBSUBTYPES_H_
#include <fastrtps/config.h>
#include <fastrtps/TopicDataType.h>
#include "OffboardControlMode.h"
#if !defined(GEN_API_VER) || (GEN_API_VER != 1)
#error Generated OffboardControlMode is not compatible with current installed Fast-RTPS. Please, regenerate it with fastrtpsgen.
#endif
namespace px4_msgs
{
namespace msg
{
/*!
* @brief This class represents the TopicDataType of the type OffboardControlMode defined by the user in the IDL file.
* @ingroup OFFBOARDCONTROLMODE
*/
class OffboardControlModePubSubType : public eprosima::fastrtps::TopicDataType {
public:
typedef OffboardControlMode type;
eProsima_user_DllExport OffboardControlModePubSubType();
eProsima_user_DllExport virtual ~OffboardControlModePubSubType();
eProsima_user_DllExport virtual bool serialize(void *data, eprosima::fastrtps::rtps::SerializedPayload_t *payload) override;
eProsima_user_DllExport virtual bool deserialize(eprosima::fastrtps::rtps::SerializedPayload_t *payload, void *data) override;
eProsima_user_DllExport virtual std::function<uint32_t()> getSerializedSizeProvider(void* data) override;
eProsima_user_DllExport virtual bool getKey(void *data, eprosima::fastrtps::rtps::InstanceHandle_t *ihandle,
bool force_md5 = false) override;
eProsima_user_DllExport virtual void* createData() override;
eProsima_user_DllExport virtual void deleteData(void * data) override;
MD5 m_md5;
unsigned char* m_keyBuffer;
};
}
}
#endif // _PX4_MSGS_MSG_OFFBOARDCONTROLMODE_PUBSUBTYPES_H_
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,626 @@
// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
/*!
* @file OnboardComputerStatus.h
* This header file contains the declaration of the described types in the IDL file.
*
* This file was generated by the tool gen.
*/
#ifndef _PX4_MSGS_MSG_ONBOARDCOMPUTERSTATUS_H_
#define _PX4_MSGS_MSG_ONBOARDCOMPUTERSTATUS_H_
// TODO Poner en el contexto.
#include <stdint.h>
#include <array>
#include <string>
#include <vector>
#include <map>
#include <bitset>
#if defined(_WIN32)
#if defined(EPROSIMA_USER_DLL_EXPORT)
#define eProsima_user_DllExport __declspec( dllexport )
#else
#define eProsima_user_DllExport
#endif
#else
#define eProsima_user_DllExport
#endif
#if defined(_WIN32)
#if defined(EPROSIMA_USER_DLL_EXPORT)
#if defined(OnboardComputerStatus_SOURCE)
#define OnboardComputerStatus_DllAPI __declspec( dllexport )
#else
#define OnboardComputerStatus_DllAPI __declspec( dllimport )
#endif // OnboardComputerStatus_SOURCE
#else
#define OnboardComputerStatus_DllAPI
#endif
#else
#define OnboardComputerStatus_DllAPI
#endif // _WIN32
namespace eprosima
{
namespace fastcdr
{
class Cdr;
}
}
namespace px4_msgs
{
namespace msg
{
typedef std::array<uint8_t, 8> uint8__8;
typedef std::array<uint8_t, 10> uint8__10;
typedef std::array<uint8_t, 4> uint8__4;
typedef std::array<int8_t, 8> int8__8;
typedef std::array<int16_t, 4> int16__4;
typedef std::array<uint32_t, 4> uint32__4;
typedef std::array<uint32_t, 6> uint32__6;
/*!
* @brief This class represents the structure OnboardComputerStatus defined by the user in the IDL file.
* @ingroup ONBOARDCOMPUTERSTATUS
*/
class OnboardComputerStatus
{
public:
/*!
* @brief Default constructor.
*/
eProsima_user_DllExport OnboardComputerStatus();
/*!
* @brief Default destructor.
*/
eProsima_user_DllExport ~OnboardComputerStatus();
/*!
* @brief Copy constructor.
* @param x Reference to the object px4_msgs::msg::OnboardComputerStatus that will be copied.
*/
eProsima_user_DllExport OnboardComputerStatus(const OnboardComputerStatus &x);
/*!
* @brief Move constructor.
* @param x Reference to the object px4_msgs::msg::OnboardComputerStatus that will be copied.
*/
eProsima_user_DllExport OnboardComputerStatus(OnboardComputerStatus &&x);
/*!
* @brief Copy assignment.
* @param x Reference to the object px4_msgs::msg::OnboardComputerStatus that will be copied.
*/
eProsima_user_DllExport OnboardComputerStatus& operator=(const OnboardComputerStatus &x);
/*!
* @brief Move assignment.
* @param x Reference to the object px4_msgs::msg::OnboardComputerStatus that will be copied.
*/
eProsima_user_DllExport OnboardComputerStatus& operator=(OnboardComputerStatus &&x);
/*!
* @brief This function sets a value in member timestamp
* @param _timestamp New value for member timestamp
*/
eProsima_user_DllExport void timestamp(uint64_t _timestamp);
/*!
* @brief This function returns the value of member timestamp
* @return Value of member timestamp
*/
eProsima_user_DllExport uint64_t timestamp() const;
/*!
* @brief This function returns a reference to member timestamp
* @return Reference to member timestamp
*/
eProsima_user_DllExport uint64_t& timestamp();
/*!
* @brief This function sets a value in member uptime
* @param _uptime New value for member uptime
*/
eProsima_user_DllExport void uptime(uint32_t _uptime);
/*!
* @brief This function returns the value of member uptime
* @return Value of member uptime
*/
eProsima_user_DllExport uint32_t uptime() const;
/*!
* @brief This function returns a reference to member uptime
* @return Reference to member uptime
*/
eProsima_user_DllExport uint32_t& uptime();
/*!
* @brief This function sets a value in member type
* @param _type New value for member type
*/
eProsima_user_DllExport void type(uint8_t _type);
/*!
* @brief This function returns the value of member type
* @return Value of member type
*/
eProsima_user_DllExport uint8_t type() const;
/*!
* @brief This function returns a reference to member type
* @return Reference to member type
*/
eProsima_user_DllExport uint8_t& type();
/*!
* @brief This function copies the value in member cpu_cores
* @param _cpu_cores New value to be copied in member cpu_cores
*/
eProsima_user_DllExport void cpu_cores(const px4_msgs::msg::uint8__8 &_cpu_cores);
/*!
* @brief This function moves the value in member cpu_cores
* @param _cpu_cores New value to be moved in member cpu_cores
*/
eProsima_user_DllExport void cpu_cores(px4_msgs::msg::uint8__8 &&_cpu_cores);
/*!
* @brief This function returns a constant reference to member cpu_cores
* @return Constant reference to member cpu_cores
*/
eProsima_user_DllExport const px4_msgs::msg::uint8__8& cpu_cores() const;
/*!
* @brief This function returns a reference to member cpu_cores
* @return Reference to member cpu_cores
*/
eProsima_user_DllExport px4_msgs::msg::uint8__8& cpu_cores();
/*!
* @brief This function copies the value in member cpu_combined
* @param _cpu_combined New value to be copied in member cpu_combined
*/
eProsima_user_DllExport void cpu_combined(const px4_msgs::msg::uint8__10 &_cpu_combined);
/*!
* @brief This function moves the value in member cpu_combined
* @param _cpu_combined New value to be moved in member cpu_combined
*/
eProsima_user_DllExport void cpu_combined(px4_msgs::msg::uint8__10 &&_cpu_combined);
/*!
* @brief This function returns a constant reference to member cpu_combined
* @return Constant reference to member cpu_combined
*/
eProsima_user_DllExport const px4_msgs::msg::uint8__10& cpu_combined() const;
/*!
* @brief This function returns a reference to member cpu_combined
* @return Reference to member cpu_combined
*/
eProsima_user_DllExport px4_msgs::msg::uint8__10& cpu_combined();
/*!
* @brief This function copies the value in member gpu_cores
* @param _gpu_cores New value to be copied in member gpu_cores
*/
eProsima_user_DllExport void gpu_cores(const px4_msgs::msg::uint8__4 &_gpu_cores);
/*!
* @brief This function moves the value in member gpu_cores
* @param _gpu_cores New value to be moved in member gpu_cores
*/
eProsima_user_DllExport void gpu_cores(px4_msgs::msg::uint8__4 &&_gpu_cores);
/*!
* @brief This function returns a constant reference to member gpu_cores
* @return Constant reference to member gpu_cores
*/
eProsima_user_DllExport const px4_msgs::msg::uint8__4& gpu_cores() const;
/*!
* @brief This function returns a reference to member gpu_cores
* @return Reference to member gpu_cores
*/
eProsima_user_DllExport px4_msgs::msg::uint8__4& gpu_cores();
/*!
* @brief This function copies the value in member gpu_combined
* @param _gpu_combined New value to be copied in member gpu_combined
*/
eProsima_user_DllExport void gpu_combined(const px4_msgs::msg::uint8__10 &_gpu_combined);
/*!
* @brief This function moves the value in member gpu_combined
* @param _gpu_combined New value to be moved in member gpu_combined
*/
eProsima_user_DllExport void gpu_combined(px4_msgs::msg::uint8__10 &&_gpu_combined);
/*!
* @brief This function returns a constant reference to member gpu_combined
* @return Constant reference to member gpu_combined
*/
eProsima_user_DllExport const px4_msgs::msg::uint8__10& gpu_combined() const;
/*!
* @brief This function returns a reference to member gpu_combined
* @return Reference to member gpu_combined
*/
eProsima_user_DllExport px4_msgs::msg::uint8__10& gpu_combined();
/*!
* @brief This function sets a value in member temperature_board
* @param _temperature_board New value for member temperature_board
*/
eProsima_user_DllExport void temperature_board(int8_t _temperature_board);
/*!
* @brief This function returns the value of member temperature_board
* @return Value of member temperature_board
*/
eProsima_user_DllExport int8_t temperature_board() const;
/*!
* @brief This function returns a reference to member temperature_board
* @return Reference to member temperature_board
*/
eProsima_user_DllExport int8_t& temperature_board();
/*!
* @brief This function copies the value in member temperature_core
* @param _temperature_core New value to be copied in member temperature_core
*/
eProsima_user_DllExport void temperature_core(const px4_msgs::msg::int8__8 &_temperature_core);
/*!
* @brief This function moves the value in member temperature_core
* @param _temperature_core New value to be moved in member temperature_core
*/
eProsima_user_DllExport void temperature_core(px4_msgs::msg::int8__8 &&_temperature_core);
/*!
* @brief This function returns a constant reference to member temperature_core
* @return Constant reference to member temperature_core
*/
eProsima_user_DllExport const px4_msgs::msg::int8__8& temperature_core() const;
/*!
* @brief This function returns a reference to member temperature_core
* @return Reference to member temperature_core
*/
eProsima_user_DllExport px4_msgs::msg::int8__8& temperature_core();
/*!
* @brief This function copies the value in member fan_speed
* @param _fan_speed New value to be copied in member fan_speed
*/
eProsima_user_DllExport void fan_speed(const px4_msgs::msg::int16__4 &_fan_speed);
/*!
* @brief This function moves the value in member fan_speed
* @param _fan_speed New value to be moved in member fan_speed
*/
eProsima_user_DllExport void fan_speed(px4_msgs::msg::int16__4 &&_fan_speed);
/*!
* @brief This function returns a constant reference to member fan_speed
* @return Constant reference to member fan_speed
*/
eProsima_user_DllExport const px4_msgs::msg::int16__4& fan_speed() const;
/*!
* @brief This function returns a reference to member fan_speed
* @return Reference to member fan_speed
*/
eProsima_user_DllExport px4_msgs::msg::int16__4& fan_speed();
/*!
* @brief This function sets a value in member ram_usage
* @param _ram_usage New value for member ram_usage
*/
eProsima_user_DllExport void ram_usage(uint32_t _ram_usage);
/*!
* @brief This function returns the value of member ram_usage
* @return Value of member ram_usage
*/
eProsima_user_DllExport uint32_t ram_usage() const;
/*!
* @brief This function returns a reference to member ram_usage
* @return Reference to member ram_usage
*/
eProsima_user_DllExport uint32_t& ram_usage();
/*!
* @brief This function sets a value in member ram_total
* @param _ram_total New value for member ram_total
*/
eProsima_user_DllExport void ram_total(uint32_t _ram_total);
/*!
* @brief This function returns the value of member ram_total
* @return Value of member ram_total
*/
eProsima_user_DllExport uint32_t ram_total() const;
/*!
* @brief This function returns a reference to member ram_total
* @return Reference to member ram_total
*/
eProsima_user_DllExport uint32_t& ram_total();
/*!
* @brief This function copies the value in member storage_type
* @param _storage_type New value to be copied in member storage_type
*/
eProsima_user_DllExport void storage_type(const px4_msgs::msg::uint32__4 &_storage_type);
/*!
* @brief This function moves the value in member storage_type
* @param _storage_type New value to be moved in member storage_type
*/
eProsima_user_DllExport void storage_type(px4_msgs::msg::uint32__4 &&_storage_type);
/*!
* @brief This function returns a constant reference to member storage_type
* @return Constant reference to member storage_type
*/
eProsima_user_DllExport const px4_msgs::msg::uint32__4& storage_type() const;
/*!
* @brief This function returns a reference to member storage_type
* @return Reference to member storage_type
*/
eProsima_user_DllExport px4_msgs::msg::uint32__4& storage_type();
/*!
* @brief This function copies the value in member storage_usage
* @param _storage_usage New value to be copied in member storage_usage
*/
eProsima_user_DllExport void storage_usage(const px4_msgs::msg::uint32__4 &_storage_usage);
/*!
* @brief This function moves the value in member storage_usage
* @param _storage_usage New value to be moved in member storage_usage
*/
eProsima_user_DllExport void storage_usage(px4_msgs::msg::uint32__4 &&_storage_usage);
/*!
* @brief This function returns a constant reference to member storage_usage
* @return Constant reference to member storage_usage
*/
eProsima_user_DllExport const px4_msgs::msg::uint32__4& storage_usage() const;
/*!
* @brief This function returns a reference to member storage_usage
* @return Reference to member storage_usage
*/
eProsima_user_DllExport px4_msgs::msg::uint32__4& storage_usage();
/*!
* @brief This function copies the value in member storage_total
* @param _storage_total New value to be copied in member storage_total
*/
eProsima_user_DllExport void storage_total(const px4_msgs::msg::uint32__4 &_storage_total);
/*!
* @brief This function moves the value in member storage_total
* @param _storage_total New value to be moved in member storage_total
*/
eProsima_user_DllExport void storage_total(px4_msgs::msg::uint32__4 &&_storage_total);
/*!
* @brief This function returns a constant reference to member storage_total
* @return Constant reference to member storage_total
*/
eProsima_user_DllExport const px4_msgs::msg::uint32__4& storage_total() const;
/*!
* @brief This function returns a reference to member storage_total
* @return Reference to member storage_total
*/
eProsima_user_DllExport px4_msgs::msg::uint32__4& storage_total();
/*!
* @brief This function copies the value in member link_type
* @param _link_type New value to be copied in member link_type
*/
eProsima_user_DllExport void link_type(const px4_msgs::msg::uint32__6 &_link_type);
/*!
* @brief This function moves the value in member link_type
* @param _link_type New value to be moved in member link_type
*/
eProsima_user_DllExport void link_type(px4_msgs::msg::uint32__6 &&_link_type);
/*!
* @brief This function returns a constant reference to member link_type
* @return Constant reference to member link_type
*/
eProsima_user_DllExport const px4_msgs::msg::uint32__6& link_type() const;
/*!
* @brief This function returns a reference to member link_type
* @return Reference to member link_type
*/
eProsima_user_DllExport px4_msgs::msg::uint32__6& link_type();
/*!
* @brief This function copies the value in member link_tx_rate
* @param _link_tx_rate New value to be copied in member link_tx_rate
*/
eProsima_user_DllExport void link_tx_rate(const px4_msgs::msg::uint32__6 &_link_tx_rate);
/*!
* @brief This function moves the value in member link_tx_rate
* @param _link_tx_rate New value to be moved in member link_tx_rate
*/
eProsima_user_DllExport void link_tx_rate(px4_msgs::msg::uint32__6 &&_link_tx_rate);
/*!
* @brief This function returns a constant reference to member link_tx_rate
* @return Constant reference to member link_tx_rate
*/
eProsima_user_DllExport const px4_msgs::msg::uint32__6& link_tx_rate() const;
/*!
* @brief This function returns a reference to member link_tx_rate
* @return Reference to member link_tx_rate
*/
eProsima_user_DllExport px4_msgs::msg::uint32__6& link_tx_rate();
/*!
* @brief This function copies the value in member link_rx_rate
* @param _link_rx_rate New value to be copied in member link_rx_rate
*/
eProsima_user_DllExport void link_rx_rate(const px4_msgs::msg::uint32__6 &_link_rx_rate);
/*!
* @brief This function moves the value in member link_rx_rate
* @param _link_rx_rate New value to be moved in member link_rx_rate
*/
eProsima_user_DllExport void link_rx_rate(px4_msgs::msg::uint32__6 &&_link_rx_rate);
/*!
* @brief This function returns a constant reference to member link_rx_rate
* @return Constant reference to member link_rx_rate
*/
eProsima_user_DllExport const px4_msgs::msg::uint32__6& link_rx_rate() const;
/*!
* @brief This function returns a reference to member link_rx_rate
* @return Reference to member link_rx_rate
*/
eProsima_user_DllExport px4_msgs::msg::uint32__6& link_rx_rate();
/*!
* @brief This function copies the value in member link_tx_max
* @param _link_tx_max New value to be copied in member link_tx_max
*/
eProsima_user_DllExport void link_tx_max(const px4_msgs::msg::uint32__6 &_link_tx_max);
/*!
* @brief This function moves the value in member link_tx_max
* @param _link_tx_max New value to be moved in member link_tx_max
*/
eProsima_user_DllExport void link_tx_max(px4_msgs::msg::uint32__6 &&_link_tx_max);
/*!
* @brief This function returns a constant reference to member link_tx_max
* @return Constant reference to member link_tx_max
*/
eProsima_user_DllExport const px4_msgs::msg::uint32__6& link_tx_max() const;
/*!
* @brief This function returns a reference to member link_tx_max
* @return Reference to member link_tx_max
*/
eProsima_user_DllExport px4_msgs::msg::uint32__6& link_tx_max();
/*!
* @brief This function copies the value in member link_rx_max
* @param _link_rx_max New value to be copied in member link_rx_max
*/
eProsima_user_DllExport void link_rx_max(const px4_msgs::msg::uint32__6 &_link_rx_max);
/*!
* @brief This function moves the value in member link_rx_max
* @param _link_rx_max New value to be moved in member link_rx_max
*/
eProsima_user_DllExport void link_rx_max(px4_msgs::msg::uint32__6 &&_link_rx_max);
/*!
* @brief This function returns a constant reference to member link_rx_max
* @return Constant reference to member link_rx_max
*/
eProsima_user_DllExport const px4_msgs::msg::uint32__6& link_rx_max() const;
/*!
* @brief This function returns a reference to member link_rx_max
* @return Reference to member link_rx_max
*/
eProsima_user_DllExport px4_msgs::msg::uint32__6& link_rx_max();
/*!
* @brief This function returns the maximum serialized size of an object
* depending on the buffer alignment.
* @param current_alignment Buffer alignment.
* @return Maximum serialized size.
*/
eProsima_user_DllExport static size_t getMaxCdrSerializedSize(size_t current_alignment = 0);
/*!
* @brief This function returns the serialized size of a data depending on the buffer alignment.
* @param data Data which is calculated its serialized size.
* @param current_alignment Buffer alignment.
* @return Serialized size.
*/
eProsima_user_DllExport static size_t getCdrSerializedSize(const px4_msgs::msg::OnboardComputerStatus& data, size_t current_alignment = 0);
/*!
* @brief This function serializes an object using CDR serialization.
* @param cdr CDR serialization object.
*/
eProsima_user_DllExport void serialize(eprosima::fastcdr::Cdr &cdr) const;
/*!
* @brief This function deserializes an object using CDR serialization.
* @param cdr CDR serialization object.
*/
eProsima_user_DllExport void deserialize(eprosima::fastcdr::Cdr &cdr);
/*!
* @brief This function returns the maximum serialized size of the Key of an object
* depending on the buffer alignment.
* @param current_alignment Buffer alignment.
* @return Maximum serialized size.
*/
eProsima_user_DllExport static size_t getKeyMaxCdrSerializedSize(size_t current_alignment = 0);
/*!
* @brief This function tells you if the Key has been defined for this type
*/
eProsima_user_DllExport static bool isKeyDefined();
/*!
* @brief This function serializes the key members of an object using CDR serialization.
* @param cdr CDR serialization object.
*/
eProsima_user_DllExport void serializeKey(eprosima::fastcdr::Cdr &cdr) const;
private:
uint64_t m_timestamp;
uint32_t m_uptime;
uint8_t m_type;
px4_msgs::msg::uint8__8 m_cpu_cores;
px4_msgs::msg::uint8__10 m_cpu_combined;
px4_msgs::msg::uint8__4 m_gpu_cores;
px4_msgs::msg::uint8__10 m_gpu_combined;
int8_t m_temperature_board;
px4_msgs::msg::int8__8 m_temperature_core;
px4_msgs::msg::int16__4 m_fan_speed;
uint32_t m_ram_usage;
uint32_t m_ram_total;
px4_msgs::msg::uint32__4 m_storage_type;
px4_msgs::msg::uint32__4 m_storage_usage;
px4_msgs::msg::uint32__4 m_storage_total;
px4_msgs::msg::uint32__6 m_link_type;
px4_msgs::msg::uint32__6 m_link_tx_rate;
px4_msgs::msg::uint32__6 m_link_rx_rate;
px4_msgs::msg::uint32__6 m_link_tx_max;
px4_msgs::msg::uint32__6 m_link_rx_max;
};
}
}
#endif // _PX4_MSGS_MSG_ONBOARDCOMPUTERSTATUS_H_
@@ -0,0 +1,148 @@
// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
/*!
* @file OnboardComputerStatusPubSubTypes.cpp
* This header file contains the implementation of the serialization functions.
*
* This file was generated by the tool fastcdrgen.
*/
#include <fastcdr/FastBuffer.h>
#include <fastcdr/Cdr.h>
#include "OnboardComputerStatusPubSubTypes.h"
using namespace eprosima::fastrtps;
using namespace eprosima::fastrtps::rtps;
namespace px4_msgs
{
namespace msg
{
OnboardComputerStatusPubSubType::OnboardComputerStatusPubSubType()
{
setName("px4_msgs::msg::OnboardComputerStatus");
m_typeSize = static_cast<uint32_t>(OnboardComputerStatus::getMaxCdrSerializedSize()) + 4 /*encapsulation*/;
m_isGetKeyDefined = OnboardComputerStatus::isKeyDefined();
size_t keyLength = OnboardComputerStatus::getKeyMaxCdrSerializedSize()>16 ? OnboardComputerStatus::getKeyMaxCdrSerializedSize() : 16;
m_keyBuffer = reinterpret_cast<unsigned char*>(malloc(keyLength));
memset(m_keyBuffer, 0, keyLength);
}
OnboardComputerStatusPubSubType::~OnboardComputerStatusPubSubType()
{
if(m_keyBuffer!=nullptr)
free(m_keyBuffer);
}
bool OnboardComputerStatusPubSubType::serialize(void *data, SerializedPayload_t *payload)
{
OnboardComputerStatus *p_type = static_cast<OnboardComputerStatus*>(data);
eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast<char*>(payload->data), payload->max_size); // Object that manages the raw buffer.
eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN,
eprosima::fastcdr::Cdr::DDS_CDR); // Object that serializes the data.
payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE;
// Serialize encapsulation
ser.serialize_encapsulation();
try
{
p_type->serialize(ser); // Serialize the object:
}
catch(eprosima::fastcdr::exception::NotEnoughMemoryException& /*exception*/)
{
return false;
}
payload->length = static_cast<uint32_t>(ser.getSerializedDataLength()); //Get the serialized length
return true;
}
bool OnboardComputerStatusPubSubType::deserialize(SerializedPayload_t* payload, void* data)
{
OnboardComputerStatus* p_type = static_cast<OnboardComputerStatus*>(data); //Convert DATA to pointer of your type
eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast<char*>(payload->data), payload->length); // Object that manages the raw buffer.
eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN,
eprosima::fastcdr::Cdr::DDS_CDR); // Object that deserializes the data.
// Deserialize encapsulation.
deser.read_encapsulation();
payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE;
try
{
p_type->deserialize(deser); //Deserialize the object:
}
catch(eprosima::fastcdr::exception::NotEnoughMemoryException& /*exception*/)
{
return false;
}
return true;
}
std::function<uint32_t()> OnboardComputerStatusPubSubType::getSerializedSizeProvider(void* data)
{
return [data]() -> uint32_t
{
return static_cast<uint32_t>(type::getCdrSerializedSize(*static_cast<OnboardComputerStatus*>(data))) + 4 /*encapsulation*/;
};
}
void* OnboardComputerStatusPubSubType::createData()
{
return reinterpret_cast<void*>(new OnboardComputerStatus());
}
void OnboardComputerStatusPubSubType::deleteData(void* data)
{
delete(reinterpret_cast<OnboardComputerStatus*>(data));
}
bool OnboardComputerStatusPubSubType::getKey(void *data, InstanceHandle_t* handle, bool force_md5)
{
if(!m_isGetKeyDefined)
return false;
OnboardComputerStatus* p_type = static_cast<OnboardComputerStatus*>(data);
eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast<char*>(m_keyBuffer),OnboardComputerStatus::getKeyMaxCdrSerializedSize()); // Object that manages the raw buffer.
eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS); // Object that serializes the data.
p_type->serializeKey(ser);
if(force_md5 || OnboardComputerStatus::getKeyMaxCdrSerializedSize()>16) {
m_md5.init();
m_md5.update(m_keyBuffer, static_cast<unsigned int>(ser.getSerializedDataLength()));
m_md5.finalize();
for(uint8_t i = 0;i<16;++i) {
handle->value[i] = m_md5.digest[i];
}
}
else {
for(uint8_t i = 0;i<16;++i) {
handle->value[i] = m_keyBuffer[i];
}
}
return true;
}
} //End of namespace msg
} //End of namespace px4_msgs
@@ -0,0 +1,70 @@
// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
/*!
* @file OnboardComputerStatusPubSubTypes.h
* This header file contains the declaration of the serialization functions.
*
* This file was generated by the tool fastcdrgen.
*/
#ifndef _PX4_MSGS_MSG_ONBOARDCOMPUTERSTATUS_PUBSUBTYPES_H_
#define _PX4_MSGS_MSG_ONBOARDCOMPUTERSTATUS_PUBSUBTYPES_H_
#include <fastrtps/config.h>
#include <fastrtps/TopicDataType.h>
#include "OnboardComputerStatus.h"
#if !defined(GEN_API_VER) || (GEN_API_VER != 1)
#error Generated OnboardComputerStatus is not compatible with current installed Fast-RTPS. Please, regenerate it with fastrtpsgen.
#endif
namespace px4_msgs
{
namespace msg
{
typedef std::array<uint8_t, 8> uint8__8;
typedef std::array<uint8_t, 10> uint8__10;
typedef std::array<uint8_t, 4> uint8__4;
typedef std::array<int8_t, 8> int8__8;
typedef std::array<int16_t, 4> int16__4;
typedef std::array<uint32_t, 4> uint32__4;
typedef std::array<uint32_t, 6> uint32__6;
/*!
* @brief This class represents the TopicDataType of the type OnboardComputerStatus defined by the user in the IDL file.
* @ingroup ONBOARDCOMPUTERSTATUS
*/
class OnboardComputerStatusPubSubType : public eprosima::fastrtps::TopicDataType {
public:
typedef OnboardComputerStatus type;
eProsima_user_DllExport OnboardComputerStatusPubSubType();
eProsima_user_DllExport virtual ~OnboardComputerStatusPubSubType();
eProsima_user_DllExport virtual bool serialize(void *data, eprosima::fastrtps::rtps::SerializedPayload_t *payload) override;
eProsima_user_DllExport virtual bool deserialize(eprosima::fastrtps::rtps::SerializedPayload_t *payload, void *data) override;
eProsima_user_DllExport virtual std::function<uint32_t()> getSerializedSizeProvider(void* data) override;
eProsima_user_DllExport virtual bool getKey(void *data, eprosima::fastrtps::rtps::InstanceHandle_t *ihandle,
bool force_md5 = false) override;
eProsima_user_DllExport virtual void* createData() override;
eProsima_user_DllExport virtual void deleteData(void * data) override;
MD5 m_md5;
unsigned char* m_keyBuffer;
};
}
}
#endif // _PX4_MSGS_MSG_ONBOARDCOMPUTERSTATUS_PUBSUBTYPES_H_
@@ -0,0 +1,868 @@
// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
/*!
* @file OpticalFlow.cpp
* This source file contains the definition of the described types in the IDL file.
*
* This file was generated by the tool gen.
*/
#ifdef _WIN32
// Remove linker warning LNK4221 on Visual Studio
namespace { char dummy; }
#endif
#include "OpticalFlow.h"
#include <fastcdr/Cdr.h>
#include <fastcdr/exceptions/BadParamException.h>
using namespace eprosima::fastcdr::exception;
#include <utility>
px4_msgs::msg::OpticalFlow::OpticalFlow()
{
// m_timestamp com.eprosima.idl.parser.typecode.PrimitiveTypeCode@2c78324b
m_timestamp = 0;
// m_sensor_id com.eprosima.idl.parser.typecode.PrimitiveTypeCode@79defdc
m_sensor_id = 0;
// m_pixel_flow_x_integral com.eprosima.idl.parser.typecode.PrimitiveTypeCode@18317edc
m_pixel_flow_x_integral = 0.0;
// m_pixel_flow_y_integral com.eprosima.idl.parser.typecode.PrimitiveTypeCode@4e0ae11f
m_pixel_flow_y_integral = 0.0;
// m_gyro_x_rate_integral com.eprosima.idl.parser.typecode.PrimitiveTypeCode@238d68ff
m_gyro_x_rate_integral = 0.0;
// m_gyro_y_rate_integral com.eprosima.idl.parser.typecode.PrimitiveTypeCode@4b86805d
m_gyro_y_rate_integral = 0.0;
// m_gyro_z_rate_integral com.eprosima.idl.parser.typecode.PrimitiveTypeCode@5852c06f
m_gyro_z_rate_integral = 0.0;
// m_ground_distance_m com.eprosima.idl.parser.typecode.PrimitiveTypeCode@4149c063
m_ground_distance_m = 0.0;
// m_integration_timespan com.eprosima.idl.parser.typecode.PrimitiveTypeCode@9cb8225
m_integration_timespan = 0;
// m_time_since_last_sonar_update com.eprosima.idl.parser.typecode.PrimitiveTypeCode@76b07f29
m_time_since_last_sonar_update = 0;
// m_frame_count_since_last_readout com.eprosima.idl.parser.typecode.PrimitiveTypeCode@38af9828
m_frame_count_since_last_readout = 0;
// m_gyro_temperature com.eprosima.idl.parser.typecode.PrimitiveTypeCode@376a0d86
m_gyro_temperature = 0;
// m_quality com.eprosima.idl.parser.typecode.PrimitiveTypeCode@62656be4
m_quality = 0;
// m_max_flow_rate com.eprosima.idl.parser.typecode.PrimitiveTypeCode@17d919b6
m_max_flow_rate = 0.0;
// m_min_ground_distance com.eprosima.idl.parser.typecode.PrimitiveTypeCode@53f3bdbd
m_min_ground_distance = 0.0;
// m_max_ground_distance com.eprosima.idl.parser.typecode.PrimitiveTypeCode@34129c78
m_max_ground_distance = 0.0;
// m_mode com.eprosima.idl.parser.typecode.PrimitiveTypeCode@7d61eb55
m_mode = 0;
}
px4_msgs::msg::OpticalFlow::~OpticalFlow()
{
}
px4_msgs::msg::OpticalFlow::OpticalFlow(const OpticalFlow &x)
{
m_timestamp = x.m_timestamp;
m_sensor_id = x.m_sensor_id;
m_pixel_flow_x_integral = x.m_pixel_flow_x_integral;
m_pixel_flow_y_integral = x.m_pixel_flow_y_integral;
m_gyro_x_rate_integral = x.m_gyro_x_rate_integral;
m_gyro_y_rate_integral = x.m_gyro_y_rate_integral;
m_gyro_z_rate_integral = x.m_gyro_z_rate_integral;
m_ground_distance_m = x.m_ground_distance_m;
m_integration_timespan = x.m_integration_timespan;
m_time_since_last_sonar_update = x.m_time_since_last_sonar_update;
m_frame_count_since_last_readout = x.m_frame_count_since_last_readout;
m_gyro_temperature = x.m_gyro_temperature;
m_quality = x.m_quality;
m_max_flow_rate = x.m_max_flow_rate;
m_min_ground_distance = x.m_min_ground_distance;
m_max_ground_distance = x.m_max_ground_distance;
m_mode = x.m_mode;
}
px4_msgs::msg::OpticalFlow::OpticalFlow(OpticalFlow &&x)
{
m_timestamp = x.m_timestamp;
m_sensor_id = x.m_sensor_id;
m_pixel_flow_x_integral = x.m_pixel_flow_x_integral;
m_pixel_flow_y_integral = x.m_pixel_flow_y_integral;
m_gyro_x_rate_integral = x.m_gyro_x_rate_integral;
m_gyro_y_rate_integral = x.m_gyro_y_rate_integral;
m_gyro_z_rate_integral = x.m_gyro_z_rate_integral;
m_ground_distance_m = x.m_ground_distance_m;
m_integration_timespan = x.m_integration_timespan;
m_time_since_last_sonar_update = x.m_time_since_last_sonar_update;
m_frame_count_since_last_readout = x.m_frame_count_since_last_readout;
m_gyro_temperature = x.m_gyro_temperature;
m_quality = x.m_quality;
m_max_flow_rate = x.m_max_flow_rate;
m_min_ground_distance = x.m_min_ground_distance;
m_max_ground_distance = x.m_max_ground_distance;
m_mode = x.m_mode;
}
px4_msgs::msg::OpticalFlow& px4_msgs::msg::OpticalFlow::operator=(const OpticalFlow &x)
{
m_timestamp = x.m_timestamp;
m_sensor_id = x.m_sensor_id;
m_pixel_flow_x_integral = x.m_pixel_flow_x_integral;
m_pixel_flow_y_integral = x.m_pixel_flow_y_integral;
m_gyro_x_rate_integral = x.m_gyro_x_rate_integral;
m_gyro_y_rate_integral = x.m_gyro_y_rate_integral;
m_gyro_z_rate_integral = x.m_gyro_z_rate_integral;
m_ground_distance_m = x.m_ground_distance_m;
m_integration_timespan = x.m_integration_timespan;
m_time_since_last_sonar_update = x.m_time_since_last_sonar_update;
m_frame_count_since_last_readout = x.m_frame_count_since_last_readout;
m_gyro_temperature = x.m_gyro_temperature;
m_quality = x.m_quality;
m_max_flow_rate = x.m_max_flow_rate;
m_min_ground_distance = x.m_min_ground_distance;
m_max_ground_distance = x.m_max_ground_distance;
m_mode = x.m_mode;
return *this;
}
px4_msgs::msg::OpticalFlow& px4_msgs::msg::OpticalFlow::operator=(OpticalFlow &&x)
{
m_timestamp = x.m_timestamp;
m_sensor_id = x.m_sensor_id;
m_pixel_flow_x_integral = x.m_pixel_flow_x_integral;
m_pixel_flow_y_integral = x.m_pixel_flow_y_integral;
m_gyro_x_rate_integral = x.m_gyro_x_rate_integral;
m_gyro_y_rate_integral = x.m_gyro_y_rate_integral;
m_gyro_z_rate_integral = x.m_gyro_z_rate_integral;
m_ground_distance_m = x.m_ground_distance_m;
m_integration_timespan = x.m_integration_timespan;
m_time_since_last_sonar_update = x.m_time_since_last_sonar_update;
m_frame_count_since_last_readout = x.m_frame_count_since_last_readout;
m_gyro_temperature = x.m_gyro_temperature;
m_quality = x.m_quality;
m_max_flow_rate = x.m_max_flow_rate;
m_min_ground_distance = x.m_min_ground_distance;
m_max_ground_distance = x.m_max_ground_distance;
m_mode = x.m_mode;
return *this;
}
size_t px4_msgs::msg::OpticalFlow::getMaxCdrSerializedSize(size_t current_alignment)
{
size_t initial_alignment = current_alignment;
current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8);
current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 2 + eprosima::fastcdr::Cdr::alignment(current_alignment, 2);
current_alignment += 2 + eprosima::fastcdr::Cdr::alignment(current_alignment, 2);
current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1);
return current_alignment - initial_alignment;
}
size_t px4_msgs::msg::OpticalFlow::getCdrSerializedSize(const px4_msgs::msg::OpticalFlow& data, size_t current_alignment)
{
(void)data;
size_t initial_alignment = current_alignment;
current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8);
current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 2 + eprosima::fastcdr::Cdr::alignment(current_alignment, 2);
current_alignment += 2 + eprosima::fastcdr::Cdr::alignment(current_alignment, 2);
current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1);
return current_alignment - initial_alignment;
}
void px4_msgs::msg::OpticalFlow::serialize(eprosima::fastcdr::Cdr &scdr) const
{
scdr << m_timestamp;
scdr << m_sensor_id;
scdr << m_pixel_flow_x_integral;
scdr << m_pixel_flow_y_integral;
scdr << m_gyro_x_rate_integral;
scdr << m_gyro_y_rate_integral;
scdr << m_gyro_z_rate_integral;
scdr << m_ground_distance_m;
scdr << m_integration_timespan;
scdr << m_time_since_last_sonar_update;
scdr << m_frame_count_since_last_readout;
scdr << m_gyro_temperature;
scdr << m_quality;
scdr << m_max_flow_rate;
scdr << m_min_ground_distance;
scdr << m_max_ground_distance;
scdr << m_mode;
}
void px4_msgs::msg::OpticalFlow::deserialize(eprosima::fastcdr::Cdr &dcdr)
{
dcdr >> m_timestamp;
dcdr >> m_sensor_id;
dcdr >> m_pixel_flow_x_integral;
dcdr >> m_pixel_flow_y_integral;
dcdr >> m_gyro_x_rate_integral;
dcdr >> m_gyro_y_rate_integral;
dcdr >> m_gyro_z_rate_integral;
dcdr >> m_ground_distance_m;
dcdr >> m_integration_timespan;
dcdr >> m_time_since_last_sonar_update;
dcdr >> m_frame_count_since_last_readout;
dcdr >> m_gyro_temperature;
dcdr >> m_quality;
dcdr >> m_max_flow_rate;
dcdr >> m_min_ground_distance;
dcdr >> m_max_ground_distance;
dcdr >> m_mode;
}
/*!
* @brief This function sets a value in member timestamp
* @param _timestamp New value for member timestamp
*/
void px4_msgs::msg::OpticalFlow::timestamp(uint64_t _timestamp)
{
m_timestamp = _timestamp;
}
/*!
* @brief This function returns the value of member timestamp
* @return Value of member timestamp
*/
uint64_t px4_msgs::msg::OpticalFlow::timestamp() const
{
return m_timestamp;
}
/*!
* @brief This function returns a reference to member timestamp
* @return Reference to member timestamp
*/
uint64_t& px4_msgs::msg::OpticalFlow::timestamp()
{
return m_timestamp;
}
/*!
* @brief This function sets a value in member sensor_id
* @param _sensor_id New value for member sensor_id
*/
void px4_msgs::msg::OpticalFlow::sensor_id(uint8_t _sensor_id)
{
m_sensor_id = _sensor_id;
}
/*!
* @brief This function returns the value of member sensor_id
* @return Value of member sensor_id
*/
uint8_t px4_msgs::msg::OpticalFlow::sensor_id() const
{
return m_sensor_id;
}
/*!
* @brief This function returns a reference to member sensor_id
* @return Reference to member sensor_id
*/
uint8_t& px4_msgs::msg::OpticalFlow::sensor_id()
{
return m_sensor_id;
}
/*!
* @brief This function sets a value in member pixel_flow_x_integral
* @param _pixel_flow_x_integral New value for member pixel_flow_x_integral
*/
void px4_msgs::msg::OpticalFlow::pixel_flow_x_integral(float _pixel_flow_x_integral)
{
m_pixel_flow_x_integral = _pixel_flow_x_integral;
}
/*!
* @brief This function returns the value of member pixel_flow_x_integral
* @return Value of member pixel_flow_x_integral
*/
float px4_msgs::msg::OpticalFlow::pixel_flow_x_integral() const
{
return m_pixel_flow_x_integral;
}
/*!
* @brief This function returns a reference to member pixel_flow_x_integral
* @return Reference to member pixel_flow_x_integral
*/
float& px4_msgs::msg::OpticalFlow::pixel_flow_x_integral()
{
return m_pixel_flow_x_integral;
}
/*!
* @brief This function sets a value in member pixel_flow_y_integral
* @param _pixel_flow_y_integral New value for member pixel_flow_y_integral
*/
void px4_msgs::msg::OpticalFlow::pixel_flow_y_integral(float _pixel_flow_y_integral)
{
m_pixel_flow_y_integral = _pixel_flow_y_integral;
}
/*!
* @brief This function returns the value of member pixel_flow_y_integral
* @return Value of member pixel_flow_y_integral
*/
float px4_msgs::msg::OpticalFlow::pixel_flow_y_integral() const
{
return m_pixel_flow_y_integral;
}
/*!
* @brief This function returns a reference to member pixel_flow_y_integral
* @return Reference to member pixel_flow_y_integral
*/
float& px4_msgs::msg::OpticalFlow::pixel_flow_y_integral()
{
return m_pixel_flow_y_integral;
}
/*!
* @brief This function sets a value in member gyro_x_rate_integral
* @param _gyro_x_rate_integral New value for member gyro_x_rate_integral
*/
void px4_msgs::msg::OpticalFlow::gyro_x_rate_integral(float _gyro_x_rate_integral)
{
m_gyro_x_rate_integral = _gyro_x_rate_integral;
}
/*!
* @brief This function returns the value of member gyro_x_rate_integral
* @return Value of member gyro_x_rate_integral
*/
float px4_msgs::msg::OpticalFlow::gyro_x_rate_integral() const
{
return m_gyro_x_rate_integral;
}
/*!
* @brief This function returns a reference to member gyro_x_rate_integral
* @return Reference to member gyro_x_rate_integral
*/
float& px4_msgs::msg::OpticalFlow::gyro_x_rate_integral()
{
return m_gyro_x_rate_integral;
}
/*!
* @brief This function sets a value in member gyro_y_rate_integral
* @param _gyro_y_rate_integral New value for member gyro_y_rate_integral
*/
void px4_msgs::msg::OpticalFlow::gyro_y_rate_integral(float _gyro_y_rate_integral)
{
m_gyro_y_rate_integral = _gyro_y_rate_integral;
}
/*!
* @brief This function returns the value of member gyro_y_rate_integral
* @return Value of member gyro_y_rate_integral
*/
float px4_msgs::msg::OpticalFlow::gyro_y_rate_integral() const
{
return m_gyro_y_rate_integral;
}
/*!
* @brief This function returns a reference to member gyro_y_rate_integral
* @return Reference to member gyro_y_rate_integral
*/
float& px4_msgs::msg::OpticalFlow::gyro_y_rate_integral()
{
return m_gyro_y_rate_integral;
}
/*!
* @brief This function sets a value in member gyro_z_rate_integral
* @param _gyro_z_rate_integral New value for member gyro_z_rate_integral
*/
void px4_msgs::msg::OpticalFlow::gyro_z_rate_integral(float _gyro_z_rate_integral)
{
m_gyro_z_rate_integral = _gyro_z_rate_integral;
}
/*!
* @brief This function returns the value of member gyro_z_rate_integral
* @return Value of member gyro_z_rate_integral
*/
float px4_msgs::msg::OpticalFlow::gyro_z_rate_integral() const
{
return m_gyro_z_rate_integral;
}
/*!
* @brief This function returns a reference to member gyro_z_rate_integral
* @return Reference to member gyro_z_rate_integral
*/
float& px4_msgs::msg::OpticalFlow::gyro_z_rate_integral()
{
return m_gyro_z_rate_integral;
}
/*!
* @brief This function sets a value in member ground_distance_m
* @param _ground_distance_m New value for member ground_distance_m
*/
void px4_msgs::msg::OpticalFlow::ground_distance_m(float _ground_distance_m)
{
m_ground_distance_m = _ground_distance_m;
}
/*!
* @brief This function returns the value of member ground_distance_m
* @return Value of member ground_distance_m
*/
float px4_msgs::msg::OpticalFlow::ground_distance_m() const
{
return m_ground_distance_m;
}
/*!
* @brief This function returns a reference to member ground_distance_m
* @return Reference to member ground_distance_m
*/
float& px4_msgs::msg::OpticalFlow::ground_distance_m()
{
return m_ground_distance_m;
}
/*!
* @brief This function sets a value in member integration_timespan
* @param _integration_timespan New value for member integration_timespan
*/
void px4_msgs::msg::OpticalFlow::integration_timespan(uint32_t _integration_timespan)
{
m_integration_timespan = _integration_timespan;
}
/*!
* @brief This function returns the value of member integration_timespan
* @return Value of member integration_timespan
*/
uint32_t px4_msgs::msg::OpticalFlow::integration_timespan() const
{
return m_integration_timespan;
}
/*!
* @brief This function returns a reference to member integration_timespan
* @return Reference to member integration_timespan
*/
uint32_t& px4_msgs::msg::OpticalFlow::integration_timespan()
{
return m_integration_timespan;
}
/*!
* @brief This function sets a value in member time_since_last_sonar_update
* @param _time_since_last_sonar_update New value for member time_since_last_sonar_update
*/
void px4_msgs::msg::OpticalFlow::time_since_last_sonar_update(uint32_t _time_since_last_sonar_update)
{
m_time_since_last_sonar_update = _time_since_last_sonar_update;
}
/*!
* @brief This function returns the value of member time_since_last_sonar_update
* @return Value of member time_since_last_sonar_update
*/
uint32_t px4_msgs::msg::OpticalFlow::time_since_last_sonar_update() const
{
return m_time_since_last_sonar_update;
}
/*!
* @brief This function returns a reference to member time_since_last_sonar_update
* @return Reference to member time_since_last_sonar_update
*/
uint32_t& px4_msgs::msg::OpticalFlow::time_since_last_sonar_update()
{
return m_time_since_last_sonar_update;
}
/*!
* @brief This function sets a value in member frame_count_since_last_readout
* @param _frame_count_since_last_readout New value for member frame_count_since_last_readout
*/
void px4_msgs::msg::OpticalFlow::frame_count_since_last_readout(uint16_t _frame_count_since_last_readout)
{
m_frame_count_since_last_readout = _frame_count_since_last_readout;
}
/*!
* @brief This function returns the value of member frame_count_since_last_readout
* @return Value of member frame_count_since_last_readout
*/
uint16_t px4_msgs::msg::OpticalFlow::frame_count_since_last_readout() const
{
return m_frame_count_since_last_readout;
}
/*!
* @brief This function returns a reference to member frame_count_since_last_readout
* @return Reference to member frame_count_since_last_readout
*/
uint16_t& px4_msgs::msg::OpticalFlow::frame_count_since_last_readout()
{
return m_frame_count_since_last_readout;
}
/*!
* @brief This function sets a value in member gyro_temperature
* @param _gyro_temperature New value for member gyro_temperature
*/
void px4_msgs::msg::OpticalFlow::gyro_temperature(int16_t _gyro_temperature)
{
m_gyro_temperature = _gyro_temperature;
}
/*!
* @brief This function returns the value of member gyro_temperature
* @return Value of member gyro_temperature
*/
int16_t px4_msgs::msg::OpticalFlow::gyro_temperature() const
{
return m_gyro_temperature;
}
/*!
* @brief This function returns a reference to member gyro_temperature
* @return Reference to member gyro_temperature
*/
int16_t& px4_msgs::msg::OpticalFlow::gyro_temperature()
{
return m_gyro_temperature;
}
/*!
* @brief This function sets a value in member quality
* @param _quality New value for member quality
*/
void px4_msgs::msg::OpticalFlow::quality(uint8_t _quality)
{
m_quality = _quality;
}
/*!
* @brief This function returns the value of member quality
* @return Value of member quality
*/
uint8_t px4_msgs::msg::OpticalFlow::quality() const
{
return m_quality;
}
/*!
* @brief This function returns a reference to member quality
* @return Reference to member quality
*/
uint8_t& px4_msgs::msg::OpticalFlow::quality()
{
return m_quality;
}
/*!
* @brief This function sets a value in member max_flow_rate
* @param _max_flow_rate New value for member max_flow_rate
*/
void px4_msgs::msg::OpticalFlow::max_flow_rate(float _max_flow_rate)
{
m_max_flow_rate = _max_flow_rate;
}
/*!
* @brief This function returns the value of member max_flow_rate
* @return Value of member max_flow_rate
*/
float px4_msgs::msg::OpticalFlow::max_flow_rate() const
{
return m_max_flow_rate;
}
/*!
* @brief This function returns a reference to member max_flow_rate
* @return Reference to member max_flow_rate
*/
float& px4_msgs::msg::OpticalFlow::max_flow_rate()
{
return m_max_flow_rate;
}
/*!
* @brief This function sets a value in member min_ground_distance
* @param _min_ground_distance New value for member min_ground_distance
*/
void px4_msgs::msg::OpticalFlow::min_ground_distance(float _min_ground_distance)
{
m_min_ground_distance = _min_ground_distance;
}
/*!
* @brief This function returns the value of member min_ground_distance
* @return Value of member min_ground_distance
*/
float px4_msgs::msg::OpticalFlow::min_ground_distance() const
{
return m_min_ground_distance;
}
/*!
* @brief This function returns a reference to member min_ground_distance
* @return Reference to member min_ground_distance
*/
float& px4_msgs::msg::OpticalFlow::min_ground_distance()
{
return m_min_ground_distance;
}
/*!
* @brief This function sets a value in member max_ground_distance
* @param _max_ground_distance New value for member max_ground_distance
*/
void px4_msgs::msg::OpticalFlow::max_ground_distance(float _max_ground_distance)
{
m_max_ground_distance = _max_ground_distance;
}
/*!
* @brief This function returns the value of member max_ground_distance
* @return Value of member max_ground_distance
*/
float px4_msgs::msg::OpticalFlow::max_ground_distance() const
{
return m_max_ground_distance;
}
/*!
* @brief This function returns a reference to member max_ground_distance
* @return Reference to member max_ground_distance
*/
float& px4_msgs::msg::OpticalFlow::max_ground_distance()
{
return m_max_ground_distance;
}
/*!
* @brief This function sets a value in member mode
* @param _mode New value for member mode
*/
void px4_msgs::msg::OpticalFlow::mode(uint8_t _mode)
{
m_mode = _mode;
}
/*!
* @brief This function returns the value of member mode
* @return Value of member mode
*/
uint8_t px4_msgs::msg::OpticalFlow::mode() const
{
return m_mode;
}
/*!
* @brief This function returns a reference to member mode
* @return Reference to member mode
*/
uint8_t& px4_msgs::msg::OpticalFlow::mode()
{
return m_mode;
}
size_t px4_msgs::msg::OpticalFlow::getKeyMaxCdrSerializedSize(size_t current_alignment)
{
size_t current_align = current_alignment;
return current_align;
}
bool px4_msgs::msg::OpticalFlow::isKeyDefined()
{
return false;
}
void px4_msgs::msg::OpticalFlow::serializeKey(eprosima::fastcdr::Cdr &scdr) const
{
(void) scdr;
}
@@ -0,0 +1,499 @@
// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
/*!
* @file OpticalFlow.h
* This header file contains the declaration of the described types in the IDL file.
*
* This file was generated by the tool gen.
*/
#ifndef _PX4_MSGS_MSG_OPTICALFLOW_H_
#define _PX4_MSGS_MSG_OPTICALFLOW_H_
// TODO Poner en el contexto.
#include <stdint.h>
#include <array>
#include <string>
#include <vector>
#include <map>
#include <bitset>
#if defined(_WIN32)
#if defined(EPROSIMA_USER_DLL_EXPORT)
#define eProsima_user_DllExport __declspec( dllexport )
#else
#define eProsima_user_DllExport
#endif
#else
#define eProsima_user_DllExport
#endif
#if defined(_WIN32)
#if defined(EPROSIMA_USER_DLL_EXPORT)
#if defined(OpticalFlow_SOURCE)
#define OpticalFlow_DllAPI __declspec( dllexport )
#else
#define OpticalFlow_DllAPI __declspec( dllimport )
#endif // OpticalFlow_SOURCE
#else
#define OpticalFlow_DllAPI
#endif
#else
#define OpticalFlow_DllAPI
#endif // _WIN32
namespace eprosima
{
namespace fastcdr
{
class Cdr;
}
}
namespace px4_msgs
{
namespace msg
{
namespace OpticalFlow_Constants
{
const uint8_t MODE_UNKNOWN = 0;
const uint8_t MODE_BRIGHT = 1;
const uint8_t MODE_LOWLIGHT = 2;
const uint8_t MODE_SUPER_LOWLIGHT = 3;
}
/*!
* @brief This class represents the structure OpticalFlow defined by the user in the IDL file.
* @ingroup OPTICALFLOW
*/
class OpticalFlow
{
public:
/*!
* @brief Default constructor.
*/
eProsima_user_DllExport OpticalFlow();
/*!
* @brief Default destructor.
*/
eProsima_user_DllExport ~OpticalFlow();
/*!
* @brief Copy constructor.
* @param x Reference to the object px4_msgs::msg::OpticalFlow that will be copied.
*/
eProsima_user_DllExport OpticalFlow(const OpticalFlow &x);
/*!
* @brief Move constructor.
* @param x Reference to the object px4_msgs::msg::OpticalFlow that will be copied.
*/
eProsima_user_DllExport OpticalFlow(OpticalFlow &&x);
/*!
* @brief Copy assignment.
* @param x Reference to the object px4_msgs::msg::OpticalFlow that will be copied.
*/
eProsima_user_DllExport OpticalFlow& operator=(const OpticalFlow &x);
/*!
* @brief Move assignment.
* @param x Reference to the object px4_msgs::msg::OpticalFlow that will be copied.
*/
eProsima_user_DllExport OpticalFlow& operator=(OpticalFlow &&x);
/*!
* @brief This function sets a value in member timestamp
* @param _timestamp New value for member timestamp
*/
eProsima_user_DllExport void timestamp(uint64_t _timestamp);
/*!
* @brief This function returns the value of member timestamp
* @return Value of member timestamp
*/
eProsima_user_DllExport uint64_t timestamp() const;
/*!
* @brief This function returns a reference to member timestamp
* @return Reference to member timestamp
*/
eProsima_user_DllExport uint64_t& timestamp();
/*!
* @brief This function sets a value in member sensor_id
* @param _sensor_id New value for member sensor_id
*/
eProsima_user_DllExport void sensor_id(uint8_t _sensor_id);
/*!
* @brief This function returns the value of member sensor_id
* @return Value of member sensor_id
*/
eProsima_user_DllExport uint8_t sensor_id() const;
/*!
* @brief This function returns a reference to member sensor_id
* @return Reference to member sensor_id
*/
eProsima_user_DllExport uint8_t& sensor_id();
/*!
* @brief This function sets a value in member pixel_flow_x_integral
* @param _pixel_flow_x_integral New value for member pixel_flow_x_integral
*/
eProsima_user_DllExport void pixel_flow_x_integral(float _pixel_flow_x_integral);
/*!
* @brief This function returns the value of member pixel_flow_x_integral
* @return Value of member pixel_flow_x_integral
*/
eProsima_user_DllExport float pixel_flow_x_integral() const;
/*!
* @brief This function returns a reference to member pixel_flow_x_integral
* @return Reference to member pixel_flow_x_integral
*/
eProsima_user_DllExport float& pixel_flow_x_integral();
/*!
* @brief This function sets a value in member pixel_flow_y_integral
* @param _pixel_flow_y_integral New value for member pixel_flow_y_integral
*/
eProsima_user_DllExport void pixel_flow_y_integral(float _pixel_flow_y_integral);
/*!
* @brief This function returns the value of member pixel_flow_y_integral
* @return Value of member pixel_flow_y_integral
*/
eProsima_user_DllExport float pixel_flow_y_integral() const;
/*!
* @brief This function returns a reference to member pixel_flow_y_integral
* @return Reference to member pixel_flow_y_integral
*/
eProsima_user_DllExport float& pixel_flow_y_integral();
/*!
* @brief This function sets a value in member gyro_x_rate_integral
* @param _gyro_x_rate_integral New value for member gyro_x_rate_integral
*/
eProsima_user_DllExport void gyro_x_rate_integral(float _gyro_x_rate_integral);
/*!
* @brief This function returns the value of member gyro_x_rate_integral
* @return Value of member gyro_x_rate_integral
*/
eProsima_user_DllExport float gyro_x_rate_integral() const;
/*!
* @brief This function returns a reference to member gyro_x_rate_integral
* @return Reference to member gyro_x_rate_integral
*/
eProsima_user_DllExport float& gyro_x_rate_integral();
/*!
* @brief This function sets a value in member gyro_y_rate_integral
* @param _gyro_y_rate_integral New value for member gyro_y_rate_integral
*/
eProsima_user_DllExport void gyro_y_rate_integral(float _gyro_y_rate_integral);
/*!
* @brief This function returns the value of member gyro_y_rate_integral
* @return Value of member gyro_y_rate_integral
*/
eProsima_user_DllExport float gyro_y_rate_integral() const;
/*!
* @brief This function returns a reference to member gyro_y_rate_integral
* @return Reference to member gyro_y_rate_integral
*/
eProsima_user_DllExport float& gyro_y_rate_integral();
/*!
* @brief This function sets a value in member gyro_z_rate_integral
* @param _gyro_z_rate_integral New value for member gyro_z_rate_integral
*/
eProsima_user_DllExport void gyro_z_rate_integral(float _gyro_z_rate_integral);
/*!
* @brief This function returns the value of member gyro_z_rate_integral
* @return Value of member gyro_z_rate_integral
*/
eProsima_user_DllExport float gyro_z_rate_integral() const;
/*!
* @brief This function returns a reference to member gyro_z_rate_integral
* @return Reference to member gyro_z_rate_integral
*/
eProsima_user_DllExport float& gyro_z_rate_integral();
/*!
* @brief This function sets a value in member ground_distance_m
* @param _ground_distance_m New value for member ground_distance_m
*/
eProsima_user_DllExport void ground_distance_m(float _ground_distance_m);
/*!
* @brief This function returns the value of member ground_distance_m
* @return Value of member ground_distance_m
*/
eProsima_user_DllExport float ground_distance_m() const;
/*!
* @brief This function returns a reference to member ground_distance_m
* @return Reference to member ground_distance_m
*/
eProsima_user_DllExport float& ground_distance_m();
/*!
* @brief This function sets a value in member integration_timespan
* @param _integration_timespan New value for member integration_timespan
*/
eProsima_user_DllExport void integration_timespan(uint32_t _integration_timespan);
/*!
* @brief This function returns the value of member integration_timespan
* @return Value of member integration_timespan
*/
eProsima_user_DllExport uint32_t integration_timespan() const;
/*!
* @brief This function returns a reference to member integration_timespan
* @return Reference to member integration_timespan
*/
eProsima_user_DllExport uint32_t& integration_timespan();
/*!
* @brief This function sets a value in member time_since_last_sonar_update
* @param _time_since_last_sonar_update New value for member time_since_last_sonar_update
*/
eProsima_user_DllExport void time_since_last_sonar_update(uint32_t _time_since_last_sonar_update);
/*!
* @brief This function returns the value of member time_since_last_sonar_update
* @return Value of member time_since_last_sonar_update
*/
eProsima_user_DllExport uint32_t time_since_last_sonar_update() const;
/*!
* @brief This function returns a reference to member time_since_last_sonar_update
* @return Reference to member time_since_last_sonar_update
*/
eProsima_user_DllExport uint32_t& time_since_last_sonar_update();
/*!
* @brief This function sets a value in member frame_count_since_last_readout
* @param _frame_count_since_last_readout New value for member frame_count_since_last_readout
*/
eProsima_user_DllExport void frame_count_since_last_readout(uint16_t _frame_count_since_last_readout);
/*!
* @brief This function returns the value of member frame_count_since_last_readout
* @return Value of member frame_count_since_last_readout
*/
eProsima_user_DllExport uint16_t frame_count_since_last_readout() const;
/*!
* @brief This function returns a reference to member frame_count_since_last_readout
* @return Reference to member frame_count_since_last_readout
*/
eProsima_user_DllExport uint16_t& frame_count_since_last_readout();
/*!
* @brief This function sets a value in member gyro_temperature
* @param _gyro_temperature New value for member gyro_temperature
*/
eProsima_user_DllExport void gyro_temperature(int16_t _gyro_temperature);
/*!
* @brief This function returns the value of member gyro_temperature
* @return Value of member gyro_temperature
*/
eProsima_user_DllExport int16_t gyro_temperature() const;
/*!
* @brief This function returns a reference to member gyro_temperature
* @return Reference to member gyro_temperature
*/
eProsima_user_DllExport int16_t& gyro_temperature();
/*!
* @brief This function sets a value in member quality
* @param _quality New value for member quality
*/
eProsima_user_DllExport void quality(uint8_t _quality);
/*!
* @brief This function returns the value of member quality
* @return Value of member quality
*/
eProsima_user_DllExport uint8_t quality() const;
/*!
* @brief This function returns a reference to member quality
* @return Reference to member quality
*/
eProsima_user_DllExport uint8_t& quality();
/*!
* @brief This function sets a value in member max_flow_rate
* @param _max_flow_rate New value for member max_flow_rate
*/
eProsima_user_DllExport void max_flow_rate(float _max_flow_rate);
/*!
* @brief This function returns the value of member max_flow_rate
* @return Value of member max_flow_rate
*/
eProsima_user_DllExport float max_flow_rate() const;
/*!
* @brief This function returns a reference to member max_flow_rate
* @return Reference to member max_flow_rate
*/
eProsima_user_DllExport float& max_flow_rate();
/*!
* @brief This function sets a value in member min_ground_distance
* @param _min_ground_distance New value for member min_ground_distance
*/
eProsima_user_DllExport void min_ground_distance(float _min_ground_distance);
/*!
* @brief This function returns the value of member min_ground_distance
* @return Value of member min_ground_distance
*/
eProsima_user_DllExport float min_ground_distance() const;
/*!
* @brief This function returns a reference to member min_ground_distance
* @return Reference to member min_ground_distance
*/
eProsima_user_DllExport float& min_ground_distance();
/*!
* @brief This function sets a value in member max_ground_distance
* @param _max_ground_distance New value for member max_ground_distance
*/
eProsima_user_DllExport void max_ground_distance(float _max_ground_distance);
/*!
* @brief This function returns the value of member max_ground_distance
* @return Value of member max_ground_distance
*/
eProsima_user_DllExport float max_ground_distance() const;
/*!
* @brief This function returns a reference to member max_ground_distance
* @return Reference to member max_ground_distance
*/
eProsima_user_DllExport float& max_ground_distance();
/*!
* @brief This function sets a value in member mode
* @param _mode New value for member mode
*/
eProsima_user_DllExport void mode(uint8_t _mode);
/*!
* @brief This function returns the value of member mode
* @return Value of member mode
*/
eProsima_user_DllExport uint8_t mode() const;
/*!
* @brief This function returns a reference to member mode
* @return Reference to member mode
*/
eProsima_user_DllExport uint8_t& mode();
/*!
* @brief This function returns the maximum serialized size of an object
* depending on the buffer alignment.
* @param current_alignment Buffer alignment.
* @return Maximum serialized size.
*/
eProsima_user_DllExport static size_t getMaxCdrSerializedSize(size_t current_alignment = 0);
/*!
* @brief This function returns the serialized size of a data depending on the buffer alignment.
* @param data Data which is calculated its serialized size.
* @param current_alignment Buffer alignment.
* @return Serialized size.
*/
eProsima_user_DllExport static size_t getCdrSerializedSize(const px4_msgs::msg::OpticalFlow& data, size_t current_alignment = 0);
/*!
* @brief This function serializes an object using CDR serialization.
* @param cdr CDR serialization object.
*/
eProsima_user_DllExport void serialize(eprosima::fastcdr::Cdr &cdr) const;
/*!
* @brief This function deserializes an object using CDR serialization.
* @param cdr CDR serialization object.
*/
eProsima_user_DllExport void deserialize(eprosima::fastcdr::Cdr &cdr);
/*!
* @brief This function returns the maximum serialized size of the Key of an object
* depending on the buffer alignment.
* @param current_alignment Buffer alignment.
* @return Maximum serialized size.
*/
eProsima_user_DllExport static size_t getKeyMaxCdrSerializedSize(size_t current_alignment = 0);
/*!
* @brief This function tells you if the Key has been defined for this type
*/
eProsima_user_DllExport static bool isKeyDefined();
/*!
* @brief This function serializes the key members of an object using CDR serialization.
* @param cdr CDR serialization object.
*/
eProsima_user_DllExport void serializeKey(eprosima::fastcdr::Cdr &cdr) const;
private:
uint64_t m_timestamp;
uint8_t m_sensor_id;
float m_pixel_flow_x_integral;
float m_pixel_flow_y_integral;
float m_gyro_x_rate_integral;
float m_gyro_y_rate_integral;
float m_gyro_z_rate_integral;
float m_ground_distance_m;
uint32_t m_integration_timespan;
uint32_t m_time_since_last_sonar_update;
uint16_t m_frame_count_since_last_readout;
int16_t m_gyro_temperature;
uint8_t m_quality;
float m_max_flow_rate;
float m_min_ground_distance;
float m_max_ground_distance;
uint8_t m_mode;
};
}
}
#endif // _PX4_MSGS_MSG_OPTICALFLOW_H_
@@ -0,0 +1,149 @@
// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
/*!
* @file OpticalFlowPubSubTypes.cpp
* This header file contains the implementation of the serialization functions.
*
* This file was generated by the tool fastcdrgen.
*/
#include <fastcdr/FastBuffer.h>
#include <fastcdr/Cdr.h>
#include "OpticalFlowPubSubTypes.h"
using namespace eprosima::fastrtps;
using namespace eprosima::fastrtps::rtps;
namespace px4_msgs
{
namespace msg
{
namespace OpticalFlow_Constants
{
} //End of namespace OpticalFlow_Constants
OpticalFlowPubSubType::OpticalFlowPubSubType()
{
setName("px4_msgs::msg::OpticalFlow");
m_typeSize = static_cast<uint32_t>(OpticalFlow::getMaxCdrSerializedSize()) + 4 /*encapsulation*/;
m_isGetKeyDefined = OpticalFlow::isKeyDefined();
size_t keyLength = OpticalFlow::getKeyMaxCdrSerializedSize()>16 ? OpticalFlow::getKeyMaxCdrSerializedSize() : 16;
m_keyBuffer = reinterpret_cast<unsigned char*>(malloc(keyLength));
memset(m_keyBuffer, 0, keyLength);
}
OpticalFlowPubSubType::~OpticalFlowPubSubType()
{
if(m_keyBuffer!=nullptr)
free(m_keyBuffer);
}
bool OpticalFlowPubSubType::serialize(void *data, SerializedPayload_t *payload)
{
OpticalFlow *p_type = static_cast<OpticalFlow*>(data);
eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast<char*>(payload->data), payload->max_size); // Object that manages the raw buffer.
eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN,
eprosima::fastcdr::Cdr::DDS_CDR); // Object that serializes the data.
payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE;
// Serialize encapsulation
ser.serialize_encapsulation();
try
{
p_type->serialize(ser); // Serialize the object:
}
catch(eprosima::fastcdr::exception::NotEnoughMemoryException& /*exception*/)
{
return false;
}
payload->length = static_cast<uint32_t>(ser.getSerializedDataLength()); //Get the serialized length
return true;
}
bool OpticalFlowPubSubType::deserialize(SerializedPayload_t* payload, void* data)
{
OpticalFlow* p_type = static_cast<OpticalFlow*>(data); //Convert DATA to pointer of your type
eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast<char*>(payload->data), payload->length); // Object that manages the raw buffer.
eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN,
eprosima::fastcdr::Cdr::DDS_CDR); // Object that deserializes the data.
// Deserialize encapsulation.
deser.read_encapsulation();
payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE;
try
{
p_type->deserialize(deser); //Deserialize the object:
}
catch(eprosima::fastcdr::exception::NotEnoughMemoryException& /*exception*/)
{
return false;
}
return true;
}
std::function<uint32_t()> OpticalFlowPubSubType::getSerializedSizeProvider(void* data)
{
return [data]() -> uint32_t
{
return static_cast<uint32_t>(type::getCdrSerializedSize(*static_cast<OpticalFlow*>(data))) + 4 /*encapsulation*/;
};
}
void* OpticalFlowPubSubType::createData()
{
return reinterpret_cast<void*>(new OpticalFlow());
}
void OpticalFlowPubSubType::deleteData(void* data)
{
delete(reinterpret_cast<OpticalFlow*>(data));
}
bool OpticalFlowPubSubType::getKey(void *data, InstanceHandle_t* handle, bool force_md5)
{
if(!m_isGetKeyDefined)
return false;
OpticalFlow* p_type = static_cast<OpticalFlow*>(data);
eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast<char*>(m_keyBuffer),OpticalFlow::getKeyMaxCdrSerializedSize()); // Object that manages the raw buffer.
eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS); // Object that serializes the data.
p_type->serializeKey(ser);
if(force_md5 || OpticalFlow::getKeyMaxCdrSerializedSize()>16) {
m_md5.init();
m_md5.update(m_keyBuffer, static_cast<unsigned int>(ser.getSerializedDataLength()));
m_md5.finalize();
for(uint8_t i = 0;i<16;++i) {
handle->value[i] = m_md5.digest[i];
}
}
else {
for(uint8_t i = 0;i<16;++i) {
handle->value[i] = m_keyBuffer[i];
}
}
return true;
}
} //End of namespace msg
} //End of namespace px4_msgs
@@ -0,0 +1,70 @@
// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
/*!
* @file OpticalFlowPubSubTypes.h
* This header file contains the declaration of the serialization functions.
*
* This file was generated by the tool fastcdrgen.
*/
#ifndef _PX4_MSGS_MSG_OPTICALFLOW_PUBSUBTYPES_H_
#define _PX4_MSGS_MSG_OPTICALFLOW_PUBSUBTYPES_H_
#include <fastrtps/config.h>
#include <fastrtps/TopicDataType.h>
#include "OpticalFlow.h"
#if !defined(GEN_API_VER) || (GEN_API_VER != 1)
#error Generated OpticalFlow is not compatible with current installed Fast-RTPS. Please, regenerate it with fastrtpsgen.
#endif
namespace px4_msgs
{
namespace msg
{
namespace OpticalFlow_Constants
{
}
/*!
* @brief This class represents the TopicDataType of the type OpticalFlow defined by the user in the IDL file.
* @ingroup OPTICALFLOW
*/
class OpticalFlowPubSubType : public eprosima::fastrtps::TopicDataType {
public:
typedef OpticalFlow type;
eProsima_user_DllExport OpticalFlowPubSubType();
eProsima_user_DllExport virtual ~OpticalFlowPubSubType();
eProsima_user_DllExport virtual bool serialize(void *data, eprosima::fastrtps::rtps::SerializedPayload_t *payload) override;
eProsima_user_DllExport virtual bool deserialize(eprosima::fastrtps::rtps::SerializedPayload_t *payload, void *data) override;
eProsima_user_DllExport virtual std::function<uint32_t()> getSerializedSizeProvider(void* data) override;
eProsima_user_DllExport virtual bool getKey(void *data, eprosima::fastrtps::rtps::InstanceHandle_t *ihandle,
bool force_md5 = false) override;
eProsima_user_DllExport virtual void* createData() override;
eProsima_user_DllExport virtual void deleteData(void * data) override;
MD5 m_md5;
unsigned char* m_keyBuffer;
};
}
}
#endif // _PX4_MSGS_MSG_OPTICALFLOW_PUBSUBTYPES_H_
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,900 @@
// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
/*!
* @file TelemetryStatus.h
* This header file contains the declaration of the described types in the IDL file.
*
* This file was generated by the tool gen.
*/
#ifndef _PX4_MSGS_MSG_TELEMETRYSTATUS_H_
#define _PX4_MSGS_MSG_TELEMETRYSTATUS_H_
// TODO Poner en el contexto.
#include <stdint.h>
#include <array>
#include <string>
#include <vector>
#include <map>
#include <bitset>
#if defined(_WIN32)
#if defined(EPROSIMA_USER_DLL_EXPORT)
#define eProsima_user_DllExport __declspec( dllexport )
#else
#define eProsima_user_DllExport
#endif
#else
#define eProsima_user_DllExport
#endif
#if defined(_WIN32)
#if defined(EPROSIMA_USER_DLL_EXPORT)
#if defined(TelemetryStatus_SOURCE)
#define TelemetryStatus_DllAPI __declspec( dllexport )
#else
#define TelemetryStatus_DllAPI __declspec( dllimport )
#endif // TelemetryStatus_SOURCE
#else
#define TelemetryStatus_DllAPI
#endif
#else
#define TelemetryStatus_DllAPI
#endif // _WIN32
namespace eprosima
{
namespace fastcdr
{
class Cdr;
}
}
namespace px4_msgs
{
namespace msg
{
namespace TelemetryStatus_Constants
{
const uint8_t LINK_TYPE_GENERIC = 0;
const uint8_t LINK_TYPE_UBIQUITY_BULLET = 1;
const uint8_t LINK_TYPE_WIRE = 2;
const uint8_t LINK_TYPE_USB = 3;
const uint8_t LINK_TYPE_IRIDIUM = 4;
const uint64_t HEARTBEAT_TIMEOUT_US = 2500000;
}
/*!
* @brief This class represents the structure TelemetryStatus defined by the user in the IDL file.
* @ingroup TELEMETRYSTATUS
*/
class TelemetryStatus
{
public:
/*!
* @brief Default constructor.
*/
eProsima_user_DllExport TelemetryStatus();
/*!
* @brief Default destructor.
*/
eProsima_user_DllExport ~TelemetryStatus();
/*!
* @brief Copy constructor.
* @param x Reference to the object px4_msgs::msg::TelemetryStatus that will be copied.
*/
eProsima_user_DllExport TelemetryStatus(const TelemetryStatus &x);
/*!
* @brief Move constructor.
* @param x Reference to the object px4_msgs::msg::TelemetryStatus that will be copied.
*/
eProsima_user_DllExport TelemetryStatus(TelemetryStatus &&x);
/*!
* @brief Copy assignment.
* @param x Reference to the object px4_msgs::msg::TelemetryStatus that will be copied.
*/
eProsima_user_DllExport TelemetryStatus& operator=(const TelemetryStatus &x);
/*!
* @brief Move assignment.
* @param x Reference to the object px4_msgs::msg::TelemetryStatus that will be copied.
*/
eProsima_user_DllExport TelemetryStatus& operator=(TelemetryStatus &&x);
/*!
* @brief This function sets a value in member timestamp
* @param _timestamp New value for member timestamp
*/
eProsima_user_DllExport void timestamp(uint64_t _timestamp);
/*!
* @brief This function returns the value of member timestamp
* @return Value of member timestamp
*/
eProsima_user_DllExport uint64_t timestamp() const;
/*!
* @brief This function returns a reference to member timestamp
* @return Reference to member timestamp
*/
eProsima_user_DllExport uint64_t& timestamp();
/*!
* @brief This function sets a value in member type
* @param _type New value for member type
*/
eProsima_user_DllExport void type(uint8_t _type);
/*!
* @brief This function returns the value of member type
* @return Value of member type
*/
eProsima_user_DllExport uint8_t type() const;
/*!
* @brief This function returns a reference to member type
* @return Reference to member type
*/
eProsima_user_DllExport uint8_t& type();
/*!
* @brief This function sets a value in member mode
* @param _mode New value for member mode
*/
eProsima_user_DllExport void mode(uint8_t _mode);
/*!
* @brief This function returns the value of member mode
* @return Value of member mode
*/
eProsima_user_DllExport uint8_t mode() const;
/*!
* @brief This function returns a reference to member mode
* @return Reference to member mode
*/
eProsima_user_DllExport uint8_t& mode();
/*!
* @brief This function sets a value in member flow_control
* @param _flow_control New value for member flow_control
*/
eProsima_user_DllExport void flow_control(bool _flow_control);
/*!
* @brief This function returns the value of member flow_control
* @return Value of member flow_control
*/
eProsima_user_DllExport bool flow_control() const;
/*!
* @brief This function returns a reference to member flow_control
* @return Reference to member flow_control
*/
eProsima_user_DllExport bool& flow_control();
/*!
* @brief This function sets a value in member forwarding
* @param _forwarding New value for member forwarding
*/
eProsima_user_DllExport void forwarding(bool _forwarding);
/*!
* @brief This function returns the value of member forwarding
* @return Value of member forwarding
*/
eProsima_user_DllExport bool forwarding() const;
/*!
* @brief This function returns a reference to member forwarding
* @return Reference to member forwarding
*/
eProsima_user_DllExport bool& forwarding();
/*!
* @brief This function sets a value in member mavlink_v2
* @param _mavlink_v2 New value for member mavlink_v2
*/
eProsima_user_DllExport void mavlink_v2(bool _mavlink_v2);
/*!
* @brief This function returns the value of member mavlink_v2
* @return Value of member mavlink_v2
*/
eProsima_user_DllExport bool mavlink_v2() const;
/*!
* @brief This function returns a reference to member mavlink_v2
* @return Reference to member mavlink_v2
*/
eProsima_user_DllExport bool& mavlink_v2();
/*!
* @brief This function sets a value in member ftp
* @param _ftp New value for member ftp
*/
eProsima_user_DllExport void ftp(bool _ftp);
/*!
* @brief This function returns the value of member ftp
* @return Value of member ftp
*/
eProsima_user_DllExport bool ftp() const;
/*!
* @brief This function returns a reference to member ftp
* @return Reference to member ftp
*/
eProsima_user_DllExport bool& ftp();
/*!
* @brief This function sets a value in member streams
* @param _streams New value for member streams
*/
eProsima_user_DllExport void streams(uint8_t _streams);
/*!
* @brief This function returns the value of member streams
* @return Value of member streams
*/
eProsima_user_DllExport uint8_t streams() const;
/*!
* @brief This function returns a reference to member streams
* @return Reference to member streams
*/
eProsima_user_DllExport uint8_t& streams();
/*!
* @brief This function sets a value in member data_rate
* @param _data_rate New value for member data_rate
*/
eProsima_user_DllExport void data_rate(float _data_rate);
/*!
* @brief This function returns the value of member data_rate
* @return Value of member data_rate
*/
eProsima_user_DllExport float data_rate() const;
/*!
* @brief This function returns a reference to member data_rate
* @return Reference to member data_rate
*/
eProsima_user_DllExport float& data_rate();
/*!
* @brief This function sets a value in member rate_multiplier
* @param _rate_multiplier New value for member rate_multiplier
*/
eProsima_user_DllExport void rate_multiplier(float _rate_multiplier);
/*!
* @brief This function returns the value of member rate_multiplier
* @return Value of member rate_multiplier
*/
eProsima_user_DllExport float rate_multiplier() const;
/*!
* @brief This function returns a reference to member rate_multiplier
* @return Reference to member rate_multiplier
*/
eProsima_user_DllExport float& rate_multiplier();
/*!
* @brief This function sets a value in member tx_rate_avg
* @param _tx_rate_avg New value for member tx_rate_avg
*/
eProsima_user_DllExport void tx_rate_avg(float _tx_rate_avg);
/*!
* @brief This function returns the value of member tx_rate_avg
* @return Value of member tx_rate_avg
*/
eProsima_user_DllExport float tx_rate_avg() const;
/*!
* @brief This function returns a reference to member tx_rate_avg
* @return Reference to member tx_rate_avg
*/
eProsima_user_DllExport float& tx_rate_avg();
/*!
* @brief This function sets a value in member tx_error_rate_avg
* @param _tx_error_rate_avg New value for member tx_error_rate_avg
*/
eProsima_user_DllExport void tx_error_rate_avg(float _tx_error_rate_avg);
/*!
* @brief This function returns the value of member tx_error_rate_avg
* @return Value of member tx_error_rate_avg
*/
eProsima_user_DllExport float tx_error_rate_avg() const;
/*!
* @brief This function returns a reference to member tx_error_rate_avg
* @return Reference to member tx_error_rate_avg
*/
eProsima_user_DllExport float& tx_error_rate_avg();
/*!
* @brief This function sets a value in member tx_message_count
* @param _tx_message_count New value for member tx_message_count
*/
eProsima_user_DllExport void tx_message_count(uint32_t _tx_message_count);
/*!
* @brief This function returns the value of member tx_message_count
* @return Value of member tx_message_count
*/
eProsima_user_DllExport uint32_t tx_message_count() const;
/*!
* @brief This function returns a reference to member tx_message_count
* @return Reference to member tx_message_count
*/
eProsima_user_DllExport uint32_t& tx_message_count();
/*!
* @brief This function sets a value in member tx_buffer_overruns
* @param _tx_buffer_overruns New value for member tx_buffer_overruns
*/
eProsima_user_DllExport void tx_buffer_overruns(uint32_t _tx_buffer_overruns);
/*!
* @brief This function returns the value of member tx_buffer_overruns
* @return Value of member tx_buffer_overruns
*/
eProsima_user_DllExport uint32_t tx_buffer_overruns() const;
/*!
* @brief This function returns a reference to member tx_buffer_overruns
* @return Reference to member tx_buffer_overruns
*/
eProsima_user_DllExport uint32_t& tx_buffer_overruns();
/*!
* @brief This function sets a value in member rx_rate_avg
* @param _rx_rate_avg New value for member rx_rate_avg
*/
eProsima_user_DllExport void rx_rate_avg(float _rx_rate_avg);
/*!
* @brief This function returns the value of member rx_rate_avg
* @return Value of member rx_rate_avg
*/
eProsima_user_DllExport float rx_rate_avg() const;
/*!
* @brief This function returns a reference to member rx_rate_avg
* @return Reference to member rx_rate_avg
*/
eProsima_user_DllExport float& rx_rate_avg();
/*!
* @brief This function sets a value in member rx_message_count
* @param _rx_message_count New value for member rx_message_count
*/
eProsima_user_DllExport void rx_message_count(uint32_t _rx_message_count);
/*!
* @brief This function returns the value of member rx_message_count
* @return Value of member rx_message_count
*/
eProsima_user_DllExport uint32_t rx_message_count() const;
/*!
* @brief This function returns a reference to member rx_message_count
* @return Reference to member rx_message_count
*/
eProsima_user_DllExport uint32_t& rx_message_count();
/*!
* @brief This function sets a value in member rx_message_lost_count
* @param _rx_message_lost_count New value for member rx_message_lost_count
*/
eProsima_user_DllExport void rx_message_lost_count(uint32_t _rx_message_lost_count);
/*!
* @brief This function returns the value of member rx_message_lost_count
* @return Value of member rx_message_lost_count
*/
eProsima_user_DllExport uint32_t rx_message_lost_count() const;
/*!
* @brief This function returns a reference to member rx_message_lost_count
* @return Reference to member rx_message_lost_count
*/
eProsima_user_DllExport uint32_t& rx_message_lost_count();
/*!
* @brief This function sets a value in member rx_buffer_overruns
* @param _rx_buffer_overruns New value for member rx_buffer_overruns
*/
eProsima_user_DllExport void rx_buffer_overruns(uint32_t _rx_buffer_overruns);
/*!
* @brief This function returns the value of member rx_buffer_overruns
* @return Value of member rx_buffer_overruns
*/
eProsima_user_DllExport uint32_t rx_buffer_overruns() const;
/*!
* @brief This function returns a reference to member rx_buffer_overruns
* @return Reference to member rx_buffer_overruns
*/
eProsima_user_DllExport uint32_t& rx_buffer_overruns();
/*!
* @brief This function sets a value in member rx_parse_errors
* @param _rx_parse_errors New value for member rx_parse_errors
*/
eProsima_user_DllExport void rx_parse_errors(uint32_t _rx_parse_errors);
/*!
* @brief This function returns the value of member rx_parse_errors
* @return Value of member rx_parse_errors
*/
eProsima_user_DllExport uint32_t rx_parse_errors() const;
/*!
* @brief This function returns a reference to member rx_parse_errors
* @return Reference to member rx_parse_errors
*/
eProsima_user_DllExport uint32_t& rx_parse_errors();
/*!
* @brief This function sets a value in member rx_packet_drop_count
* @param _rx_packet_drop_count New value for member rx_packet_drop_count
*/
eProsima_user_DllExport void rx_packet_drop_count(uint32_t _rx_packet_drop_count);
/*!
* @brief This function returns the value of member rx_packet_drop_count
* @return Value of member rx_packet_drop_count
*/
eProsima_user_DllExport uint32_t rx_packet_drop_count() const;
/*!
* @brief This function returns a reference to member rx_packet_drop_count
* @return Reference to member rx_packet_drop_count
*/
eProsima_user_DllExport uint32_t& rx_packet_drop_count();
/*!
* @brief This function sets a value in member rx_message_lost_rate
* @param _rx_message_lost_rate New value for member rx_message_lost_rate
*/
eProsima_user_DllExport void rx_message_lost_rate(float _rx_message_lost_rate);
/*!
* @brief This function returns the value of member rx_message_lost_rate
* @return Value of member rx_message_lost_rate
*/
eProsima_user_DllExport float rx_message_lost_rate() const;
/*!
* @brief This function returns a reference to member rx_message_lost_rate
* @return Reference to member rx_message_lost_rate
*/
eProsima_user_DllExport float& rx_message_lost_rate();
/*!
* @brief This function sets a value in member heartbeat_type_antenna_tracker
* @param _heartbeat_type_antenna_tracker New value for member heartbeat_type_antenna_tracker
*/
eProsima_user_DllExport void heartbeat_type_antenna_tracker(bool _heartbeat_type_antenna_tracker);
/*!
* @brief This function returns the value of member heartbeat_type_antenna_tracker
* @return Value of member heartbeat_type_antenna_tracker
*/
eProsima_user_DllExport bool heartbeat_type_antenna_tracker() const;
/*!
* @brief This function returns a reference to member heartbeat_type_antenna_tracker
* @return Reference to member heartbeat_type_antenna_tracker
*/
eProsima_user_DllExport bool& heartbeat_type_antenna_tracker();
/*!
* @brief This function sets a value in member heartbeat_type_gcs
* @param _heartbeat_type_gcs New value for member heartbeat_type_gcs
*/
eProsima_user_DllExport void heartbeat_type_gcs(bool _heartbeat_type_gcs);
/*!
* @brief This function returns the value of member heartbeat_type_gcs
* @return Value of member heartbeat_type_gcs
*/
eProsima_user_DllExport bool heartbeat_type_gcs() const;
/*!
* @brief This function returns a reference to member heartbeat_type_gcs
* @return Reference to member heartbeat_type_gcs
*/
eProsima_user_DllExport bool& heartbeat_type_gcs();
/*!
* @brief This function sets a value in member heartbeat_type_onboard_controller
* @param _heartbeat_type_onboard_controller New value for member heartbeat_type_onboard_controller
*/
eProsima_user_DllExport void heartbeat_type_onboard_controller(bool _heartbeat_type_onboard_controller);
/*!
* @brief This function returns the value of member heartbeat_type_onboard_controller
* @return Value of member heartbeat_type_onboard_controller
*/
eProsima_user_DllExport bool heartbeat_type_onboard_controller() const;
/*!
* @brief This function returns a reference to member heartbeat_type_onboard_controller
* @return Reference to member heartbeat_type_onboard_controller
*/
eProsima_user_DllExport bool& heartbeat_type_onboard_controller();
/*!
* @brief This function sets a value in member heartbeat_type_gimbal
* @param _heartbeat_type_gimbal New value for member heartbeat_type_gimbal
*/
eProsima_user_DllExport void heartbeat_type_gimbal(bool _heartbeat_type_gimbal);
/*!
* @brief This function returns the value of member heartbeat_type_gimbal
* @return Value of member heartbeat_type_gimbal
*/
eProsima_user_DllExport bool heartbeat_type_gimbal() const;
/*!
* @brief This function returns a reference to member heartbeat_type_gimbal
* @return Reference to member heartbeat_type_gimbal
*/
eProsima_user_DllExport bool& heartbeat_type_gimbal();
/*!
* @brief This function sets a value in member heartbeat_type_adsb
* @param _heartbeat_type_adsb New value for member heartbeat_type_adsb
*/
eProsima_user_DllExport void heartbeat_type_adsb(bool _heartbeat_type_adsb);
/*!
* @brief This function returns the value of member heartbeat_type_adsb
* @return Value of member heartbeat_type_adsb
*/
eProsima_user_DllExport bool heartbeat_type_adsb() const;
/*!
* @brief This function returns a reference to member heartbeat_type_adsb
* @return Reference to member heartbeat_type_adsb
*/
eProsima_user_DllExport bool& heartbeat_type_adsb();
/*!
* @brief This function sets a value in member heartbeat_type_camera
* @param _heartbeat_type_camera New value for member heartbeat_type_camera
*/
eProsima_user_DllExport void heartbeat_type_camera(bool _heartbeat_type_camera);
/*!
* @brief This function returns the value of member heartbeat_type_camera
* @return Value of member heartbeat_type_camera
*/
eProsima_user_DllExport bool heartbeat_type_camera() const;
/*!
* @brief This function returns a reference to member heartbeat_type_camera
* @return Reference to member heartbeat_type_camera
*/
eProsima_user_DllExport bool& heartbeat_type_camera();
/*!
* @brief This function sets a value in member heartbeat_type_parachute
* @param _heartbeat_type_parachute New value for member heartbeat_type_parachute
*/
eProsima_user_DllExport void heartbeat_type_parachute(bool _heartbeat_type_parachute);
/*!
* @brief This function returns the value of member heartbeat_type_parachute
* @return Value of member heartbeat_type_parachute
*/
eProsima_user_DllExport bool heartbeat_type_parachute() const;
/*!
* @brief This function returns a reference to member heartbeat_type_parachute
* @return Reference to member heartbeat_type_parachute
*/
eProsima_user_DllExport bool& heartbeat_type_parachute();
/*!
* @brief This function sets a value in member heartbeat_component_telemetry_radio
* @param _heartbeat_component_telemetry_radio New value for member heartbeat_component_telemetry_radio
*/
eProsima_user_DllExport void heartbeat_component_telemetry_radio(bool _heartbeat_component_telemetry_radio);
/*!
* @brief This function returns the value of member heartbeat_component_telemetry_radio
* @return Value of member heartbeat_component_telemetry_radio
*/
eProsima_user_DllExport bool heartbeat_component_telemetry_radio() const;
/*!
* @brief This function returns a reference to member heartbeat_component_telemetry_radio
* @return Reference to member heartbeat_component_telemetry_radio
*/
eProsima_user_DllExport bool& heartbeat_component_telemetry_radio();
/*!
* @brief This function sets a value in member heartbeat_component_log
* @param _heartbeat_component_log New value for member heartbeat_component_log
*/
eProsima_user_DllExport void heartbeat_component_log(bool _heartbeat_component_log);
/*!
* @brief This function returns the value of member heartbeat_component_log
* @return Value of member heartbeat_component_log
*/
eProsima_user_DllExport bool heartbeat_component_log() const;
/*!
* @brief This function returns a reference to member heartbeat_component_log
* @return Reference to member heartbeat_component_log
*/
eProsima_user_DllExport bool& heartbeat_component_log();
/*!
* @brief This function sets a value in member heartbeat_component_osd
* @param _heartbeat_component_osd New value for member heartbeat_component_osd
*/
eProsima_user_DllExport void heartbeat_component_osd(bool _heartbeat_component_osd);
/*!
* @brief This function returns the value of member heartbeat_component_osd
* @return Value of member heartbeat_component_osd
*/
eProsima_user_DllExport bool heartbeat_component_osd() const;
/*!
* @brief This function returns a reference to member heartbeat_component_osd
* @return Reference to member heartbeat_component_osd
*/
eProsima_user_DllExport bool& heartbeat_component_osd();
/*!
* @brief This function sets a value in member heartbeat_component_obstacle_avoidance
* @param _heartbeat_component_obstacle_avoidance New value for member heartbeat_component_obstacle_avoidance
*/
eProsima_user_DllExport void heartbeat_component_obstacle_avoidance(bool _heartbeat_component_obstacle_avoidance);
/*!
* @brief This function returns the value of member heartbeat_component_obstacle_avoidance
* @return Value of member heartbeat_component_obstacle_avoidance
*/
eProsima_user_DllExport bool heartbeat_component_obstacle_avoidance() const;
/*!
* @brief This function returns a reference to member heartbeat_component_obstacle_avoidance
* @return Reference to member heartbeat_component_obstacle_avoidance
*/
eProsima_user_DllExport bool& heartbeat_component_obstacle_avoidance();
/*!
* @brief This function sets a value in member heartbeat_component_vio
* @param _heartbeat_component_vio New value for member heartbeat_component_vio
*/
eProsima_user_DllExport void heartbeat_component_vio(bool _heartbeat_component_vio);
/*!
* @brief This function returns the value of member heartbeat_component_vio
* @return Value of member heartbeat_component_vio
*/
eProsima_user_DllExport bool heartbeat_component_vio() const;
/*!
* @brief This function returns a reference to member heartbeat_component_vio
* @return Reference to member heartbeat_component_vio
*/
eProsima_user_DllExport bool& heartbeat_component_vio();
/*!
* @brief This function sets a value in member heartbeat_component_pairing_manager
* @param _heartbeat_component_pairing_manager New value for member heartbeat_component_pairing_manager
*/
eProsima_user_DllExport void heartbeat_component_pairing_manager(bool _heartbeat_component_pairing_manager);
/*!
* @brief This function returns the value of member heartbeat_component_pairing_manager
* @return Value of member heartbeat_component_pairing_manager
*/
eProsima_user_DllExport bool heartbeat_component_pairing_manager() const;
/*!
* @brief This function returns a reference to member heartbeat_component_pairing_manager
* @return Reference to member heartbeat_component_pairing_manager
*/
eProsima_user_DllExport bool& heartbeat_component_pairing_manager();
/*!
* @brief This function sets a value in member heartbeat_component_udp_bridge
* @param _heartbeat_component_udp_bridge New value for member heartbeat_component_udp_bridge
*/
eProsima_user_DllExport void heartbeat_component_udp_bridge(bool _heartbeat_component_udp_bridge);
/*!
* @brief This function returns the value of member heartbeat_component_udp_bridge
* @return Value of member heartbeat_component_udp_bridge
*/
eProsima_user_DllExport bool heartbeat_component_udp_bridge() const;
/*!
* @brief This function returns a reference to member heartbeat_component_udp_bridge
* @return Reference to member heartbeat_component_udp_bridge
*/
eProsima_user_DllExport bool& heartbeat_component_udp_bridge();
/*!
* @brief This function sets a value in member heartbeat_component_uart_bridge
* @param _heartbeat_component_uart_bridge New value for member heartbeat_component_uart_bridge
*/
eProsima_user_DllExport void heartbeat_component_uart_bridge(bool _heartbeat_component_uart_bridge);
/*!
* @brief This function returns the value of member heartbeat_component_uart_bridge
* @return Value of member heartbeat_component_uart_bridge
*/
eProsima_user_DllExport bool heartbeat_component_uart_bridge() const;
/*!
* @brief This function returns a reference to member heartbeat_component_uart_bridge
* @return Reference to member heartbeat_component_uart_bridge
*/
eProsima_user_DllExport bool& heartbeat_component_uart_bridge();
/*!
* @brief This function sets a value in member avoidance_system_healthy
* @param _avoidance_system_healthy New value for member avoidance_system_healthy
*/
eProsima_user_DllExport void avoidance_system_healthy(bool _avoidance_system_healthy);
/*!
* @brief This function returns the value of member avoidance_system_healthy
* @return Value of member avoidance_system_healthy
*/
eProsima_user_DllExport bool avoidance_system_healthy() const;
/*!
* @brief This function returns a reference to member avoidance_system_healthy
* @return Reference to member avoidance_system_healthy
*/
eProsima_user_DllExport bool& avoidance_system_healthy();
/*!
* @brief This function sets a value in member parachute_system_healthy
* @param _parachute_system_healthy New value for member parachute_system_healthy
*/
eProsima_user_DllExport void parachute_system_healthy(bool _parachute_system_healthy);
/*!
* @brief This function returns the value of member parachute_system_healthy
* @return Value of member parachute_system_healthy
*/
eProsima_user_DllExport bool parachute_system_healthy() const;
/*!
* @brief This function returns a reference to member parachute_system_healthy
* @return Reference to member parachute_system_healthy
*/
eProsima_user_DllExport bool& parachute_system_healthy();
/*!
* @brief This function returns the maximum serialized size of an object
* depending on the buffer alignment.
* @param current_alignment Buffer alignment.
* @return Maximum serialized size.
*/
eProsima_user_DllExport static size_t getMaxCdrSerializedSize(size_t current_alignment = 0);
/*!
* @brief This function returns the serialized size of a data depending on the buffer alignment.
* @param data Data which is calculated its serialized size.
* @param current_alignment Buffer alignment.
* @return Serialized size.
*/
eProsima_user_DllExport static size_t getCdrSerializedSize(const px4_msgs::msg::TelemetryStatus& data, size_t current_alignment = 0);
/*!
* @brief This function serializes an object using CDR serialization.
* @param cdr CDR serialization object.
*/
eProsima_user_DllExport void serialize(eprosima::fastcdr::Cdr &cdr) const;
/*!
* @brief This function deserializes an object using CDR serialization.
* @param cdr CDR serialization object.
*/
eProsima_user_DllExport void deserialize(eprosima::fastcdr::Cdr &cdr);
/*!
* @brief This function returns the maximum serialized size of the Key of an object
* depending on the buffer alignment.
* @param current_alignment Buffer alignment.
* @return Maximum serialized size.
*/
eProsima_user_DllExport static size_t getKeyMaxCdrSerializedSize(size_t current_alignment = 0);
/*!
* @brief This function tells you if the Key has been defined for this type
*/
eProsima_user_DllExport static bool isKeyDefined();
/*!
* @brief This function serializes the key members of an object using CDR serialization.
* @param cdr CDR serialization object.
*/
eProsima_user_DllExport void serializeKey(eprosima::fastcdr::Cdr &cdr) const;
private:
uint64_t m_timestamp;
uint8_t m_type;
uint8_t m_mode;
bool m_flow_control;
bool m_forwarding;
bool m_mavlink_v2;
bool m_ftp;
uint8_t m_streams;
float m_data_rate;
float m_rate_multiplier;
float m_tx_rate_avg;
float m_tx_error_rate_avg;
uint32_t m_tx_message_count;
uint32_t m_tx_buffer_overruns;
float m_rx_rate_avg;
uint32_t m_rx_message_count;
uint32_t m_rx_message_lost_count;
uint32_t m_rx_buffer_overruns;
uint32_t m_rx_parse_errors;
uint32_t m_rx_packet_drop_count;
float m_rx_message_lost_rate;
bool m_heartbeat_type_antenna_tracker;
bool m_heartbeat_type_gcs;
bool m_heartbeat_type_onboard_controller;
bool m_heartbeat_type_gimbal;
bool m_heartbeat_type_adsb;
bool m_heartbeat_type_camera;
bool m_heartbeat_type_parachute;
bool m_heartbeat_component_telemetry_radio;
bool m_heartbeat_component_log;
bool m_heartbeat_component_osd;
bool m_heartbeat_component_obstacle_avoidance;
bool m_heartbeat_component_vio;
bool m_heartbeat_component_pairing_manager;
bool m_heartbeat_component_udp_bridge;
bool m_heartbeat_component_uart_bridge;
bool m_avoidance_system_healthy;
bool m_parachute_system_healthy;
};
}
}
#endif // _PX4_MSGS_MSG_TELEMETRYSTATUS_H_
@@ -0,0 +1,151 @@
// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
/*!
* @file TelemetryStatusPubSubTypes.cpp
* This header file contains the implementation of the serialization functions.
*
* This file was generated by the tool fastcdrgen.
*/
#include <fastcdr/FastBuffer.h>
#include <fastcdr/Cdr.h>
#include "TelemetryStatusPubSubTypes.h"
using namespace eprosima::fastrtps;
using namespace eprosima::fastrtps::rtps;
namespace px4_msgs
{
namespace msg
{
namespace TelemetryStatus_Constants
{
} //End of namespace TelemetryStatus_Constants
TelemetryStatusPubSubType::TelemetryStatusPubSubType()
{
setName("px4_msgs::msg::TelemetryStatus");
m_typeSize = static_cast<uint32_t>(TelemetryStatus::getMaxCdrSerializedSize()) + 4 /*encapsulation*/;
m_isGetKeyDefined = TelemetryStatus::isKeyDefined();
size_t keyLength = TelemetryStatus::getKeyMaxCdrSerializedSize()>16 ? TelemetryStatus::getKeyMaxCdrSerializedSize() : 16;
m_keyBuffer = reinterpret_cast<unsigned char*>(malloc(keyLength));
memset(m_keyBuffer, 0, keyLength);
}
TelemetryStatusPubSubType::~TelemetryStatusPubSubType()
{
if(m_keyBuffer!=nullptr)
free(m_keyBuffer);
}
bool TelemetryStatusPubSubType::serialize(void *data, SerializedPayload_t *payload)
{
TelemetryStatus *p_type = static_cast<TelemetryStatus*>(data);
eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast<char*>(payload->data), payload->max_size); // Object that manages the raw buffer.
eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN,
eprosima::fastcdr::Cdr::DDS_CDR); // Object that serializes the data.
payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE;
// Serialize encapsulation
ser.serialize_encapsulation();
try
{
p_type->serialize(ser); // Serialize the object:
}
catch(eprosima::fastcdr::exception::NotEnoughMemoryException& /*exception*/)
{
return false;
}
payload->length = static_cast<uint32_t>(ser.getSerializedDataLength()); //Get the serialized length
return true;
}
bool TelemetryStatusPubSubType::deserialize(SerializedPayload_t* payload, void* data)
{
TelemetryStatus* p_type = static_cast<TelemetryStatus*>(data); //Convert DATA to pointer of your type
eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast<char*>(payload->data), payload->length); // Object that manages the raw buffer.
eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN,
eprosima::fastcdr::Cdr::DDS_CDR); // Object that deserializes the data.
// Deserialize encapsulation.
deser.read_encapsulation();
payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE;
try
{
p_type->deserialize(deser); //Deserialize the object:
}
catch(eprosima::fastcdr::exception::NotEnoughMemoryException& /*exception*/)
{
return false;
}
return true;
}
std::function<uint32_t()> TelemetryStatusPubSubType::getSerializedSizeProvider(void* data)
{
return [data]() -> uint32_t
{
return static_cast<uint32_t>(type::getCdrSerializedSize(*static_cast<TelemetryStatus*>(data))) + 4 /*encapsulation*/;
};
}
void* TelemetryStatusPubSubType::createData()
{
return reinterpret_cast<void*>(new TelemetryStatus());
}
void TelemetryStatusPubSubType::deleteData(void* data)
{
delete(reinterpret_cast<TelemetryStatus*>(data));
}
bool TelemetryStatusPubSubType::getKey(void *data, InstanceHandle_t* handle, bool force_md5)
{
if(!m_isGetKeyDefined)
return false;
TelemetryStatus* p_type = static_cast<TelemetryStatus*>(data);
eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast<char*>(m_keyBuffer),TelemetryStatus::getKeyMaxCdrSerializedSize()); // Object that manages the raw buffer.
eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS); // Object that serializes the data.
p_type->serializeKey(ser);
if(force_md5 || TelemetryStatus::getKeyMaxCdrSerializedSize()>16) {
m_md5.init();
m_md5.update(m_keyBuffer, static_cast<unsigned int>(ser.getSerializedDataLength()));
m_md5.finalize();
for(uint8_t i = 0;i<16;++i) {
handle->value[i] = m_md5.digest[i];
}
}
else {
for(uint8_t i = 0;i<16;++i) {
handle->value[i] = m_keyBuffer[i];
}
}
return true;
}
} //End of namespace msg
} //End of namespace px4_msgs
@@ -0,0 +1,72 @@
// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
/*!
* @file TelemetryStatusPubSubTypes.h
* This header file contains the declaration of the serialization functions.
*
* This file was generated by the tool fastcdrgen.
*/
#ifndef _PX4_MSGS_MSG_TELEMETRYSTATUS_PUBSUBTYPES_H_
#define _PX4_MSGS_MSG_TELEMETRYSTATUS_PUBSUBTYPES_H_
#include <fastrtps/config.h>
#include <fastrtps/TopicDataType.h>
#include "TelemetryStatus.h"
#if !defined(GEN_API_VER) || (GEN_API_VER != 1)
#error Generated TelemetryStatus is not compatible with current installed Fast-RTPS. Please, regenerate it with fastrtpsgen.
#endif
namespace px4_msgs
{
namespace msg
{
namespace TelemetryStatus_Constants
{
}
/*!
* @brief This class represents the TopicDataType of the type TelemetryStatus defined by the user in the IDL file.
* @ingroup TELEMETRYSTATUS
*/
class TelemetryStatusPubSubType : public eprosima::fastrtps::TopicDataType {
public:
typedef TelemetryStatus type;
eProsima_user_DllExport TelemetryStatusPubSubType();
eProsima_user_DllExport virtual ~TelemetryStatusPubSubType();
eProsima_user_DllExport virtual bool serialize(void *data, eprosima::fastrtps::rtps::SerializedPayload_t *payload) override;
eProsima_user_DllExport virtual bool deserialize(eprosima::fastrtps::rtps::SerializedPayload_t *payload, void *data) override;
eProsima_user_DllExport virtual std::function<uint32_t()> getSerializedSizeProvider(void* data) override;
eProsima_user_DllExport virtual bool getKey(void *data, eprosima::fastrtps::rtps::InstanceHandle_t *ihandle,
bool force_md5 = false) override;
eProsima_user_DllExport virtual void* createData() override;
eProsima_user_DllExport virtual void deleteData(void * data) override;
MD5 m_md5;
unsigned char* m_keyBuffer;
};
}
}
#endif // _PX4_MSGS_MSG_TELEMETRYSTATUS_PUBSUBTYPES_H_
@@ -0,0 +1,304 @@
// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
/*!
* @file TrajectoryBezier.cpp
* This source file contains the definition of the described types in the IDL file.
*
* This file was generated by the tool gen.
*/
#ifdef _WIN32
// Remove linker warning LNK4221 on Visual Studio
namespace { char dummy; }
#endif
#include "TrajectoryBezier.h"
#include <fastcdr/Cdr.h>
#include <fastcdr/exceptions/BadParamException.h>
using namespace eprosima::fastcdr::exception;
#include <utility>
px4_msgs::msg::TrajectoryBezier::TrajectoryBezier()
{
// m_timestamp com.eprosima.idl.parser.typecode.PrimitiveTypeCode@1722011b
m_timestamp = 0;
// m_position com.eprosima.idl.parser.typecode.AliasTypeCode@57ad2aa7
memset(&m_position, 0, (3) * 4);
// m_yaw com.eprosima.idl.parser.typecode.PrimitiveTypeCode@5b3f61ff
m_yaw = 0.0;
// m_delta com.eprosima.idl.parser.typecode.PrimitiveTypeCode@3e2059ae
m_delta = 0.0;
}
px4_msgs::msg::TrajectoryBezier::~TrajectoryBezier()
{
}
px4_msgs::msg::TrajectoryBezier::TrajectoryBezier(const TrajectoryBezier &x)
{
m_timestamp = x.m_timestamp;
m_position = x.m_position;
m_yaw = x.m_yaw;
m_delta = x.m_delta;
}
px4_msgs::msg::TrajectoryBezier::TrajectoryBezier(TrajectoryBezier &&x)
{
m_timestamp = x.m_timestamp;
m_position = std::move(x.m_position);
m_yaw = x.m_yaw;
m_delta = x.m_delta;
}
px4_msgs::msg::TrajectoryBezier& px4_msgs::msg::TrajectoryBezier::operator=(const TrajectoryBezier &x)
{
m_timestamp = x.m_timestamp;
m_position = x.m_position;
m_yaw = x.m_yaw;
m_delta = x.m_delta;
return *this;
}
px4_msgs::msg::TrajectoryBezier& px4_msgs::msg::TrajectoryBezier::operator=(TrajectoryBezier &&x)
{
m_timestamp = x.m_timestamp;
m_position = std::move(x.m_position);
m_yaw = x.m_yaw;
m_delta = x.m_delta;
return *this;
}
size_t px4_msgs::msg::TrajectoryBezier::getMaxCdrSerializedSize(size_t current_alignment)
{
size_t initial_alignment = current_alignment;
current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8);
current_alignment += ((3) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
return current_alignment - initial_alignment;
}
size_t px4_msgs::msg::TrajectoryBezier::getCdrSerializedSize(const px4_msgs::msg::TrajectoryBezier& data, size_t current_alignment)
{
(void)data;
size_t initial_alignment = current_alignment;
current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8);
if ((3) > 0)
{
current_alignment += ((3) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
}
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
return current_alignment - initial_alignment;
}
void px4_msgs::msg::TrajectoryBezier::serialize(eprosima::fastcdr::Cdr &scdr) const
{
scdr << m_timestamp;
scdr << m_position;
scdr << m_yaw;
scdr << m_delta;
}
void px4_msgs::msg::TrajectoryBezier::deserialize(eprosima::fastcdr::Cdr &dcdr)
{
dcdr >> m_timestamp;
dcdr >> m_position;
dcdr >> m_yaw;
dcdr >> m_delta;
}
/*!
* @brief This function sets a value in member timestamp
* @param _timestamp New value for member timestamp
*/
void px4_msgs::msg::TrajectoryBezier::timestamp(uint64_t _timestamp)
{
m_timestamp = _timestamp;
}
/*!
* @brief This function returns the value of member timestamp
* @return Value of member timestamp
*/
uint64_t px4_msgs::msg::TrajectoryBezier::timestamp() const
{
return m_timestamp;
}
/*!
* @brief This function returns a reference to member timestamp
* @return Reference to member timestamp
*/
uint64_t& px4_msgs::msg::TrajectoryBezier::timestamp()
{
return m_timestamp;
}
/*!
* @brief This function copies the value in member position
* @param _position New value to be copied in member position
*/
void px4_msgs::msg::TrajectoryBezier::position(const px4_msgs::msg::float__3 &_position)
{
m_position = _position;
}
/*!
* @brief This function moves the value in member position
* @param _position New value to be moved in member position
*/
void px4_msgs::msg::TrajectoryBezier::position(px4_msgs::msg::float__3 &&_position)
{
m_position = std::move(_position);
}
/*!
* @brief This function returns a constant reference to member position
* @return Constant reference to member position
*/
const px4_msgs::msg::float__3& px4_msgs::msg::TrajectoryBezier::position() const
{
return m_position;
}
/*!
* @brief This function returns a reference to member position
* @return Reference to member position
*/
px4_msgs::msg::float__3& px4_msgs::msg::TrajectoryBezier::position()
{
return m_position;
}
/*!
* @brief This function sets a value in member yaw
* @param _yaw New value for member yaw
*/
void px4_msgs::msg::TrajectoryBezier::yaw(float _yaw)
{
m_yaw = _yaw;
}
/*!
* @brief This function returns the value of member yaw
* @return Value of member yaw
*/
float px4_msgs::msg::TrajectoryBezier::yaw() const
{
return m_yaw;
}
/*!
* @brief This function returns a reference to member yaw
* @return Reference to member yaw
*/
float& px4_msgs::msg::TrajectoryBezier::yaw()
{
return m_yaw;
}
/*!
* @brief This function sets a value in member delta
* @param _delta New value for member delta
*/
void px4_msgs::msg::TrajectoryBezier::delta(float _delta)
{
m_delta = _delta;
}
/*!
* @brief This function returns the value of member delta
* @return Value of member delta
*/
float px4_msgs::msg::TrajectoryBezier::delta() const
{
return m_delta;
}
/*!
* @brief This function returns a reference to member delta
* @return Reference to member delta
*/
float& px4_msgs::msg::TrajectoryBezier::delta()
{
return m_delta;
}
size_t px4_msgs::msg::TrajectoryBezier::getKeyMaxCdrSerializedSize(size_t current_alignment)
{
size_t current_align = current_alignment;
return current_align;
}
bool px4_msgs::msg::TrajectoryBezier::isKeyDefined()
{
return false;
}
void px4_msgs::msg::TrajectoryBezier::serializeKey(eprosima::fastcdr::Cdr &scdr) const
{
(void) scdr;
}
@@ -0,0 +1,251 @@
// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
/*!
* @file TrajectoryBezier.h
* This header file contains the declaration of the described types in the IDL file.
*
* This file was generated by the tool gen.
*/
#ifndef _PX4_MSGS_MSG_TRAJECTORYBEZIER_H_
#define _PX4_MSGS_MSG_TRAJECTORYBEZIER_H_
// TODO Poner en el contexto.
#include <stdint.h>
#include <array>
#include <string>
#include <vector>
#include <map>
#include <bitset>
#if defined(_WIN32)
#if defined(EPROSIMA_USER_DLL_EXPORT)
#define eProsima_user_DllExport __declspec( dllexport )
#else
#define eProsima_user_DllExport
#endif
#else
#define eProsima_user_DllExport
#endif
#if defined(_WIN32)
#if defined(EPROSIMA_USER_DLL_EXPORT)
#if defined(TrajectoryBezier_SOURCE)
#define TrajectoryBezier_DllAPI __declspec( dllexport )
#else
#define TrajectoryBezier_DllAPI __declspec( dllimport )
#endif // TrajectoryBezier_SOURCE
#else
#define TrajectoryBezier_DllAPI
#endif
#else
#define TrajectoryBezier_DllAPI
#endif // _WIN32
namespace eprosima
{
namespace fastcdr
{
class Cdr;
}
}
namespace px4_msgs
{
namespace msg
{
typedef std::array<float, 3> float__3;
/*!
* @brief This class represents the structure TrajectoryBezier defined by the user in the IDL file.
* @ingroup TRAJECTORYBEZIER
*/
class TrajectoryBezier
{
public:
/*!
* @brief Default constructor.
*/
eProsima_user_DllExport TrajectoryBezier();
/*!
* @brief Default destructor.
*/
eProsima_user_DllExport ~TrajectoryBezier();
/*!
* @brief Copy constructor.
* @param x Reference to the object px4_msgs::msg::TrajectoryBezier that will be copied.
*/
eProsima_user_DllExport TrajectoryBezier(const TrajectoryBezier &x);
/*!
* @brief Move constructor.
* @param x Reference to the object px4_msgs::msg::TrajectoryBezier that will be copied.
*/
eProsima_user_DllExport TrajectoryBezier(TrajectoryBezier &&x);
/*!
* @brief Copy assignment.
* @param x Reference to the object px4_msgs::msg::TrajectoryBezier that will be copied.
*/
eProsima_user_DllExport TrajectoryBezier& operator=(const TrajectoryBezier &x);
/*!
* @brief Move assignment.
* @param x Reference to the object px4_msgs::msg::TrajectoryBezier that will be copied.
*/
eProsima_user_DllExport TrajectoryBezier& operator=(TrajectoryBezier &&x);
/*!
* @brief This function sets a value in member timestamp
* @param _timestamp New value for member timestamp
*/
eProsima_user_DllExport void timestamp(uint64_t _timestamp);
/*!
* @brief This function returns the value of member timestamp
* @return Value of member timestamp
*/
eProsima_user_DllExport uint64_t timestamp() const;
/*!
* @brief This function returns a reference to member timestamp
* @return Reference to member timestamp
*/
eProsima_user_DllExport uint64_t& timestamp();
/*!
* @brief This function copies the value in member position
* @param _position New value to be copied in member position
*/
eProsima_user_DllExport void position(const px4_msgs::msg::float__3 &_position);
/*!
* @brief This function moves the value in member position
* @param _position New value to be moved in member position
*/
eProsima_user_DllExport void position(px4_msgs::msg::float__3 &&_position);
/*!
* @brief This function returns a constant reference to member position
* @return Constant reference to member position
*/
eProsima_user_DllExport const px4_msgs::msg::float__3& position() const;
/*!
* @brief This function returns a reference to member position
* @return Reference to member position
*/
eProsima_user_DllExport px4_msgs::msg::float__3& position();
/*!
* @brief This function sets a value in member yaw
* @param _yaw New value for member yaw
*/
eProsima_user_DllExport void yaw(float _yaw);
/*!
* @brief This function returns the value of member yaw
* @return Value of member yaw
*/
eProsima_user_DllExport float yaw() const;
/*!
* @brief This function returns a reference to member yaw
* @return Reference to member yaw
*/
eProsima_user_DllExport float& yaw();
/*!
* @brief This function sets a value in member delta
* @param _delta New value for member delta
*/
eProsima_user_DllExport void delta(float _delta);
/*!
* @brief This function returns the value of member delta
* @return Value of member delta
*/
eProsima_user_DllExport float delta() const;
/*!
* @brief This function returns a reference to member delta
* @return Reference to member delta
*/
eProsima_user_DllExport float& delta();
/*!
* @brief This function returns the maximum serialized size of an object
* depending on the buffer alignment.
* @param current_alignment Buffer alignment.
* @return Maximum serialized size.
*/
eProsima_user_DllExport static size_t getMaxCdrSerializedSize(size_t current_alignment = 0);
/*!
* @brief This function returns the serialized size of a data depending on the buffer alignment.
* @param data Data which is calculated its serialized size.
* @param current_alignment Buffer alignment.
* @return Serialized size.
*/
eProsima_user_DllExport static size_t getCdrSerializedSize(const px4_msgs::msg::TrajectoryBezier& data, size_t current_alignment = 0);
/*!
* @brief This function serializes an object using CDR serialization.
* @param cdr CDR serialization object.
*/
eProsima_user_DllExport void serialize(eprosima::fastcdr::Cdr &cdr) const;
/*!
* @brief This function deserializes an object using CDR serialization.
* @param cdr CDR serialization object.
*/
eProsima_user_DllExport void deserialize(eprosima::fastcdr::Cdr &cdr);
/*!
* @brief This function returns the maximum serialized size of the Key of an object
* depending on the buffer alignment.
* @param current_alignment Buffer alignment.
* @return Maximum serialized size.
*/
eProsima_user_DllExport static size_t getKeyMaxCdrSerializedSize(size_t current_alignment = 0);
/*!
* @brief This function tells you if the Key has been defined for this type
*/
eProsima_user_DllExport static bool isKeyDefined();
/*!
* @brief This function serializes the key members of an object using CDR serialization.
* @param cdr CDR serialization object.
*/
eProsima_user_DllExport void serializeKey(eprosima::fastcdr::Cdr &cdr) const;
private:
uint64_t m_timestamp;
px4_msgs::msg::float__3 m_position;
float m_yaw;
float m_delta;
};
}
}
#endif // _PX4_MSGS_MSG_TRAJECTORYBEZIER_H_
@@ -0,0 +1,142 @@
// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
/*!
* @file TrajectoryBezierPubSubTypes.cpp
* This header file contains the implementation of the serialization functions.
*
* This file was generated by the tool fastcdrgen.
*/
#include <fastcdr/FastBuffer.h>
#include <fastcdr/Cdr.h>
#include "TrajectoryBezierPubSubTypes.h"
using namespace eprosima::fastrtps;
using namespace eprosima::fastrtps::rtps;
namespace px4_msgs
{
namespace msg
{
TrajectoryBezierPubSubType::TrajectoryBezierPubSubType()
{
setName("px4_msgs::msg::TrajectoryBezier");
m_typeSize = static_cast<uint32_t>(TrajectoryBezier::getMaxCdrSerializedSize()) + 4 /*encapsulation*/;
m_isGetKeyDefined = TrajectoryBezier::isKeyDefined();
size_t keyLength = TrajectoryBezier::getKeyMaxCdrSerializedSize()>16 ? TrajectoryBezier::getKeyMaxCdrSerializedSize() : 16;
m_keyBuffer = reinterpret_cast<unsigned char*>(malloc(keyLength));
memset(m_keyBuffer, 0, keyLength);
}
TrajectoryBezierPubSubType::~TrajectoryBezierPubSubType()
{
if(m_keyBuffer!=nullptr)
free(m_keyBuffer);
}
bool TrajectoryBezierPubSubType::serialize(void *data, SerializedPayload_t *payload)
{
TrajectoryBezier *p_type = static_cast<TrajectoryBezier*>(data);
eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast<char*>(payload->data), payload->max_size); // Object that manages the raw buffer.
eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN,
eprosima::fastcdr::Cdr::DDS_CDR); // Object that serializes the data.
payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE;
// Serialize encapsulation
ser.serialize_encapsulation();
try
{
p_type->serialize(ser); // Serialize the object:
}
catch(eprosima::fastcdr::exception::NotEnoughMemoryException& /*exception*/)
{
return false;
}
payload->length = static_cast<uint32_t>(ser.getSerializedDataLength()); //Get the serialized length
return true;
}
bool TrajectoryBezierPubSubType::deserialize(SerializedPayload_t* payload, void* data)
{
TrajectoryBezier* p_type = static_cast<TrajectoryBezier*>(data); //Convert DATA to pointer of your type
eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast<char*>(payload->data), payload->length); // Object that manages the raw buffer.
eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN,
eprosima::fastcdr::Cdr::DDS_CDR); // Object that deserializes the data.
// Deserialize encapsulation.
deser.read_encapsulation();
payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE;
try
{
p_type->deserialize(deser); //Deserialize the object:
}
catch(eprosima::fastcdr::exception::NotEnoughMemoryException& /*exception*/)
{
return false;
}
return true;
}
std::function<uint32_t()> TrajectoryBezierPubSubType::getSerializedSizeProvider(void* data)
{
return [data]() -> uint32_t
{
return static_cast<uint32_t>(type::getCdrSerializedSize(*static_cast<TrajectoryBezier*>(data))) + 4 /*encapsulation*/;
};
}
void* TrajectoryBezierPubSubType::createData()
{
return reinterpret_cast<void*>(new TrajectoryBezier());
}
void TrajectoryBezierPubSubType::deleteData(void* data)
{
delete(reinterpret_cast<TrajectoryBezier*>(data));
}
bool TrajectoryBezierPubSubType::getKey(void *data, InstanceHandle_t* handle, bool force_md5)
{
if(!m_isGetKeyDefined)
return false;
TrajectoryBezier* p_type = static_cast<TrajectoryBezier*>(data);
eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast<char*>(m_keyBuffer),TrajectoryBezier::getKeyMaxCdrSerializedSize()); // Object that manages the raw buffer.
eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS); // Object that serializes the data.
p_type->serializeKey(ser);
if(force_md5 || TrajectoryBezier::getKeyMaxCdrSerializedSize()>16) {
m_md5.init();
m_md5.update(m_keyBuffer, static_cast<unsigned int>(ser.getSerializedDataLength()));
m_md5.finalize();
for(uint8_t i = 0;i<16;++i) {
handle->value[i] = m_md5.digest[i];
}
}
else {
for(uint8_t i = 0;i<16;++i) {
handle->value[i] = m_keyBuffer[i];
}
}
return true;
}
} //End of namespace msg
} //End of namespace px4_msgs
@@ -0,0 +1,64 @@
// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
/*!
* @file TrajectoryBezierPubSubTypes.h
* This header file contains the declaration of the serialization functions.
*
* This file was generated by the tool fastcdrgen.
*/
#ifndef _PX4_MSGS_MSG_TRAJECTORYBEZIER_PUBSUBTYPES_H_
#define _PX4_MSGS_MSG_TRAJECTORYBEZIER_PUBSUBTYPES_H_
#include <fastrtps/config.h>
#include <fastrtps/TopicDataType.h>
#include "TrajectoryBezier.h"
#if !defined(GEN_API_VER) || (GEN_API_VER != 1)
#error Generated TrajectoryBezier is not compatible with current installed Fast-RTPS. Please, regenerate it with fastrtpsgen.
#endif
namespace px4_msgs
{
namespace msg
{
typedef std::array<float, 3> float__3;
/*!
* @brief This class represents the TopicDataType of the type TrajectoryBezier defined by the user in the IDL file.
* @ingroup TRAJECTORYBEZIER
*/
class TrajectoryBezierPubSubType : public eprosima::fastrtps::TopicDataType {
public:
typedef TrajectoryBezier type;
eProsima_user_DllExport TrajectoryBezierPubSubType();
eProsima_user_DllExport virtual ~TrajectoryBezierPubSubType();
eProsima_user_DllExport virtual bool serialize(void *data, eprosima::fastrtps::rtps::SerializedPayload_t *payload) override;
eProsima_user_DllExport virtual bool deserialize(eprosima::fastrtps::rtps::SerializedPayload_t *payload, void *data) override;
eProsima_user_DllExport virtual std::function<uint32_t()> getSerializedSizeProvider(void* data) override;
eProsima_user_DllExport virtual bool getKey(void *data, eprosima::fastrtps::rtps::InstanceHandle_t *ihandle,
bool force_md5 = false) override;
eProsima_user_DllExport virtual void* createData() override;
eProsima_user_DllExport virtual void deleteData(void * data) override;
MD5 m_md5;
unsigned char* m_keyBuffer;
};
}
}
#endif // _PX4_MSGS_MSG_TRAJECTORYBEZIER_PUBSUBTYPES_H_
@@ -0,0 +1,680 @@
// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
/*!
* @file TrajectorySetpoint.cpp
* This source file contains the definition of the described types in the IDL file.
*
* This file was generated by the tool gen.
*/
#ifdef _WIN32
// Remove linker warning LNK4221 on Visual Studio
namespace { char dummy; }
#endif
#include "TrajectorySetpoint.h"
#include <fastcdr/Cdr.h>
#include <fastcdr/exceptions/BadParamException.h>
using namespace eprosima::fastcdr::exception;
#include <utility>
px4_msgs::msg::TrajectorySetpoint::TrajectorySetpoint()
{
// m_timestamp com.eprosima.idl.parser.typecode.PrimitiveTypeCode@27508c5d
m_timestamp = 0;
// m_x com.eprosima.idl.parser.typecode.PrimitiveTypeCode@4f704591
m_x = 0.0;
// m_y com.eprosima.idl.parser.typecode.PrimitiveTypeCode@4b5189ac
m_y = 0.0;
// m_z com.eprosima.idl.parser.typecode.PrimitiveTypeCode@1e4d3ce5
m_z = 0.0;
// m_yaw com.eprosima.idl.parser.typecode.PrimitiveTypeCode@3ddc6915
m_yaw = 0.0;
// m_yawspeed com.eprosima.idl.parser.typecode.PrimitiveTypeCode@704deff2
m_yawspeed = 0.0;
// m_vx com.eprosima.idl.parser.typecode.PrimitiveTypeCode@379614be
m_vx = 0.0;
// m_vy com.eprosima.idl.parser.typecode.PrimitiveTypeCode@404bbcbd
m_vy = 0.0;
// m_vz com.eprosima.idl.parser.typecode.PrimitiveTypeCode@1e81f160
m_vz = 0.0;
// m_acceleration com.eprosima.idl.parser.typecode.AliasTypeCode@1acaf3d
memset(&m_acceleration, 0, (3) * 4);
// m_jerk com.eprosima.idl.parser.typecode.AliasTypeCode@1acaf3d
memset(&m_jerk, 0, (3) * 4);
// m_thrust com.eprosima.idl.parser.typecode.AliasTypeCode@1acaf3d
memset(&m_thrust, 0, (3) * 4);
}
px4_msgs::msg::TrajectorySetpoint::~TrajectorySetpoint()
{
}
px4_msgs::msg::TrajectorySetpoint::TrajectorySetpoint(const TrajectorySetpoint &x)
{
m_timestamp = x.m_timestamp;
m_x = x.m_x;
m_y = x.m_y;
m_z = x.m_z;
m_yaw = x.m_yaw;
m_yawspeed = x.m_yawspeed;
m_vx = x.m_vx;
m_vy = x.m_vy;
m_vz = x.m_vz;
m_acceleration = x.m_acceleration;
m_jerk = x.m_jerk;
m_thrust = x.m_thrust;
}
px4_msgs::msg::TrajectorySetpoint::TrajectorySetpoint(TrajectorySetpoint &&x)
{
m_timestamp = x.m_timestamp;
m_x = x.m_x;
m_y = x.m_y;
m_z = x.m_z;
m_yaw = x.m_yaw;
m_yawspeed = x.m_yawspeed;
m_vx = x.m_vx;
m_vy = x.m_vy;
m_vz = x.m_vz;
m_acceleration = std::move(x.m_acceleration);
m_jerk = std::move(x.m_jerk);
m_thrust = std::move(x.m_thrust);
}
px4_msgs::msg::TrajectorySetpoint& px4_msgs::msg::TrajectorySetpoint::operator=(const TrajectorySetpoint &x)
{
m_timestamp = x.m_timestamp;
m_x = x.m_x;
m_y = x.m_y;
m_z = x.m_z;
m_yaw = x.m_yaw;
m_yawspeed = x.m_yawspeed;
m_vx = x.m_vx;
m_vy = x.m_vy;
m_vz = x.m_vz;
m_acceleration = x.m_acceleration;
m_jerk = x.m_jerk;
m_thrust = x.m_thrust;
return *this;
}
px4_msgs::msg::TrajectorySetpoint& px4_msgs::msg::TrajectorySetpoint::operator=(TrajectorySetpoint &&x)
{
m_timestamp = x.m_timestamp;
m_x = x.m_x;
m_y = x.m_y;
m_z = x.m_z;
m_yaw = x.m_yaw;
m_yawspeed = x.m_yawspeed;
m_vx = x.m_vx;
m_vy = x.m_vy;
m_vz = x.m_vz;
m_acceleration = std::move(x.m_acceleration);
m_jerk = std::move(x.m_jerk);
m_thrust = std::move(x.m_thrust);
return *this;
}
size_t px4_msgs::msg::TrajectorySetpoint::getMaxCdrSerializedSize(size_t current_alignment)
{
size_t initial_alignment = current_alignment;
current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += ((3) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += ((3) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += ((3) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
return current_alignment - initial_alignment;
}
size_t px4_msgs::msg::TrajectorySetpoint::getCdrSerializedSize(const px4_msgs::msg::TrajectorySetpoint& data, size_t current_alignment)
{
(void)data;
size_t initial_alignment = current_alignment;
current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
if ((3) > 0)
{
current_alignment += ((3) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
}
if ((3) > 0)
{
current_alignment += ((3) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
}
if ((3) > 0)
{
current_alignment += ((3) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
}
return current_alignment - initial_alignment;
}
void px4_msgs::msg::TrajectorySetpoint::serialize(eprosima::fastcdr::Cdr &scdr) const
{
scdr << m_timestamp;
scdr << m_x;
scdr << m_y;
scdr << m_z;
scdr << m_yaw;
scdr << m_yawspeed;
scdr << m_vx;
scdr << m_vy;
scdr << m_vz;
scdr << m_acceleration;
scdr << m_jerk;
scdr << m_thrust;
}
void px4_msgs::msg::TrajectorySetpoint::deserialize(eprosima::fastcdr::Cdr &dcdr)
{
dcdr >> m_timestamp;
dcdr >> m_x;
dcdr >> m_y;
dcdr >> m_z;
dcdr >> m_yaw;
dcdr >> m_yawspeed;
dcdr >> m_vx;
dcdr >> m_vy;
dcdr >> m_vz;
dcdr >> m_acceleration;
dcdr >> m_jerk;
dcdr >> m_thrust;
}
/*!
* @brief This function sets a value in member timestamp
* @param _timestamp New value for member timestamp
*/
void px4_msgs::msg::TrajectorySetpoint::timestamp(uint64_t _timestamp)
{
m_timestamp = _timestamp;
}
/*!
* @brief This function returns the value of member timestamp
* @return Value of member timestamp
*/
uint64_t px4_msgs::msg::TrajectorySetpoint::timestamp() const
{
return m_timestamp;
}
/*!
* @brief This function returns a reference to member timestamp
* @return Reference to member timestamp
*/
uint64_t& px4_msgs::msg::TrajectorySetpoint::timestamp()
{
return m_timestamp;
}
/*!
* @brief This function sets a value in member x
* @param _x New value for member x
*/
void px4_msgs::msg::TrajectorySetpoint::x(float _x)
{
m_x = _x;
}
/*!
* @brief This function returns the value of member x
* @return Value of member x
*/
float px4_msgs::msg::TrajectorySetpoint::x() const
{
return m_x;
}
/*!
* @brief This function returns a reference to member x
* @return Reference to member x
*/
float& px4_msgs::msg::TrajectorySetpoint::x()
{
return m_x;
}
/*!
* @brief This function sets a value in member y
* @param _y New value for member y
*/
void px4_msgs::msg::TrajectorySetpoint::y(float _y)
{
m_y = _y;
}
/*!
* @brief This function returns the value of member y
* @return Value of member y
*/
float px4_msgs::msg::TrajectorySetpoint::y() const
{
return m_y;
}
/*!
* @brief This function returns a reference to member y
* @return Reference to member y
*/
float& px4_msgs::msg::TrajectorySetpoint::y()
{
return m_y;
}
/*!
* @brief This function sets a value in member z
* @param _z New value for member z
*/
void px4_msgs::msg::TrajectorySetpoint::z(float _z)
{
m_z = _z;
}
/*!
* @brief This function returns the value of member z
* @return Value of member z
*/
float px4_msgs::msg::TrajectorySetpoint::z() const
{
return m_z;
}
/*!
* @brief This function returns a reference to member z
* @return Reference to member z
*/
float& px4_msgs::msg::TrajectorySetpoint::z()
{
return m_z;
}
/*!
* @brief This function sets a value in member yaw
* @param _yaw New value for member yaw
*/
void px4_msgs::msg::TrajectorySetpoint::yaw(float _yaw)
{
m_yaw = _yaw;
}
/*!
* @brief This function returns the value of member yaw
* @return Value of member yaw
*/
float px4_msgs::msg::TrajectorySetpoint::yaw() const
{
return m_yaw;
}
/*!
* @brief This function returns a reference to member yaw
* @return Reference to member yaw
*/
float& px4_msgs::msg::TrajectorySetpoint::yaw()
{
return m_yaw;
}
/*!
* @brief This function sets a value in member yawspeed
* @param _yawspeed New value for member yawspeed
*/
void px4_msgs::msg::TrajectorySetpoint::yawspeed(float _yawspeed)
{
m_yawspeed = _yawspeed;
}
/*!
* @brief This function returns the value of member yawspeed
* @return Value of member yawspeed
*/
float px4_msgs::msg::TrajectorySetpoint::yawspeed() const
{
return m_yawspeed;
}
/*!
* @brief This function returns a reference to member yawspeed
* @return Reference to member yawspeed
*/
float& px4_msgs::msg::TrajectorySetpoint::yawspeed()
{
return m_yawspeed;
}
/*!
* @brief This function sets a value in member vx
* @param _vx New value for member vx
*/
void px4_msgs::msg::TrajectorySetpoint::vx(float _vx)
{
m_vx = _vx;
}
/*!
* @brief This function returns the value of member vx
* @return Value of member vx
*/
float px4_msgs::msg::TrajectorySetpoint::vx() const
{
return m_vx;
}
/*!
* @brief This function returns a reference to member vx
* @return Reference to member vx
*/
float& px4_msgs::msg::TrajectorySetpoint::vx()
{
return m_vx;
}
/*!
* @brief This function sets a value in member vy
* @param _vy New value for member vy
*/
void px4_msgs::msg::TrajectorySetpoint::vy(float _vy)
{
m_vy = _vy;
}
/*!
* @brief This function returns the value of member vy
* @return Value of member vy
*/
float px4_msgs::msg::TrajectorySetpoint::vy() const
{
return m_vy;
}
/*!
* @brief This function returns a reference to member vy
* @return Reference to member vy
*/
float& px4_msgs::msg::TrajectorySetpoint::vy()
{
return m_vy;
}
/*!
* @brief This function sets a value in member vz
* @param _vz New value for member vz
*/
void px4_msgs::msg::TrajectorySetpoint::vz(float _vz)
{
m_vz = _vz;
}
/*!
* @brief This function returns the value of member vz
* @return Value of member vz
*/
float px4_msgs::msg::TrajectorySetpoint::vz() const
{
return m_vz;
}
/*!
* @brief This function returns a reference to member vz
* @return Reference to member vz
*/
float& px4_msgs::msg::TrajectorySetpoint::vz()
{
return m_vz;
}
/*!
* @brief This function copies the value in member acceleration
* @param _acceleration New value to be copied in member acceleration
*/
void px4_msgs::msg::TrajectorySetpoint::acceleration(const px4_msgs::msg::float__3 &_acceleration)
{
m_acceleration = _acceleration;
}
/*!
* @brief This function moves the value in member acceleration
* @param _acceleration New value to be moved in member acceleration
*/
void px4_msgs::msg::TrajectorySetpoint::acceleration(px4_msgs::msg::float__3 &&_acceleration)
{
m_acceleration = std::move(_acceleration);
}
/*!
* @brief This function returns a constant reference to member acceleration
* @return Constant reference to member acceleration
*/
const px4_msgs::msg::float__3& px4_msgs::msg::TrajectorySetpoint::acceleration() const
{
return m_acceleration;
}
/*!
* @brief This function returns a reference to member acceleration
* @return Reference to member acceleration
*/
px4_msgs::msg::float__3& px4_msgs::msg::TrajectorySetpoint::acceleration()
{
return m_acceleration;
}
/*!
* @brief This function copies the value in member jerk
* @param _jerk New value to be copied in member jerk
*/
void px4_msgs::msg::TrajectorySetpoint::jerk(const px4_msgs::msg::float__3 &_jerk)
{
m_jerk = _jerk;
}
/*!
* @brief This function moves the value in member jerk
* @param _jerk New value to be moved in member jerk
*/
void px4_msgs::msg::TrajectorySetpoint::jerk(px4_msgs::msg::float__3 &&_jerk)
{
m_jerk = std::move(_jerk);
}
/*!
* @brief This function returns a constant reference to member jerk
* @return Constant reference to member jerk
*/
const px4_msgs::msg::float__3& px4_msgs::msg::TrajectorySetpoint::jerk() const
{
return m_jerk;
}
/*!
* @brief This function returns a reference to member jerk
* @return Reference to member jerk
*/
px4_msgs::msg::float__3& px4_msgs::msg::TrajectorySetpoint::jerk()
{
return m_jerk;
}
/*!
* @brief This function copies the value in member thrust
* @param _thrust New value to be copied in member thrust
*/
void px4_msgs::msg::TrajectorySetpoint::thrust(const px4_msgs::msg::float__3 &_thrust)
{
m_thrust = _thrust;
}
/*!
* @brief This function moves the value in member thrust
* @param _thrust New value to be moved in member thrust
*/
void px4_msgs::msg::TrajectorySetpoint::thrust(px4_msgs::msg::float__3 &&_thrust)
{
m_thrust = std::move(_thrust);
}
/*!
* @brief This function returns a constant reference to member thrust
* @return Constant reference to member thrust
*/
const px4_msgs::msg::float__3& px4_msgs::msg::TrajectorySetpoint::thrust() const
{
return m_thrust;
}
/*!
* @brief This function returns a reference to member thrust
* @return Reference to member thrust
*/
px4_msgs::msg::float__3& px4_msgs::msg::TrajectorySetpoint::thrust()
{
return m_thrust;
}
size_t px4_msgs::msg::TrajectorySetpoint::getKeyMaxCdrSerializedSize(size_t current_alignment)
{
size_t current_align = current_alignment;
return current_align;
}
bool px4_msgs::msg::TrajectorySetpoint::isKeyDefined()
{
return false;
}
void px4_msgs::msg::TrajectorySetpoint::serializeKey(eprosima::fastcdr::Cdr &scdr) const
{
(void) scdr;
}
@@ -0,0 +1,413 @@
// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
/*!
* @file TrajectorySetpoint.h
* This header file contains the declaration of the described types in the IDL file.
*
* This file was generated by the tool gen.
*/
#ifndef _PX4_MSGS_MSG_TRAJECTORYSETPOINT_H_
#define _PX4_MSGS_MSG_TRAJECTORYSETPOINT_H_
// TODO Poner en el contexto.
#include <stdint.h>
#include <array>
#include <string>
#include <vector>
#include <map>
#include <bitset>
#if defined(_WIN32)
#if defined(EPROSIMA_USER_DLL_EXPORT)
#define eProsima_user_DllExport __declspec( dllexport )
#else
#define eProsima_user_DllExport
#endif
#else
#define eProsima_user_DllExport
#endif
#if defined(_WIN32)
#if defined(EPROSIMA_USER_DLL_EXPORT)
#if defined(TrajectorySetpoint_SOURCE)
#define TrajectorySetpoint_DllAPI __declspec( dllexport )
#else
#define TrajectorySetpoint_DllAPI __declspec( dllimport )
#endif // TrajectorySetpoint_SOURCE
#else
#define TrajectorySetpoint_DllAPI
#endif
#else
#define TrajectorySetpoint_DllAPI
#endif // _WIN32
namespace eprosima
{
namespace fastcdr
{
class Cdr;
}
}
namespace px4_msgs
{
namespace msg
{
typedef std::array<float, 3> float__3;
/*!
* @brief This class represents the structure TrajectorySetpoint defined by the user in the IDL file.
* @ingroup TRAJECTORYSETPOINT
*/
class TrajectorySetpoint
{
public:
/*!
* @brief Default constructor.
*/
eProsima_user_DllExport TrajectorySetpoint();
/*!
* @brief Default destructor.
*/
eProsima_user_DllExport ~TrajectorySetpoint();
/*!
* @brief Copy constructor.
* @param x Reference to the object px4_msgs::msg::TrajectorySetpoint that will be copied.
*/
eProsima_user_DllExport TrajectorySetpoint(const TrajectorySetpoint &x);
/*!
* @brief Move constructor.
* @param x Reference to the object px4_msgs::msg::TrajectorySetpoint that will be copied.
*/
eProsima_user_DllExport TrajectorySetpoint(TrajectorySetpoint &&x);
/*!
* @brief Copy assignment.
* @param x Reference to the object px4_msgs::msg::TrajectorySetpoint that will be copied.
*/
eProsima_user_DllExport TrajectorySetpoint& operator=(const TrajectorySetpoint &x);
/*!
* @brief Move assignment.
* @param x Reference to the object px4_msgs::msg::TrajectorySetpoint that will be copied.
*/
eProsima_user_DllExport TrajectorySetpoint& operator=(TrajectorySetpoint &&x);
/*!
* @brief This function sets a value in member timestamp
* @param _timestamp New value for member timestamp
*/
eProsima_user_DllExport void timestamp(uint64_t _timestamp);
/*!
* @brief This function returns the value of member timestamp
* @return Value of member timestamp
*/
eProsima_user_DllExport uint64_t timestamp() const;
/*!
* @brief This function returns a reference to member timestamp
* @return Reference to member timestamp
*/
eProsima_user_DllExport uint64_t& timestamp();
/*!
* @brief This function sets a value in member x
* @param _x New value for member x
*/
eProsima_user_DllExport void x(float _x);
/*!
* @brief This function returns the value of member x
* @return Value of member x
*/
eProsima_user_DllExport float x() const;
/*!
* @brief This function returns a reference to member x
* @return Reference to member x
*/
eProsima_user_DllExport float& x();
/*!
* @brief This function sets a value in member y
* @param _y New value for member y
*/
eProsima_user_DllExport void y(float _y);
/*!
* @brief This function returns the value of member y
* @return Value of member y
*/
eProsima_user_DllExport float y() const;
/*!
* @brief This function returns a reference to member y
* @return Reference to member y
*/
eProsima_user_DllExport float& y();
/*!
* @brief This function sets a value in member z
* @param _z New value for member z
*/
eProsima_user_DllExport void z(float _z);
/*!
* @brief This function returns the value of member z
* @return Value of member z
*/
eProsima_user_DllExport float z() const;
/*!
* @brief This function returns a reference to member z
* @return Reference to member z
*/
eProsima_user_DllExport float& z();
/*!
* @brief This function sets a value in member yaw
* @param _yaw New value for member yaw
*/
eProsima_user_DllExport void yaw(float _yaw);
/*!
* @brief This function returns the value of member yaw
* @return Value of member yaw
*/
eProsima_user_DllExport float yaw() const;
/*!
* @brief This function returns a reference to member yaw
* @return Reference to member yaw
*/
eProsima_user_DllExport float& yaw();
/*!
* @brief This function sets a value in member yawspeed
* @param _yawspeed New value for member yawspeed
*/
eProsima_user_DllExport void yawspeed(float _yawspeed);
/*!
* @brief This function returns the value of member yawspeed
* @return Value of member yawspeed
*/
eProsima_user_DllExport float yawspeed() const;
/*!
* @brief This function returns a reference to member yawspeed
* @return Reference to member yawspeed
*/
eProsima_user_DllExport float& yawspeed();
/*!
* @brief This function sets a value in member vx
* @param _vx New value for member vx
*/
eProsima_user_DllExport void vx(float _vx);
/*!
* @brief This function returns the value of member vx
* @return Value of member vx
*/
eProsima_user_DllExport float vx() const;
/*!
* @brief This function returns a reference to member vx
* @return Reference to member vx
*/
eProsima_user_DllExport float& vx();
/*!
* @brief This function sets a value in member vy
* @param _vy New value for member vy
*/
eProsima_user_DllExport void vy(float _vy);
/*!
* @brief This function returns the value of member vy
* @return Value of member vy
*/
eProsima_user_DllExport float vy() const;
/*!
* @brief This function returns a reference to member vy
* @return Reference to member vy
*/
eProsima_user_DllExport float& vy();
/*!
* @brief This function sets a value in member vz
* @param _vz New value for member vz
*/
eProsima_user_DllExport void vz(float _vz);
/*!
* @brief This function returns the value of member vz
* @return Value of member vz
*/
eProsima_user_DllExport float vz() const;
/*!
* @brief This function returns a reference to member vz
* @return Reference to member vz
*/
eProsima_user_DllExport float& vz();
/*!
* @brief This function copies the value in member acceleration
* @param _acceleration New value to be copied in member acceleration
*/
eProsima_user_DllExport void acceleration(const px4_msgs::msg::float__3 &_acceleration);
/*!
* @brief This function moves the value in member acceleration
* @param _acceleration New value to be moved in member acceleration
*/
eProsima_user_DllExport void acceleration(px4_msgs::msg::float__3 &&_acceleration);
/*!
* @brief This function returns a constant reference to member acceleration
* @return Constant reference to member acceleration
*/
eProsima_user_DllExport const px4_msgs::msg::float__3& acceleration() const;
/*!
* @brief This function returns a reference to member acceleration
* @return Reference to member acceleration
*/
eProsima_user_DllExport px4_msgs::msg::float__3& acceleration();
/*!
* @brief This function copies the value in member jerk
* @param _jerk New value to be copied in member jerk
*/
eProsima_user_DllExport void jerk(const px4_msgs::msg::float__3 &_jerk);
/*!
* @brief This function moves the value in member jerk
* @param _jerk New value to be moved in member jerk
*/
eProsima_user_DllExport void jerk(px4_msgs::msg::float__3 &&_jerk);
/*!
* @brief This function returns a constant reference to member jerk
* @return Constant reference to member jerk
*/
eProsima_user_DllExport const px4_msgs::msg::float__3& jerk() const;
/*!
* @brief This function returns a reference to member jerk
* @return Reference to member jerk
*/
eProsima_user_DllExport px4_msgs::msg::float__3& jerk();
/*!
* @brief This function copies the value in member thrust
* @param _thrust New value to be copied in member thrust
*/
eProsima_user_DllExport void thrust(const px4_msgs::msg::float__3 &_thrust);
/*!
* @brief This function moves the value in member thrust
* @param _thrust New value to be moved in member thrust
*/
eProsima_user_DllExport void thrust(px4_msgs::msg::float__3 &&_thrust);
/*!
* @brief This function returns a constant reference to member thrust
* @return Constant reference to member thrust
*/
eProsima_user_DllExport const px4_msgs::msg::float__3& thrust() const;
/*!
* @brief This function returns a reference to member thrust
* @return Reference to member thrust
*/
eProsima_user_DllExport px4_msgs::msg::float__3& thrust();
/*!
* @brief This function returns the maximum serialized size of an object
* depending on the buffer alignment.
* @param current_alignment Buffer alignment.
* @return Maximum serialized size.
*/
eProsima_user_DllExport static size_t getMaxCdrSerializedSize(size_t current_alignment = 0);
/*!
* @brief This function returns the serialized size of a data depending on the buffer alignment.
* @param data Data which is calculated its serialized size.
* @param current_alignment Buffer alignment.
* @return Serialized size.
*/
eProsima_user_DllExport static size_t getCdrSerializedSize(const px4_msgs::msg::TrajectorySetpoint& data, size_t current_alignment = 0);
/*!
* @brief This function serializes an object using CDR serialization.
* @param cdr CDR serialization object.
*/
eProsima_user_DllExport void serialize(eprosima::fastcdr::Cdr &cdr) const;
/*!
* @brief This function deserializes an object using CDR serialization.
* @param cdr CDR serialization object.
*/
eProsima_user_DllExport void deserialize(eprosima::fastcdr::Cdr &cdr);
/*!
* @brief This function returns the maximum serialized size of the Key of an object
* depending on the buffer alignment.
* @param current_alignment Buffer alignment.
* @return Maximum serialized size.
*/
eProsima_user_DllExport static size_t getKeyMaxCdrSerializedSize(size_t current_alignment = 0);
/*!
* @brief This function tells you if the Key has been defined for this type
*/
eProsima_user_DllExport static bool isKeyDefined();
/*!
* @brief This function serializes the key members of an object using CDR serialization.
* @param cdr CDR serialization object.
*/
eProsima_user_DllExport void serializeKey(eprosima::fastcdr::Cdr &cdr) const;
private:
uint64_t m_timestamp;
float m_x;
float m_y;
float m_z;
float m_yaw;
float m_yawspeed;
float m_vx;
float m_vy;
float m_vz;
px4_msgs::msg::float__3 m_acceleration;
px4_msgs::msg::float__3 m_jerk;
px4_msgs::msg::float__3 m_thrust;
};
}
}
#endif // _PX4_MSGS_MSG_TRAJECTORYSETPOINT_H_
@@ -0,0 +1,142 @@
// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
/*!
* @file TrajectorySetpointPubSubTypes.cpp
* This header file contains the implementation of the serialization functions.
*
* This file was generated by the tool fastcdrgen.
*/
#include <fastcdr/FastBuffer.h>
#include <fastcdr/Cdr.h>
#include "TrajectorySetpointPubSubTypes.h"
using namespace eprosima::fastrtps;
using namespace eprosima::fastrtps::rtps;
namespace px4_msgs
{
namespace msg
{
TrajectorySetpointPubSubType::TrajectorySetpointPubSubType()
{
setName("px4_msgs::msg::TrajectorySetpoint");
m_typeSize = static_cast<uint32_t>(TrajectorySetpoint::getMaxCdrSerializedSize()) + 4 /*encapsulation*/;
m_isGetKeyDefined = TrajectorySetpoint::isKeyDefined();
size_t keyLength = TrajectorySetpoint::getKeyMaxCdrSerializedSize()>16 ? TrajectorySetpoint::getKeyMaxCdrSerializedSize() : 16;
m_keyBuffer = reinterpret_cast<unsigned char*>(malloc(keyLength));
memset(m_keyBuffer, 0, keyLength);
}
TrajectorySetpointPubSubType::~TrajectorySetpointPubSubType()
{
if(m_keyBuffer!=nullptr)
free(m_keyBuffer);
}
bool TrajectorySetpointPubSubType::serialize(void *data, SerializedPayload_t *payload)
{
TrajectorySetpoint *p_type = static_cast<TrajectorySetpoint*>(data);
eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast<char*>(payload->data), payload->max_size); // Object that manages the raw buffer.
eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN,
eprosima::fastcdr::Cdr::DDS_CDR); // Object that serializes the data.
payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE;
// Serialize encapsulation
ser.serialize_encapsulation();
try
{
p_type->serialize(ser); // Serialize the object:
}
catch(eprosima::fastcdr::exception::NotEnoughMemoryException& /*exception*/)
{
return false;
}
payload->length = static_cast<uint32_t>(ser.getSerializedDataLength()); //Get the serialized length
return true;
}
bool TrajectorySetpointPubSubType::deserialize(SerializedPayload_t* payload, void* data)
{
TrajectorySetpoint* p_type = static_cast<TrajectorySetpoint*>(data); //Convert DATA to pointer of your type
eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast<char*>(payload->data), payload->length); // Object that manages the raw buffer.
eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN,
eprosima::fastcdr::Cdr::DDS_CDR); // Object that deserializes the data.
// Deserialize encapsulation.
deser.read_encapsulation();
payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE;
try
{
p_type->deserialize(deser); //Deserialize the object:
}
catch(eprosima::fastcdr::exception::NotEnoughMemoryException& /*exception*/)
{
return false;
}
return true;
}
std::function<uint32_t()> TrajectorySetpointPubSubType::getSerializedSizeProvider(void* data)
{
return [data]() -> uint32_t
{
return static_cast<uint32_t>(type::getCdrSerializedSize(*static_cast<TrajectorySetpoint*>(data))) + 4 /*encapsulation*/;
};
}
void* TrajectorySetpointPubSubType::createData()
{
return reinterpret_cast<void*>(new TrajectorySetpoint());
}
void TrajectorySetpointPubSubType::deleteData(void* data)
{
delete(reinterpret_cast<TrajectorySetpoint*>(data));
}
bool TrajectorySetpointPubSubType::getKey(void *data, InstanceHandle_t* handle, bool force_md5)
{
if(!m_isGetKeyDefined)
return false;
TrajectorySetpoint* p_type = static_cast<TrajectorySetpoint*>(data);
eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast<char*>(m_keyBuffer),TrajectorySetpoint::getKeyMaxCdrSerializedSize()); // Object that manages the raw buffer.
eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS); // Object that serializes the data.
p_type->serializeKey(ser);
if(force_md5 || TrajectorySetpoint::getKeyMaxCdrSerializedSize()>16) {
m_md5.init();
m_md5.update(m_keyBuffer, static_cast<unsigned int>(ser.getSerializedDataLength()));
m_md5.finalize();
for(uint8_t i = 0;i<16;++i) {
handle->value[i] = m_md5.digest[i];
}
}
else {
for(uint8_t i = 0;i<16;++i) {
handle->value[i] = m_keyBuffer[i];
}
}
return true;
}
} //End of namespace msg
} //End of namespace px4_msgs
@@ -0,0 +1,64 @@
// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
/*!
* @file TrajectorySetpointPubSubTypes.h
* This header file contains the declaration of the serialization functions.
*
* This file was generated by the tool fastcdrgen.
*/
#ifndef _PX4_MSGS_MSG_TRAJECTORYSETPOINT_PUBSUBTYPES_H_
#define _PX4_MSGS_MSG_TRAJECTORYSETPOINT_PUBSUBTYPES_H_
#include <fastrtps/config.h>
#include <fastrtps/TopicDataType.h>
#include "TrajectorySetpoint.h"
#if !defined(GEN_API_VER) || (GEN_API_VER != 1)
#error Generated TrajectorySetpoint is not compatible with current installed Fast-RTPS. Please, regenerate it with fastrtpsgen.
#endif
namespace px4_msgs
{
namespace msg
{
typedef std::array<float, 3> float__3;
/*!
* @brief This class represents the TopicDataType of the type TrajectorySetpoint defined by the user in the IDL file.
* @ingroup TRAJECTORYSETPOINT
*/
class TrajectorySetpointPubSubType : public eprosima::fastrtps::TopicDataType {
public:
typedef TrajectorySetpoint type;
eProsima_user_DllExport TrajectorySetpointPubSubType();
eProsima_user_DllExport virtual ~TrajectorySetpointPubSubType();
eProsima_user_DllExport virtual bool serialize(void *data, eprosima::fastrtps::rtps::SerializedPayload_t *payload) override;
eProsima_user_DllExport virtual bool deserialize(eprosima::fastrtps::rtps::SerializedPayload_t *payload, void *data) override;
eProsima_user_DllExport virtual std::function<uint32_t()> getSerializedSizeProvider(void* data) override;
eProsima_user_DllExport virtual bool getKey(void *data, eprosima::fastrtps::rtps::InstanceHandle_t *ihandle,
bool force_md5 = false) override;
eProsima_user_DllExport virtual void* createData() override;
eProsima_user_DllExport virtual void deleteData(void * data) override;
MD5 m_md5;
unsigned char* m_keyBuffer;
};
}
}
#endif // _PX4_MSGS_MSG_TRAJECTORYSETPOINT_PUBSUBTYPES_H_
@@ -0,0 +1,504 @@
// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
/*!
* @file TrajectoryWaypoint.cpp
* This source file contains the definition of the described types in the IDL file.
*
* This file was generated by the tool gen.
*/
#ifdef _WIN32
// Remove linker warning LNK4221 on Visual Studio
namespace { char dummy; }
#endif
#include "TrajectoryWaypoint.h"
#include <fastcdr/Cdr.h>
#include <fastcdr/exceptions/BadParamException.h>
using namespace eprosima::fastcdr::exception;
#include <utility>
px4_msgs::msg::TrajectoryWaypoint::TrajectoryWaypoint()
{
// m_timestamp com.eprosima.idl.parser.typecode.PrimitiveTypeCode@41330d4f
m_timestamp = 0;
// m_position com.eprosima.idl.parser.typecode.AliasTypeCode@1b66c0fb
memset(&m_position, 0, (3) * 4);
// m_velocity com.eprosima.idl.parser.typecode.AliasTypeCode@1b66c0fb
memset(&m_velocity, 0, (3) * 4);
// m_acceleration com.eprosima.idl.parser.typecode.AliasTypeCode@1b66c0fb
memset(&m_acceleration, 0, (3) * 4);
// m_yaw com.eprosima.idl.parser.typecode.PrimitiveTypeCode@3e0e1046
m_yaw = 0.0;
// m_yaw_speed com.eprosima.idl.parser.typecode.PrimitiveTypeCode@24c1b2d2
m_yaw_speed = 0.0;
// m_point_valid com.eprosima.idl.parser.typecode.PrimitiveTypeCode@7dc19a70
m_point_valid = false;
// m_type com.eprosima.idl.parser.typecode.PrimitiveTypeCode@508dec2b
m_type = 0;
}
px4_msgs::msg::TrajectoryWaypoint::~TrajectoryWaypoint()
{
}
px4_msgs::msg::TrajectoryWaypoint::TrajectoryWaypoint(const TrajectoryWaypoint &x)
{
m_timestamp = x.m_timestamp;
m_position = x.m_position;
m_velocity = x.m_velocity;
m_acceleration = x.m_acceleration;
m_yaw = x.m_yaw;
m_yaw_speed = x.m_yaw_speed;
m_point_valid = x.m_point_valid;
m_type = x.m_type;
}
px4_msgs::msg::TrajectoryWaypoint::TrajectoryWaypoint(TrajectoryWaypoint &&x)
{
m_timestamp = x.m_timestamp;
m_position = std::move(x.m_position);
m_velocity = std::move(x.m_velocity);
m_acceleration = std::move(x.m_acceleration);
m_yaw = x.m_yaw;
m_yaw_speed = x.m_yaw_speed;
m_point_valid = x.m_point_valid;
m_type = x.m_type;
}
px4_msgs::msg::TrajectoryWaypoint& px4_msgs::msg::TrajectoryWaypoint::operator=(const TrajectoryWaypoint &x)
{
m_timestamp = x.m_timestamp;
m_position = x.m_position;
m_velocity = x.m_velocity;
m_acceleration = x.m_acceleration;
m_yaw = x.m_yaw;
m_yaw_speed = x.m_yaw_speed;
m_point_valid = x.m_point_valid;
m_type = x.m_type;
return *this;
}
px4_msgs::msg::TrajectoryWaypoint& px4_msgs::msg::TrajectoryWaypoint::operator=(TrajectoryWaypoint &&x)
{
m_timestamp = x.m_timestamp;
m_position = std::move(x.m_position);
m_velocity = std::move(x.m_velocity);
m_acceleration = std::move(x.m_acceleration);
m_yaw = x.m_yaw;
m_yaw_speed = x.m_yaw_speed;
m_point_valid = x.m_point_valid;
m_type = x.m_type;
return *this;
}
size_t px4_msgs::msg::TrajectoryWaypoint::getMaxCdrSerializedSize(size_t current_alignment)
{
size_t initial_alignment = current_alignment;
current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8);
current_alignment += ((3) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += ((3) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += ((3) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1);
current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1);
return current_alignment - initial_alignment;
}
size_t px4_msgs::msg::TrajectoryWaypoint::getCdrSerializedSize(const px4_msgs::msg::TrajectoryWaypoint& data, size_t current_alignment)
{
(void)data;
size_t initial_alignment = current_alignment;
current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8);
if ((3) > 0)
{
current_alignment += ((3) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
}
if ((3) > 0)
{
current_alignment += ((3) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
}
if ((3) > 0)
{
current_alignment += ((3) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
}
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1);
current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1);
return current_alignment - initial_alignment;
}
void px4_msgs::msg::TrajectoryWaypoint::serialize(eprosima::fastcdr::Cdr &scdr) const
{
scdr << m_timestamp;
scdr << m_position;
scdr << m_velocity;
scdr << m_acceleration;
scdr << m_yaw;
scdr << m_yaw_speed;
scdr << m_point_valid;
scdr << m_type;
}
void px4_msgs::msg::TrajectoryWaypoint::deserialize(eprosima::fastcdr::Cdr &dcdr)
{
dcdr >> m_timestamp;
dcdr >> m_position;
dcdr >> m_velocity;
dcdr >> m_acceleration;
dcdr >> m_yaw;
dcdr >> m_yaw_speed;
dcdr >> m_point_valid;
dcdr >> m_type;
}
/*!
* @brief This function sets a value in member timestamp
* @param _timestamp New value for member timestamp
*/
void px4_msgs::msg::TrajectoryWaypoint::timestamp(uint64_t _timestamp)
{
m_timestamp = _timestamp;
}
/*!
* @brief This function returns the value of member timestamp
* @return Value of member timestamp
*/
uint64_t px4_msgs::msg::TrajectoryWaypoint::timestamp() const
{
return m_timestamp;
}
/*!
* @brief This function returns a reference to member timestamp
* @return Reference to member timestamp
*/
uint64_t& px4_msgs::msg::TrajectoryWaypoint::timestamp()
{
return m_timestamp;
}
/*!
* @brief This function copies the value in member position
* @param _position New value to be copied in member position
*/
void px4_msgs::msg::TrajectoryWaypoint::position(const px4_msgs::msg::float__3 &_position)
{
m_position = _position;
}
/*!
* @brief This function moves the value in member position
* @param _position New value to be moved in member position
*/
void px4_msgs::msg::TrajectoryWaypoint::position(px4_msgs::msg::float__3 &&_position)
{
m_position = std::move(_position);
}
/*!
* @brief This function returns a constant reference to member position
* @return Constant reference to member position
*/
const px4_msgs::msg::float__3& px4_msgs::msg::TrajectoryWaypoint::position() const
{
return m_position;
}
/*!
* @brief This function returns a reference to member position
* @return Reference to member position
*/
px4_msgs::msg::float__3& px4_msgs::msg::TrajectoryWaypoint::position()
{
return m_position;
}
/*!
* @brief This function copies the value in member velocity
* @param _velocity New value to be copied in member velocity
*/
void px4_msgs::msg::TrajectoryWaypoint::velocity(const px4_msgs::msg::float__3 &_velocity)
{
m_velocity = _velocity;
}
/*!
* @brief This function moves the value in member velocity
* @param _velocity New value to be moved in member velocity
*/
void px4_msgs::msg::TrajectoryWaypoint::velocity(px4_msgs::msg::float__3 &&_velocity)
{
m_velocity = std::move(_velocity);
}
/*!
* @brief This function returns a constant reference to member velocity
* @return Constant reference to member velocity
*/
const px4_msgs::msg::float__3& px4_msgs::msg::TrajectoryWaypoint::velocity() const
{
return m_velocity;
}
/*!
* @brief This function returns a reference to member velocity
* @return Reference to member velocity
*/
px4_msgs::msg::float__3& px4_msgs::msg::TrajectoryWaypoint::velocity()
{
return m_velocity;
}
/*!
* @brief This function copies the value in member acceleration
* @param _acceleration New value to be copied in member acceleration
*/
void px4_msgs::msg::TrajectoryWaypoint::acceleration(const px4_msgs::msg::float__3 &_acceleration)
{
m_acceleration = _acceleration;
}
/*!
* @brief This function moves the value in member acceleration
* @param _acceleration New value to be moved in member acceleration
*/
void px4_msgs::msg::TrajectoryWaypoint::acceleration(px4_msgs::msg::float__3 &&_acceleration)
{
m_acceleration = std::move(_acceleration);
}
/*!
* @brief This function returns a constant reference to member acceleration
* @return Constant reference to member acceleration
*/
const px4_msgs::msg::float__3& px4_msgs::msg::TrajectoryWaypoint::acceleration() const
{
return m_acceleration;
}
/*!
* @brief This function returns a reference to member acceleration
* @return Reference to member acceleration
*/
px4_msgs::msg::float__3& px4_msgs::msg::TrajectoryWaypoint::acceleration()
{
return m_acceleration;
}
/*!
* @brief This function sets a value in member yaw
* @param _yaw New value for member yaw
*/
void px4_msgs::msg::TrajectoryWaypoint::yaw(float _yaw)
{
m_yaw = _yaw;
}
/*!
* @brief This function returns the value of member yaw
* @return Value of member yaw
*/
float px4_msgs::msg::TrajectoryWaypoint::yaw() const
{
return m_yaw;
}
/*!
* @brief This function returns a reference to member yaw
* @return Reference to member yaw
*/
float& px4_msgs::msg::TrajectoryWaypoint::yaw()
{
return m_yaw;
}
/*!
* @brief This function sets a value in member yaw_speed
* @param _yaw_speed New value for member yaw_speed
*/
void px4_msgs::msg::TrajectoryWaypoint::yaw_speed(float _yaw_speed)
{
m_yaw_speed = _yaw_speed;
}
/*!
* @brief This function returns the value of member yaw_speed
* @return Value of member yaw_speed
*/
float px4_msgs::msg::TrajectoryWaypoint::yaw_speed() const
{
return m_yaw_speed;
}
/*!
* @brief This function returns a reference to member yaw_speed
* @return Reference to member yaw_speed
*/
float& px4_msgs::msg::TrajectoryWaypoint::yaw_speed()
{
return m_yaw_speed;
}
/*!
* @brief This function sets a value in member point_valid
* @param _point_valid New value for member point_valid
*/
void px4_msgs::msg::TrajectoryWaypoint::point_valid(bool _point_valid)
{
m_point_valid = _point_valid;
}
/*!
* @brief This function returns the value of member point_valid
* @return Value of member point_valid
*/
bool px4_msgs::msg::TrajectoryWaypoint::point_valid() const
{
return m_point_valid;
}
/*!
* @brief This function returns a reference to member point_valid
* @return Reference to member point_valid
*/
bool& px4_msgs::msg::TrajectoryWaypoint::point_valid()
{
return m_point_valid;
}
/*!
* @brief This function sets a value in member type
* @param _type New value for member type
*/
void px4_msgs::msg::TrajectoryWaypoint::type(uint8_t _type)
{
m_type = _type;
}
/*!
* @brief This function returns the value of member type
* @return Value of member type
*/
uint8_t px4_msgs::msg::TrajectoryWaypoint::type() const
{
return m_type;
}
/*!
* @brief This function returns a reference to member type
* @return Reference to member type
*/
uint8_t& px4_msgs::msg::TrajectoryWaypoint::type()
{
return m_type;
}
size_t px4_msgs::msg::TrajectoryWaypoint::getKeyMaxCdrSerializedSize(size_t current_alignment)
{
size_t current_align = current_alignment;
return current_align;
}
bool px4_msgs::msg::TrajectoryWaypoint::isKeyDefined()
{
return false;
}
void px4_msgs::msg::TrajectoryWaypoint::serializeKey(eprosima::fastcdr::Cdr &scdr) const
{
(void) scdr;
}
@@ -0,0 +1,337 @@
// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
/*!
* @file TrajectoryWaypoint.h
* This header file contains the declaration of the described types in the IDL file.
*
* This file was generated by the tool gen.
*/
#ifndef _PX4_MSGS_MSG_TRAJECTORYWAYPOINT_H_
#define _PX4_MSGS_MSG_TRAJECTORYWAYPOINT_H_
// TODO Poner en el contexto.
#include <stdint.h>
#include <array>
#include <string>
#include <vector>
#include <map>
#include <bitset>
#if defined(_WIN32)
#if defined(EPROSIMA_USER_DLL_EXPORT)
#define eProsima_user_DllExport __declspec( dllexport )
#else
#define eProsima_user_DllExport
#endif
#else
#define eProsima_user_DllExport
#endif
#if defined(_WIN32)
#if defined(EPROSIMA_USER_DLL_EXPORT)
#if defined(TrajectoryWaypoint_SOURCE)
#define TrajectoryWaypoint_DllAPI __declspec( dllexport )
#else
#define TrajectoryWaypoint_DllAPI __declspec( dllimport )
#endif // TrajectoryWaypoint_SOURCE
#else
#define TrajectoryWaypoint_DllAPI
#endif
#else
#define TrajectoryWaypoint_DllAPI
#endif // _WIN32
namespace eprosima
{
namespace fastcdr
{
class Cdr;
}
}
namespace px4_msgs
{
namespace msg
{
typedef std::array<float, 3> float__3;
/*!
* @brief This class represents the structure TrajectoryWaypoint defined by the user in the IDL file.
* @ingroup TRAJECTORYWAYPOINT
*/
class TrajectoryWaypoint
{
public:
/*!
* @brief Default constructor.
*/
eProsima_user_DllExport TrajectoryWaypoint();
/*!
* @brief Default destructor.
*/
eProsima_user_DllExport ~TrajectoryWaypoint();
/*!
* @brief Copy constructor.
* @param x Reference to the object px4_msgs::msg::TrajectoryWaypoint that will be copied.
*/
eProsima_user_DllExport TrajectoryWaypoint(const TrajectoryWaypoint &x);
/*!
* @brief Move constructor.
* @param x Reference to the object px4_msgs::msg::TrajectoryWaypoint that will be copied.
*/
eProsima_user_DllExport TrajectoryWaypoint(TrajectoryWaypoint &&x);
/*!
* @brief Copy assignment.
* @param x Reference to the object px4_msgs::msg::TrajectoryWaypoint that will be copied.
*/
eProsima_user_DllExport TrajectoryWaypoint& operator=(const TrajectoryWaypoint &x);
/*!
* @brief Move assignment.
* @param x Reference to the object px4_msgs::msg::TrajectoryWaypoint that will be copied.
*/
eProsima_user_DllExport TrajectoryWaypoint& operator=(TrajectoryWaypoint &&x);
/*!
* @brief This function sets a value in member timestamp
* @param _timestamp New value for member timestamp
*/
eProsima_user_DllExport void timestamp(uint64_t _timestamp);
/*!
* @brief This function returns the value of member timestamp
* @return Value of member timestamp
*/
eProsima_user_DllExport uint64_t timestamp() const;
/*!
* @brief This function returns a reference to member timestamp
* @return Reference to member timestamp
*/
eProsima_user_DllExport uint64_t& timestamp();
/*!
* @brief This function copies the value in member position
* @param _position New value to be copied in member position
*/
eProsima_user_DllExport void position(const px4_msgs::msg::float__3 &_position);
/*!
* @brief This function moves the value in member position
* @param _position New value to be moved in member position
*/
eProsima_user_DllExport void position(px4_msgs::msg::float__3 &&_position);
/*!
* @brief This function returns a constant reference to member position
* @return Constant reference to member position
*/
eProsima_user_DllExport const px4_msgs::msg::float__3& position() const;
/*!
* @brief This function returns a reference to member position
* @return Reference to member position
*/
eProsima_user_DllExport px4_msgs::msg::float__3& position();
/*!
* @brief This function copies the value in member velocity
* @param _velocity New value to be copied in member velocity
*/
eProsima_user_DllExport void velocity(const px4_msgs::msg::float__3 &_velocity);
/*!
* @brief This function moves the value in member velocity
* @param _velocity New value to be moved in member velocity
*/
eProsima_user_DllExport void velocity(px4_msgs::msg::float__3 &&_velocity);
/*!
* @brief This function returns a constant reference to member velocity
* @return Constant reference to member velocity
*/
eProsima_user_DllExport const px4_msgs::msg::float__3& velocity() const;
/*!
* @brief This function returns a reference to member velocity
* @return Reference to member velocity
*/
eProsima_user_DllExport px4_msgs::msg::float__3& velocity();
/*!
* @brief This function copies the value in member acceleration
* @param _acceleration New value to be copied in member acceleration
*/
eProsima_user_DllExport void acceleration(const px4_msgs::msg::float__3 &_acceleration);
/*!
* @brief This function moves the value in member acceleration
* @param _acceleration New value to be moved in member acceleration
*/
eProsima_user_DllExport void acceleration(px4_msgs::msg::float__3 &&_acceleration);
/*!
* @brief This function returns a constant reference to member acceleration
* @return Constant reference to member acceleration
*/
eProsima_user_DllExport const px4_msgs::msg::float__3& acceleration() const;
/*!
* @brief This function returns a reference to member acceleration
* @return Reference to member acceleration
*/
eProsima_user_DllExport px4_msgs::msg::float__3& acceleration();
/*!
* @brief This function sets a value in member yaw
* @param _yaw New value for member yaw
*/
eProsima_user_DllExport void yaw(float _yaw);
/*!
* @brief This function returns the value of member yaw
* @return Value of member yaw
*/
eProsima_user_DllExport float yaw() const;
/*!
* @brief This function returns a reference to member yaw
* @return Reference to member yaw
*/
eProsima_user_DllExport float& yaw();
/*!
* @brief This function sets a value in member yaw_speed
* @param _yaw_speed New value for member yaw_speed
*/
eProsima_user_DllExport void yaw_speed(float _yaw_speed);
/*!
* @brief This function returns the value of member yaw_speed
* @return Value of member yaw_speed
*/
eProsima_user_DllExport float yaw_speed() const;
/*!
* @brief This function returns a reference to member yaw_speed
* @return Reference to member yaw_speed
*/
eProsima_user_DllExport float& yaw_speed();
/*!
* @brief This function sets a value in member point_valid
* @param _point_valid New value for member point_valid
*/
eProsima_user_DllExport void point_valid(bool _point_valid);
/*!
* @brief This function returns the value of member point_valid
* @return Value of member point_valid
*/
eProsima_user_DllExport bool point_valid() const;
/*!
* @brief This function returns a reference to member point_valid
* @return Reference to member point_valid
*/
eProsima_user_DllExport bool& point_valid();
/*!
* @brief This function sets a value in member type
* @param _type New value for member type
*/
eProsima_user_DllExport void type(uint8_t _type);
/*!
* @brief This function returns the value of member type
* @return Value of member type
*/
eProsima_user_DllExport uint8_t type() const;
/*!
* @brief This function returns a reference to member type
* @return Reference to member type
*/
eProsima_user_DllExport uint8_t& type();
/*!
* @brief This function returns the maximum serialized size of an object
* depending on the buffer alignment.
* @param current_alignment Buffer alignment.
* @return Maximum serialized size.
*/
eProsima_user_DllExport static size_t getMaxCdrSerializedSize(size_t current_alignment = 0);
/*!
* @brief This function returns the serialized size of a data depending on the buffer alignment.
* @param data Data which is calculated its serialized size.
* @param current_alignment Buffer alignment.
* @return Serialized size.
*/
eProsima_user_DllExport static size_t getCdrSerializedSize(const px4_msgs::msg::TrajectoryWaypoint& data, size_t current_alignment = 0);
/*!
* @brief This function serializes an object using CDR serialization.
* @param cdr CDR serialization object.
*/
eProsima_user_DllExport void serialize(eprosima::fastcdr::Cdr &cdr) const;
/*!
* @brief This function deserializes an object using CDR serialization.
* @param cdr CDR serialization object.
*/
eProsima_user_DllExport void deserialize(eprosima::fastcdr::Cdr &cdr);
/*!
* @brief This function returns the maximum serialized size of the Key of an object
* depending on the buffer alignment.
* @param current_alignment Buffer alignment.
* @return Maximum serialized size.
*/
eProsima_user_DllExport static size_t getKeyMaxCdrSerializedSize(size_t current_alignment = 0);
/*!
* @brief This function tells you if the Key has been defined for this type
*/
eProsima_user_DllExport static bool isKeyDefined();
/*!
* @brief This function serializes the key members of an object using CDR serialization.
* @param cdr CDR serialization object.
*/
eProsima_user_DllExport void serializeKey(eprosima::fastcdr::Cdr &cdr) const;
private:
uint64_t m_timestamp;
px4_msgs::msg::float__3 m_position;
px4_msgs::msg::float__3 m_velocity;
px4_msgs::msg::float__3 m_acceleration;
float m_yaw;
float m_yaw_speed;
bool m_point_valid;
uint8_t m_type;
};
}
}
#endif // _PX4_MSGS_MSG_TRAJECTORYWAYPOINT_H_
@@ -0,0 +1,142 @@
// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
/*!
* @file TrajectoryWaypointPubSubTypes.cpp
* This header file contains the implementation of the serialization functions.
*
* This file was generated by the tool fastcdrgen.
*/
#include <fastcdr/FastBuffer.h>
#include <fastcdr/Cdr.h>
#include "TrajectoryWaypointPubSubTypes.h"
using namespace eprosima::fastrtps;
using namespace eprosima::fastrtps::rtps;
namespace px4_msgs
{
namespace msg
{
TrajectoryWaypointPubSubType::TrajectoryWaypointPubSubType()
{
setName("px4_msgs::msg::TrajectoryWaypoint");
m_typeSize = static_cast<uint32_t>(TrajectoryWaypoint::getMaxCdrSerializedSize()) + 4 /*encapsulation*/;
m_isGetKeyDefined = TrajectoryWaypoint::isKeyDefined();
size_t keyLength = TrajectoryWaypoint::getKeyMaxCdrSerializedSize()>16 ? TrajectoryWaypoint::getKeyMaxCdrSerializedSize() : 16;
m_keyBuffer = reinterpret_cast<unsigned char*>(malloc(keyLength));
memset(m_keyBuffer, 0, keyLength);
}
TrajectoryWaypointPubSubType::~TrajectoryWaypointPubSubType()
{
if(m_keyBuffer!=nullptr)
free(m_keyBuffer);
}
bool TrajectoryWaypointPubSubType::serialize(void *data, SerializedPayload_t *payload)
{
TrajectoryWaypoint *p_type = static_cast<TrajectoryWaypoint*>(data);
eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast<char*>(payload->data), payload->max_size); // Object that manages the raw buffer.
eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN,
eprosima::fastcdr::Cdr::DDS_CDR); // Object that serializes the data.
payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE;
// Serialize encapsulation
ser.serialize_encapsulation();
try
{
p_type->serialize(ser); // Serialize the object:
}
catch(eprosima::fastcdr::exception::NotEnoughMemoryException& /*exception*/)
{
return false;
}
payload->length = static_cast<uint32_t>(ser.getSerializedDataLength()); //Get the serialized length
return true;
}
bool TrajectoryWaypointPubSubType::deserialize(SerializedPayload_t* payload, void* data)
{
TrajectoryWaypoint* p_type = static_cast<TrajectoryWaypoint*>(data); //Convert DATA to pointer of your type
eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast<char*>(payload->data), payload->length); // Object that manages the raw buffer.
eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN,
eprosima::fastcdr::Cdr::DDS_CDR); // Object that deserializes the data.
// Deserialize encapsulation.
deser.read_encapsulation();
payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE;
try
{
p_type->deserialize(deser); //Deserialize the object:
}
catch(eprosima::fastcdr::exception::NotEnoughMemoryException& /*exception*/)
{
return false;
}
return true;
}
std::function<uint32_t()> TrajectoryWaypointPubSubType::getSerializedSizeProvider(void* data)
{
return [data]() -> uint32_t
{
return static_cast<uint32_t>(type::getCdrSerializedSize(*static_cast<TrajectoryWaypoint*>(data))) + 4 /*encapsulation*/;
};
}
void* TrajectoryWaypointPubSubType::createData()
{
return reinterpret_cast<void*>(new TrajectoryWaypoint());
}
void TrajectoryWaypointPubSubType::deleteData(void* data)
{
delete(reinterpret_cast<TrajectoryWaypoint*>(data));
}
bool TrajectoryWaypointPubSubType::getKey(void *data, InstanceHandle_t* handle, bool force_md5)
{
if(!m_isGetKeyDefined)
return false;
TrajectoryWaypoint* p_type = static_cast<TrajectoryWaypoint*>(data);
eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast<char*>(m_keyBuffer),TrajectoryWaypoint::getKeyMaxCdrSerializedSize()); // Object that manages the raw buffer.
eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS); // Object that serializes the data.
p_type->serializeKey(ser);
if(force_md5 || TrajectoryWaypoint::getKeyMaxCdrSerializedSize()>16) {
m_md5.init();
m_md5.update(m_keyBuffer, static_cast<unsigned int>(ser.getSerializedDataLength()));
m_md5.finalize();
for(uint8_t i = 0;i<16;++i) {
handle->value[i] = m_md5.digest[i];
}
}
else {
for(uint8_t i = 0;i<16;++i) {
handle->value[i] = m_keyBuffer[i];
}
}
return true;
}
} //End of namespace msg
} //End of namespace px4_msgs
@@ -0,0 +1,64 @@
// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
/*!
* @file TrajectoryWaypointPubSubTypes.h
* This header file contains the declaration of the serialization functions.
*
* This file was generated by the tool fastcdrgen.
*/
#ifndef _PX4_MSGS_MSG_TRAJECTORYWAYPOINT_PUBSUBTYPES_H_
#define _PX4_MSGS_MSG_TRAJECTORYWAYPOINT_PUBSUBTYPES_H_
#include <fastrtps/config.h>
#include <fastrtps/TopicDataType.h>
#include "TrajectoryWaypoint.h"
#if !defined(GEN_API_VER) || (GEN_API_VER != 1)
#error Generated TrajectoryWaypoint is not compatible with current installed Fast-RTPS. Please, regenerate it with fastrtpsgen.
#endif
namespace px4_msgs
{
namespace msg
{
typedef std::array<float, 3> float__3;
/*!
* @brief This class represents the TopicDataType of the type TrajectoryWaypoint defined by the user in the IDL file.
* @ingroup TRAJECTORYWAYPOINT
*/
class TrajectoryWaypointPubSubType : public eprosima::fastrtps::TopicDataType {
public:
typedef TrajectoryWaypoint type;
eProsima_user_DllExport TrajectoryWaypointPubSubType();
eProsima_user_DllExport virtual ~TrajectoryWaypointPubSubType();
eProsima_user_DllExport virtual bool serialize(void *data, eprosima::fastrtps::rtps::SerializedPayload_t *payload) override;
eProsima_user_DllExport virtual bool deserialize(eprosima::fastrtps::rtps::SerializedPayload_t *payload, void *data) override;
eProsima_user_DllExport virtual std::function<uint32_t()> getSerializedSizeProvider(void* data) override;
eProsima_user_DllExport virtual bool getKey(void *data, eprosima::fastrtps::rtps::InstanceHandle_t *ihandle,
bool force_md5 = false) override;
eProsima_user_DllExport virtual void* createData() override;
eProsima_user_DllExport virtual void deleteData(void * data) override;
MD5 m_md5;
unsigned char* m_keyBuffer;
};
}
}
#endif // _PX4_MSGS_MSG_TRAJECTORYWAYPOINT_PUBSUBTYPES_H_
@@ -0,0 +1,680 @@
// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
/*!
* @file VehicleLocalPositionSetpoint.cpp
* This source file contains the definition of the described types in the IDL file.
*
* This file was generated by the tool gen.
*/
#ifdef _WIN32
// Remove linker warning LNK4221 on Visual Studio
namespace { char dummy; }
#endif
#include "VehicleLocalPositionSetpoint.h"
#include <fastcdr/Cdr.h>
#include <fastcdr/exceptions/BadParamException.h>
using namespace eprosima::fastcdr::exception;
#include <utility>
px4_msgs::msg::VehicleLocalPositionSetpoint::VehicleLocalPositionSetpoint()
{
// m_timestamp com.eprosima.idl.parser.typecode.PrimitiveTypeCode@3116c353
m_timestamp = 0;
// m_x com.eprosima.idl.parser.typecode.PrimitiveTypeCode@f627d13
m_x = 0.0;
// m_y com.eprosima.idl.parser.typecode.PrimitiveTypeCode@4e928fbf
m_y = 0.0;
// m_z com.eprosima.idl.parser.typecode.PrimitiveTypeCode@352ff4da
m_z = 0.0;
// m_yaw com.eprosima.idl.parser.typecode.PrimitiveTypeCode@3224a577
m_yaw = 0.0;
// m_yawspeed com.eprosima.idl.parser.typecode.PrimitiveTypeCode@2e32ccc5
m_yawspeed = 0.0;
// m_vx com.eprosima.idl.parser.typecode.PrimitiveTypeCode@748741cb
m_vx = 0.0;
// m_vy com.eprosima.idl.parser.typecode.PrimitiveTypeCode@3e44f2a5
m_vy = 0.0;
// m_vz com.eprosima.idl.parser.typecode.PrimitiveTypeCode@295cf707
m_vz = 0.0;
// m_acceleration com.eprosima.idl.parser.typecode.AliasTypeCode@1130520d
memset(&m_acceleration, 0, (3) * 4);
// m_jerk com.eprosima.idl.parser.typecode.AliasTypeCode@1130520d
memset(&m_jerk, 0, (3) * 4);
// m_thrust com.eprosima.idl.parser.typecode.AliasTypeCode@1130520d
memset(&m_thrust, 0, (3) * 4);
}
px4_msgs::msg::VehicleLocalPositionSetpoint::~VehicleLocalPositionSetpoint()
{
}
px4_msgs::msg::VehicleLocalPositionSetpoint::VehicleLocalPositionSetpoint(const VehicleLocalPositionSetpoint &x)
{
m_timestamp = x.m_timestamp;
m_x = x.m_x;
m_y = x.m_y;
m_z = x.m_z;
m_yaw = x.m_yaw;
m_yawspeed = x.m_yawspeed;
m_vx = x.m_vx;
m_vy = x.m_vy;
m_vz = x.m_vz;
m_acceleration = x.m_acceleration;
m_jerk = x.m_jerk;
m_thrust = x.m_thrust;
}
px4_msgs::msg::VehicleLocalPositionSetpoint::VehicleLocalPositionSetpoint(VehicleLocalPositionSetpoint &&x)
{
m_timestamp = x.m_timestamp;
m_x = x.m_x;
m_y = x.m_y;
m_z = x.m_z;
m_yaw = x.m_yaw;
m_yawspeed = x.m_yawspeed;
m_vx = x.m_vx;
m_vy = x.m_vy;
m_vz = x.m_vz;
m_acceleration = std::move(x.m_acceleration);
m_jerk = std::move(x.m_jerk);
m_thrust = std::move(x.m_thrust);
}
px4_msgs::msg::VehicleLocalPositionSetpoint& px4_msgs::msg::VehicleLocalPositionSetpoint::operator=(const VehicleLocalPositionSetpoint &x)
{
m_timestamp = x.m_timestamp;
m_x = x.m_x;
m_y = x.m_y;
m_z = x.m_z;
m_yaw = x.m_yaw;
m_yawspeed = x.m_yawspeed;
m_vx = x.m_vx;
m_vy = x.m_vy;
m_vz = x.m_vz;
m_acceleration = x.m_acceleration;
m_jerk = x.m_jerk;
m_thrust = x.m_thrust;
return *this;
}
px4_msgs::msg::VehicleLocalPositionSetpoint& px4_msgs::msg::VehicleLocalPositionSetpoint::operator=(VehicleLocalPositionSetpoint &&x)
{
m_timestamp = x.m_timestamp;
m_x = x.m_x;
m_y = x.m_y;
m_z = x.m_z;
m_yaw = x.m_yaw;
m_yawspeed = x.m_yawspeed;
m_vx = x.m_vx;
m_vy = x.m_vy;
m_vz = x.m_vz;
m_acceleration = std::move(x.m_acceleration);
m_jerk = std::move(x.m_jerk);
m_thrust = std::move(x.m_thrust);
return *this;
}
size_t px4_msgs::msg::VehicleLocalPositionSetpoint::getMaxCdrSerializedSize(size_t current_alignment)
{
size_t initial_alignment = current_alignment;
current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += ((3) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += ((3) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += ((3) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
return current_alignment - initial_alignment;
}
size_t px4_msgs::msg::VehicleLocalPositionSetpoint::getCdrSerializedSize(const px4_msgs::msg::VehicleLocalPositionSetpoint& data, size_t current_alignment)
{
(void)data;
size_t initial_alignment = current_alignment;
current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
if ((3) > 0)
{
current_alignment += ((3) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
}
if ((3) > 0)
{
current_alignment += ((3) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
}
if ((3) > 0)
{
current_alignment += ((3) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
}
return current_alignment - initial_alignment;
}
void px4_msgs::msg::VehicleLocalPositionSetpoint::serialize(eprosima::fastcdr::Cdr &scdr) const
{
scdr << m_timestamp;
scdr << m_x;
scdr << m_y;
scdr << m_z;
scdr << m_yaw;
scdr << m_yawspeed;
scdr << m_vx;
scdr << m_vy;
scdr << m_vz;
scdr << m_acceleration;
scdr << m_jerk;
scdr << m_thrust;
}
void px4_msgs::msg::VehicleLocalPositionSetpoint::deserialize(eprosima::fastcdr::Cdr &dcdr)
{
dcdr >> m_timestamp;
dcdr >> m_x;
dcdr >> m_y;
dcdr >> m_z;
dcdr >> m_yaw;
dcdr >> m_yawspeed;
dcdr >> m_vx;
dcdr >> m_vy;
dcdr >> m_vz;
dcdr >> m_acceleration;
dcdr >> m_jerk;
dcdr >> m_thrust;
}
/*!
* @brief This function sets a value in member timestamp
* @param _timestamp New value for member timestamp
*/
void px4_msgs::msg::VehicleLocalPositionSetpoint::timestamp(uint64_t _timestamp)
{
m_timestamp = _timestamp;
}
/*!
* @brief This function returns the value of member timestamp
* @return Value of member timestamp
*/
uint64_t px4_msgs::msg::VehicleLocalPositionSetpoint::timestamp() const
{
return m_timestamp;
}
/*!
* @brief This function returns a reference to member timestamp
* @return Reference to member timestamp
*/
uint64_t& px4_msgs::msg::VehicleLocalPositionSetpoint::timestamp()
{
return m_timestamp;
}
/*!
* @brief This function sets a value in member x
* @param _x New value for member x
*/
void px4_msgs::msg::VehicleLocalPositionSetpoint::x(float _x)
{
m_x = _x;
}
/*!
* @brief This function returns the value of member x
* @return Value of member x
*/
float px4_msgs::msg::VehicleLocalPositionSetpoint::x() const
{
return m_x;
}
/*!
* @brief This function returns a reference to member x
* @return Reference to member x
*/
float& px4_msgs::msg::VehicleLocalPositionSetpoint::x()
{
return m_x;
}
/*!
* @brief This function sets a value in member y
* @param _y New value for member y
*/
void px4_msgs::msg::VehicleLocalPositionSetpoint::y(float _y)
{
m_y = _y;
}
/*!
* @brief This function returns the value of member y
* @return Value of member y
*/
float px4_msgs::msg::VehicleLocalPositionSetpoint::y() const
{
return m_y;
}
/*!
* @brief This function returns a reference to member y
* @return Reference to member y
*/
float& px4_msgs::msg::VehicleLocalPositionSetpoint::y()
{
return m_y;
}
/*!
* @brief This function sets a value in member z
* @param _z New value for member z
*/
void px4_msgs::msg::VehicleLocalPositionSetpoint::z(float _z)
{
m_z = _z;
}
/*!
* @brief This function returns the value of member z
* @return Value of member z
*/
float px4_msgs::msg::VehicleLocalPositionSetpoint::z() const
{
return m_z;
}
/*!
* @brief This function returns a reference to member z
* @return Reference to member z
*/
float& px4_msgs::msg::VehicleLocalPositionSetpoint::z()
{
return m_z;
}
/*!
* @brief This function sets a value in member yaw
* @param _yaw New value for member yaw
*/
void px4_msgs::msg::VehicleLocalPositionSetpoint::yaw(float _yaw)
{
m_yaw = _yaw;
}
/*!
* @brief This function returns the value of member yaw
* @return Value of member yaw
*/
float px4_msgs::msg::VehicleLocalPositionSetpoint::yaw() const
{
return m_yaw;
}
/*!
* @brief This function returns a reference to member yaw
* @return Reference to member yaw
*/
float& px4_msgs::msg::VehicleLocalPositionSetpoint::yaw()
{
return m_yaw;
}
/*!
* @brief This function sets a value in member yawspeed
* @param _yawspeed New value for member yawspeed
*/
void px4_msgs::msg::VehicleLocalPositionSetpoint::yawspeed(float _yawspeed)
{
m_yawspeed = _yawspeed;
}
/*!
* @brief This function returns the value of member yawspeed
* @return Value of member yawspeed
*/
float px4_msgs::msg::VehicleLocalPositionSetpoint::yawspeed() const
{
return m_yawspeed;
}
/*!
* @brief This function returns a reference to member yawspeed
* @return Reference to member yawspeed
*/
float& px4_msgs::msg::VehicleLocalPositionSetpoint::yawspeed()
{
return m_yawspeed;
}
/*!
* @brief This function sets a value in member vx
* @param _vx New value for member vx
*/
void px4_msgs::msg::VehicleLocalPositionSetpoint::vx(float _vx)
{
m_vx = _vx;
}
/*!
* @brief This function returns the value of member vx
* @return Value of member vx
*/
float px4_msgs::msg::VehicleLocalPositionSetpoint::vx() const
{
return m_vx;
}
/*!
* @brief This function returns a reference to member vx
* @return Reference to member vx
*/
float& px4_msgs::msg::VehicleLocalPositionSetpoint::vx()
{
return m_vx;
}
/*!
* @brief This function sets a value in member vy
* @param _vy New value for member vy
*/
void px4_msgs::msg::VehicleLocalPositionSetpoint::vy(float _vy)
{
m_vy = _vy;
}
/*!
* @brief This function returns the value of member vy
* @return Value of member vy
*/
float px4_msgs::msg::VehicleLocalPositionSetpoint::vy() const
{
return m_vy;
}
/*!
* @brief This function returns a reference to member vy
* @return Reference to member vy
*/
float& px4_msgs::msg::VehicleLocalPositionSetpoint::vy()
{
return m_vy;
}
/*!
* @brief This function sets a value in member vz
* @param _vz New value for member vz
*/
void px4_msgs::msg::VehicleLocalPositionSetpoint::vz(float _vz)
{
m_vz = _vz;
}
/*!
* @brief This function returns the value of member vz
* @return Value of member vz
*/
float px4_msgs::msg::VehicleLocalPositionSetpoint::vz() const
{
return m_vz;
}
/*!
* @brief This function returns a reference to member vz
* @return Reference to member vz
*/
float& px4_msgs::msg::VehicleLocalPositionSetpoint::vz()
{
return m_vz;
}
/*!
* @brief This function copies the value in member acceleration
* @param _acceleration New value to be copied in member acceleration
*/
void px4_msgs::msg::VehicleLocalPositionSetpoint::acceleration(const px4_msgs::msg::float__3 &_acceleration)
{
m_acceleration = _acceleration;
}
/*!
* @brief This function moves the value in member acceleration
* @param _acceleration New value to be moved in member acceleration
*/
void px4_msgs::msg::VehicleLocalPositionSetpoint::acceleration(px4_msgs::msg::float__3 &&_acceleration)
{
m_acceleration = std::move(_acceleration);
}
/*!
* @brief This function returns a constant reference to member acceleration
* @return Constant reference to member acceleration
*/
const px4_msgs::msg::float__3& px4_msgs::msg::VehicleLocalPositionSetpoint::acceleration() const
{
return m_acceleration;
}
/*!
* @brief This function returns a reference to member acceleration
* @return Reference to member acceleration
*/
px4_msgs::msg::float__3& px4_msgs::msg::VehicleLocalPositionSetpoint::acceleration()
{
return m_acceleration;
}
/*!
* @brief This function copies the value in member jerk
* @param _jerk New value to be copied in member jerk
*/
void px4_msgs::msg::VehicleLocalPositionSetpoint::jerk(const px4_msgs::msg::float__3 &_jerk)
{
m_jerk = _jerk;
}
/*!
* @brief This function moves the value in member jerk
* @param _jerk New value to be moved in member jerk
*/
void px4_msgs::msg::VehicleLocalPositionSetpoint::jerk(px4_msgs::msg::float__3 &&_jerk)
{
m_jerk = std::move(_jerk);
}
/*!
* @brief This function returns a constant reference to member jerk
* @return Constant reference to member jerk
*/
const px4_msgs::msg::float__3& px4_msgs::msg::VehicleLocalPositionSetpoint::jerk() const
{
return m_jerk;
}
/*!
* @brief This function returns a reference to member jerk
* @return Reference to member jerk
*/
px4_msgs::msg::float__3& px4_msgs::msg::VehicleLocalPositionSetpoint::jerk()
{
return m_jerk;
}
/*!
* @brief This function copies the value in member thrust
* @param _thrust New value to be copied in member thrust
*/
void px4_msgs::msg::VehicleLocalPositionSetpoint::thrust(const px4_msgs::msg::float__3 &_thrust)
{
m_thrust = _thrust;
}
/*!
* @brief This function moves the value in member thrust
* @param _thrust New value to be moved in member thrust
*/
void px4_msgs::msg::VehicleLocalPositionSetpoint::thrust(px4_msgs::msg::float__3 &&_thrust)
{
m_thrust = std::move(_thrust);
}
/*!
* @brief This function returns a constant reference to member thrust
* @return Constant reference to member thrust
*/
const px4_msgs::msg::float__3& px4_msgs::msg::VehicleLocalPositionSetpoint::thrust() const
{
return m_thrust;
}
/*!
* @brief This function returns a reference to member thrust
* @return Reference to member thrust
*/
px4_msgs::msg::float__3& px4_msgs::msg::VehicleLocalPositionSetpoint::thrust()
{
return m_thrust;
}
size_t px4_msgs::msg::VehicleLocalPositionSetpoint::getKeyMaxCdrSerializedSize(size_t current_alignment)
{
size_t current_align = current_alignment;
return current_align;
}
bool px4_msgs::msg::VehicleLocalPositionSetpoint::isKeyDefined()
{
return false;
}
void px4_msgs::msg::VehicleLocalPositionSetpoint::serializeKey(eprosima::fastcdr::Cdr &scdr) const
{
(void) scdr;
}
@@ -0,0 +1,413 @@
// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
/*!
* @file VehicleLocalPositionSetpoint.h
* This header file contains the declaration of the described types in the IDL file.
*
* This file was generated by the tool gen.
*/
#ifndef _PX4_MSGS_MSG_VEHICLELOCALPOSITIONSETPOINT_H_
#define _PX4_MSGS_MSG_VEHICLELOCALPOSITIONSETPOINT_H_
// TODO Poner en el contexto.
#include <stdint.h>
#include <array>
#include <string>
#include <vector>
#include <map>
#include <bitset>
#if defined(_WIN32)
#if defined(EPROSIMA_USER_DLL_EXPORT)
#define eProsima_user_DllExport __declspec( dllexport )
#else
#define eProsima_user_DllExport
#endif
#else
#define eProsima_user_DllExport
#endif
#if defined(_WIN32)
#if defined(EPROSIMA_USER_DLL_EXPORT)
#if defined(VehicleLocalPositionSetpoint_SOURCE)
#define VehicleLocalPositionSetpoint_DllAPI __declspec( dllexport )
#else
#define VehicleLocalPositionSetpoint_DllAPI __declspec( dllimport )
#endif // VehicleLocalPositionSetpoint_SOURCE
#else
#define VehicleLocalPositionSetpoint_DllAPI
#endif
#else
#define VehicleLocalPositionSetpoint_DllAPI
#endif // _WIN32
namespace eprosima
{
namespace fastcdr
{
class Cdr;
}
}
namespace px4_msgs
{
namespace msg
{
typedef std::array<float, 3> float__3;
/*!
* @brief This class represents the structure VehicleLocalPositionSetpoint defined by the user in the IDL file.
* @ingroup VEHICLELOCALPOSITIONSETPOINT
*/
class VehicleLocalPositionSetpoint
{
public:
/*!
* @brief Default constructor.
*/
eProsima_user_DllExport VehicleLocalPositionSetpoint();
/*!
* @brief Default destructor.
*/
eProsima_user_DllExport ~VehicleLocalPositionSetpoint();
/*!
* @brief Copy constructor.
* @param x Reference to the object px4_msgs::msg::VehicleLocalPositionSetpoint that will be copied.
*/
eProsima_user_DllExport VehicleLocalPositionSetpoint(const VehicleLocalPositionSetpoint &x);
/*!
* @brief Move constructor.
* @param x Reference to the object px4_msgs::msg::VehicleLocalPositionSetpoint that will be copied.
*/
eProsima_user_DllExport VehicleLocalPositionSetpoint(VehicleLocalPositionSetpoint &&x);
/*!
* @brief Copy assignment.
* @param x Reference to the object px4_msgs::msg::VehicleLocalPositionSetpoint that will be copied.
*/
eProsima_user_DllExport VehicleLocalPositionSetpoint& operator=(const VehicleLocalPositionSetpoint &x);
/*!
* @brief Move assignment.
* @param x Reference to the object px4_msgs::msg::VehicleLocalPositionSetpoint that will be copied.
*/
eProsima_user_DllExport VehicleLocalPositionSetpoint& operator=(VehicleLocalPositionSetpoint &&x);
/*!
* @brief This function sets a value in member timestamp
* @param _timestamp New value for member timestamp
*/
eProsima_user_DllExport void timestamp(uint64_t _timestamp);
/*!
* @brief This function returns the value of member timestamp
* @return Value of member timestamp
*/
eProsima_user_DllExport uint64_t timestamp() const;
/*!
* @brief This function returns a reference to member timestamp
* @return Reference to member timestamp
*/
eProsima_user_DllExport uint64_t& timestamp();
/*!
* @brief This function sets a value in member x
* @param _x New value for member x
*/
eProsima_user_DllExport void x(float _x);
/*!
* @brief This function returns the value of member x
* @return Value of member x
*/
eProsima_user_DllExport float x() const;
/*!
* @brief This function returns a reference to member x
* @return Reference to member x
*/
eProsima_user_DllExport float& x();
/*!
* @brief This function sets a value in member y
* @param _y New value for member y
*/
eProsima_user_DllExport void y(float _y);
/*!
* @brief This function returns the value of member y
* @return Value of member y
*/
eProsima_user_DllExport float y() const;
/*!
* @brief This function returns a reference to member y
* @return Reference to member y
*/
eProsima_user_DllExport float& y();
/*!
* @brief This function sets a value in member z
* @param _z New value for member z
*/
eProsima_user_DllExport void z(float _z);
/*!
* @brief This function returns the value of member z
* @return Value of member z
*/
eProsima_user_DllExport float z() const;
/*!
* @brief This function returns a reference to member z
* @return Reference to member z
*/
eProsima_user_DllExport float& z();
/*!
* @brief This function sets a value in member yaw
* @param _yaw New value for member yaw
*/
eProsima_user_DllExport void yaw(float _yaw);
/*!
* @brief This function returns the value of member yaw
* @return Value of member yaw
*/
eProsima_user_DllExport float yaw() const;
/*!
* @brief This function returns a reference to member yaw
* @return Reference to member yaw
*/
eProsima_user_DllExport float& yaw();
/*!
* @brief This function sets a value in member yawspeed
* @param _yawspeed New value for member yawspeed
*/
eProsima_user_DllExport void yawspeed(float _yawspeed);
/*!
* @brief This function returns the value of member yawspeed
* @return Value of member yawspeed
*/
eProsima_user_DllExport float yawspeed() const;
/*!
* @brief This function returns a reference to member yawspeed
* @return Reference to member yawspeed
*/
eProsima_user_DllExport float& yawspeed();
/*!
* @brief This function sets a value in member vx
* @param _vx New value for member vx
*/
eProsima_user_DllExport void vx(float _vx);
/*!
* @brief This function returns the value of member vx
* @return Value of member vx
*/
eProsima_user_DllExport float vx() const;
/*!
* @brief This function returns a reference to member vx
* @return Reference to member vx
*/
eProsima_user_DllExport float& vx();
/*!
* @brief This function sets a value in member vy
* @param _vy New value for member vy
*/
eProsima_user_DllExport void vy(float _vy);
/*!
* @brief This function returns the value of member vy
* @return Value of member vy
*/
eProsima_user_DllExport float vy() const;
/*!
* @brief This function returns a reference to member vy
* @return Reference to member vy
*/
eProsima_user_DllExport float& vy();
/*!
* @brief This function sets a value in member vz
* @param _vz New value for member vz
*/
eProsima_user_DllExport void vz(float _vz);
/*!
* @brief This function returns the value of member vz
* @return Value of member vz
*/
eProsima_user_DllExport float vz() const;
/*!
* @brief This function returns a reference to member vz
* @return Reference to member vz
*/
eProsima_user_DllExport float& vz();
/*!
* @brief This function copies the value in member acceleration
* @param _acceleration New value to be copied in member acceleration
*/
eProsima_user_DllExport void acceleration(const px4_msgs::msg::float__3 &_acceleration);
/*!
* @brief This function moves the value in member acceleration
* @param _acceleration New value to be moved in member acceleration
*/
eProsima_user_DllExport void acceleration(px4_msgs::msg::float__3 &&_acceleration);
/*!
* @brief This function returns a constant reference to member acceleration
* @return Constant reference to member acceleration
*/
eProsima_user_DllExport const px4_msgs::msg::float__3& acceleration() const;
/*!
* @brief This function returns a reference to member acceleration
* @return Reference to member acceleration
*/
eProsima_user_DllExport px4_msgs::msg::float__3& acceleration();
/*!
* @brief This function copies the value in member jerk
* @param _jerk New value to be copied in member jerk
*/
eProsima_user_DllExport void jerk(const px4_msgs::msg::float__3 &_jerk);
/*!
* @brief This function moves the value in member jerk
* @param _jerk New value to be moved in member jerk
*/
eProsima_user_DllExport void jerk(px4_msgs::msg::float__3 &&_jerk);
/*!
* @brief This function returns a constant reference to member jerk
* @return Constant reference to member jerk
*/
eProsima_user_DllExport const px4_msgs::msg::float__3& jerk() const;
/*!
* @brief This function returns a reference to member jerk
* @return Reference to member jerk
*/
eProsima_user_DllExport px4_msgs::msg::float__3& jerk();
/*!
* @brief This function copies the value in member thrust
* @param _thrust New value to be copied in member thrust
*/
eProsima_user_DllExport void thrust(const px4_msgs::msg::float__3 &_thrust);
/*!
* @brief This function moves the value in member thrust
* @param _thrust New value to be moved in member thrust
*/
eProsima_user_DllExport void thrust(px4_msgs::msg::float__3 &&_thrust);
/*!
* @brief This function returns a constant reference to member thrust
* @return Constant reference to member thrust
*/
eProsima_user_DllExport const px4_msgs::msg::float__3& thrust() const;
/*!
* @brief This function returns a reference to member thrust
* @return Reference to member thrust
*/
eProsima_user_DllExport px4_msgs::msg::float__3& thrust();
/*!
* @brief This function returns the maximum serialized size of an object
* depending on the buffer alignment.
* @param current_alignment Buffer alignment.
* @return Maximum serialized size.
*/
eProsima_user_DllExport static size_t getMaxCdrSerializedSize(size_t current_alignment = 0);
/*!
* @brief This function returns the serialized size of a data depending on the buffer alignment.
* @param data Data which is calculated its serialized size.
* @param current_alignment Buffer alignment.
* @return Serialized size.
*/
eProsima_user_DllExport static size_t getCdrSerializedSize(const px4_msgs::msg::VehicleLocalPositionSetpoint& data, size_t current_alignment = 0);
/*!
* @brief This function serializes an object using CDR serialization.
* @param cdr CDR serialization object.
*/
eProsima_user_DllExport void serialize(eprosima::fastcdr::Cdr &cdr) const;
/*!
* @brief This function deserializes an object using CDR serialization.
* @param cdr CDR serialization object.
*/
eProsima_user_DllExport void deserialize(eprosima::fastcdr::Cdr &cdr);
/*!
* @brief This function returns the maximum serialized size of the Key of an object
* depending on the buffer alignment.
* @param current_alignment Buffer alignment.
* @return Maximum serialized size.
*/
eProsima_user_DllExport static size_t getKeyMaxCdrSerializedSize(size_t current_alignment = 0);
/*!
* @brief This function tells you if the Key has been defined for this type
*/
eProsima_user_DllExport static bool isKeyDefined();
/*!
* @brief This function serializes the key members of an object using CDR serialization.
* @param cdr CDR serialization object.
*/
eProsima_user_DllExport void serializeKey(eprosima::fastcdr::Cdr &cdr) const;
private:
uint64_t m_timestamp;
float m_x;
float m_y;
float m_z;
float m_yaw;
float m_yawspeed;
float m_vx;
float m_vy;
float m_vz;
px4_msgs::msg::float__3 m_acceleration;
px4_msgs::msg::float__3 m_jerk;
px4_msgs::msg::float__3 m_thrust;
};
}
}
#endif // _PX4_MSGS_MSG_VEHICLELOCALPOSITIONSETPOINT_H_
@@ -0,0 +1,142 @@
// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
/*!
* @file VehicleLocalPositionSetpointPubSubTypes.cpp
* This header file contains the implementation of the serialization functions.
*
* This file was generated by the tool fastcdrgen.
*/
#include <fastcdr/FastBuffer.h>
#include <fastcdr/Cdr.h>
#include "VehicleLocalPositionSetpointPubSubTypes.h"
using namespace eprosima::fastrtps;
using namespace eprosima::fastrtps::rtps;
namespace px4_msgs
{
namespace msg
{
VehicleLocalPositionSetpointPubSubType::VehicleLocalPositionSetpointPubSubType()
{
setName("px4_msgs::msg::VehicleLocalPositionSetpoint");
m_typeSize = static_cast<uint32_t>(VehicleLocalPositionSetpoint::getMaxCdrSerializedSize()) + 4 /*encapsulation*/;
m_isGetKeyDefined = VehicleLocalPositionSetpoint::isKeyDefined();
size_t keyLength = VehicleLocalPositionSetpoint::getKeyMaxCdrSerializedSize()>16 ? VehicleLocalPositionSetpoint::getKeyMaxCdrSerializedSize() : 16;
m_keyBuffer = reinterpret_cast<unsigned char*>(malloc(keyLength));
memset(m_keyBuffer, 0, keyLength);
}
VehicleLocalPositionSetpointPubSubType::~VehicleLocalPositionSetpointPubSubType()
{
if(m_keyBuffer!=nullptr)
free(m_keyBuffer);
}
bool VehicleLocalPositionSetpointPubSubType::serialize(void *data, SerializedPayload_t *payload)
{
VehicleLocalPositionSetpoint *p_type = static_cast<VehicleLocalPositionSetpoint*>(data);
eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast<char*>(payload->data), payload->max_size); // Object that manages the raw buffer.
eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN,
eprosima::fastcdr::Cdr::DDS_CDR); // Object that serializes the data.
payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE;
// Serialize encapsulation
ser.serialize_encapsulation();
try
{
p_type->serialize(ser); // Serialize the object:
}
catch(eprosima::fastcdr::exception::NotEnoughMemoryException& /*exception*/)
{
return false;
}
payload->length = static_cast<uint32_t>(ser.getSerializedDataLength()); //Get the serialized length
return true;
}
bool VehicleLocalPositionSetpointPubSubType::deserialize(SerializedPayload_t* payload, void* data)
{
VehicleLocalPositionSetpoint* p_type = static_cast<VehicleLocalPositionSetpoint*>(data); //Convert DATA to pointer of your type
eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast<char*>(payload->data), payload->length); // Object that manages the raw buffer.
eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN,
eprosima::fastcdr::Cdr::DDS_CDR); // Object that deserializes the data.
// Deserialize encapsulation.
deser.read_encapsulation();
payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE;
try
{
p_type->deserialize(deser); //Deserialize the object:
}
catch(eprosima::fastcdr::exception::NotEnoughMemoryException& /*exception*/)
{
return false;
}
return true;
}
std::function<uint32_t()> VehicleLocalPositionSetpointPubSubType::getSerializedSizeProvider(void* data)
{
return [data]() -> uint32_t
{
return static_cast<uint32_t>(type::getCdrSerializedSize(*static_cast<VehicleLocalPositionSetpoint*>(data))) + 4 /*encapsulation*/;
};
}
void* VehicleLocalPositionSetpointPubSubType::createData()
{
return reinterpret_cast<void*>(new VehicleLocalPositionSetpoint());
}
void VehicleLocalPositionSetpointPubSubType::deleteData(void* data)
{
delete(reinterpret_cast<VehicleLocalPositionSetpoint*>(data));
}
bool VehicleLocalPositionSetpointPubSubType::getKey(void *data, InstanceHandle_t* handle, bool force_md5)
{
if(!m_isGetKeyDefined)
return false;
VehicleLocalPositionSetpoint* p_type = static_cast<VehicleLocalPositionSetpoint*>(data);
eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast<char*>(m_keyBuffer),VehicleLocalPositionSetpoint::getKeyMaxCdrSerializedSize()); // Object that manages the raw buffer.
eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS); // Object that serializes the data.
p_type->serializeKey(ser);
if(force_md5 || VehicleLocalPositionSetpoint::getKeyMaxCdrSerializedSize()>16) {
m_md5.init();
m_md5.update(m_keyBuffer, static_cast<unsigned int>(ser.getSerializedDataLength()));
m_md5.finalize();
for(uint8_t i = 0;i<16;++i) {
handle->value[i] = m_md5.digest[i];
}
}
else {
for(uint8_t i = 0;i<16;++i) {
handle->value[i] = m_keyBuffer[i];
}
}
return true;
}
} //End of namespace msg
} //End of namespace px4_msgs
@@ -0,0 +1,64 @@
// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
/*!
* @file VehicleLocalPositionSetpointPubSubTypes.h
* This header file contains the declaration of the serialization functions.
*
* This file was generated by the tool fastcdrgen.
*/
#ifndef _PX4_MSGS_MSG_VEHICLELOCALPOSITIONSETPOINT_PUBSUBTYPES_H_
#define _PX4_MSGS_MSG_VEHICLELOCALPOSITIONSETPOINT_PUBSUBTYPES_H_
#include <fastrtps/config.h>
#include <fastrtps/TopicDataType.h>
#include "VehicleLocalPositionSetpoint.h"
#if !defined(GEN_API_VER) || (GEN_API_VER != 1)
#error Generated VehicleLocalPositionSetpoint is not compatible with current installed Fast-RTPS. Please, regenerate it with fastrtpsgen.
#endif
namespace px4_msgs
{
namespace msg
{
typedef std::array<float, 3> float__3;
/*!
* @brief This class represents the TopicDataType of the type VehicleLocalPositionSetpoint defined by the user in the IDL file.
* @ingroup VEHICLELOCALPOSITIONSETPOINT
*/
class VehicleLocalPositionSetpointPubSubType : public eprosima::fastrtps::TopicDataType {
public:
typedef VehicleLocalPositionSetpoint type;
eProsima_user_DllExport VehicleLocalPositionSetpointPubSubType();
eProsima_user_DllExport virtual ~VehicleLocalPositionSetpointPubSubType();
eProsima_user_DllExport virtual bool serialize(void *data, eprosima::fastrtps::rtps::SerializedPayload_t *payload) override;
eProsima_user_DllExport virtual bool deserialize(eprosima::fastrtps::rtps::SerializedPayload_t *payload, void *data) override;
eProsima_user_DllExport virtual std::function<uint32_t()> getSerializedSizeProvider(void* data) override;
eProsima_user_DllExport virtual bool getKey(void *data, eprosima::fastrtps::rtps::InstanceHandle_t *ihandle,
bool force_md5 = false) override;
eProsima_user_DllExport virtual void* createData() override;
eProsima_user_DllExport virtual void deleteData(void * data) override;
MD5 m_md5;
unsigned char* m_keyBuffer;
};
}
}
#endif // _PX4_MSGS_MSG_VEHICLELOCALPOSITIONSETPOINT_PUBSUBTYPES_H_

Some files were not shown because too many files have changed in this diff Show More