Closed Maxcode19 closed 4 years ago
Hi @Maxcode19 , Nice to hear about your work on porting this ROS node to ROS2.
The likely reasons for why the ec.extract(...)
call isn't returning causing a non responsive process is either because there are a huge number of points in the point cloud or the EuclideanClusterExtraction
is indeed having a hard time extracting clusters in the input point cloud with the given parameters. This can be due to a bug in the PCL lib. Listed below are some things that you can try to avoid this situation:
ec.setClusterTolerance (0.08);
ec.setMinClusterSize (10);
ec.setMaxClusterSize (600);
Hope you have the info you need to get past this hurdle. Once you get your ROS2 porting, it will be great if you can send a Pull Request.
Hi @praveen-palanisamy . Thank you very much for your response. You are completely right, the problem is the number of points in input that makes extremely long the computation (the critical point was in file pcl/segmentation/impl/extract_clusters.hpp). For what regards the pull request, I will do it for sure if I succeed in making things work. For now I see in Rviz the cubes but they are not right yet. I think that I have at least 2 issues which depend on my system setup (one is the number of cubes I see, so I will try to tune the parameters you suggested me, the other is the position they are represented on the map so I will modify frame and coordinates). If you just need need your code adapted to ROS 2, I could send a pull request in the next days. In this case, however, I can't guarantee you that everything works correctly (probably with your setup and your adjustments it will). Let me know which one you are interested in. I think I can close this issue. Thank you very much again
I would also be interested in have it running in ROS2 but I don't see any PR or fork. Did you manage to port it? Thanks!
I have ported this to ROS 2 Foxy Fitzroy, but do note some of the issues that still need to be resolved. Please see https://github.com/praveen-palanisamy/multiple-object-tracking-lidar/issues/52 https://github.com/aldras/multiple_object_tracking_lidar_ros2.git
Hi, thanks for sharing your code. I am working with ROS2 eloquent and I need a tracker to essentially track pedestrians. Your project looked suitable to my purpose and so I decided to adapt your code to ROS2. At the moment I have succeeded in building the new code but I have bumped into this issue:
I am wondering if you have experienced something similar during the development of your code. I am pretty sure that the problem is in the function extract() (so in PCL 1.8.0) but I don't know how to deal with it since no error or message is displayed.
Here is the part of code it executes:
The main differences with respect to your code are:
The terminal shows the following:
As you can see, it never exits from extract(). Just for completeness, the PointCloud2 comes from a simulated camera in Gazebo 9, but I hope it does not affect the final result.
Thank you in advance for any feedback you will give me