Classes | |
struct | Config |
configuration parameters More... | |
Public Member Functions | |
TransformNodelet () | |
~TransformNodelet () | |
Private Member Functions | |
void | allocPacketMsg (sensor_msgs::PointCloud &msg) |
allocate space in a single packet PointCloud message | |
void | allocSharedMsg () |
allocate space for shared PointCloud message | |
virtual void | onInit () |
bool | pointInRange (geometry_msgs::Point32 &point) |
void | processXYZ (const std::vector< laserscan_xyz_t > &scan, ros::Time stamp, const std::string &frame_id) |
callback for packets in XYZ format | |
Private Attributes | |
Config | config_ |
DataXYZ * | data_ |
sensor_msgs::PointCloud | inMsg_ |
input packet message | |
tf::TransformListener | listener_ |
float | max_range2_ |
float | min_range2_ |
sensor_msgs::PointCloudPtr | outPtr_ |
output message shared pointer | |
ros::Publisher | output_ |
int | packetCount_ |
count of output packets collected | |
sensor_msgs::PointCloud | tfMsg_ |
transformed packet message | |
ros::Subscriber | velodyne_scan_ |
Definition at line 37 of file transform_nodelet.cc.
TransformNodelet::TransformNodelet | ( | ) | [inline] |
Definition at line 40 of file transform_nodelet.cc.
TransformNodelet::~TransformNodelet | ( | ) | [inline] |
Definition at line 44 of file transform_nodelet.cc.
void TransformNodelet::allocPacketMsg | ( | sensor_msgs::PointCloud & | msg | ) | [private] |
allocate space in a single packet PointCloud message
msg | message with enough space for one packet |
Definition at line 143 of file transform_nodelet.cc.
void TransformNodelet::allocSharedMsg | ( | ) | [private] |
allocate space for shared PointCloud message
Definition at line 159 of file transform_nodelet.cc.
void TransformNodelet::onInit | ( | ) | [private, virtual] |
nodelet initialization
Definition at line 93 of file transform_nodelet.cc.
bool TransformNodelet::pointInRange | ( | geometry_msgs::Point32 & | point | ) | [inline, private] |
in-line test whether a point is in range
Definition at line 58 of file transform_nodelet.cc.
void TransformNodelet::processXYZ | ( | const std::vector< laserscan_xyz_t > & | scan, | |
ros::Time | stamp, | |||
const std::string & | frame_id | |||
) | [private] |
callback for packets in XYZ format
converts Velodyne data for a single packet into a point cloud transforms the packet point cloud into the target frame collects transformed packets into a larger message (generally a full revolution) periodically publishes those collected transformed data as a point cloud
Definition at line 181 of file transform_nodelet.cc.
Config TransformNodelet::config_ [private] |
Definition at line 82 of file transform_nodelet.cc.
DataXYZ* TransformNodelet::data_ [private] |
Definition at line 70 of file transform_nodelet.cc.
sensor_msgs::PointCloud TransformNodelet::inMsg_ [private] |
input packet message
Definition at line 86 of file transform_nodelet.cc.
tf::TransformListener TransformNodelet::listener_ [private] |
Definition at line 73 of file transform_nodelet.cc.
float TransformNodelet::max_range2_ [private] |
Definition at line 67 of file transform_nodelet.cc.
float TransformNodelet::min_range2_ [private] |
Definition at line 68 of file transform_nodelet.cc.
sensor_msgs::PointCloudPtr TransformNodelet::outPtr_ [private] |
output message shared pointer
Definition at line 88 of file transform_nodelet.cc.
ros::Publisher TransformNodelet::output_ [private] |
Definition at line 72 of file transform_nodelet.cc.
int TransformNodelet::packetCount_ [private] |
count of output packets collected
Definition at line 89 of file transform_nodelet.cc.
sensor_msgs::PointCloud TransformNodelet::tfMsg_ [private] |
transformed packet message
Definition at line 87 of file transform_nodelet.cc.
ros::Subscriber TransformNodelet::velodyne_scan_ [private] |
Definition at line 71 of file transform_nodelet.cc.