Displays a nxt_msgs::Color message. More...
#include <nxt_color_display.h>
Public Member Functions | |
virtual void | createProperties () |
virtual void | fixedFrameChanged () |
float | getAlpha () |
float | getDisplayLength () |
const std::string & | getTopic () |
virtual const char * | getType () const |
NXTColorDisplay (const std::string &name, rviz::VisualizationManager *manager) | |
virtual void | reset () |
void | setAlpha (float alpha) |
void | setDisplayLength (float displayLength) |
void | setTopic (const std::string &topic) |
virtual void | targetFrameChanged () |
virtual void | update (float wall_dt, float ros_dt) |
virtual | ~NXTColorDisplay () |
Static Public Member Functions | |
static const char * | getDescription () |
static const char * | getTypeStatic () |
Protected Member Functions | |
void | clear () |
void | incomingMessage (const nxt_msgs::Color::ConstPtr &msg) |
virtual void | onDisable () |
virtual void | onEnable () |
void | processMessage (const nxt_msgs::Color::ConstPtr &msg) |
void | subscribe () |
void | unsubscribe () |
Protected Attributes | |
float | alpha_ |
rviz::FloatPropertyWPtr | alpha_property_ |
nxt_msgs::Color::ConstPtr | current_message_ |
ogre_tools::Shape * | cylinder_ |
Handles actually drawing the cone. | |
rviz::FloatPropertyWPtr | display_property_ |
float | displayLength_ |
uint32_t | messages_received_ |
Ogre::SceneNode * | scene_node_ |
message_filters::Subscriber < nxt_msgs::Color > | sub_ |
tf::MessageFilter < nxt_msgs::Color > | tf_filter_ |
std::string | topic_ |
rviz::ROSTopicStringPropertyWPtr | topic_property_ |
Displays a nxt_msgs::Color message.
Definition at line 33 of file nxt_color_display.h.
nxt_rviz_plugin::NXTColorDisplay::NXTColorDisplay | ( | const std::string & | name, | |
rviz::VisualizationManager * | manager | |||
) |
Definition at line 16 of file nxt_color_display.cpp.
nxt_rviz_plugin::NXTColorDisplay::~NXTColorDisplay | ( | ) | [virtual] |
Definition at line 39 of file nxt_color_display.cpp.
void nxt_rviz_plugin::NXTColorDisplay::clear | ( | ) | [protected] |
Definition at line 46 of file nxt_color_display.cpp.
void nxt_rviz_plugin::NXTColorDisplay::createProperties | ( | ) | [virtual] |
Definition at line 175 of file nxt_color_display.cpp.
void nxt_rviz_plugin::NXTColorDisplay::fixedFrameChanged | ( | ) | [virtual] |
Definition at line 115 of file nxt_color_display.cpp.
float nxt_rviz_plugin::NXTColorDisplay::getAlpha | ( | ) | [inline] |
Definition at line 43 of file nxt_color_display.h.
const char * nxt_rviz_plugin::NXTColorDisplay::getDescription | ( | ) | [static] |
Definition at line 193 of file nxt_color_display.cpp.
float nxt_rviz_plugin::NXTColorDisplay::getDisplayLength | ( | ) | [inline] |
Definition at line 46 of file nxt_color_display.h.
const std::string& nxt_rviz_plugin::NXTColorDisplay::getTopic | ( | ) | [inline] |
Definition at line 40 of file nxt_color_display.h.
virtual const char* nxt_rviz_plugin::NXTColorDisplay::getType | ( | ) | const [inline, virtual] |
Definition at line 56 of file nxt_color_display.h.
static const char* nxt_rviz_plugin::NXTColorDisplay::getTypeStatic | ( | ) | [inline, static] |
Definition at line 55 of file nxt_color_display.h.
void nxt_rviz_plugin::NXTColorDisplay::incomingMessage | ( | const nxt_msgs::Color::ConstPtr & | msg | ) | [protected] |
Definition at line 164 of file nxt_color_display.cpp.
void nxt_rviz_plugin::NXTColorDisplay::onDisable | ( | ) | [protected, virtual] |
Definition at line 108 of file nxt_color_display.cpp.
void nxt_rviz_plugin::NXTColorDisplay::onEnable | ( | ) | [protected, virtual] |
Definition at line 102 of file nxt_color_display.cpp.
void nxt_rviz_plugin::NXTColorDisplay::processMessage | ( | const nxt_msgs::Color::ConstPtr & | msg | ) | [protected] |
Definition at line 127 of file nxt_color_display.cpp.
void nxt_rviz_plugin::NXTColorDisplay::reset | ( | ) | [virtual] |
Definition at line 169 of file nxt_color_display.cpp.
void nxt_rviz_plugin::NXTColorDisplay::setAlpha | ( | float | alpha | ) |
Definition at line 66 of file nxt_color_display.cpp.
void nxt_rviz_plugin::NXTColorDisplay::setDisplayLength | ( | float | displayLength | ) |
Definition at line 76 of file nxt_color_display.cpp.
void nxt_rviz_plugin::NXTColorDisplay::setTopic | ( | const std::string & | topic | ) |
Definition at line 53 of file nxt_color_display.cpp.
void nxt_rviz_plugin::NXTColorDisplay::subscribe | ( | ) | [protected] |
Definition at line 87 of file nxt_color_display.cpp.
virtual void nxt_rviz_plugin::NXTColorDisplay::targetFrameChanged | ( | ) | [inline, virtual] |
Definition at line 49 of file nxt_color_display.h.
void nxt_rviz_plugin::NXTColorDisplay::unsubscribe | ( | ) | [protected] |
Definition at line 97 of file nxt_color_display.cpp.
void nxt_rviz_plugin::NXTColorDisplay::update | ( | float | wall_dt, | |
float | ros_dt | |||
) | [virtual] |
Definition at line 122 of file nxt_color_display.cpp.
float nxt_rviz_plugin::NXTColorDisplay::alpha_ [protected] |
Definition at line 71 of file nxt_color_display.h.
rviz::FloatPropertyWPtr nxt_rviz_plugin::NXTColorDisplay::alpha_property_ [protected] |
Definition at line 84 of file nxt_color_display.h.
nxt_msgs::Color::ConstPtr nxt_rviz_plugin::NXTColorDisplay::current_message_ [protected] |
Definition at line 81 of file nxt_color_display.h.
ogre_tools::Shape* nxt_rviz_plugin::NXTColorDisplay::cylinder_ [protected] |
Handles actually drawing the cone.
Definition at line 77 of file nxt_color_display.h.
rviz::FloatPropertyWPtr nxt_rviz_plugin::NXTColorDisplay::display_property_ [protected] |
Definition at line 85 of file nxt_color_display.h.
float nxt_rviz_plugin::NXTColorDisplay::displayLength_ [protected] |
Definition at line 72 of file nxt_color_display.h.
uint32_t nxt_rviz_plugin::NXTColorDisplay::messages_received_ [protected] |
Definition at line 74 of file nxt_color_display.h.
Ogre::SceneNode* nxt_rviz_plugin::NXTColorDisplay::scene_node_ [protected] |
Definition at line 76 of file nxt_color_display.h.
message_filters::Subscriber<nxt_msgs::Color> nxt_rviz_plugin::NXTColorDisplay::sub_ [protected] |
Definition at line 79 of file nxt_color_display.h.
tf::MessageFilter<nxt_msgs::Color> nxt_rviz_plugin::NXTColorDisplay::tf_filter_ [protected] |
Definition at line 80 of file nxt_color_display.h.
std::string nxt_rviz_plugin::NXTColorDisplay::topic_ [protected] |
Definition at line 70 of file nxt_color_display.h.
rviz::ROSTopicStringPropertyWPtr nxt_rviz_plugin::NXTColorDisplay::topic_property_ [protected] |
Definition at line 83 of file nxt_color_display.h.