/home/laradmin/lar/sensors/fusion/laser3D_pointcloud/src/main.cpp File Reference

Nodelet that uses las3D_PointCloud class to generate PointCloud from 2D scan data and external shaft position. This nodelet subscribes sensor_msgs::LaserScan, sensor_msgs::JointState, and projects the scan in to pointcloud, using the transform published by the pkg laser_rotate3D. The PointCloud is accumulated on the desired /ac_frame (see laser3D_pointcloud.lauch). More...

#include <laser3D_pointcloud/laser3D_pointcloud.h>
Include dependency graph for main.cpp:

Go to the source code of this file.

Functions

sensor_msgs::JointStatePtr first_state1 (new sensor_msgs::JointState)
sensor_msgs::JointStatePtr first_state2 (new sensor_msgs::JointState)
int main (int argc, char **argv)
void scan_cb (const sensor_msgs::LaserScan::ConstPtr &scan_in)
 Callback from the LaserScan subscribed topic.
void state_cb (const sensor_msgs::JointState::ConstPtr &state_in)
 Callback from the JointState subscribed topic.

Variables

int firstscan = 1
ros::Time firstscan_stamp
las3D_PointCloudg_las3D
ros::Time phi1_stamp
ros::Time phi2_stamp
int phis_count = 0

Detailed Description

Nodelet that uses las3D_PointCloud class to generate PointCloud from 2D scan data and external shaft position. This nodelet subscribes sensor_msgs::LaserScan, sensor_msgs::JointState, and projects the scan in to pointcloud, using the transform published by the pkg laser_rotate3D. The PointCloud is accumulated on the desired /ac_frame (see laser3D_pointcloud.lauch).

Author:
Diogo Matos
Date:
June 2013

Definition in file main.cpp.


Function Documentation

sensor_msgs::JointStatePtr first_state1 ( new sensor_msgs::JointState   ) 
sensor_msgs::JointStatePtr first_state2 ( new sensor_msgs::JointState   ) 
int main ( int  argc,
char **  argv 
)

Definition at line 215 of file main.cpp.

void scan_cb ( const sensor_msgs::LaserScan::ConstPtr &  scan_in  ) 

Callback from the LaserScan subscribed topic.

Parameters:
[in] const sensor_msgs::LaserScan::ConstPtr&

Definition at line 86 of file main.cpp.

void state_cb ( const sensor_msgs::JointState::ConstPtr &  state_in  ) 

Callback from the JointState subscribed topic.

Parameters:
[in] const sensor_msgs::JointState::ConstPtr&

Definition at line 55 of file main.cpp.


Variable Documentation

int firstscan = 1

Definition at line 43 of file main.cpp.

ros::Time firstscan_stamp

Definition at line 44 of file main.cpp.

Definition at line 41 of file main.cpp.

ros::Time phi1_stamp

Definition at line 45 of file main.cpp.

ros::Time phi2_stamp

Definition at line 46 of file main.cpp.

int phis_count = 0

Definition at line 42 of file main.cpp.

 All Classes Namespaces Files Functions Variables Enumerations Enumerator


laser3D_pointcloud
Author(s): Matos
autogenerated on Wed Jul 23 04:33:25 2014