how to pass pointcloud from the callback function in subscriber
Aim-Subscribe to pointcloud from kinect and access it from main() function
I created a class and callback function as its member function.
I am able to subscribe to the pointcloud data from kinect using
ros::Subscriber sub = nh.subscribe ("/camera/depth_registered/points", 3,&pass_cloud::callback,&cloud1);
I am the changing the member value by the callback but i am not able to see it working.
You can find my code here..Please let me know what changes can be done https://dl.dropbox.com/u/95042389/sampl.cpp