我在这里使用的代码有sensor_msgs::pointcloud.有人能帮我把它转换成sensor_msgs::pointcloud2 1:transform.cpp吗?
发布于 2022-04-09 15:12:28
这段代码非常古老,您现在不应该真正使用PointCloud消息。尽管如此,您可以运行转换器节点将消息作为PointCloud2输出。以这个启动文件为例:
<launch>
</node name="pointcloud_converter" type="point_cloud_converter" pkg="point_cloud_converter">
<remap from="points_in" to="/your_topic" />
<remap from="points_out" to="/your_output_topic" />
</node>
</launch>https://stackoverflow.com/questions/71807952
复制相似问题