AWViz-ROS
Loading...
Searching...
No Matches
viewer.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__VIEWER_HPP_
16#define AWVIZ_COMMON__VIEWER_HPP_
17
19
20#include <rclcpp/rclcpp.hpp>
21#include <rerun.hpp>
22
23#include <memory>
24
25namespace awviz_common
26{
31{
32public:
36 ViewerApp();
37
41 ~ViewerApp();
42
46 void run();
47
48private:
49 rclcpp::Node::SharedPtr node_;
50 std::shared_ptr<rerun::RecordingStream> stream_;
51 std::unique_ptr<VisualizationManager> manager_;
52};
53} // namespace awviz_common
54
55#endif // AWVIZ_COMMON__VIEWER_HPP_
Application class used in a client code.
Definition: viewer.hpp:31
void run()
Start running application.
Definition: viewer.cpp:32
ViewerApp()
Construct an application instance with the root ROS node.
Definition: viewer.cpp:19
~ViewerApp()
Destruct an application instance.
Definition: viewer.cpp:27
Definition: display.hpp:30