NavMap
Loading...
Searching...
No Matches
navmap_goal_tool.hpp
Go to the documentation of this file.
1// Copyright 2025 Intelligent Robotics Lab
2//
3// This file is part of the project Easy Navigation (EasyNav in short)
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16
17#ifndef NAVMAP_RVIZ_PLUGIN__NAVMAP_GOAL_TOOL_HPP_
18#define NAVMAP_RVIZ_PLUGIN__NAVMAP_GOAL_TOOL_HPP_
19
20#include <QObject>
21
22#include "geometry_msgs/msg/pose_stamped.hpp"
23#include "rclcpp/rclcpp.hpp"
24
26#include "rviz_default_plugins/visibility_control.hpp"
27
28namespace rviz_common
29{
30class DisplayContext;
31namespace properties
32{
33class StringProperty;
34class QosProfileProperty;
35} // namespace properties
36} // namespace rviz_common
37
39{
40class RVIZ_DEFAULT_PLUGINS_PUBLIC NavMapGoalTool : public NavMapPoseTool
41{
42 Q_OBJECT
43
44public:
46
47 ~NavMapGoalTool() override;
48
49 void onInitialize() override;
50
51protected:
52 void onPoseSet(double x, double y, double z, double theta) override;
53
54private Q_SLOTS:
55 void updateTopic();
56
57private:
58 rclcpp::Publisher<geometry_msgs::msg::PoseStamped>::SharedPtr publisher_;
59 rclcpp::Clock::SharedPtr clock_;
60
61 rviz_common::properties::StringProperty * topic_property_;
62 rviz_common::properties::QosProfileProperty * qos_profile_property_;
63
64 rclcpp::QoS qos_profile_;
65};
66
67} // namespace navmap_rviz_plugin
68
69#endif // NAVMAP_RVIZ_PLUGIN__NAVMAP_GOAL_TOOL_HPP_
void onInitialize() override
Definition navmap_goal_tool.cpp:46
void onPoseSet(double x, double y, double z, double theta) override
Definition navmap_goal_tool.cpp:65
NavMapGoalTool()
Definition navmap_goal_tool.cpp:30
NavMapPoseTool()
Definition navmap_pose_tool.cpp:48
Definition navmap_goal_tool.hpp:39
Definition navmap_goal_tool.hpp:32
Definition navmap_goal_tool.hpp:29