AWViz-ROS C++ API Reference
Loading...
Searching...
No Matches
visualization_manager.hpp
Go to the documentation of this file.
1// Copyright 2024 Kotaro Uetake.
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 AWVIZ_COMMON__VISUALIZATION_MANAGER_HPP_
16#define AWVIZ_COMMON__VISUALIZATION_MANAGER_HPP_
17
21
22#include <rclcpp/rclcpp.hpp>
23#include <rerun.hpp>
24
25#include <map>
26#include <memory>
27#include <string>
28
29namespace awviz_common
30{
35{
36public:
44 rclcpp::Node::SharedPtr node, const std::shared_ptr<rerun::RecordingStream> & stream);
45
50
51private:
52 rclcpp::Node::SharedPtr node_;
53 const std::shared_ptr<rerun::RecordingStream> stream_;
54 std::unique_ptr<DisplayFactory> display_factory_;
55 std::map<std::string, std::shared_ptr<Display>>
56 display_group_;
58 std::unique_ptr<TransformationManager> tf_manager_;
59 rclcpp::CallbackGroup::SharedPtr parallel_callback_group_;
60 rclcpp::TimerBase::SharedPtr callback_timer_;
61
62private:
66 void create_subscriptions();
67};
68} // namespace awviz_common
69#endif // AWVIZ_COMMON__VISUALIZATION_MANAGER_HPP_
Manager class to handle visualization processes.
Definition: visualization_manager.hpp:35
~VisualizationManager()
Destroy the VisualizationManager object with unsubscribing topics of displays.
Definition: visualization_manager.cpp:37
Definition: display.hpp:30