set 'mesh_path' from BT node

This commit is contained in:
shalenikol 2023-11-15 21:07:32 +03:00
parent 578b503d32
commit c5f37c587f
2 changed files with 10 additions and 36 deletions

View file

@ -82,8 +82,11 @@ class PoseEstimator(Node):
self.mytemppath = Path(self.tmpdir) / "rbs_per"
self.mytemppath.mkdir(exist_ok=True)
# for other nodes
kwargs["allow_undeclared_parameters"] = True
kwargs["automatically_declare_parameters_from_overrides"] = True
super().__init__(self.nodeName, **kwargs)
self.declare_parameter("mesh_path", "")
self.declare_parameter("mesh_path", rclpy.Parameter.Type.STRING)
# Initialize the transform broadcaster
self.tf_broadcaster = TransformBroadcaster(self)