mesh_goal_tool.h
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  * mesh_goal_tool.h
41  *
42  * author: Sebastian Pütz <spuetz@uni-osnabrueck.de>
43  */
44 
45 #ifndef RVIZ_MESH_PLUGIN__MESH_GOAL_TOOL_H_
46 #define RVIZ_MESH_PLUGIN__MESH_GOAL_TOOL_H_
47 
48 #include "mesh_pose_tool.h"
49 #include <geometry_msgs/PoseStamped.h>
52 #include <rviz/display_context.h>
53 
54 #ifndef Q_MOC_RUN // See: https://bugreports.qt-project.org/browse/QTBUG-22829
55 #include <QObject>
56 #endif
57 
58 namespace rviz_mesh_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_mesh_plugin */
104 
105 #endif /* mesh_goal_tool.h */
ros::Publisher
rviz_mesh_plugin::MeshGoalTool::onInitialize
virtual void onInitialize()
Callback that is executed when tool is initialized.
Definition: mesh_goal_tool.cpp:65
rviz_mesh_plugin::MeshGoalTool::updateTopic
void updateTopic()
Updates the topic on which the goal will be published.
Definition: mesh_goal_tool.cpp:72
rviz::BoolProperty
rviz_mesh_plugin::MeshGoalTool::switch_bottom_top_
rviz::BoolProperty * switch_bottom_top_
Switch bottom / top for selection.
Definition: mesh_goal_tool.h:96
mesh_pose_tool.h
rviz_mesh_plugin::MeshGoalTool::nh_
ros::NodeHandle nh_
Node handle.
Definition: mesh_goal_tool.h:100
rviz_mesh_plugin::MeshGoalTool::onPoseSet
virtual void onPoseSet(const Ogre::Vector3 &position, const Ogre::Quaternion &orientation)
When goal is set, publish result.
Definition: mesh_goal_tool.cpp:77
bool_property.h
rviz_mesh_plugin::MeshGoalTool
Tool for publishing a goal within a mesh.
Definition: mesh_goal_tool.h:64
rviz::StringProperty
rviz_mesh_plugin
Definition: face_selection_tool.h:117
rviz_mesh_plugin::MeshGoalTool::MeshGoalTool
MeshGoalTool()
Constructor.
Definition: mesh_goal_tool.cpp:52
rviz_mesh_plugin::MeshGoalTool::topic_property_
rviz::StringProperty * topic_property_
Property for the topic.
Definition: mesh_goal_tool.h:94
string_property.h
rviz_mesh_plugin::MeshPoseTool
Definition: mesh_pose_tool.h:60
ros::NodeHandle
rviz_mesh_plugin::MeshGoalTool::pose_pub_
ros::Publisher pose_pub_
Publisher.
Definition: mesh_goal_tool.h:98
display_context.h


rviz_mesh_plugin
Author(s): Sebastian Pütz , Henning Deeken , Marcel Mrozinski , Kristin Schmidt , Jan Philipp Vogtherr
autogenerated on Fri Feb 12 2021 04:03:57