Skip to content
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

Disable or throttle warnings update pose #5

Open
knmcguire opened this issue Apr 14, 2023 · 1 comment
Open

Disable or throttle warnings update pose #5

knmcguire opened this issue Apr 14, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@knmcguire
Copy link

The packages gives a lot of warnings about poses not being updated,does that mean that the stream is coming in too slow per rigid body? The crazyflies do fly normally

Anyway, I'm getting so many warnings that I can not read the crazyswarm server output normally either...

perhaps we can add a parameter that disables this warnings or throttles it somehow?

RCLCPP_WARN(node->get_logger(), "No updated pose for %s for %f s.", rigidBody.name().c_str(), elapsedSeconds.count());

@whoenig whoenig added the enhancement New feature or request label Apr 15, 2023
@whoenig
Copy link
Collaborator

whoenig commented Apr 15, 2023

This warning usually means that there is a serious problem and it shouldn't be ignored.

Nevertheless, I agree that we need such an option. I have the same use-case for "debugging" after a crash: since after a crash the motion capture package "spams" the console, it is hard to tell what happened otherwise in the system.

Technically, it is not trivial to throttle: We would need to add threading to the node. Moreover, some messages come from submodules (libmotioncapture, librigidbodytracker). We would need to "cache" those messages, or change the submodules to output some sort of error codes rather than string messages, so that we can automatically condense/throttle without losing important information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants