empty data using moving_least_square of pcl_ros

asked 2023-05-08 07:00:29 -0500

mishtimix gravatar image

I am new to Ros and I did not know where to ask for my problem so I am mentioning it here : from the pcl_ros page, I found simple tutorials http://wiki.ros.org/pcl_ros/Tutorials on how to use nodelets and get filtered point cloud data, which I am visualizing in Rviz.Now when i am using the voxel_grid example,everything is working well as mentioned in the tutorial page http://wiki.ros.org/pcl_ros/Tutorials... .I am also able to change it to normal_estimation which is also working perfectly fine but as soon as i change the nodelet name to moving_least_square and add necessary parameters,the code runs successfully without any output data : launch file is the same file of voxel_grid " nodelet name changed to "moving_least_squares" and rosparam changed to " use_polynomial_fit: True polynomial_order: 2 search_radius: 0.01 spatial_locator: 1" The node is launching successfully with following ros message :

SUMMARY

PARAMETERS * /moving_least_squares/polynomial_order: 2 * /moving_least_squares/search_radius: 0.01 * /moving_least_squares/spatial_locator: 1 * /moving_least_squares/use_polynomial_fit: True * /rosdistro: noetic * /rosversion: 1.16.0

NODES / moving_least_squares (nodelet/nodelet) pcl_manager (nodelet/nodelet)

ROS_MASTER_URI=http://localhost:11311

process[pcl_manager-1]: started with pid [506159] process[moving_least_squares-2]: started with pid [506160] But when i echo using:"rostopic echo /moving_least_squares/output" then i get this :

is_dense: True

header: seq: 113457 stamp: secs: 1683546941 nsecs: 629104000 frame_id: "world" height: 1 width: 0 fields: - name: "x" offset: 0 datatype: 7 count: 1 - name: "y" offset: 4 datatype: 7 count: 1 - name: "z" offset: 8 datatype: 7 count: 1 is_bigendian: False point_step: 16 row_step: 0 data: []

is_dense: True

header: seq: 113458 stamp: secs: 1683546941 nsecs: 729128000 frame_id: "world" height: 1 width: 0 fields: - name: "x" offset: 0 datatype: 7 count: 1 - name: "y" offset: 4 datatype: 7 count: 1 - name: "z" offset: 8 datatype: 7 count: 1 is_bigendian: False point_step: 16 row_step: 0 data: []

is_dense: True

header: seq: 113459 stamp: secs: 1683546941 nsecs: 829121000 frame_id: "world" height: 1 width: 0 fields: - name: "x" offset: 0 datatype: 7 count: 1 - name: "y" offset: 4 datatype: 7 count: 1 - name: "z" offset: 8 datatype: 7 count: 1 is_bigendian: False point_step: 16 row_step: 0 data: []

is_dense: True

edit retag flag offensive close merge delete