-
Notifications
You must be signed in to change notification settings - Fork 207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
footprint_filter: print less tf warnings #13
Conversation
In my opinion, the proper way to fix this is to wait for the requested transformation before update is called for the first time. |
hi, thx for trying to fix that inconvenience. I think it is dangerous to do it the way you did: what if the tf is lost later but for different reasons ? You then do not get any information. How about the simpler: ROS_ERROR_THROTTLE(1, "Transform unavailable %s", ex.what()); |
Hey Vincent, my pull-request works in the situation you describe. I didn't know about *_THROTTLE. I still believe it's enough to print More importantly though, I do not consider missing tfs an error. Even one error on startup is too much in my opinion. It takes much more time Thanks for your time! |
right, your fix works sorry. Now, there are two ways to behave I believe:
I believe 2 is usually what's done: you get a warning whenever there's a problem and nothing otherwise (it's weird to get a warning when things are back to normal). So please either add something in the log to say you are back to normal, or go with a throttle (if you go with it, a frequency of 1Hz does not seem crazy: you will end up have less than 10 warnings overall right ? if you get a real problem, it seems to me that 0.2 would make you notice it too late or it would get lost in the logs). Opinions ? Thx ! I'm learning things :) |
On startup this filter produces about two pages of console output (ROS_ERRORs) on ExtrapolationExceptions because the listener is not setup yet. This commit reduces this to throttled info messages until the transform works for the first time.
I don't see why you would need a warning when things work (again), Concerning the "few" warnings on startup: I aim at a clean startup I completely reworked the pull-request, please comment. |
ok, I think your PR works as it is, thx for ironing out those details ! |
footprint_filter: print less tf warnings
On startup this filter produces about two pages of console output
(ROS_ERRORs) on ExtrapolationExceptions because the listener is not yet setup.
This commit reduces this to one warning.