AWViz-ROS
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
22
23#include <rclcpp/rclcpp.hpp>
24#include <rerun.hpp>
25
26#include <memory>
27
28namespace awviz_common
29{
34{
35public:
43 rclcpp::Node::SharedPtr node, const std::shared_ptr<rerun::RecordingStream> & stream);
44
49
50private:
51 rclcpp::Node::SharedPtr node_;
52 const std::shared_ptr<rerun::RecordingStream> stream_;
53 std::unique_ptr<TransformationManager> tf_manager_;
54 std::unique_ptr<ITopicScanner> topic_scanner_;
55 std::unique_ptr<DisplaySpawner> display_spawner_;
56 DisplayRegistry display_registry_;
57 rclcpp::CallbackGroup::SharedPtr parallel_callback_group_;
58 rclcpp::TimerBase::SharedPtr callback_timer_;
59
60private:
64 void create_subscriptions();
65};
66} // namespace awviz_common
67#endif // AWVIZ_COMMON__VISUALIZATION_MANAGER_HPP_
Registry to manage displays by topic name.
Definition: display_registry.hpp:32
Manager class to handle visualization processes.
Definition: visualization_manager.hpp:34
~VisualizationManager()
Destroy the VisualizationManager object with unsubscribing topics of displays.
Definition: visualization_manager.cpp:37
Definition: display.hpp:32