Conversation
|
Yep, that's cleaner! Thanks for taking the time to look into this. If we now wanted to publish this on a rostopic, I guess we could return a std::optional<size_t> from the lidar_packet_handler? Since A Is this something you would be interested in having upstream? Another options is of course to have the publisher directly in the LidarPacketHandler, but that might differ a bit from how the rest of ros pubs/subs are done? |
I assume you are talking about publishing
If we are moving in this direction, I would say probably
yeah, I think it makes sense to me to add the param to filter LidarScan based on this PR, I am not sure yet about adding a scan stats or statistics topic yet. An alternative approach would be to publish the LidarScan to a topic as is, and the let subscribed nodes do the PointCloud2 scan decoding on their own, this would be a major work that I can not take on in the near term. |
matthew-lidar
left a comment
There was a problem hiding this comment.
One small thing about the warning print, otherwise looks good!
Related Issues & PRs
Summary of Changes
Validation
min_scan_valid_columns_ratioparameter (set a high value)