src
rviz
frame_position_tracking_view_controller.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2012, Willow Garage, Inc.
3
* All rights reserved.
4
*
5
* Redistribution and use in source and binary forms, with or without
6
* modification, are permitted provided that the following conditions are met:
7
*
8
* * Redistributions of source code must retain the above copyright
9
* notice, this list of conditions and the following disclaimer.
10
* * Redistributions in binary form must reproduce the above copyright
11
* notice, this list of conditions and the following disclaimer in the
12
* documentation and/or other materials provided with the distribution.
13
* * Neither the name of the Willow Garage, Inc. nor the names of its
14
* contributors may be used to endorse or promote products derived from
15
* this software without specific prior written permission.
16
*
17
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
18
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
21
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
22
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
25
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27
* POSSIBILITY OF SUCH DAMAGE.
28
*/
29
30
#ifndef RVIZ_FRAME_POSITION_TRACKING_VIEW_CONTROLLER_H
31
#define RVIZ_FRAME_POSITION_TRACKING_VIEW_CONTROLLER_H
32
33
#include <OgreQuaternion.h>
34
#include <
rviz/ogre_helpers/ogre_vector.h
>
35
36
#include <
rviz/view_controller.h
>
37
#include <rviz/rviz_export.h>
38
39
namespace
rviz
40
{
41
class
TfFrameProperty;
42
45
class
RVIZ_EXPORT
FramePositionTrackingViewController
:
public
ViewController
46
{
47
Q_OBJECT
48
public
:
49
FramePositionTrackingViewController
();
50
~
FramePositionTrackingViewController
()
override
;
51
56
void
onInitialize()
override
;
57
62
void
onActivate()
override
;
63
64
void
update
(
float
dt,
float
ros_dt)
override
;
65
73
void
mimic(
ViewController
* source_view)
override
;
74
75
protected
Q_SLOTS:
81
virtual
void
updateTargetFrame();
82
83
protected
:
87
virtual
void
onTargetFrameChanged
(
const
Ogre::Vector3&
/*old_reference_position*/
,
88
const
Ogre::Quaternion&
/*old_reference_orientation*/
)
89
{
90
}
91
92
bool
getNewTransform();
93
96
virtual
void
updateTargetSceneNode();
97
98
TfFrameProperty
*
target_frame_property_
;
99
Ogre::SceneNode*
target_scene_node_
;
100
Ogre::Quaternion
reference_orientation_
;
101
Ogre::Vector3
reference_position_
;
102
};
103
104
}
// end namespace rviz
105
106
#endif // RVIZ_FRAME_POSITION_TRACKING_VIEW_CONTROLLER_H
rviz::FramePositionTrackingViewController::reference_position_
Ogre::Vector3 reference_position_
Definition:
frame_position_tracking_view_controller.h:101
update
void update(const std::string &key, const XmlRpc::XmlRpcValue &v)
rviz
Definition:
add_display_dialog.cpp:54
rviz::FramePositionTrackingViewController::target_frame_property_
TfFrameProperty * target_frame_property_
Definition:
frame_position_tracking_view_controller.h:98
ogre_vector.h
rviz::FramePositionTrackingViewController::reference_orientation_
Ogre::Quaternion reference_orientation_
Definition:
frame_position_tracking_view_controller.h:100
rviz::TfFrameProperty
Definition:
tf_frame_property.h:41
rviz::ViewController
Definition:
view_controller.h:55
rviz::FramePositionTrackingViewController
Base class of ViewControllers which have a "Target Frame" which is a TF frame whose position they tra...
Definition:
frame_position_tracking_view_controller.h:45
rviz::FramePositionTrackingViewController::onTargetFrameChanged
virtual void onTargetFrameChanged(const Ogre::Vector3 &, const Ogre::Quaternion &)
Override to implement the change in properties which nullifies the change in target frame.
Definition:
frame_position_tracking_view_controller.h:87
view_controller.h
rviz::FramePositionTrackingViewController::target_scene_node_
Ogre::SceneNode * target_scene_node_
Definition:
frame_position_tracking_view_controller.h:99
rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust, William Woodall
autogenerated on Fri Aug 2 2024 08:43:09