30 #include <boost/bind.hpp> 32 #include <OgreSceneNode.h> 33 #include <OgreSceneManager.h> 49 "The TF frame these axes will use for their origin.",
this,
nullptr,
true);
92 std::string frame = qframe.toStdString();
94 Ogre::Vector3 position;
95 Ogre::Quaternion orientation;
112 "Could not transform from [" + qframe +
"] to Fixed Frame [" +
fixed_frame_ +
113 "] for an unknown reason");
void setOrientation(const Ogre::Quaternion &orientation) override
Set the orientation of the object.
bool transformHasProblems(const std::string &frame, ros::Time time, std::string &error)
Check to see if a transform is known between a given frame and the fixed frame.
void onEnable() override
Derived classes override this to do the actual work of enabling themselves.
DisplayContext * context_
This DisplayContext pointer is the main connection a Display has into the rest of rviz...
Property specialized to enforce floating point max/min.
QString fixed_frame_
A convenience variable equal to context_->getFixedFrame().
void updateShape()
Update the length and radius of the axes object from property values.
FloatProperty * length_property_
void update(float dt, float ros_dt) override
Called periodically by the visualization manager.
void onDisable() override
Derived classes override this to do the actual work of disabling themselves.
TfFrameProperty * frame_property_
virtual FrameManager * getFrameManager() const =0
Return the FrameManager instance.
FloatProperty * radius_property_
An object that displays a set of X/Y/Z axes, with X=Red, Y=Green, Z=Blue.
void onInitialize() override
Override this function to do subclass-specific initialization.
Ogre::SceneManager * scene_manager_
A convenience variable equal to context_->getSceneManager().
void setPosition(const Ogre::Vector3 &position) override
Set the position of this object.
Axes * axes_
Handles actually drawing the axes.
virtual void queueRender()=0
Queues a render. Multiple calls before a render happens will only cause a single render.
bool isEnabled() const
Return true if this Display is enabled, false if not.
static const QString FIXED_FRAME_STRING
virtual float getFloat() const
bool getTransform(const Header &header, Ogre::Vector3 &position, Ogre::Quaternion &orientation)
Return the pose for a header, relative to the fixed frame, in Ogre classes.
void setFrameManager(FrameManager *frame_manager)
void set(float length, float radius)
Set the parameters on this object.
Ogre::SceneNode * getSceneNode()
Get the scene node associated with this object.
Displays a set of XYZ axes at the origin of a chosen frame.
#define PLUGINLIB_EXPORT_CLASS(class_type, base_class_type)
virtual void setStatus(StatusProperty::Level level, const QString &name, const QString &text)
Show status level and text. This is thread-safe.