37 #ifndef MOVEIT_TRAJECTORY_RVIZ_PLUGIN__TRAJECTORY_VISUALIZATION 38 #define MOVEIT_TRAJECTORY_RVIZ_PLUGIN__TRAJECTORY_VISUALIZATION 40 #include <boost/thread/mutex.hpp> 52 #include <moveit_msgs/DisplayTrajectory.h> 64 class RosTopicProperty;
65 class EditableEnumProperty;
89 virtual void update(
float wall_dt,
float ros_dt);
93 void onRobotModelLoaded(robot_model::RobotModelConstPtr robot_model);
96 void setName(
const QString&
name);
98 void dropTrajectory();
101 void interruptCurrentDisplay();
102 void setDefaultAttachedObjectColor(
const QColor& color);
109 void changedDisplayPathVisualEnabled();
110 void changedDisplayPathCollisionEnabled();
111 void changedRobotPathAlpha();
112 void changedLoopDisplay();
113 void changedShowTrail();
114 void changedTrailStepSize();
115 void changedTrajectoryTopic();
116 void changedStateDisplayTime();
117 void changedRobotColor();
118 void enabledRobotColor();
119 void trajectorySliderPanelVisibilityChange(
bool enable);
125 void incomingDisplayTrajectory(
const moveit_msgs::DisplayTrajectory::ConstPtr& msg);
126 float getStateDisplayTime();
127 void clearTrajectoryTrail();
133 void setRobotColor(
rviz::Robot* robot,
const QColor& color);
rviz::BoolProperty * display_path_visual_enabled_property_
rviz::DisplayContext * context_
float current_state_time_
robot_trajectory::RobotTrajectoryPtr trajectory_message_to_display_
TrajectoryPanel * trajectory_slider_panel_
rviz::BoolProperty * trail_display_property_
std::vector< rviz::Robot * > trajectory_trail_
robot_model::RobotModelConstPtr robot_model_
ros::Subscriber trajectory_topic_sub_
rviz::ColorProperty * robot_color_property_
void update(const std::string &key, const XmlRpc::XmlRpcValue &v)
bool drop_displaying_trajectory_
robot_state::RobotStatePtr robot_state_
rviz::BoolProperty * interrupt_display_property_
ros::NodeHandle update_nh_
rviz::FloatProperty * robot_path_alpha_property_
robot_trajectory::RobotTrajectoryPtr displaying_trajectory_message_
Ogre::SceneNode * scene_node_
rviz::BoolProperty * enable_robot_color_property_
RobotStateVisualizationPtr display_path_robot_
boost::mutex update_trajectory_message_
rviz::BoolProperty * display_path_collision_enabled_property_
MOVEIT_CLASS_FORWARD(TrajectoryVisualization)
rviz::IntProperty * trail_step_size_property_
rviz::PanelDockWidget * trajectory_slider_dock_panel_
rviz::RosTopicProperty * trajectory_topic_property_
rviz::EditableEnumProperty * state_display_time_property_
rviz::BoolProperty * loop_display_property_