pcl sample program on ROS(Robot Operating System)
Please prepare rgbd sensor(ex:Kinect, Realsense) and build this package
Execute following command:
$ rosrun pcl_ros_processing downsampling input:=/camera/depth_registered/points
Execute following command for changing downsampling rate:
$ rosparam set down_rate 0.01
down_rate
means voxel size
Execute following command:
$ rosrun pcl_ros_processing planar_segmentation input:=/camera/depth_registered/points
for rviz visualization
$ rosrun rviz rviz
for pcl viewer visualization
$ pcl_viewer save.pcd
press 5
for color visualization
for rgb
$ rosrun pcl_ros_processing color_filter_rgb input:=/camera/depth_registered/points
for hsv
$ rosrun pcl_ros_processing color_filter_hsv input:=/camera/depth_registered/points
for rviz visualization
$ rosrun rviz rviz
for pcl viewer visualization
$ pcl_viewer save.pcd
press 5
for color visualization