handeye_calibration_rviz_plugin
include
moveit
handeye_calibration_rviz_plugin
handeye_calibration_frame.h
Go to the documentation of this file.
1
/*********************************************************************
2
* Software License Agreement (BSD License)
3
*
4
* Copyright (c) 2019, Intel Corporation.
5
* All rights reserved.
6
*
7
* Redistribution and use in source and binary forms, with or without
8
* modification, are permitted provided that the following conditions
9
* are met:
10
*
11
* * Redistributions of source code must retain the above copyright
12
* notice, this list of conditions and the following disclaimer.
13
* * Redistributions in binary form must reproduce the above
14
* copyright notice, this list of conditions and the following
15
* disclaimer in the documentation and/or other materials provided
16
* with the distribution.
17
* * Neither the name of Willow Garage nor the names of its
18
* contributors may be used to endorse or promote products derived
19
* from this software without specific prior written permission.
20
*
21
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
24
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
25
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
26
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
27
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
28
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
31
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32
* POSSIBILITY OF SUCH DAMAGE.
33
*********************************************************************/
34
35
/* Author: Yu Yan */
36
37
#pragma once
38
39
// qt
40
41
// ros
42
#include <
rviz_visual_tools/tf_visual_tools.h
>
43
44
// local
45
#include <
moveit/handeye_calibration_rviz_plugin/handeye_calibration_display.h
>
46
#include <
moveit/handeye_calibration_rviz_plugin/handeye_target_widget.h
>
47
#include <
moveit/handeye_calibration_rviz_plugin/handeye_context_widget.h
>
48
#include <
moveit/handeye_calibration_rviz_plugin/handeye_control_widget.h
>
49
50
#ifndef Q_MOC_RUN
51
#include <
ros/ros.h
>
52
#include <
rviz/display_factory.h
>
53
#include <
rviz/display_context.h
>
54
#endif
55
56
namespace
moveit_rviz_plugin
57
{
58
class
HandEyeCalibrationDisplay;
59
class
TargetTabWidget;
60
class
ContextTabWidget;
61
class
ControlTabWidget;
62
63
class
HandEyeCalibrationFrame :
public
QWidget
64
{
65
friend
class
HandEyeCalibrationDisplay
;
66
Q_OBJECT
67
68
public
:
69
explicit
HandEyeCalibrationFrame
(
HandEyeCalibrationDisplay
* pdisplay,
rviz::DisplayContext
* context,
70
QWidget* parent = 0);
71
~HandEyeCalibrationFrame
()
override
;
72
73
virtual
void
loadWidget
(
const
rviz::Config
& config);
74
virtual
void
saveWidget
(
rviz::Config
config)
const
;
75
76
protected
:
77
// ******************************************************************************************
78
// Qt Components
79
// ******************************************************************************************
80
81
TargetTabWidget*
tab_target_
;
82
ContextTabWidget*
tab_context_
;
83
ControlTabWidget*
tab_control_
;
84
85
private
:
86
rviz::DisplayContext
*
context_
;
87
HandEyeCalibrationDisplay
*
calibration_display_
;
88
89
rviz_visual_tools::TFVisualToolsPtr
tf_tools_
;
90
};
91
92
}
// namespace moveit_rviz_plugin
handeye_control_widget.h
boost::shared_ptr< TFVisualTools >
moveit_rviz_plugin::HandEyeCalibrationFrame::calibration_display_
HandEyeCalibrationDisplay * calibration_display_
Definition:
handeye_calibration_frame.h:119
moveit_rviz_plugin::HandEyeCalibrationFrame::tab_context_
ContextTabWidget * tab_context_
Definition:
handeye_calibration_frame.h:114
ros.h
handeye_target_widget.h
moveit_rviz_plugin::HandEyeCalibrationFrame::context_
rviz::DisplayContext * context_
Definition:
handeye_calibration_frame.h:118
moveit_rviz_plugin::HandEyeCalibrationFrame::tab_target_
TargetTabWidget * tab_target_
Definition:
handeye_calibration_frame.h:113
handeye_context_widget.h
handeye_calibration_display.h
tf_visual_tools.h
moveit_rviz_plugin::HandEyeCalibrationFrame::~HandEyeCalibrationFrame
~HandEyeCalibrationFrame() override
moveit_rviz_plugin::HandEyeCalibrationFrame::tf_tools_
rviz_visual_tools::TFVisualToolsPtr tf_tools_
Definition:
handeye_calibration_frame.h:121
rviz::DisplayContext
moveit_rviz_plugin
moveit_rviz_plugin::HandEyeCalibrationFrame::loadWidget
virtual void loadWidget(const rviz::Config &config)
Definition:
handeye_calibration_frame.cpp:133
display_factory.h
moveit_rviz_plugin::HandEyeCalibrationFrame::HandEyeCalibrationFrame
HandEyeCalibrationFrame(HandEyeCalibrationDisplay *pdisplay, rviz::DisplayContext *context, QWidget *parent=0)
Definition:
handeye_calibration_frame.cpp:77
moveit_rviz_plugin::HandEyeCalibrationFrame::saveWidget
virtual void saveWidget(rviz::Config config) const
Definition:
handeye_calibration_frame.cpp:125
moveit_rviz_plugin::HandEyeCalibrationFrame::HandEyeCalibrationDisplay
friend class HandEyeCalibrationDisplay
Definition:
handeye_calibration_frame.h:97
rviz::Config
moveit_rviz_plugin::HandEyeCalibrationFrame::tab_control_
ControlTabWidget * tab_control_
Definition:
handeye_calibration_frame.h:115
display_context.h
moveit_calibration_gui
Author(s): Yu Yan
autogenerated on Fri Oct 18 2024 02:14:15