From 3a11c49e9577e52b857e1ff6ed63845e2b18249f Mon Sep 17 00:00:00 2001 From: Jakub Delicat Date: Tue, 19 Sep 2023 19:42:04 +0200 Subject: [PATCH] i+1 because there was /pioneer0 Signed-off-by: Jakub Delicat --- safety_user_plugin/ros_wrapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/safety_user_plugin/ros_wrapper.py b/safety_user_plugin/ros_wrapper.py index 26b8fe3..dda18d6 100644 --- a/safety_user_plugin/ros_wrapper.py +++ b/safety_user_plugin/ros_wrapper.py @@ -72,7 +72,7 @@ class ROSWrapper(Node): for i in range(6): self.user_stop_subscribers[i] = self.create_subscription( Bool, - f"/pioneer{i}/user_stop", + f"/pioneer{i+1}/user_stop", lambda msg, i_in = i: self._update_user_stop_period(msg, i_in), qos_profile=self._qos, )