ROS 2 rclcpp + rcl - kilted  kilted
ROS 2 C++ Client Library with ROS Client Library
dynamic_serialization_support.cpp
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 #include <rcl/allocator.h>
16 #include <rcutils/logging_macros.h>
17 #include <rmw/dynamic_message_type_support.h>
18 #include <rmw/ret_types.h>
19 #include <rosidl_dynamic_typesupport/api/serialization_support.h>
20 
21 #include <memory>
22 #include <string>
23 
24 #include "rclcpp/dynamic_typesupport/dynamic_serialization_support.hpp"
25 #include "rclcpp/exceptions.hpp"
26 
28 
29 // CONSTRUCTION ====================================================================================
30 DynamicSerializationSupport::DynamicSerializationSupport(rcl_allocator_t allocator)
32 {
33  throw std::runtime_error("Unimplemented");
34 }
35 
36 DynamicSerializationSupport::DynamicSerializationSupport(
37  const std::string & /*serialization_library_name*/,
38  rcl_allocator_t /*allocator*/)
39 : rosidl_serialization_support_(
40  rosidl_dynamic_typesupport_get_zero_initialized_serialization_support())
41 {
42  throw std::runtime_error("Unimplemented");
43 }
44 
45 DynamicSerializationSupport::~DynamicSerializationSupport()
46 {} // STUBBED
rcutils_allocator_t rcl_allocator_t
Encapsulation of an allocator.
Definition: allocator.h:31
Utility wrapper class for rosidl_dynamic_typesupport_serialization_support_t.