i+1 because there was /pioneer0

Signed-off-by: Jakub Delicat <jakub.delicat@pwr.edu.pl>
This commit is contained in:
Jakub Delicat 2023-09-19 19:42:04 +02:00
parent 11d64cb0cf
commit 3a11c49e95

View File

@ -72,7 +72,7 @@ class ROSWrapper(Node):
for i in range(6): for i in range(6):
self.user_stop_subscribers[i] = self.create_subscription( self.user_stop_subscribers[i] = self.create_subscription(
Bool, 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), lambda msg, i_in = i: self._update_user_stop_period(msg, i_in),
qos_profile=self._qos, qos_profile=self._qos,
) )