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