19 #ifndef MOBILITY_PLANNER_QP_TRAJ_OPT_ROS_SRC_TRAJECTORY_DISPLAY_H_
20 #define MOBILITY_PLANNER_QP_TRAJ_OPT_ROS_SRC_TRAJECTORY_DISPLAY_H_
23 #include <rviz/message_filter_display.h>
24 #include <traj_opt_msgs/Trajectory.h>
25 #include <boost/circular_buffer.hpp>
44 class TrajectoryVisual;
64 :
public rviz::MessageFilterDisplay<traj_opt_msgs::Trajectory> {
87 void updateColorAndAlpha();
88 void randomizeColor();
89 void updateHistoryLength();
92 void updateSampleLength();
95 void processMessage(
const traj_opt_msgs::Trajectory::ConstPtr& msg);
99 boost::circular_buffer<boost::shared_ptr<TrajectoryVisual> > visuals_;
102 rviz::ColorProperty* color_property_;
103 rviz::FloatProperty* alpha_property_;
104 rviz::ColorProperty* color_property_v_;
105 rviz::ColorProperty* color_property_a_;
107 rviz::BoolProperty* use_v_property_;
108 rviz::BoolProperty* use_a_property_;
110 rviz::FloatProperty* thickness_property_;
111 rviz::IntProperty* history_length_property_;
112 rviz::IntProperty* traj_samples_property_;
113 rviz::IntProperty* tangent_samples_property_;
114 rviz::EnumProperty* style_property_;
120 #endif // MOBILITY_PLANNER_QP_TRAJ_OPT_ROS_SRC_TRAJECTORY_DISPLAY_H_