|
| 1 | +// Copyright 2023 Open Source Robotics Foundation, Inc. |
| 2 | +// |
| 3 | +// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +// you may not use this file except in compliance with the License. |
| 5 | +// You may obtain a copy of the License at |
| 6 | +// |
| 7 | +// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +// |
| 9 | +// Unless required by applicable law or agreed to in writing, software |
| 10 | +// distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +// See the License for the specific language governing permissions and |
| 13 | +// limitations under the License. |
| 14 | + |
| 15 | +#ifndef RCLCPP__DYNAMIC_TYPESUPPORT__DYNAMIC_MESSAGE_TYPE_SUPPORT_HPP_ |
| 16 | +#define RCLCPP__DYNAMIC_TYPESUPPORT__DYNAMIC_MESSAGE_TYPE_SUPPORT_HPP_ |
| 17 | + |
| 18 | +#include <rcl/allocator.h> |
| 19 | + |
| 20 | +#include <rosidl_dynamic_typesupport/dynamic_message_type_support_struct.h> |
| 21 | +#include <rosidl_dynamic_typesupport/types.h> |
| 22 | +#include <rosidl_runtime_c/message_type_support_struct.h> |
| 23 | +#include <rosidl_runtime_c/type_description/type_description__struct.h> |
| 24 | + |
| 25 | +#include <memory> |
| 26 | +#include <string> |
| 27 | + |
| 28 | +#include "rclcpp/dynamic_typesupport/dynamic_message.hpp" |
| 29 | +#include "rclcpp/dynamic_typesupport/dynamic_message_type.hpp" |
| 30 | +#include "rclcpp/dynamic_typesupport/dynamic_serialization_support.hpp" |
| 31 | + |
| 32 | +#include "rclcpp/macros.hpp" |
| 33 | +#include "rclcpp/visibility_control.hpp" |
| 34 | + |
| 35 | +namespace rclcpp |
| 36 | +{ |
| 37 | +namespace dynamic_typesupport |
| 38 | +{ |
| 39 | + |
| 40 | +/// Utility wrapper class for `rosidl_message_type_support_t` containing managed |
| 41 | +/// STUBBED OUT |
| 42 | +class DynamicMessageTypeSupport : public std::enable_shared_from_this<DynamicMessageTypeSupport> |
| 43 | +{ |
| 44 | +public: |
| 45 | + RCLCPP_SMART_PTR_ALIASES_ONLY(DynamicMessageTypeSupport) |
| 46 | + |
| 47 | + RCLCPP_PUBLIC |
| 48 | + virtual ~DynamicMessageTypeSupport(); |
| 49 | + |
| 50 | +protected: |
| 51 | + DynamicSerializationSupport::SharedPtr serialization_support_; |
| 52 | + DynamicMessageType::SharedPtr dynamic_message_type_; |
| 53 | + DynamicMessage::SharedPtr dynamic_message_; |
| 54 | + |
| 55 | + rosidl_message_type_support_t rosidl_message_type_support_; |
| 56 | + |
| 57 | +private: |
| 58 | + RCLCPP_DISABLE_COPY(DynamicMessageTypeSupport) |
| 59 | + |
| 60 | + RCLCPP_PUBLIC |
| 61 | + DynamicMessageTypeSupport(); |
| 62 | +}; |
| 63 | + |
| 64 | +} // namespace dynamic_typesupport |
| 65 | +} // namespace rclcpp |
| 66 | + |
| 67 | +#endif // RCLCPP__DYNAMIC_TYPESUPPORT__DYNAMIC_MESSAGE_TYPE_SUPPORT_HPP_ |
0 commit comments