praveen-palanisamy / multiple-object-tracking-lidar

C++ implementation to Detect, track and classify multiple objects using LIDAR scans or point cloud
MIT License
799 stars 229 forks source link

I can't see /filtered_cloud on RVIZ #48

Closed Constellation6 closed 2 years ago

Constellation6 commented 3 years ago

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 20211129_183428 .

tilexiadam commented 2 years ago

Any progress on this? If so, can you please share the solution?

aldras commented 2 years ago

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);

praveen-palanisamy commented 2 years ago

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.

praveen-palanisamy commented 2 years ago

Closing this since the question has been answered. Feel free to post if you still need help.