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, )