-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Since I was looking a bit closer into tf2_ros I saw that there are actually several ways to construct the TransformListener. Note that we are currently doing that in modulo:
this->tf_listener_ = std::make_shared<tf2_ros::TransformListener>(*this->tf_buffer_);
However, this constructor creates yet another node under the hood, one that we can see as transform_listener_impl_XXX. I don't know why I never questioned this but there is this constructor that takes the node as argument. I believe we should at least give the transform listener access to the node to avoid an additional one being created.
Additionally, there is also the spin_thread argument that defaults to true, see what it does here. It does create another executor under the hood but here I'm not sure if that is a good thing or not.
What do you think @eeberhard @bpapaspyros ?