30 #include <OGRE/OgreSceneNode.h> 31 #include <OGRE/OgreSceneManager.h> 50 "Color to draw the spline.",
54 "Shape of the spline.",
61 "Number of points to display along path.",
67 "Scale of the spline contour.",
73 "Color to draw the spline orientation arrows.",
76 "Number of arrows to display along path.",
82 "Scale of the spline orientation arrows.",
88 "Number of prior measurements to display.",
121 for (
auto& visualsI:
visuals_ ) { visualsI->setPathColor ( color ); }
125 for (
auto& visualsI:
visuals_ ) { visualsI->setOrientColor ( color ); }
131 for (
auto& visualsI:
visuals_ ) { visualsI->setShape ( shape_type ); }
137 for (
auto& visualsI:
visuals_ ) { visualsI->setPathScale ( scale ); }
141 for (
auto& visualsI:
visuals_ ) { visualsI->setOrientScale ( scale ); }
151 for (
auto& visualsI:
visuals_ ) { visualsI->setPathPointsNr ( pointsNr ); }
155 for (
auto& visualsI:
visuals_ ) { visualsI->setOrientPointsNr ( pointsNr ); }
164 Ogre::Quaternion orientation;
165 Ogre::Vector3 position;
168 position, orientation ) ) {
169 ROS_DEBUG (
"Error transforming from frame '%s' to frame '%s'",
170 msg->header.frame_id.c_str(), qPrintable (
fixed_frame_ ) );
184 visual->setMessage ( msg );
185 visual->setFramePosition ( position );
186 visual->setFrameOrientation ( orientation );
boost::circular_buffer< boost::shared_ptr< SplineVisual > > visuals_
Ogre::ColourValue getOgreColor() const
virtual void onInitialize()
rviz::EnumProperty * shape_property_
rviz::ColorProperty * color_orient_property_
DisplayContext * context_
virtual int getInt() const
void updateOrientPointsNr()
void updatePathPointsNr()
virtual float getFloat() const
#define PLUGINLIB_EXPORT_CLASS(class_type, base_class_type)
Ogre::SceneNode * scene_node_
rviz::IntProperty * points_nr_path_property_
void updateHistoryLength()
virtual void onInitialize()
virtual FrameManager * getFrameManager() const =0
rviz::ColorProperty * color_path_property_
rviz::FloatProperty * scale_orient_property_
void addOptionStd(const std::string &option, int value=0)
virtual Ogre::SceneManager * getSceneManager() const =0
rviz::IntProperty * points_nr_orient_property_
rviz::FloatProperty * scale_path_property_
bool getTransform(const Header &header, Ogre::Vector3 &position, Ogre::Quaternion &orientation)
void processMessage(const tuw_spline_msgs::Spline::ConstPtr &msg)
rviz::IntProperty * history_length_property_
virtual int getOptionInt()