ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You can use openni_launch package for obtaining the kinect pointcloud. Then write a node that subscribes to the topic with a callback pcl::PointCloud<pcl::pointxyz>. ROS will do the conversion for you. Then just access the Z values to get your minimal distance. One of the ways to implement this is shown here http://wiki.ros.org/pcl_ros

You can use openni_launch package for obtaining the kinect pointcloud. Then write a node that subscribes to the topic with a callback pcl::PointCloud<pcl::pointxyz>. pcl::PointCloud < pcl::PointXYZ>. ROS will do the conversion for you. Then just access the Z values to get your minimal distance. One of the ways to implement this is shown here http://wiki.ros.org/pcl_ros