MeshGoalTool.hpp
Go to the documentation of this file.
1 /*
2  * Software License Agreement (BSD License)
3  *
4  * Robot Operating System code by the University of Osnabrück
5  * Copyright (c) 2015, University of Osnabrück
6  * All rights reserved.
7  *
8  * Redistribution and use in source and binary forms, with or without
9  * modification, are permitted provided that the following conditions
10  * are met:
11  *
12  * 1. Redistributions of source code must retain the above
13  * copyright notice, this list of conditions and the following
14  * disclaimer.
15  *
16  * 2. Redistributions in binary form must reproduce the above
17  * copyright notice, this list of conditions and the following
18  * disclaimer in the documentation and/or other materials provided
19  * with the distribution.
20  *
21  * 3. Neither the name of the copyright holder nor the names of its
22  * contributors may be used to endorse or promote products derived
23  * from this software without specific prior written permission.
24  *
25  *
26  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
27  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
28  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
29  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
30  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
31  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
32  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
33  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
34  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
35  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
36  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
37  *
38  *
39  *
40  * MeshGoalTool.hpp
41  *
42  * author: Sebastian Pütz <spuetz@uni-osnabrueck.de>
43  */
44 
45 #ifndef MESH_GOAL_TOOL_HPP
46 #define MESH_GOAL_TOOL_HPP
47 
48 #include "MeshPoseTool.hpp"
49 #include <geometry_msgs/PoseStamped.h>
52 #include <rviz/display_context.h>
53 
54 #ifndef Q_MOC_RUN
55 #include <QObject>
56 #endif
57 
58 namespace rviz_map_plugin
59 {
64 class MeshGoalTool : public MeshPoseTool
65 {
66  Q_OBJECT
67 public:
71  MeshGoalTool();
72 
76  virtual void onInitialize();
77 
78 private Q_SLOTS:
79 
83  void updateTopic();
84 
85 protected:
91  virtual void onPoseSet(const Ogre::Vector3& position, const Ogre::Quaternion& orientation);
92 
101 };
102 
103 } /* namespace rviz_map_plugin */
104 
105 #endif
rviz_map_plugin::MeshGoalTool::pose_pub_
ros::Publisher pose_pub_
Publisher.
Definition: MeshGoalTool.hpp:98
ros::Publisher
rviz_map_plugin::MeshGoalTool::topic_property_
rviz::StringProperty * topic_property_
Property for the topic.
Definition: MeshGoalTool.hpp:94
rviz::BoolProperty
rviz_map_plugin::MeshGoalTool
Tool for publishing a goal within a mesh.
Definition: MeshGoalTool.hpp:64
rviz_map_plugin::MeshGoalTool::onInitialize
virtual void onInitialize()
Callback that is executed when tool is initialized.
Definition: MeshGoalTool.cpp:65
MeshPoseTool.hpp
bool_property.h
rviz::StringProperty
rviz_map_plugin::MeshGoalTool::MeshGoalTool
MeshGoalTool()
Constructor.
Definition: MeshGoalTool.cpp:52
rviz_map_plugin::MeshGoalTool::onPoseSet
virtual void onPoseSet(const Ogre::Vector3 &position, const Ogre::Quaternion &orientation)
When goal is set, publish result.
Definition: MeshGoalTool.cpp:77
rviz_map_plugin::MeshGoalTool::updateTopic
void updateTopic()
Updates the topic on which the goal will be published.
Definition: MeshGoalTool.cpp:72
rviz_map_plugin
Definition: ClusterLabelDisplay.hpp:120
rviz_map_plugin::MeshGoalTool::nh_
ros::NodeHandle nh_
Node handle.
Definition: MeshGoalTool.hpp:100
rviz_map_plugin::MeshPoseTool
Definition: MeshPoseTool.hpp:60
string_property.h
rviz_map_plugin::MeshGoalTool::switch_bottom_top_
rviz::BoolProperty * switch_bottom_top_
Switch bottom / top for selection.
Definition: MeshGoalTool.hpp:96
ros::NodeHandle
display_context.h


rviz_map_plugin
Author(s): Sebastian Pütz , Kristin Schmidt , Jan Philipp Vogtherr , Malte kleine Piening
autogenerated on Sun Jan 21 2024 04:06:25