src
tf_trajectory_display.h
Go to the documentation of this file.
1
// -*- mode: c++ -*-
2
/*********************************************************************
3
* Software License Agreement (BSD License)
4
*
5
* Copyright (c) 2015, JSK Lab
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
* * Redistributions of source code must retain the above copyright
13
* notice, this list of conditions and the following disclaimer.
14
* * Redistributions in binary form must reproduce the above
15
* copyright notice, this list of conditions and the following
16
* disclaimer in the documentation and/or other materials provided
17
* with the distribution.
18
* * Neither the name of the JSK Lab nor the names of its
19
* contributors may be used to endorse or promote products derived
20
* from this software without specific prior written permission.
21
*
22
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
25
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
26
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
27
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
28
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
29
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
30
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
32
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
33
* POSSIBILITY OF SUCH DAMAGE.
34
*********************************************************************/
35
36
#ifndef JSK_RVIZ_PLUGINS_TF_TRAJECTORY_DISPLAY_H_
37
#define JSK_RVIZ_PLUGINS_TF_TRAJECTORY_DISPLAY_H_
38
39
#ifndef Q_MOC_RUN
40
#include <
rviz/message_filter_display.h
>
41
#include <
rviz/properties/float_property.h
>
42
#include <
rviz/properties/tf_frame_property.h
>
43
#include <
rviz/properties/color_property.h
>
44
#include <
rviz/properties/status_property.h
>
45
#include <
rviz/ogre_helpers/billboard_line.h
>
46
#include <geometry_msgs/PointStamped.h>
47
#endif
48
49
namespace
jsk_rviz_plugins
50
{
51
52
class
TFTrajectoryDisplay:
public
rviz::Display
53
{
54
Q_OBJECT
55
public
:
56
TFTrajectoryDisplay
();
57
virtual
~TFTrajectoryDisplay
();
58
protected
:
59
virtual
void
onInitialize
();
60
virtual
void
onEnable
();
61
virtual
void
onDisable
();
62
virtual
void
update
(
float
wall_dt,
float
ros_dt);
63
64
rviz::TfFrameProperty
*
frame_property_
;
65
rviz::FloatProperty
*
duration_property_
;
66
rviz::ColorProperty
*
color_property_
;
67
rviz::FloatProperty
*
line_width_property_
;
68
rviz::BillboardLine
*
line_
;
69
std::vector<geometry_msgs::PointStamped>
trajectory_
;
70
std::string
frame_
;
71
std::string
fixed_frame_
;
72
float
duration_
;
73
QColor
color_
;
74
float
line_width_
;
75
protected
Q_SLOTS:
76
void
updateFrame
();
77
void
updateDuration
();
78
void
updateColor
();
79
void
updateLineWidth
();
80
};
81
}
82
83
#endif
rviz::BillboardLine
jsk_rviz_plugins::TFTrajectoryDisplay::TFTrajectoryDisplay
TFTrajectoryDisplay()
Definition:
tf_trajectory_display.cpp:74
jsk_rviz_plugins::TFTrajectoryDisplay::line_width_
float line_width_
Definition:
tf_trajectory_display.h:138
jsk_rviz_plugins::TFTrajectoryDisplay::updateDuration
void updateDuration()
Definition:
tf_trajectory_display.cpp:121
jsk_rviz_plugins::TFTrajectoryDisplay::updateFrame
void updateFrame()
Definition:
tf_trajectory_display.cpp:115
jsk_rviz_plugins::TFTrajectoryDisplay::updateLineWidth
void updateLineWidth()
Definition:
tf_trajectory_display.cpp:137
jsk_rviz_plugins::TFTrajectoryDisplay::trajectory_
std::vector< geometry_msgs::PointStamped > trajectory_
Definition:
tf_trajectory_display.h:133
jsk_rviz_plugins::TFTrajectoryDisplay::color_property_
rviz::ColorProperty * color_property_
Definition:
tf_trajectory_display.h:130
jsk_rviz_plugins::TFTrajectoryDisplay::updateColor
void updateColor()
Definition:
tf_trajectory_display.cpp:126
jsk_rviz_plugins::TFTrajectoryDisplay::duration_
float duration_
Definition:
tf_trajectory_display.h:136
float_property.h
rviz::ColorProperty
billboard_line.h
rviz::Display
rviz::FloatProperty
jsk_rviz_plugins::TFTrajectoryDisplay::duration_property_
rviz::FloatProperty * duration_property_
Definition:
tf_trajectory_display.h:129
jsk_rviz_plugins::TFTrajectoryDisplay::update
virtual void update(float wall_dt, float ros_dt)
Definition:
tf_trajectory_display.cpp:148
jsk_rviz_plugins::TFTrajectoryDisplay::onInitialize
virtual void onInitialize()
Definition:
tf_trajectory_display.cpp:105
jsk_rviz_plugins::TFTrajectoryDisplay::onDisable
virtual void onDisable()
Definition:
tf_trajectory_display.cpp:142
message_filter_display.h
tf_frame_property.h
rviz::TfFrameProperty
jsk_rviz_plugins::TFTrajectoryDisplay::line_width_property_
rviz::FloatProperty * line_width_property_
Definition:
tf_trajectory_display.h:131
status_property.h
jsk_rviz_plugins::TFTrajectoryDisplay::onEnable
virtual void onEnable()
Definition:
tf_trajectory_display.cpp:131
jsk_rviz_plugins::TFTrajectoryDisplay::color_
QColor color_
Definition:
tf_trajectory_display.h:137
jsk_rviz_plugins::TFTrajectoryDisplay::~TFTrajectoryDisplay
virtual ~TFTrajectoryDisplay()
Definition:
tf_trajectory_display.cpp:96
jsk_rviz_plugins::TFTrajectoryDisplay::fixed_frame_
std::string fixed_frame_
Definition:
tf_trajectory_display.h:135
jsk_rviz_plugins::TFTrajectoryDisplay::line_
rviz::BillboardLine * line_
Definition:
tf_trajectory_display.h:132
jsk_rviz_plugins::TFTrajectoryDisplay::frame_property_
rviz::TfFrameProperty * frame_property_
Definition:
tf_trajectory_display.h:128
jsk_rviz_plugins
Definition:
__init__.py:1
color_property.h
jsk_rviz_plugins::TFTrajectoryDisplay::frame_
std::string frame_
Definition:
tf_trajectory_display.h:134
jsk_rviz_plugins
Author(s): Kei Okada
, Yohei Kakiuchi
, Shohei Fujii
, Ryohei Ueda
autogenerated on Fri Dec 13 2024 03:49:57