#include <articulation_display.h>
Public Types | |
enum | ColorStyle { cs_fixed, cs_channel, cs_hue, cs_brightness, ColorStyleCount } |
enum | DisplayStyle { ds_line, ds_cross_line, ds_axes, ds_rectangle, DisplayStyleCount } |
Public Member Functions | |
virtual void | createProperties () |
virtual void | createProperties () |
virtual void | fixedFrameChanged () |
virtual void | fixedFrameChanged () |
float | getAlpha () |
const rviz::Color & | getColor () |
int | getDisplayStyle () |
float | getLineWidth () |
int | getPoseColor () |
const std::string & | getTopic () |
const std::string & | getTopic () |
int | getTrackColor () |
virtual void | onDisable () |
virtual void | onEnable () |
virtual void | reset () |
void | setAlpha (float a) |
void | setColor (const rviz::Color &color) |
void | setDisplayStyle (int ds) |
void | setLineWidth (float a) |
void | setPoseColor (int cs) |
void | setTopic (const std::string &topic) |
void | setTopic (const std::string &topic) |
void | setTrackColor (int cs) |
virtual void | targetFrameChanged () |
virtual void | targetFrameChanged () |
TrackDisplay (const std::string &name, rviz::VisualizationManager *manager) | |
TrackDisplay (const std::string &name, rviz::VisualizationManager *manager) | |
virtual void | update (float wall_dt, float ros_dt) |
virtual void | update (float wall_dt, float ros_dt) |
virtual | ~TrackDisplay () |
virtual | ~TrackDisplay () |
Public Attributes | |
float | alpha_ |
rviz::FloatPropertyWPtr | alpha_property_ |
rviz::Color | color_ |
rviz::ColorPropertyWPtr | color_property_ |
int | displayStyle_ |
rviz::EnumPropertyWPtr | displayStyle_property_ |
float | lineWidth_ |
rviz::FloatPropertyWPtr | lineWidth_property_ |
int | poseColor_ |
rviz::EnumPropertyWPtr | poseColor_property_ |
rviz::ROSTopicStringPropertyWPtr | topic_property_ |
std::string | track_topic_ |
int | trackColor_ |
rviz::EnumPropertyWPtr | trackColor_property_ |
Protected Types | |
typedef std::vector < articulation_msgs::TrackMsg::ConstPtr > | V_TrackMsg |
Protected Member Functions | |
void | clearDisplay () |
void | clearMap () |
void | clearVector (std::vector< ogre_tools::BillboardLine * > &vec) |
void | createAxes (Ogre::Vector3 pos, Ogre::Quaternion orient, Ogre::Vector3 scale, btVector3 color, std::vector< ogre_tools::BillboardLine * > &vec) |
void | createLine (Ogre::Vector3 pos, Ogre::Vector3 old_pos, Ogre::Vector3 scale, btVector3 color, std::vector< ogre_tools::BillboardLine * > &vec, bool add_cross) |
void | createRectangle (Ogre::Vector3 pos, Ogre::Quaternion orient, Ogre::Vector3 scale, double w, double h, btVector3 color, std::vector< ogre_tools::BillboardLine * > &vec) |
void | incomingTrack (const articulation_models::TrackMsg::ConstPtr &msg) |
void | incomingTrack (const articulation_msgs::TrackMsg::ConstPtr &msg) |
btVector3 | modifyColor (btVector3 color, int colorStyle, float f) |
ogre_tools::BillboardLine * | newBillboardLine () |
virtual void | onDisable () |
virtual void | onEnable () |
void | subscribe () |
void | subscribe () |
bool | transform (const btTransform &pose, const btVector3 &scaleIn, Ogre::Vector3 &pos, Ogre::Quaternion &orient, Ogre::Vector3 &scaleOut) |
bool | transform (const articulation_msgs::TrackMsg::ConstPtr &message, btTransform &transform) |
void | unsubscribe () |
void | unsubscribe () |
Protected Attributes | |
articulation_models::TrackMsg::ConstPtr | displaying_track_message_ |
articulation_models::TrackMsg::ConstPtr | incoming_track_message_ |
articulation_msgs::TrackMsg::ConstPtr | incoming_track_message_ |
std::map< int, std::vector < ogre_tools::BillboardLine * > > | lines |
V_TrackMsg | message_queue_ |
boost::mutex | queue_mutex_ |
std::vector < ogre_tools::BillboardLine * > | recycleLines |
Ogre::SceneNode * | scene_node_ |
Scene node all the marker objects are parented to. | |
ros::Subscriber | sub_ |
message_filters::Subscriber < articulation_msgs::TrackMsg > | sub_ |
tf::MessageFilter < articulation_msgs::TrackMsg > | tf_filter_ |
Definition at line 31 of file articulation_display.h.
typedef std::vector<articulation_msgs::TrackMsg::ConstPtr> articulation_rviz_plugin::TrackDisplay::V_TrackMsg [protected] |
Definition at line 118 of file articulation_display.h.
Definition at line 61 of file articulation_display.h.
Definition at line 80 of file articulation_display.h.
articulation_rviz_plugin::TrackDisplay::TrackDisplay | ( | const std::string & | name, | |
rviz::VisualizationManager * | manager | |||
) |
Definition at line 16 of file articulation_display.cpp.
articulation_rviz_plugin::TrackDisplay::~TrackDisplay | ( | ) | [virtual] |
Definition at line 31 of file articulation_display.cpp.
articulation_rviz_plugin::TrackDisplay::TrackDisplay | ( | const std::string & | name, | |
rviz::VisualizationManager * | manager | |||
) |
virtual articulation_rviz_plugin::TrackDisplay::~TrackDisplay | ( | ) | [virtual] |
void articulation_rviz_plugin::TrackDisplay::clearDisplay | ( | ) | [protected] |
Definition at line 243 of file articulation_display.cpp.
void articulation_rviz_plugin::TrackDisplay::clearMap | ( | ) | [protected] |
Definition at line 36 of file articulation_display.cpp.
void articulation_rviz_plugin::TrackDisplay::clearVector | ( | std::vector< ogre_tools::BillboardLine * > & | vec | ) | [protected] |
Definition at line 43 of file articulation_display.cpp.
void articulation_rviz_plugin::TrackDisplay::createAxes | ( | Ogre::Vector3 | pos, | |
Ogre::Quaternion | orient, | |||
Ogre::Vector3 | scale, | |||
btVector3 | color, | |||
std::vector< ogre_tools::BillboardLine * > & | vec | |||
) | [protected] |
Definition at line 340 of file articulation_display.cpp.
void articulation_rviz_plugin::TrackDisplay::createLine | ( | Ogre::Vector3 | pos, | |
Ogre::Vector3 | old_pos, | |||
Ogre::Vector3 | scale, | |||
btVector3 | color, | |||
std::vector< ogre_tools::BillboardLine * > & | vec, | |||
bool | add_cross | |||
) | [protected] |
Definition at line 378 of file articulation_display.cpp.
virtual void articulation_rviz_plugin::TrackDisplay::createProperties | ( | ) | [virtual] |
void articulation_rviz_plugin::TrackDisplay::createProperties | ( | ) | [virtual] |
Definition at line 194 of file articulation_display.cpp.
void articulation_rviz_plugin::TrackDisplay::createRectangle | ( | Ogre::Vector3 | pos, | |
Ogre::Quaternion | orient, | |||
Ogre::Vector3 | scale, | |||
double | w, | |||
double | h, | |||
btVector3 | color, | |||
std::vector< ogre_tools::BillboardLine * > & | vec | |||
) | [protected] |
Definition at line 303 of file articulation_display.cpp.
virtual void articulation_rviz_plugin::TrackDisplay::fixedFrameChanged | ( | ) | [inline, virtual] |
Definition at line 39 of file minimal_display.h.
void articulation_rviz_plugin::TrackDisplay::fixedFrameChanged | ( | ) | [virtual] |
Definition at line 188 of file articulation_display.cpp.
float articulation_rviz_plugin::TrackDisplay::getAlpha | ( | ) | [inline] |
Definition at line 53 of file articulation_display.h.
const rviz::Color& articulation_rviz_plugin::TrackDisplay::getColor | ( | ) | [inline] |
Definition at line 48 of file articulation_display.h.
int articulation_rviz_plugin::TrackDisplay::getDisplayStyle | ( | ) | [inline] |
Definition at line 91 of file articulation_display.h.
float articulation_rviz_plugin::TrackDisplay::getLineWidth | ( | ) | [inline] |
Definition at line 58 of file articulation_display.h.
int articulation_rviz_plugin::TrackDisplay::getPoseColor | ( | ) | [inline] |
Definition at line 77 of file articulation_display.h.
const std::string& articulation_rviz_plugin::TrackDisplay::getTopic | ( | ) | [inline] |
Definition at line 33 of file minimal_display.h.
const std::string& articulation_rviz_plugin::TrackDisplay::getTopic | ( | ) | [inline] |
Definition at line 43 of file articulation_display.h.
int articulation_rviz_plugin::TrackDisplay::getTrackColor | ( | ) | [inline] |
Definition at line 72 of file articulation_display.h.
void articulation_rviz_plugin::TrackDisplay::incomingTrack | ( | const articulation_models::TrackMsg::ConstPtr & | msg | ) | [protected] |
Definition at line 52 of file minimal_display.cpp.
void articulation_rviz_plugin::TrackDisplay::incomingTrack | ( | const articulation_msgs::TrackMsg::ConstPtr & | msg | ) | [protected] |
Definition at line 89 of file articulation_display.cpp.
btVector3 articulation_rviz_plugin::TrackDisplay::modifyColor | ( | btVector3 | color, | |
int | colorStyle, | |||
float | f | |||
) | [protected] |
Definition at line 453 of file articulation_display.cpp.
ogre_tools::BillboardLine * articulation_rviz_plugin::TrackDisplay::newBillboardLine | ( | ) | [protected] |
Definition at line 293 of file articulation_display.cpp.
virtual void articulation_rviz_plugin::TrackDisplay::onDisable | ( | ) | [protected, virtual] |
void articulation_rviz_plugin::TrackDisplay::onDisable | ( | ) | [virtual] |
Definition at line 64 of file articulation_display.cpp.
virtual void articulation_rviz_plugin::TrackDisplay::onEnable | ( | ) | [protected, virtual] |
void articulation_rviz_plugin::TrackDisplay::onEnable | ( | ) | [virtual] |
Definition at line 58 of file articulation_display.cpp.
void articulation_rviz_plugin::TrackDisplay::reset | ( | ) | [virtual] |
Definition at line 70 of file articulation_display.cpp.
void articulation_rviz_plugin::TrackDisplay::setAlpha | ( | float | a | ) |
Definition at line 429 of file articulation_display.cpp.
void articulation_rviz_plugin::TrackDisplay::setColor | ( | const rviz::Color & | color | ) |
Definition at line 423 of file articulation_display.cpp.
void articulation_rviz_plugin::TrackDisplay::setDisplayStyle | ( | int | ds | ) |
Definition at line 475 of file articulation_display.cpp.
void articulation_rviz_plugin::TrackDisplay::setLineWidth | ( | float | a | ) |
Definition at line 435 of file articulation_display.cpp.
void articulation_rviz_plugin::TrackDisplay::setPoseColor | ( | int | cs | ) |
Definition at line 447 of file articulation_display.cpp.
void articulation_rviz_plugin::TrackDisplay::setTopic | ( | const std::string & | topic | ) |
void articulation_rviz_plugin::TrackDisplay::setTopic | ( | const std::string & | topic | ) |
Definition at line 50 of file articulation_display.cpp.
void articulation_rviz_plugin::TrackDisplay::setTrackColor | ( | int | cs | ) |
Definition at line 441 of file articulation_display.cpp.
void articulation_rviz_plugin::TrackDisplay::subscribe | ( | ) | [protected] |
void articulation_rviz_plugin::TrackDisplay::subscribe | ( | ) | [protected] |
Definition at line 74 of file articulation_display.cpp.
virtual void articulation_rviz_plugin::TrackDisplay::targetFrameChanged | ( | ) | [virtual] |
void articulation_rviz_plugin::TrackDisplay::targetFrameChanged | ( | ) | [virtual] |
Definition at line 185 of file articulation_display.cpp.
bool articulation_rviz_plugin::TrackDisplay::transform | ( | const btTransform & | pose, | |
const btVector3 & | scaleIn, | |||
Ogre::Vector3 & | pos, | |||
Ogre::Quaternion & | orient, | |||
Ogre::Vector3 & | scaleOut | |||
) | [protected] |
Definition at line 273 of file articulation_display.cpp.
bool articulation_rviz_plugin::TrackDisplay::transform | ( | const articulation_msgs::TrackMsg::ConstPtr & | message, | |
btTransform & | transform | |||
) | [protected] |
Definition at line 249 of file articulation_display.cpp.
void articulation_rviz_plugin::TrackDisplay::unsubscribe | ( | ) | [protected] |
void articulation_rviz_plugin::TrackDisplay::unsubscribe | ( | ) | [protected] |
Definition at line 85 of file articulation_display.cpp.
virtual void articulation_rviz_plugin::TrackDisplay::update | ( | float | wall_dt, | |
float | ros_dt | |||
) | [virtual] |
void articulation_rviz_plugin::TrackDisplay::update | ( | float | wall_dt, | |
float | ros_dt | |||
) | [virtual] |
Definition at line 97 of file articulation_display.cpp.
Definition at line 51 of file articulation_display.h.
rviz::FloatPropertyWPtr articulation_rviz_plugin::TrackDisplay::alpha_property_ |
Definition at line 54 of file articulation_display.h.
rviz::Color articulation_rviz_plugin::TrackDisplay::color_ |
Definition at line 46 of file articulation_display.h.
rviz::ColorPropertyWPtr articulation_rviz_plugin::TrackDisplay::color_property_ |
Definition at line 49 of file articulation_display.h.
articulation_models::TrackMsg::ConstPtr articulation_rviz_plugin::TrackDisplay::displaying_track_message_ [protected] |
Definition at line 56 of file minimal_display.h.
Definition at line 89 of file articulation_display.h.
rviz::EnumPropertyWPtr articulation_rviz_plugin::TrackDisplay::displayStyle_property_ |
Definition at line 92 of file articulation_display.h.
articulation_models::TrackMsg::ConstPtr articulation_rviz_plugin::TrackDisplay::incoming_track_message_ [protected] |
Definition at line 55 of file minimal_display.h.
articulation_msgs::TrackMsg::ConstPtr articulation_rviz_plugin::TrackDisplay::incoming_track_message_ [protected] |
Definition at line 116 of file articulation_display.h.
std::map<int, std::vector<ogre_tools::BillboardLine*> > articulation_rviz_plugin::TrackDisplay::lines [protected] |
Definition at line 100 of file articulation_display.h.
Definition at line 56 of file articulation_display.h.
rviz::FloatPropertyWPtr articulation_rviz_plugin::TrackDisplay::lineWidth_property_ |
Definition at line 59 of file articulation_display.h.
Definition at line 119 of file articulation_display.h.
Definition at line 75 of file articulation_display.h.
rviz::EnumPropertyWPtr articulation_rviz_plugin::TrackDisplay::poseColor_property_ |
Definition at line 78 of file articulation_display.h.
boost::mutex articulation_rviz_plugin::TrackDisplay::queue_mutex_ [protected] |
Definition at line 120 of file articulation_display.h.
std::vector<ogre_tools::BillboardLine*> articulation_rviz_plugin::TrackDisplay::recycleLines [protected] |
Definition at line 101 of file articulation_display.h.
Ogre::SceneNode* articulation_rviz_plugin::TrackDisplay::scene_node_ [protected] |
Scene node all the marker objects are parented to.
Definition at line 122 of file articulation_display.h.
ros::Subscriber articulation_rviz_plugin::TrackDisplay::sub_ [protected] |
Definition at line 53 of file minimal_display.h.
message_filters::Subscriber<articulation_msgs::TrackMsg> articulation_rviz_plugin::TrackDisplay::sub_ [protected] |
Definition at line 113 of file articulation_display.h.
tf::MessageFilter<articulation_msgs::TrackMsg> articulation_rviz_plugin::TrackDisplay::tf_filter_ [protected] |
Definition at line 114 of file articulation_display.h.
rviz::ROSTopicStringPropertyWPtr articulation_rviz_plugin::TrackDisplay::topic_property_ |
Definition at line 44 of file articulation_display.h.
Definition at line 41 of file articulation_display.h.
Definition at line 70 of file articulation_display.h.
rviz::EnumPropertyWPtr articulation_rviz_plugin::TrackDisplay::trackColor_property_ |
Definition at line 73 of file articulation_display.h.