Skip to content

Construction of transform listener #187

@domire8

Description

@domire8

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 ?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions