-
Notifications
You must be signed in to change notification settings - Fork 203
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
threading error spews a non-stop stream of messages via printf #92
Comments
Adding @crdelsey to add any additional info. |
This is related to #89 that we don't have the ability to have custom callback queues. So the listener is starting it's own node to make sure that things are going to come in while it's blocking the callback thread. You can use the false constructor argument as long as you make sure that there's another executor with a thread that will be servicing incoming tf messages. And in that case you should tell the Buffer that you have another thread available using the |
@mkhansen-intel, were you able to work around the errors using @tfoote's suggestions? |
@cottsay - we were able to work around this in our stack, I'm no longer seeing this error. However, it seems like an issue is still needed to fix the fact that printf is being used instead of the RCLCPP_ERROR logging function. |
Thanks @mkhansen-intel, I captured the |
Bug report
Required Info:
Ubuntu 18.04
Source
ros2 branch, 0.10.1 tag
Fast RTPS
rclcpp
Steps to reproduce issue
Not sure how exactly to reproduce as I don't fully understand yet.
Expected behavior
Actual behavior
Getting this message spewed to the screen continuously:
Warning: Do not taunt happy fun ball! :)
Additional information
Looking at the code, I see that first off this is using ROS_ERROR to print, which is #defined as 'printf', with a TODO to fix it.
geometry2/tf2_ros/src/buffer.cpp
Line 212 in d89b9a2
As for the message itself, what does it really mean? I'm not sure what is causing it exactly except that I get it here:
When I change the last line to be this to re-use the existing node instead of creating a new one:
Then I get this error.
I have to make this change, or I get an exception thrown by the logger due to duplicate node names.
ros2/rcl#375
Please let me know how to properly declare a TransformListener so that I don't get this error.
The text was updated successfully, but these errors were encountered: