#include <marker_array_plugin.h>
Public Member Functions | |
CMarkerArrayPlugin (const std::string &name) | |
Constructor. | |
void | enable (bool enabled) |
Enable or disable publishing. | |
virtual void | init (ros::NodeHandle &node_handle) |
Initialize plugin - called in server constructor. | |
virtual void | pause (bool bPause, ros::NodeHandle &node_handle) |
Pause/resume plugin. All publishers and subscribers are disconnected on pause. | |
virtual | ~CMarkerArrayPlugin () |
Destructor. | |
Protected Member Functions | |
virtual void | handleNode (const tButServerOcTree::iterator &it, const SMapWithParameters &mp) |
hook that is called when traversing occupied nodes of the updated Octree (does nothing here) | |
virtual void | handlePostNodeTraversal (const SMapWithParameters &mp) |
Called when all nodes was visited. | |
std_msgs::ColorRGBA | heightMapColor (double h) const |
Compute color from the height. | |
virtual void | newMapDataCB (SMapWithParameters &par) |
Set used octo map frame id and time stamp. | |
virtual void | publishInternal (const ros::Time ×tamp) |
Called when new scan was inserted and now all can be published. | |
virtual bool | shouldPublish () |
Should plugin publish data? | |
Protected Attributes | |
bool | m_bHeightMap |
Create marker array as a height map. | |
bool | m_bTransform |
Should input data be transformed? (are they in different frames?) | |
std_msgs::ColorRGBA | m_color |
Markers color. | |
float | m_colorFactor |
Coloring factor. | |
bool | m_latchedTopics |
std::string | m_markerArrayFrameId |
Used frame id (input data will be transformed to it) | |
ros::Publisher | m_markerArrayPublisher |
Collision object publisher. | |
std::string | m_markerArrayPublisherName |
Collision object publisher name. | |
double | m_maxX |
double | m_maxY |
double | m_maxZ |
double | m_minX |
Octomap metrics parameters. | |
double | m_minY |
double | m_minZ |
std::string | m_ocFrameId |
Crawled octomap frame id. | |
Eigen::Matrix3f | m_ocToMarkerArrayRot |
Transformation from octomap to the collision object frame id - rotation. | |
Eigen::Vector3f | m_ocToMarkerArrayTrans |
Transformation from octomap to the collision object frame id - translation. | |
bool | m_publishMarkerArray |
Is publishing enabled? | |
tf::TransformListener | m_tfListener |
Transform listener. |
Definition at line 40 of file marker_array_plugin.h.
srs_env_model::CMarkerArrayPlugin::CMarkerArrayPlugin | ( | const std::string & | name | ) |
Constructor.
Definition at line 34 of file marker_array_plugin.cpp.
srs_env_model::CMarkerArrayPlugin::~CMarkerArrayPlugin | ( | ) | [virtual] |
Destructor.
Definition at line 49 of file marker_array_plugin.cpp.
void srs_env_model::CMarkerArrayPlugin::enable | ( | bool | enabled | ) | [inline] |
Enable or disable publishing.
Definition at line 50 of file marker_array_plugin.h.
void srs_env_model::CMarkerArrayPlugin::handleNode | ( | const tButServerOcTree::iterator & | it, |
const SMapWithParameters & | mp | ||
) | [protected, virtual] |
hook that is called when traversing occupied nodes of the updated Octree (does nothing here)
Definition at line 154 of file marker_array_plugin.cpp.
void srs_env_model::CMarkerArrayPlugin::handlePostNodeTraversal | ( | const SMapWithParameters & | mp | ) | [protected, virtual] |
Called when all nodes was visited.
Definition at line 188 of file marker_array_plugin.cpp.
std_msgs::ColorRGBA srs_env_model::CMarkerArrayPlugin::heightMapColor | ( | double | h | ) | const [protected] |
Compute color from the height.
Definition at line 213 of file marker_array_plugin.cpp.
void srs_env_model::CMarkerArrayPlugin::init | ( | ros::NodeHandle & | node_handle | ) | [virtual] |
Initialize plugin - called in server constructor.
Reimplemented from srs_env_model::CServerPluginBase.
Definition at line 62 of file marker_array_plugin.cpp.
void srs_env_model::CMarkerArrayPlugin::newMapDataCB | ( | SMapWithParameters & | par | ) | [protected, virtual] |
Set used octo map frame id and time stamp.
Implements srs_env_model::COctomapCrawlerBase< tButServerOcTree::NodeType >.
Definition at line 92 of file marker_array_plugin.cpp.
void srs_env_model::CMarkerArrayPlugin::pause | ( | bool | bPause, |
ros::NodeHandle & | node_handle | ||
) | [virtual] |
Pause/resume plugin. All publishers and subscribers are disconnected on pause.
Pause/resume plugin. All publishers and subscribers are disconnected on pause
Reimplemented from srs_env_model::CServerPluginBase.
Definition at line 265 of file marker_array_plugin.cpp.
void srs_env_model::CMarkerArrayPlugin::publishInternal | ( | const ros::Time & | timestamp | ) | [protected, virtual] |
Called when new scan was inserted and now all can be published.
Implements srs_env_model::CServerPluginBase.
Definition at line 84 of file marker_array_plugin.cpp.
bool srs_env_model::CMarkerArrayPlugin::shouldPublish | ( | ) | [protected, virtual] |
Should plugin publish data?
Implements srs_env_model::CServerPluginBase.
Definition at line 55 of file marker_array_plugin.cpp.
bool srs_env_model::CMarkerArrayPlugin::m_bHeightMap [protected] |
Create marker array as a height map.
Definition at line 113 of file marker_array_plugin.h.
bool srs_env_model::CMarkerArrayPlugin::m_bTransform [protected] |
Should input data be transformed? (are they in different frames?)
Definition at line 116 of file marker_array_plugin.h.
std_msgs::ColorRGBA srs_env_model::CMarkerArrayPlugin::m_color [protected] |
Markers color.
Definition at line 122 of file marker_array_plugin.h.
float srs_env_model::CMarkerArrayPlugin::m_colorFactor [protected] |
Coloring factor.
Definition at line 119 of file marker_array_plugin.h.
Definition at line 95 of file marker_array_plugin.h.
std::string srs_env_model::CMarkerArrayPlugin::m_markerArrayFrameId [protected] |
Used frame id (input data will be transformed to it)
Definition at line 98 of file marker_array_plugin.h.
Collision object publisher.
Definition at line 89 of file marker_array_plugin.h.
std::string srs_env_model::CMarkerArrayPlugin::m_markerArrayPublisherName [protected] |
Collision object publisher name.
Definition at line 86 of file marker_array_plugin.h.
double srs_env_model::CMarkerArrayPlugin::m_maxX [protected] |
Definition at line 110 of file marker_array_plugin.h.
double srs_env_model::CMarkerArrayPlugin::m_maxY [protected] |
Definition at line 110 of file marker_array_plugin.h.
double srs_env_model::CMarkerArrayPlugin::m_maxZ [protected] |
Definition at line 110 of file marker_array_plugin.h.
double srs_env_model::CMarkerArrayPlugin::m_minX [protected] |
Octomap metrics parameters.
Definition at line 110 of file marker_array_plugin.h.
double srs_env_model::CMarkerArrayPlugin::m_minY [protected] |
Definition at line 110 of file marker_array_plugin.h.
double srs_env_model::CMarkerArrayPlugin::m_minZ [protected] |
Definition at line 110 of file marker_array_plugin.h.
std::string srs_env_model::CMarkerArrayPlugin::m_ocFrameId [protected] |
Crawled octomap frame id.
Definition at line 101 of file marker_array_plugin.h.
Eigen::Matrix3f srs_env_model::CMarkerArrayPlugin::m_ocToMarkerArrayRot [protected] |
Transformation from octomap to the collision object frame id - rotation.
Definition at line 104 of file marker_array_plugin.h.
Eigen::Vector3f srs_env_model::CMarkerArrayPlugin::m_ocToMarkerArrayTrans [protected] |
Transformation from octomap to the collision object frame id - translation.
Definition at line 107 of file marker_array_plugin.h.
Is publishing enabled?
Definition at line 83 of file marker_array_plugin.h.
Transform listener.
Definition at line 92 of file marker_array_plugin.h.