NavMap
Toggle main menu visibility
Loading...
Searching...
No Matches
navmap_rviz_plugin
include
navmap_rviz_plugin
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
25
#include "
navmap_rviz_plugin/navmap_pose_tool.hpp
"
26
#include "rviz_default_plugins/visibility_control.hpp"
27
28
namespace
rviz_common
29
{
30
class
DisplayContext;
31
namespace
properties
32
{
33
class
StringProperty;
34
class
QosProfileProperty;
35
}
// namespace properties
36
}
// namespace rviz_common
37
38
namespace
navmap_rviz_plugin
39
{
40
class
RVIZ_DEFAULT_PLUGINS_PUBLIC
NavMapGoalTool
:
public
NavMapPoseTool
41
{
42
Q_OBJECT
43
44
public
:
45
NavMapGoalTool
();
46
47
~NavMapGoalTool
()
override
;
48
49
void
onInitialize
()
override
;
50
51
protected
:
52
void
onPoseSet
(
double
x,
double
y,
double
z,
double
theta)
override
;
53
54
private
Q_SLOTS:
55
void
updateTopic();
56
57
private
:
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_
navmap_rviz_plugin::NavMapGoalTool::onInitialize
void onInitialize() override
Definition
navmap_goal_tool.cpp:46
navmap_rviz_plugin::NavMapGoalTool::onPoseSet
void onPoseSet(double x, double y, double z, double theta) override
Definition
navmap_goal_tool.cpp:65
navmap_rviz_plugin::NavMapGoalTool::~NavMapGoalTool
~NavMapGoalTool() override
navmap_rviz_plugin::NavMapGoalTool::NavMapGoalTool
NavMapGoalTool()
Definition
navmap_goal_tool.cpp:30
navmap_rviz_plugin::NavMapPoseTool::NavMapPoseTool
NavMapPoseTool()
Definition
navmap_pose_tool.cpp:48
navmap_rviz_plugin
Definition
navmap_goal_tool.hpp:39
rviz_common::properties
Definition
navmap_goal_tool.hpp:32
rviz_common
Definition
navmap_goal_tool.hpp:29
navmap_pose_tool.hpp
Generated by
1.17.0