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

Revert usage of tf listener node in favor of callback group #881

Open
wants to merge 1 commit into
base: rolling
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -130,16 +130,8 @@ void TFWrapper::initialize(
bool using_dedicated_thread)
{
initializeBuffer(clock, rviz_ros_node.lock()->get_raw_node(), using_dedicated_thread);
if (using_dedicated_thread) {
// TODO(pull/551): The TransformListener needs very quick spinning so it uses its own node
// here. Remove this in favor of a multithreaded spinner and ensure that the listener callback
// queue does not fill up.
tf_listener_ = std::make_shared<tf2_ros::TransformListener>(
*buffer_, true);
} else {
tf_listener_ = std::make_shared<tf2_ros::TransformListener>(
*buffer_, rviz_ros_node.lock()->get_raw_node(), false);
}
tf_listener_ = std::make_shared<tf2_ros::TransformListener>(
*buffer_, rviz_ros_node.lock()->get_raw_node(), using_dedicated_thread);
}

void TFWrapper::initializeBuffer(
Expand Down