Closed AndreasAZiegler closed 3 months ago
Hi Andreas, Thanks for the PR! First let me apologize for leaving an earlier PR sitting that I just merged. I had simply forgotten to merge it in, it was ready to go. Apparently it had some conflicts, but it should be easy to resolve. Second, I have some stylistic changes that I'd like to see before we merge this. Sorry for being peculiar, but I think the code can be written shorter with minimum performance penalty. A smaller code base is easier to maintain, and has less potential for bugs. Please see feedback in the comments. Just to clarify: this is a valid and good PR, and I want it going into the driver, it just needs some polishing.
Oh, and you wrote you only did ROS1, but the PR has only ROS2. That is fine. ROS1 is basically end-of-life.
@berndpfrommer Thanks a lot for the valuable feedback, I'm always happy to learn and improve. It has been a while for me since the last PR with a "senior" developer as reviewer. I believe I addressed all of your comments. Please let me know if I missed some. I hope the test pass as well.
Tests fail due to formatting errors. You can check in your workspace before committing by:
colcon test --packages-select metavision_driver
colcon test-result --verbose
Also please see additional comments: bomb out if invalid filter type is specified. You want to get the user's attention when they are feeding in nonsense parameters. Another few nitpicks as well, see new comments.
Is there something I can help to get the test passing? Looks like there some issues in logging.h
?
This PR adds support for the trail filters described here. Successfully tested on an EVKv4 from Prophesse.
Note: So far I only implemented it for ROS1.