Autoware.Auto
lanelet2_map_provider_node.hpp
Go to the documentation of this file.
1 // Copyright 2020 The Autoware Foundation
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 
18 
19 #ifndef LANELET2_MAP_PROVIDER__LANELET2_MAP_PROVIDER_NODE_HPP_
20 #define LANELET2_MAP_PROVIDER__LANELET2_MAP_PROVIDER_NODE_HPP_
21 
22 #include <rclcpp/rclcpp.hpp>
23 
25 #include <memory>
26 
27 #include "autoware_auto_msgs/srv/had_map_service.hpp"
28 #include "autoware_auto_msgs/msg/had_map_bin.hpp"
29 
30 namespace autoware
31 {
32 namespace lanelet2_map_provider
33 {
34 
42 
43 class LANELET2_MAP_PROVIDER_PUBLIC Lanelet2MapProviderNode : public rclcpp::Node
44 {
45 public:
51  explicit Lanelet2MapProviderNode(const rclcpp::NodeOptions & options);
52 
57  void handle_request(
58  std::shared_ptr<autoware_auto_msgs::srv::HADMapService_Request> request,
59  std::shared_ptr<autoware_auto_msgs::srv::HADMapService_Response> response);
60 
61 private:
66  geometry_msgs::msg::TransformStamped get_map_origin();
67 
68  std::unique_ptr<Lanelet2MapProvider> m_map_provider;
69  rclcpp::Service<autoware_auto_msgs::srv::HADMapService>::SharedPtr m_map_service;
70 };
71 
72 } // namespace lanelet2_map_provider
73 
74 } // namespace autoware
75 
76 #endif // LANELET2_MAP_PROVIDER__LANELET2_MAP_PROVIDER_NODE_HPP_
This file defines the lanelet2_map_provider class.
geometry_msgs::msg::TransformStamped TransformStamped
Definition: motion_testing_publisher.hpp:37
ROS 2 Node for semantic map provider using lanelet2 map format. Node loads a lanelet2 OSM format map ...
Definition: lanelet2_map_provider_node.hpp:43
Definition: lanelet2_map_provider.launch.py:1
This file defines the lanelet2_map_provider_node class.
Definition: quick_sort.hpp:24