From 3651a8dfef772c8da167d0736ffb548c495516ef Mon Sep 17 00:00:00 2001 From: etsiogas Date: Wed, 5 Feb 2020 16:34:30 +0200 Subject: [PATCH] Added robot namespace to rqt gui --- .../joint_trajectory_controller.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rqt_joint_trajectory_controller/src/rqt_joint_trajectory_controller/joint_trajectory_controller.py b/rqt_joint_trajectory_controller/src/rqt_joint_trajectory_controller/joint_trajectory_controller.py index e74395973..a3d455fea 100644 --- a/rqt_joint_trajectory_controller/src/rqt_joint_trajectory_controller/joint_trajectory_controller.py +++ b/rqt_joint_trajectory_controller/src/rqt_joint_trajectory_controller/joint_trajectory_controller.py @@ -120,6 +120,8 @@ def __init__(self, context): 'joint_trajectory_controller.ui') loadUi(ui_file, self._widget) self._widget.setObjectName('JointTrajectoryControllerUi') + ns = rospy.get_namespace()[1:-1] + self._widget.controller_group.setTitle('ns: ' + ns) # Setup speed scaler speed_scaling = DoubleEditor(1.0, 100.0) @@ -360,6 +362,7 @@ def _unload_jtc(self): # Clear joint widgets # NOTE: Implementation is a workaround for: # https://bugreports.qt-project.org/browse/QTBUG-15990 :( + layout = self._widget.joint_group.layout() if layout is not None: while layout.count():