Fill NA values in a pointcloud topic

asked 2020-03-03 17:09:13 -0600

help_me gravatar image

updated 2020-03-04 02:31:40 -0600

gvdhoorn gravatar image

Right now, I have a topic (lets call it /spam) that has some nan or inf values in it's point clouds. I'm trying to fix that.

I tried using the following command:

rosrun topic_tools transform /spam /spam_but_not_NA sensor_msgs/PointCloud2 'numpy.nan_to_num(m)' --import sensor_msgs numpy

Unfortunately, the error message seems to contain the entire point cloud, which quickly maxes out what my terminal is able to show, so I don't know what the problem is.

The output topic exists, but is not publishing anything

edit retag flag offensive close merge delete


Unfortunately, the error message

which error message?

gvdhoorn gravatar image gvdhoorn  ( 2020-03-04 02:31:47 -0600 )edit

The one that prints in terminal after running that command

help_me gravatar image help_me  ( 2020-03-06 09:55:00 -0600 )edit