From 6bac68429824cab4bbb1df3e259a24a8bf741b59 Mon Sep 17 00:00:00 2001 From: duongtd Date: Mon, 8 Dec 2025 11:00:30 +0700 Subject: [PATCH] add visualization_msgs --- CMakeLists.txt | 3 + visualization_msgs/CMakeLists.txt | 35 +++ .../include/visualization_msgs/ImageMarker.h | 172 ++++++++++++++ .../visualization_msgs/InteractiveMarker.h | 106 +++++++++ .../InteractiveMarkerControl.h | 165 +++++++++++++ .../InteractiveMarkerFeedback.h | 145 ++++++++++++ .../InteractiveMarkerInit.h | 80 +++++++ .../InteractiveMarkerPose.h | 79 ++++++ .../InteractiveMarkerUpdate.h | 110 +++++++++ .../include/visualization_msgs/Marker.h | 224 ++++++++++++++++++ .../include/visualization_msgs/MarkerArray.h | 66 ++++++ .../include/visualization_msgs/MenuEntry.h | 106 +++++++++ 12 files changed, 1291 insertions(+) create mode 100644 visualization_msgs/CMakeLists.txt create mode 100644 visualization_msgs/include/visualization_msgs/ImageMarker.h create mode 100644 visualization_msgs/include/visualization_msgs/InteractiveMarker.h create mode 100644 visualization_msgs/include/visualization_msgs/InteractiveMarkerControl.h create mode 100644 visualization_msgs/include/visualization_msgs/InteractiveMarkerFeedback.h create mode 100644 visualization_msgs/include/visualization_msgs/InteractiveMarkerInit.h create mode 100644 visualization_msgs/include/visualization_msgs/InteractiveMarkerPose.h create mode 100644 visualization_msgs/include/visualization_msgs/InteractiveMarkerUpdate.h create mode 100644 visualization_msgs/include/visualization_msgs/Marker.h create mode 100644 visualization_msgs/include/visualization_msgs/MarkerArray.h create mode 100644 visualization_msgs/include/visualization_msgs/MenuEntry.h diff --git a/CMakeLists.txt b/CMakeLists.txt index 1fd3b19..095c032 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,4 +19,7 @@ if (NOT TARGET nav_msgs) endif() if(NOT TARGET map_msgs) add_subdirectory(map_msgs) +endif() +if(NOT TARGET visualization_msgs) + add_subdirectory(visualization_msgs) endif() \ No newline at end of file diff --git a/visualization_msgs/CMakeLists.txt b/visualization_msgs/CMakeLists.txt new file mode 100644 index 0000000..46adb6d --- /dev/null +++ b/visualization_msgs/CMakeLists.txt @@ -0,0 +1,35 @@ +cmake_minimum_required(VERSION 3.10) +project(visualization_msgs) + +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + +# Thư viện header-only +add_library(visualization_msgs INTERFACE) + +# Include path tới thư mục chứa file header +target_include_directories(visualization_msgs + INTERFACE + $ + $ +) + +# Liên kết với std_msgs nếu bạn có file Header.h trong include/std_msgs/ +target_link_libraries(visualization_msgs INTERFACE std_msgs) + +# --- Cài đặt thư viện vào hệ thống khi chạy make install --- +install(TARGETS visualization_msgs + EXPORT visualization_msgs-targets + INCLUDES DESTINATION include # Cài đặt include +) + +# --- Xuất export set costmap_2dTargets thành file CMake module --- +# --- Tạo file lib/cmake/visualization_msgs/costmap_2dTargets.cmake --- +# --- File này chứa cấu hình giúp project khác có thể dùng --- +# --- Find_package(visualization_msgs REQUIRED) --- +# --- Target_link_libraries(my_app PRIVATE visualization_msgs::visualization_msgs) --- +install(EXPORT visualization_msgs-targets + FILE visualization_msgs-targets.cmake + NAMESPACE visualization_msgs:: + DESTINATION lib/cmake/visualization_msgs +) diff --git a/visualization_msgs/include/visualization_msgs/ImageMarker.h b/visualization_msgs/include/visualization_msgs/ImageMarker.h new file mode 100644 index 0000000..afed168 --- /dev/null +++ b/visualization_msgs/include/visualization_msgs/ImageMarker.h @@ -0,0 +1,172 @@ +// Generated by gencpp from file visualization_msgs/ImageMarker.msg +// DO NOT EDIT! + + +#ifndef VISUALIZATION_MSGS_MESSAGE_IMAGEMARKER_H +#define VISUALIZATION_MSGS_MESSAGE_IMAGEMARKER_H + + +#include +#include +#include + +#include +#include +#include + +namespace visualization_msgs +{ +template +struct ImageMarker_ +{ + typedef ImageMarker_ Type; + + ImageMarker_() + : header() + , ns() + , id(0) + , type(0) + , action(0) + , position() + , scale(0.0) + , outline_color() + , filled(0) + , fill_color() + , lifetime() + , points() + , outline_colors() { + } + ImageMarker_(const ContainerAllocator& _alloc) + : header(_alloc) + , ns(_alloc) + , id(0) + , type(0) + , action(0) + , position(_alloc) + , scale(0.0) + , outline_color(_alloc) + , filled(0) + , fill_color(_alloc) + , lifetime() + , points(_alloc) + , outline_colors(_alloc) { + (void)_alloc; + } + + + + typedef ::std_msgs::Header_ _header_type; + _header_type header; + + typedef std::basic_string, typename std::allocator_traits::template rebind_alloc> _ns_type; + _ns_type ns; + + typedef int32_t _id_type; + _id_type id; + + typedef int32_t _type_type; + _type_type type; + + typedef int32_t _action_type; + _action_type action; + + typedef ::geometry_msgs::Point_ _position_type; + _position_type position; + + typedef float _scale_type; + _scale_type scale; + + typedef ::std_msgs::ColorRGBA_ _outline_color_type; + _outline_color_type outline_color; + + typedef uint8_t _filled_type; + _filled_type filled; + + typedef ::std_msgs::ColorRGBA_ _fill_color_type; + _fill_color_type fill_color; + + typedef robot::Duration _lifetime_type; + _lifetime_type lifetime; + + typedef std::vector< ::geometry_msgs::Point_ , typename std::allocator_traits::template rebind_alloc< ::geometry_msgs::Point_ >> _points_type; + _points_type points; + + typedef std::vector< ::std_msgs::ColorRGBA_ , typename std::allocator_traits::template rebind_alloc< ::std_msgs::ColorRGBA_ >> _outline_colors_type; + _outline_colors_type outline_colors; + + + +// reducing the odds to have name collisions with Windows.h +#if defined(_WIN32) && defined(CIRCLE) + #undef CIRCLE +#endif +#if defined(_WIN32) && defined(LINE_STRIP) + #undef LINE_STRIP +#endif +#if defined(_WIN32) && defined(LINE_LIST) + #undef LINE_LIST +#endif +#if defined(_WIN32) && defined(POLYGON) + #undef POLYGON +#endif +#if defined(_WIN32) && defined(POINTS) + #undef POINTS +#endif +#if defined(_WIN32) && defined(ADD) + #undef ADD +#endif +#if defined(_WIN32) && defined(REMOVE) + #undef REMOVE +#endif + + enum { + CIRCLE = 0u, + LINE_STRIP = 1u, + LINE_LIST = 2u, + POLYGON = 3u, + POINTS = 4u, + ADD = 0u, + REMOVE = 1u, + }; + + + typedef boost::shared_ptr< ::visualization_msgs::ImageMarker_ > Ptr; + typedef boost::shared_ptr< ::visualization_msgs::ImageMarker_ const> ConstPtr; + +}; // struct ImageMarker_ + +typedef ::visualization_msgs::ImageMarker_ > ImageMarker; + +typedef boost::shared_ptr< ::visualization_msgs::ImageMarker > ImageMarkerPtr; +typedef boost::shared_ptr< ::visualization_msgs::ImageMarker const> ImageMarkerConstPtr; + +// constants requiring out of line definition + +template +bool operator==(const ::visualization_msgs::ImageMarker_ & lhs, const ::visualization_msgs::ImageMarker_ & rhs) +{ + return lhs.header == rhs.header && + lhs.ns == rhs.ns && + lhs.id == rhs.id && + lhs.type == rhs.type && + lhs.action == rhs.action && + lhs.position == rhs.position && + lhs.scale == rhs.scale && + lhs.outline_color == rhs.outline_color && + lhs.filled == rhs.filled && + lhs.fill_color == rhs.fill_color && + lhs.lifetime == rhs.lifetime && + lhs.points == rhs.points && + lhs.outline_colors == rhs.outline_colors; +} + +template +bool operator!=(const ::visualization_msgs::ImageMarker_ & lhs, const ::visualization_msgs::ImageMarker_ & rhs) +{ + return !(lhs == rhs); +} + + +} // namespace visualization_msgs + +#endif // VISUALIZATION_MSGS_MESSAGE_IMAGEMARKER_H diff --git a/visualization_msgs/include/visualization_msgs/InteractiveMarker.h b/visualization_msgs/include/visualization_msgs/InteractiveMarker.h new file mode 100644 index 0000000..3abebf3 --- /dev/null +++ b/visualization_msgs/include/visualization_msgs/InteractiveMarker.h @@ -0,0 +1,106 @@ +// Generated by gencpp from file visualization_msgs/InteractiveMarker.msg +// DO NOT EDIT! + + +#ifndef VISUALIZATION_MSGS_MESSAGE_INTERACTIVEMARKER_H +#define VISUALIZATION_MSGS_MESSAGE_INTERACTIVEMARKER_H + + +#include +#include +#include + +#include +#include +#include +#include + +namespace visualization_msgs +{ +template +struct InteractiveMarker_ +{ + typedef InteractiveMarker_ Type; + + InteractiveMarker_() + : header() + , pose() + , name() + , description() + , scale(0.0) + , menu_entries() + , controls() { + } + InteractiveMarker_(const ContainerAllocator& _alloc) + : header(_alloc) + , pose(_alloc) + , name(_alloc) + , description(_alloc) + , scale(0.0) + , menu_entries(_alloc) + , controls(_alloc) { + (void)_alloc; + } + + + + typedef ::std_msgs::Header_ _header_type; + _header_type header; + + typedef ::geometry_msgs::Pose_ _pose_type; + _pose_type pose; + + typedef std::basic_string, typename std::allocator_traits::template rebind_alloc> _name_type; + _name_type name; + + typedef std::basic_string, typename std::allocator_traits::template rebind_alloc> _description_type; + _description_type description; + + typedef float _scale_type; + _scale_type scale; + + typedef std::vector< ::visualization_msgs::MenuEntry_ , typename std::allocator_traits::template rebind_alloc< ::visualization_msgs::MenuEntry_ >> _menu_entries_type; + _menu_entries_type menu_entries; + + typedef std::vector< ::visualization_msgs::InteractiveMarkerControl_ , typename std::allocator_traits::template rebind_alloc< ::visualization_msgs::InteractiveMarkerControl_ >> _controls_type; + _controls_type controls; + + + + + + typedef boost::shared_ptr< ::visualization_msgs::InteractiveMarker_ > Ptr; + typedef boost::shared_ptr< ::visualization_msgs::InteractiveMarker_ const> ConstPtr; + +}; // struct InteractiveMarker_ + +typedef ::visualization_msgs::InteractiveMarker_ > InteractiveMarker; + +typedef boost::shared_ptr< ::visualization_msgs::InteractiveMarker > InteractiveMarkerPtr; +typedef boost::shared_ptr< ::visualization_msgs::InteractiveMarker const> InteractiveMarkerConstPtr; + +// constants requiring out of line definition + + +template +bool operator==(const ::visualization_msgs::InteractiveMarker_ & lhs, const ::visualization_msgs::InteractiveMarker_ & rhs) +{ + return lhs.header == rhs.header && + lhs.pose == rhs.pose && + lhs.name == rhs.name && + lhs.description == rhs.description && + lhs.scale == rhs.scale && + lhs.menu_entries == rhs.menu_entries && + lhs.controls == rhs.controls; +} + +template +bool operator!=(const ::visualization_msgs::InteractiveMarker_ & lhs, const ::visualization_msgs::InteractiveMarker_ & rhs) +{ + return !(lhs == rhs); +} + + +} // namespace visualization_msgs + +#endif // VISUALIZATION_MSGS_MESSAGE_INTERACTIVEMARKER_H diff --git a/visualization_msgs/include/visualization_msgs/InteractiveMarkerControl.h b/visualization_msgs/include/visualization_msgs/InteractiveMarkerControl.h new file mode 100644 index 0000000..5ab5973 --- /dev/null +++ b/visualization_msgs/include/visualization_msgs/InteractiveMarkerControl.h @@ -0,0 +1,165 @@ +// Generated by gencpp from file visualization_msgs/InteractiveMarkerControl.msg +// DO NOT EDIT! + + +#ifndef VISUALIZATION_MSGS_MESSAGE_INTERACTIVEMARKERCONTROL_H +#define VISUALIZATION_MSGS_MESSAGE_INTERACTIVEMARKERCONTROL_H + + +#include +#include +#include + +#include +#include + +namespace visualization_msgs +{ +template +struct InteractiveMarkerControl_ +{ + typedef InteractiveMarkerControl_ Type; + + InteractiveMarkerControl_() + : name() + , orientation() + , orientation_mode(0) + , interaction_mode(0) + , always_visible(false) + , markers() + , independent_marker_orientation(false) + , description() { + } + InteractiveMarkerControl_(const ContainerAllocator& _alloc) + : name(_alloc) + , orientation(_alloc) + , orientation_mode(0) + , interaction_mode(0) + , always_visible(false) + , markers(_alloc) + , independent_marker_orientation(false) + , description(_alloc) { + (void)_alloc; + } + + + + typedef std::basic_string, typename std::allocator_traits::template rebind_alloc> _name_type; + _name_type name; + + typedef ::geometry_msgs::Quaternion_ _orientation_type; + _orientation_type orientation; + + typedef uint8_t _orientation_mode_type; + _orientation_mode_type orientation_mode; + + typedef uint8_t _interaction_mode_type; + _interaction_mode_type interaction_mode; + + typedef uint8_t _always_visible_type; + _always_visible_type always_visible; + + typedef std::vector< ::visualization_msgs::Marker_ , typename std::allocator_traits::template rebind_alloc< ::visualization_msgs::Marker_ >> _markers_type; + _markers_type markers; + + typedef uint8_t _independent_marker_orientation_type; + _independent_marker_orientation_type independent_marker_orientation; + + typedef std::basic_string, typename std::allocator_traits::template rebind_alloc> _description_type; + _description_type description; + + + +// reducing the odds to have name collisions with Windows.h +#if defined(_WIN32) && defined(INHERIT) + #undef INHERIT +#endif +#if defined(_WIN32) && defined(FIXED) + #undef FIXED +#endif +#if defined(_WIN32) && defined(VIEW_FACING) + #undef VIEW_FACING +#endif +#if defined(_WIN32) && defined(NONE) + #undef NONE +#endif +#if defined(_WIN32) && defined(MENU) + #undef MENU +#endif +#if defined(_WIN32) && defined(BUTTON) + #undef BUTTON +#endif +#if defined(_WIN32) && defined(MOVE_AXIS) + #undef MOVE_AXIS +#endif +#if defined(_WIN32) && defined(MOVE_PLANE) + #undef MOVE_PLANE +#endif +#if defined(_WIN32) && defined(ROTATE_AXIS) + #undef ROTATE_AXIS +#endif +#if defined(_WIN32) && defined(MOVE_ROTATE) + #undef MOVE_ROTATE +#endif +#if defined(_WIN32) && defined(MOVE_3D) + #undef MOVE_3D +#endif +#if defined(_WIN32) && defined(ROTATE_3D) + #undef ROTATE_3D +#endif +#if defined(_WIN32) && defined(MOVE_ROTATE_3D) + #undef MOVE_ROTATE_3D +#endif + + enum { + INHERIT = 0u, + FIXED = 1u, + VIEW_FACING = 2u, + NONE = 0u, + MENU = 1u, + BUTTON = 2u, + MOVE_AXIS = 3u, + MOVE_PLANE = 4u, + ROTATE_AXIS = 5u, + MOVE_ROTATE = 6u, + MOVE_3D = 7u, + ROTATE_3D = 8u, + MOVE_ROTATE_3D = 9u, + }; + + + typedef boost::shared_ptr< ::visualization_msgs::InteractiveMarkerControl_ > Ptr; + typedef boost::shared_ptr< ::visualization_msgs::InteractiveMarkerControl_ const> ConstPtr; + +}; // struct InteractiveMarkerControl_ + +typedef ::visualization_msgs::InteractiveMarkerControl_ > InteractiveMarkerControl; + +typedef boost::shared_ptr< ::visualization_msgs::InteractiveMarkerControl > InteractiveMarkerControlPtr; +typedef boost::shared_ptr< ::visualization_msgs::InteractiveMarkerControl const> InteractiveMarkerControlConstPtr; + +// constants requiring out of line definition + +template +bool operator==(const ::visualization_msgs::InteractiveMarkerControl_ & lhs, const ::visualization_msgs::InteractiveMarkerControl_ & rhs) +{ + return lhs.name == rhs.name && + lhs.orientation == rhs.orientation && + lhs.orientation_mode == rhs.orientation_mode && + lhs.interaction_mode == rhs.interaction_mode && + lhs.always_visible == rhs.always_visible && + lhs.markers == rhs.markers && + lhs.independent_marker_orientation == rhs.independent_marker_orientation && + lhs.description == rhs.description; +} + +template +bool operator!=(const ::visualization_msgs::InteractiveMarkerControl_ & lhs, const ::visualization_msgs::InteractiveMarkerControl_ & rhs) +{ + return !(lhs == rhs); +} + + +} // namespace visualization_msgs + +#endif // VISUALIZATION_MSGS_MESSAGE_INTERACTIVEMARKERCONTROL_H diff --git a/visualization_msgs/include/visualization_msgs/InteractiveMarkerFeedback.h b/visualization_msgs/include/visualization_msgs/InteractiveMarkerFeedback.h new file mode 100644 index 0000000..afdfaa9 --- /dev/null +++ b/visualization_msgs/include/visualization_msgs/InteractiveMarkerFeedback.h @@ -0,0 +1,145 @@ +// Generated by gencpp from file visualization_msgs/InteractiveMarkerFeedback.msg +// DO NOT EDIT! + + +#ifndef VISUALIZATION_MSGS_MESSAGE_INTERACTIVEMARKERFEEDBACK_H +#define VISUALIZATION_MSGS_MESSAGE_INTERACTIVEMARKERFEEDBACK_H + + +#include +#include +#include + +#include +#include +#include + +namespace visualization_msgs +{ +template +struct InteractiveMarkerFeedback_ +{ + typedef InteractiveMarkerFeedback_ Type; + + InteractiveMarkerFeedback_() + : header() + , client_id() + , marker_name() + , control_name() + , event_type(0) + , pose() + , menu_entry_id(0) + , mouse_point() + , mouse_point_valid(false) { + } + InteractiveMarkerFeedback_(const ContainerAllocator& _alloc) + : header(_alloc) + , client_id(_alloc) + , marker_name(_alloc) + , control_name(_alloc) + , event_type(0) + , pose(_alloc) + , menu_entry_id(0) + , mouse_point(_alloc) + , mouse_point_valid(false) { + (void)_alloc; + } + + + + typedef ::std_msgs::Header_ _header_type; + _header_type header; + + typedef std::basic_string, typename std::allocator_traits::template rebind_alloc> _client_id_type; + _client_id_type client_id; + + typedef std::basic_string, typename std::allocator_traits::template rebind_alloc> _marker_name_type; + _marker_name_type marker_name; + + typedef std::basic_string, typename std::allocator_traits::template rebind_alloc> _control_name_type; + _control_name_type control_name; + + typedef uint8_t _event_type_type; + _event_type_type event_type; + + typedef ::geometry_msgs::Pose_ _pose_type; + _pose_type pose; + + typedef uint32_t _menu_entry_id_type; + _menu_entry_id_type menu_entry_id; + + typedef ::geometry_msgs::Point_ _mouse_point_type; + _mouse_point_type mouse_point; + + typedef uint8_t _mouse_point_valid_type; + _mouse_point_valid_type mouse_point_valid; + + + +// reducing the odds to have name collisions with Windows.h +#if defined(_WIN32) && defined(KEEP_ALIVE) + #undef KEEP_ALIVE +#endif +#if defined(_WIN32) && defined(POSE_UPDATE) + #undef POSE_UPDATE +#endif +#if defined(_WIN32) && defined(MENU_SELECT) + #undef MENU_SELECT +#endif +#if defined(_WIN32) && defined(BUTTON_CLICK) + #undef BUTTON_CLICK +#endif +#if defined(_WIN32) && defined(MOUSE_DOWN) + #undef MOUSE_DOWN +#endif +#if defined(_WIN32) && defined(MOUSE_UP) + #undef MOUSE_UP +#endif + + enum { + KEEP_ALIVE = 0u, + POSE_UPDATE = 1u, + MENU_SELECT = 2u, + BUTTON_CLICK = 3u, + MOUSE_DOWN = 4u, + MOUSE_UP = 5u, + }; + + + typedef boost::shared_ptr< ::visualization_msgs::InteractiveMarkerFeedback_ > Ptr; + typedef boost::shared_ptr< ::visualization_msgs::InteractiveMarkerFeedback_ const> ConstPtr; + +}; // struct InteractiveMarkerFeedback_ + +typedef ::visualization_msgs::InteractiveMarkerFeedback_ > InteractiveMarkerFeedback; + +typedef boost::shared_ptr< ::visualization_msgs::InteractiveMarkerFeedback > InteractiveMarkerFeedbackPtr; +typedef boost::shared_ptr< ::visualization_msgs::InteractiveMarkerFeedback const> InteractiveMarkerFeedbackConstPtr; + +// constants requiring out of line definition + + +template +bool operator==(const ::visualization_msgs::InteractiveMarkerFeedback_ & lhs, const ::visualization_msgs::InteractiveMarkerFeedback_ & rhs) +{ + return lhs.header == rhs.header && + lhs.client_id == rhs.client_id && + lhs.marker_name == rhs.marker_name && + lhs.control_name == rhs.control_name && + lhs.event_type == rhs.event_type && + lhs.pose == rhs.pose && + lhs.menu_entry_id == rhs.menu_entry_id && + lhs.mouse_point == rhs.mouse_point && + lhs.mouse_point_valid == rhs.mouse_point_valid; +} + +template +bool operator!=(const ::visualization_msgs::InteractiveMarkerFeedback_ & lhs, const ::visualization_msgs::InteractiveMarkerFeedback_ & rhs) +{ + return !(lhs == rhs); +} + + +} // namespace visualization_msgs + +#endif // VISUALIZATION_MSGS_MESSAGE_INTERACTIVEMARKERFEEDBACK_H diff --git a/visualization_msgs/include/visualization_msgs/InteractiveMarkerInit.h b/visualization_msgs/include/visualization_msgs/InteractiveMarkerInit.h new file mode 100644 index 0000000..dc0b4f2 --- /dev/null +++ b/visualization_msgs/include/visualization_msgs/InteractiveMarkerInit.h @@ -0,0 +1,80 @@ +// Generated by gencpp from file visualization_msgs/InteractiveMarkerInit.msg +// DO NOT EDIT! + + +#ifndef VISUALIZATION_MSGS_MESSAGE_INTERACTIVEMARKERINIT_H +#define VISUALIZATION_MSGS_MESSAGE_INTERACTIVEMARKERINIT_H + + +#include +#include +#include + + +#include + +namespace visualization_msgs +{ +template +struct InteractiveMarkerInit_ +{ + typedef InteractiveMarkerInit_ Type; + + InteractiveMarkerInit_() + : server_id() + , seq_num(0) + , markers() { + } + InteractiveMarkerInit_(const ContainerAllocator& _alloc) + : server_id(_alloc) + , seq_num(0) + , markers(_alloc) { + (void)_alloc; + } + + + + typedef std::basic_string, typename std::allocator_traits::template rebind_alloc> _server_id_type; + _server_id_type server_id; + + typedef uint64_t _seq_num_type; + _seq_num_type seq_num; + + typedef std::vector< ::visualization_msgs::InteractiveMarker_ , typename std::allocator_traits::template rebind_alloc< ::visualization_msgs::InteractiveMarker_ >> _markers_type; + _markers_type markers; + + + + + + typedef boost::shared_ptr< ::visualization_msgs::InteractiveMarkerInit_ > Ptr; + typedef boost::shared_ptr< ::visualization_msgs::InteractiveMarkerInit_ const> ConstPtr; + +}; // struct InteractiveMarkerInit_ + +typedef ::visualization_msgs::InteractiveMarkerInit_ > InteractiveMarkerInit; + +typedef boost::shared_ptr< ::visualization_msgs::InteractiveMarkerInit > InteractiveMarkerInitPtr; +typedef boost::shared_ptr< ::visualization_msgs::InteractiveMarkerInit const> InteractiveMarkerInitConstPtr; + +// constants requiring out of line definition + +template +bool operator==(const ::visualization_msgs::InteractiveMarkerInit_ & lhs, const ::visualization_msgs::InteractiveMarkerInit_ & rhs) +{ + return lhs.server_id == rhs.server_id && + lhs.seq_num == rhs.seq_num && + lhs.markers == rhs.markers; +} + +template +bool operator!=(const ::visualization_msgs::InteractiveMarkerInit_ & lhs, const ::visualization_msgs::InteractiveMarkerInit_ & rhs) +{ + return !(lhs == rhs); +} + + +} // namespace visualization_msgs + + +#endif // VISUALIZATION_MSGS_MESSAGE_INTERACTIVEMARKERINIT_H diff --git a/visualization_msgs/include/visualization_msgs/InteractiveMarkerPose.h b/visualization_msgs/include/visualization_msgs/InteractiveMarkerPose.h new file mode 100644 index 0000000..72724b0 --- /dev/null +++ b/visualization_msgs/include/visualization_msgs/InteractiveMarkerPose.h @@ -0,0 +1,79 @@ +// Generated by gencpp from file visualization_msgs/InteractiveMarkerPose.msg +// DO NOT EDIT! + + +#ifndef VISUALIZATION_MSGS_MESSAGE_INTERACTIVEMARKERPOSE_H +#define VISUALIZATION_MSGS_MESSAGE_INTERACTIVEMARKERPOSE_H + + +#include +#include +#include + +#include +#include + +namespace visualization_msgs +{ +template +struct InteractiveMarkerPose_ +{ + typedef InteractiveMarkerPose_ Type; + + InteractiveMarkerPose_() + : header() + , pose() + , name() { + } + InteractiveMarkerPose_(const ContainerAllocator& _alloc) + : header(_alloc) + , pose(_alloc) + , name(_alloc) { + (void)_alloc; + } + + + + typedef ::std_msgs::Header_ _header_type; + _header_type header; + + typedef ::geometry_msgs::Pose_ _pose_type; + _pose_type pose; + + typedef std::basic_string, typename std::allocator_traits::template rebind_alloc> _name_type; + _name_type name; + + + + + + typedef boost::shared_ptr< ::visualization_msgs::InteractiveMarkerPose_ > Ptr; + typedef boost::shared_ptr< ::visualization_msgs::InteractiveMarkerPose_ const> ConstPtr; + +}; // struct InteractiveMarkerPose_ + +typedef ::visualization_msgs::InteractiveMarkerPose_ > InteractiveMarkerPose; + +typedef boost::shared_ptr< ::visualization_msgs::InteractiveMarkerPose > InteractiveMarkerPosePtr; +typedef boost::shared_ptr< ::visualization_msgs::InteractiveMarkerPose const> InteractiveMarkerPoseConstPtr; + +// constants requiring out of line definition + +template +bool operator==(const ::visualization_msgs::InteractiveMarkerPose_ & lhs, const ::visualization_msgs::InteractiveMarkerPose_ & rhs) +{ + return lhs.header == rhs.header && + lhs.pose == rhs.pose && + lhs.name == rhs.name; +} + +template +bool operator!=(const ::visualization_msgs::InteractiveMarkerPose_ & lhs, const ::visualization_msgs::InteractiveMarkerPose_ & rhs) +{ + return !(lhs == rhs); +} + + +} // namespace visualization_msgs + +#endif // VISUALIZATION_MSGS_MESSAGE_INTERACTIVEMARKERPOSE_H diff --git a/visualization_msgs/include/visualization_msgs/InteractiveMarkerUpdate.h b/visualization_msgs/include/visualization_msgs/InteractiveMarkerUpdate.h new file mode 100644 index 0000000..fbc0090 --- /dev/null +++ b/visualization_msgs/include/visualization_msgs/InteractiveMarkerUpdate.h @@ -0,0 +1,110 @@ +// Generated by gencpp from file visualization_msgs/InteractiveMarkerUpdate.msg +// DO NOT EDIT! + + +#ifndef VISUALIZATION_MSGS_MESSAGE_INTERACTIVEMARKERUPDATE_H +#define VISUALIZATION_MSGS_MESSAGE_INTERACTIVEMARKERUPDATE_H + + +#include +#include +#include + +#include +#include + +namespace visualization_msgs +{ +template +struct InteractiveMarkerUpdate_ +{ + typedef InteractiveMarkerUpdate_ Type; + + InteractiveMarkerUpdate_() + : server_id() + , seq_num(0) + , type(0) + , markers() + , poses() + , erases() { + } + InteractiveMarkerUpdate_(const ContainerAllocator& _alloc) + : server_id(_alloc) + , seq_num(0) + , type(0) + , markers(_alloc) + , poses(_alloc) + , erases(_alloc) { + (void)_alloc; + } + + + + typedef std::basic_string, typename std::allocator_traits::template rebind_alloc> _server_id_type; + _server_id_type server_id; + + typedef uint64_t _seq_num_type; + _seq_num_type seq_num; + + typedef uint8_t _type_type; + _type_type type; + + typedef std::vector< ::visualization_msgs::InteractiveMarker_ , typename std::allocator_traits::template rebind_alloc< ::visualization_msgs::InteractiveMarker_ >> _markers_type; + _markers_type markers; + + typedef std::vector< ::visualization_msgs::InteractiveMarkerPose_ , typename std::allocator_traits::template rebind_alloc< ::visualization_msgs::InteractiveMarkerPose_ >> _poses_type; + _poses_type poses; + + typedef std::vector, typename std::allocator_traits::template rebind_alloc>, typename std::allocator_traits::template rebind_alloc, typename std::allocator_traits::template rebind_alloc>>> _erases_type; + _erases_type erases; + + + +// reducing the odds to have name collisions with Windows.h +#if defined(_WIN32) && defined(KEEP_ALIVE) + #undef KEEP_ALIVE +#endif +#if defined(_WIN32) && defined(UPDATE) + #undef UPDATE +#endif + + enum { + KEEP_ALIVE = 0u, + UPDATE = 1u, + }; + + + typedef boost::shared_ptr< ::visualization_msgs::InteractiveMarkerUpdate_ > Ptr; + typedef boost::shared_ptr< ::visualization_msgs::InteractiveMarkerUpdate_ const> ConstPtr; + +}; // struct InteractiveMarkerUpdate_ + +typedef ::visualization_msgs::InteractiveMarkerUpdate_ > InteractiveMarkerUpdate; + +typedef boost::shared_ptr< ::visualization_msgs::InteractiveMarkerUpdate > InteractiveMarkerUpdatePtr; +typedef boost::shared_ptr< ::visualization_msgs::InteractiveMarkerUpdate const> InteractiveMarkerUpdateConstPtr; + +// constants requiring out of line definition + + +template +bool operator==(const ::visualization_msgs::InteractiveMarkerUpdate_ & lhs, const ::visualization_msgs::InteractiveMarkerUpdate_ & rhs) +{ + return lhs.server_id == rhs.server_id && + lhs.seq_num == rhs.seq_num && + lhs.type == rhs.type && + lhs.markers == rhs.markers && + lhs.poses == rhs.poses && + lhs.erases == rhs.erases; +} + +template +bool operator!=(const ::visualization_msgs::InteractiveMarkerUpdate_ & lhs, const ::visualization_msgs::InteractiveMarkerUpdate_ & rhs) +{ + return !(lhs == rhs); +} + + +} // namespace visualization_msgs + +#endif // VISUALIZATION_MSGS_MESSAGE_INTERACTIVEMARKERUPDATE_H diff --git a/visualization_msgs/include/visualization_msgs/Marker.h b/visualization_msgs/include/visualization_msgs/Marker.h new file mode 100644 index 0000000..16a24b4 --- /dev/null +++ b/visualization_msgs/include/visualization_msgs/Marker.h @@ -0,0 +1,224 @@ +// Generated by gencpp from file visualization_msgs/Marker.msg +// DO NOT EDIT! + + +#ifndef VISUALIZATION_MSGS_MESSAGE_MARKER_H +#define VISUALIZATION_MSGS_MESSAGE_MARKER_H + + +#include +#include +#include + + +#include +#include +#include +#include +#include + +namespace visualization_msgs +{ +template +struct Marker_ +{ + typedef Marker_ Type; + + Marker_() + : header() + , ns() + , id(0) + , type(0) + , action(0) + , pose() + , scale() + , color() + , lifetime() + , frame_locked(false) + , points() + , colors() + , text() + , mesh_resource() + , mesh_use_embedded_materials(false) { + } + Marker_(const ContainerAllocator& _alloc) + : header(_alloc) + , ns(_alloc) + , id(0) + , type(0) + , action(0) + , pose(_alloc) + , scale(_alloc) + , color(_alloc) + , lifetime() + , frame_locked(false) + , points(_alloc) + , colors(_alloc) + , text(_alloc) + , mesh_resource(_alloc) + , mesh_use_embedded_materials(false) { + (void)_alloc; + } + + + + typedef ::std_msgs::Header_ _header_type; + _header_type header; + + typedef std::basic_string, typename std::allocator_traits::template rebind_alloc> _ns_type; + _ns_type ns; + + typedef int32_t _id_type; + _id_type id; + + typedef int32_t _type_type; + _type_type type; + + typedef int32_t _action_type; + _action_type action; + + typedef ::geometry_msgs::Pose_ _pose_type; + _pose_type pose; + + typedef ::geometry_msgs::Vector3_ _scale_type; + _scale_type scale; + + typedef ::std_msgs::ColorRGBA_ _color_type; + _color_type color; + + typedef robot::Duration _lifetime_type; + _lifetime_type lifetime; + + typedef uint8_t _frame_locked_type; + _frame_locked_type frame_locked; + + typedef std::vector< ::geometry_msgs::Point_ , typename std::allocator_traits::template rebind_alloc< ::geometry_msgs::Point_ >> _points_type; + _points_type points; + + typedef std::vector< ::std_msgs::ColorRGBA_ , typename std::allocator_traits::template rebind_alloc< ::std_msgs::ColorRGBA_ >> _colors_type; + _colors_type colors; + + typedef std::basic_string, typename std::allocator_traits::template rebind_alloc> _text_type; + _text_type text; + + typedef std::basic_string, typename std::allocator_traits::template rebind_alloc> _mesh_resource_type; + _mesh_resource_type mesh_resource; + + typedef uint8_t _mesh_use_embedded_materials_type; + _mesh_use_embedded_materials_type mesh_use_embedded_materials; + + + +// reducing the odds to have name collisions with Windows.h +#if defined(_WIN32) && defined(ARROW) + #undef ARROW +#endif +#if defined(_WIN32) && defined(CUBE) + #undef CUBE +#endif +#if defined(_WIN32) && defined(SPHERE) + #undef SPHERE +#endif +#if defined(_WIN32) && defined(CYLINDER) + #undef CYLINDER +#endif +#if defined(_WIN32) && defined(LINE_STRIP) + #undef LINE_STRIP +#endif +#if defined(_WIN32) && defined(LINE_LIST) + #undef LINE_LIST +#endif +#if defined(_WIN32) && defined(CUBE_LIST) + #undef CUBE_LIST +#endif +#if defined(_WIN32) && defined(SPHERE_LIST) + #undef SPHERE_LIST +#endif +#if defined(_WIN32) && defined(POINTS) + #undef POINTS +#endif +#if defined(_WIN32) && defined(TEXT_VIEW_FACING) + #undef TEXT_VIEW_FACING +#endif +#if defined(_WIN32) && defined(MESH_RESOURCE) + #undef MESH_RESOURCE +#endif +#if defined(_WIN32) && defined(TRIANGLE_LIST) + #undef TRIANGLE_LIST +#endif +#if defined(_WIN32) && defined(ADD) + #undef ADD +#endif +#if defined(_WIN32) && defined(MODIFY) + #undef MODIFY +#endif +#if defined(_WIN32) && defined(DELETE) + #undef DELETE +#endif +#if defined(_WIN32) && defined(DELETEALL) + #undef DELETEALL +#endif + + enum { + ARROW = 0u, + CUBE = 1u, + SPHERE = 2u, + CYLINDER = 3u, + LINE_STRIP = 4u, + LINE_LIST = 5u, + CUBE_LIST = 6u, + SPHERE_LIST = 7u, + POINTS = 8u, + TEXT_VIEW_FACING = 9u, + MESH_RESOURCE = 10u, + TRIANGLE_LIST = 11u, + ADD = 0u, + MODIFY = 0u, + DELETE = 2u, + DELETEALL = 3u, + }; + + + typedef boost::shared_ptr< ::visualization_msgs::Marker_ > Ptr; + typedef boost::shared_ptr< ::visualization_msgs::Marker_ const> ConstPtr; + +}; // struct Marker_ + +typedef ::visualization_msgs::Marker_ > Marker; + +typedef boost::shared_ptr< ::visualization_msgs::Marker > MarkerPtr; +typedef boost::shared_ptr< ::visualization_msgs::Marker const> MarkerConstPtr; + +// constants requiring out of line definition + + +template +bool operator==(const ::visualization_msgs::Marker_ & lhs, const ::visualization_msgs::Marker_ & rhs) +{ + return lhs.header == rhs.header && + lhs.ns == rhs.ns && + lhs.id == rhs.id && + lhs.type == rhs.type && + lhs.action == rhs.action && + lhs.pose == rhs.pose && + lhs.scale == rhs.scale && + lhs.color == rhs.color && + lhs.lifetime == rhs.lifetime && + lhs.frame_locked == rhs.frame_locked && + lhs.points == rhs.points && + lhs.colors == rhs.colors && + lhs.text == rhs.text && + lhs.mesh_resource == rhs.mesh_resource && + lhs.mesh_use_embedded_materials == rhs.mesh_use_embedded_materials; +} + +template +bool operator!=(const ::visualization_msgs::Marker_ & lhs, const ::visualization_msgs::Marker_ & rhs) +{ + return !(lhs == rhs); +} + + +} // namespace visualization_msgs + +#endif // VISUALIZATION_MSGS_MESSAGE_MARKER_H diff --git a/visualization_msgs/include/visualization_msgs/MarkerArray.h b/visualization_msgs/include/visualization_msgs/MarkerArray.h new file mode 100644 index 0000000..e1192e0 --- /dev/null +++ b/visualization_msgs/include/visualization_msgs/MarkerArray.h @@ -0,0 +1,66 @@ +// Generated by gencpp from file visualization_msgs/MarkerArray.msg +// DO NOT EDIT! + + +#ifndef VISUALIZATION_MSGS_MESSAGE_MARKERARRAY_H +#define VISUALIZATION_MSGS_MESSAGE_MARKERARRAY_H + + +#include +#include +#include + +#include + +namespace visualization_msgs +{ +template +struct MarkerArray_ +{ + typedef MarkerArray_ Type; + + MarkerArray_() + : markers() { + } + MarkerArray_(const ContainerAllocator& _alloc) + : markers(_alloc) { + (void)_alloc; + } + + + + typedef std::vector< ::visualization_msgs::Marker_ , typename std::allocator_traits::template rebind_alloc< ::visualization_msgs::Marker_ >> _markers_type; + _markers_type markers; + + + + + + typedef boost::shared_ptr< ::visualization_msgs::MarkerArray_ > Ptr; + typedef boost::shared_ptr< ::visualization_msgs::MarkerArray_ const> ConstPtr; + +}; // struct MarkerArray_ + +typedef ::visualization_msgs::MarkerArray_ > MarkerArray; + +typedef boost::shared_ptr< ::visualization_msgs::MarkerArray > MarkerArrayPtr; +typedef boost::shared_ptr< ::visualization_msgs::MarkerArray const> MarkerArrayConstPtr; + +// constants requiring out of line definition + +template +bool operator==(const ::visualization_msgs::MarkerArray_ & lhs, const ::visualization_msgs::MarkerArray_ & rhs) +{ + return lhs.markers == rhs.markers; +} + +template +bool operator!=(const ::visualization_msgs::MarkerArray_ & lhs, const ::visualization_msgs::MarkerArray_ & rhs) +{ + return !(lhs == rhs); +} + + +} // namespace visualization_msgs + +#endif // VISUALIZATION_MSGS_MESSAGE_MARKERARRAY_H diff --git a/visualization_msgs/include/visualization_msgs/MenuEntry.h b/visualization_msgs/include/visualization_msgs/MenuEntry.h new file mode 100644 index 0000000..9746039 --- /dev/null +++ b/visualization_msgs/include/visualization_msgs/MenuEntry.h @@ -0,0 +1,106 @@ +// Generated by gencpp from file visualization_msgs/MenuEntry.msg +// DO NOT EDIT! + + +#ifndef VISUALIZATION_MSGS_MESSAGE_MENUENTRY_H +#define VISUALIZATION_MSGS_MESSAGE_MENUENTRY_H + + +#include +#include +#include + + +namespace visualization_msgs +{ +template +struct MenuEntry_ +{ + typedef MenuEntry_ Type; + + MenuEntry_() + : id(0) + , parent_id(0) + , title() + , command() + , command_type(0) { + } + MenuEntry_(const ContainerAllocator& _alloc) + : id(0) + , parent_id(0) + , title(_alloc) + , command(_alloc) + , command_type(0) { + (void)_alloc; + } + + + + typedef uint32_t _id_type; + _id_type id; + + typedef uint32_t _parent_id_type; + _parent_id_type parent_id; + + typedef std::basic_string, typename std::allocator_traits::template rebind_alloc> _title_type; + _title_type title; + + typedef std::basic_string, typename std::allocator_traits::template rebind_alloc> _command_type; + _command_type command; + + typedef uint8_t _command_type_type; + _command_type_type command_type; + + + +// reducing the odds to have name collisions with Windows.h +#if defined(_WIN32) && defined(FEEDBACK) + #undef FEEDBACK +#endif +#if defined(_WIN32) && defined(ROSRUN) + #undef ROSRUN +#endif +#if defined(_WIN32) && defined(ROSLAUNCH) + #undef ROSLAUNCH +#endif + + enum { + FEEDBACK = 0u, + ROSRUN = 1u, + ROSLAUNCH = 2u, + }; + + + typedef boost::shared_ptr< ::visualization_msgs::MenuEntry_ > Ptr; + typedef boost::shared_ptr< ::visualization_msgs::MenuEntry_ const> ConstPtr; + +}; // struct MenuEntry_ + +typedef ::visualization_msgs::MenuEntry_ > MenuEntry; + +typedef boost::shared_ptr< ::visualization_msgs::MenuEntry > MenuEntryPtr; +typedef boost::shared_ptr< ::visualization_msgs::MenuEntry const> MenuEntryConstPtr; + +// constants requiring out of line definition + + +template +bool operator==(const ::visualization_msgs::MenuEntry_ & lhs, const ::visualization_msgs::MenuEntry_ & rhs) +{ + return lhs.id == rhs.id && + lhs.parent_id == rhs.parent_id && + lhs.title == rhs.title && + lhs.command == rhs.command && + lhs.command_type == rhs.command_type; +} + +template +bool operator!=(const ::visualization_msgs::MenuEntry_ & lhs, const ::visualization_msgs::MenuEntry_ & rhs) +{ + return !(lhs == rhs); +} + + +} // namespace visualization_msgs + +#endif // VISUALIZATION_MSGS_MESSAGE_MENUENTRY_H