Carma-platform v4.2.0
CARMA Platform is built on robot operating system (ROS) and utilizes open source software (OSS) that enables Cooperative Driving Automation (CDA) features to allow Automated Driving Systems to interact and cooperate with infrastructure and other vehicles through communication.
track_list_to_external_object_list_component.hpp
Go to the documentation of this file.
1// Copyright 2023 Leidos
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 CARMA_COOPERATIVE_PERCEPTION__TRACK_LIST_TO_EXTERNAL_OBJECT_LIST_COMPONENT_HPP_
16#define CARMA_COOPERATIVE_PERCEPTION__TRACK_LIST_TO_EXTERNAL_OBJECT_LIST_COMPONENT_HPP_
17
18#include <proj.h>
19
20#include <carma_cooperative_perception_interfaces/msg/track_list.hpp>
21#include <carma_perception_msgs/msg/external_object_list.hpp>
22#include <carma_ros2_utils/carma_lifecycle_node.hpp>
23#include <rclcpp/rclcpp.hpp>
24#include <std_msgs/msg/string.hpp>
25
26#include <string>
27
29
31{
32class TrackListToExternalObjectListNode : public carma_ros2_utils::CarmaLifecycleNode
33{
34public:
35 explicit TrackListToExternalObjectListNode(const rclcpp::NodeOptions & options);
36
37 auto handle_on_configure(const rclcpp_lifecycle::State & /* previous_state */)
38 -> carma_ros2_utils::CallbackReturn override;
39
40 auto handle_on_cleanup(const rclcpp_lifecycle::State & /* previous_state */)
41 -> carma_ros2_utils::CallbackReturn override;
42
43 auto handle_on_shutdown(const rclcpp_lifecycle::State & /* previous_state */)
44 -> carma_ros2_utils::CallbackReturn override;
45
47 const carma_cooperative_perception_interfaces::msg::TrackList & msg) const -> void;
48
49private:
50 rclcpp_lifecycle::LifecyclePublisher<carma_perception_msgs::msg::ExternalObjectList>::SharedPtr
51 publisher_{nullptr};
52 rclcpp::Subscription<carma_cooperative_perception_interfaces::msg::TrackList>::SharedPtr
54 std::string map_georeference_{""};
55 OnSetParametersCallbackHandle::SharedPtr on_set_parameters_callback_{nullptr};
56};
57
58} // namespace carma_cooperative_perception
59
60#endif // CARMA_COOPERATIVE_PERCEPTION__TRACK_LIST_TO_EXTERNAL_OBJECT_LIST_COMPONENT_HPP_
rclcpp_lifecycle::LifecyclePublisher< carma_perception_msgs::msg::ExternalObjectList >::SharedPtr publisher_
auto handle_on_cleanup(const rclcpp_lifecycle::State &) -> carma_ros2_utils::CallbackReturn override
auto handle_on_shutdown(const rclcpp_lifecycle::State &) -> carma_ros2_utils::CallbackReturn override
rclcpp::Subscription< carma_cooperative_perception_interfaces::msg::TrackList >::SharedPtr track_list_subscription_
auto publish_as_external_object_list(const carma_cooperative_perception_interfaces::msg::TrackList &msg) const -> void
auto handle_on_configure(const rclcpp_lifecycle::State &) -> carma_ros2_utils::CallbackReturn override