trajectory_display.h
Go to the documentation of this file.
1 /*********************************************************************
2  * Software License Agreement (BSD License)
3  *
4  * Copyright (c) 2015, University of Colorado, Boulder
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 the Univ of CO, Boulder 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: Dave Coleman
36  Desc: Wraps a trajectory_visualization playback class for Rviz into a stand alone display
37 */
38 
39 #pragma once
40 
41 #include <rviz/display.h>
42 
44 #ifndef Q_MOC_RUN
45 #include <ros/ros.h>
47 #endif
48 
49 namespace rviz
50 {
51 class StringProperty;
52 }
53 
54 namespace moveit_rviz_plugin
55 {
57 {
58  Q_OBJECT
59  // friend class TrajectoryVisualization; // allow the visualization class to access the display
60 
61 public:
63 
64  ~TrajectoryDisplay() override;
65 
66  void loadRobotModel();
67 
68  void load(const rviz::Config& config) override;
69  void update(float wall_dt, float ros_dt) override;
70  void reset() override;
71 
72  // overrides from Display
73  void onInitialize() override;
74  void onEnable() override;
75  void onDisable() override;
76  void setName(const QString& name) override;
77 
78 private Q_SLOTS:
83 
84 protected:
85  // The trajectory playback component
86  TrajectoryVisualizationPtr trajectory_visual_;
87 
88  // Load robot model
89  rdf_loader::RDFLoaderPtr rdf_loader_;
90  moveit::core::RobotModelConstPtr robot_model_;
91  moveit::core::RobotStatePtr robot_state_;
92 
93  // Properties
95 };
96 
97 } // namespace moveit_rviz_plugin
moveit_rviz_plugin::TrajectoryDisplay::onInitialize
void onInitialize() override
Definition: trajectory_display.cpp:92
moveit_rviz_plugin::TrajectoryDisplay::~TrajectoryDisplay
~TrajectoryDisplay() override
moveit_rviz_plugin::TrajectoryDisplay::load
void load(const rviz::Config &config) override
Definition: trajectory_display.cpp:133
moveit_rviz_plugin::TrajectoryDisplay::update
void update(float wall_dt, float ros_dt) override
Definition: trajectory_display.cpp:155
ros.h
moveit_rviz_plugin::TrajectoryDisplay::setName
void setName(const QString &name) override
Definition: trajectory_display.cpp:161
rdf_loader.h
moveit_rviz_plugin::TrajectoryDisplay::rdf_loader_
rdf_loader::RDFLoaderPtr rdf_loader_
Definition: trajectory_display.h:89
moveit_rviz_plugin::TrajectoryDisplay::reset
void reset() override
Definition: trajectory_display.cpp:126
display.h
moveit_rviz_plugin::TrajectoryDisplay::loadRobotModel
void loadRobotModel()
Definition: trajectory_display.cpp:99
rviz::Display
rviz
rviz::StringProperty
name
name
moveit_rviz_plugin::TrajectoryDisplay::onEnable
void onEnable() override
Definition: trajectory_display.cpp:141
moveit_rviz_plugin::TrajectoryDisplay::onDisable
void onDisable() override
Definition: trajectory_display.cpp:149
moveit_rviz_plugin
Definition: motion_planning_display.h:80
moveit_rviz_plugin::TrajectoryDisplay::robot_model_
moveit::core::RobotModelConstPtr robot_model_
Definition: trajectory_display.h:90
moveit_rviz_plugin::TrajectoryDisplay::changedRobotDescription
void changedRobotDescription()
Slot Event Functions.
Definition: trajectory_display.cpp:167
moveit_rviz_plugin::TrajectoryDisplay
Definition: trajectory_display.h:56
moveit_rviz_plugin::TrajectoryDisplay::TrajectoryDisplay
TrajectoryDisplay()
Definition: trajectory_display.cpp:78
moveit_rviz_plugin::TrajectoryDisplay::trajectory_visual_
TrajectoryVisualizationPtr trajectory_visual_
Definition: trajectory_display.h:86
trajectory_visualization.h
config
config
rviz::Config
moveit_rviz_plugin::TrajectoryDisplay::robot_description_property_
rviz::StringProperty * robot_description_property_
Definition: trajectory_display.h:94
moveit_rviz_plugin::TrajectoryDisplay::robot_state_
moveit::core::RobotStatePtr robot_state_
Definition: trajectory_display.h:91


visualization
Author(s): Ioan Sucan , Dave Coleman , Sachin Chitta
autogenerated on Sat Mar 15 2025 02:27:26