Closed Constellation6 closed 2 years ago
Any progress on this? If so, can you please share the solution?
filtered_cloud is the topic that this package subscribes to, it does not create it (I don't think).
Please either publish your cloud data on that topic (if you can) or change the topic that this package subscribes to for the filtered_cloud. This is located in main.cpp, line 687 (as of commit a9aa364 on Aug 29, 2021. The below line, change "filtered_cloud" to a topic of your choice and recompile.
// Create a ROS subscriber for the input point cloud
ros::Subscriber sub = nh.subscribe("filtered_cloud", 1, cloud_cb);
Hi @Constellation6 , @tilexiadam , @aldras : Sorry for the delay. I hope you have already resolved the issue on your end if not, please see this wiki page for example on how to publish to /filtered_cloud
ROS topic: Sensor setup and publishing to fileted_cloud.
Specifically, for your setup, you can remap the topics so that the data gets published on to the /filtered_cloud
topic by using this line in your roslaunch
file:
<remap from="scan_2D" to="filtered_cloud"/>
Visit this page for information on the remap tag. You can also use the command-line topic mapping like this:
rosrun sensor_pkg_name sensor_node_name scan_2D:=filtered_cloud
Hope that helps.
Closing this since the question has been answered. Feel free to post if you still need help.
Thanks for sharing the source. I want to use /filtered_cloud but i can't see /filtered_cloud on RVIZ and I don't know how publish topic. Please give me a solution .