Skip to content

Commit

Permalink
fix goal msg
Browse files Browse the repository at this point in the history
  • Loading branch information
ipa-sn authored and ipa-rar committed Jan 13, 2023
1 parent 5855469 commit 5009e16
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from rclpy.node import Node
from geometry_msgs.msg import PoseWithCovarianceStamped
from geometry_msgs.msg import PoseStamped
from std_msgs.msg import String
from std_msgs.msg import Bool
from rclpy.executors import SingleThreadedExecutor
from rcl_interfaces.msg import ParameterDescriptor, ParameterValue
import numpy as np
Expand Down Expand Up @@ -66,7 +66,7 @@ def __init__(self, arg, robot_id):
10)
self.subscription2
self.subscription3 = self.create_subscription(
String,
Bool,
'/barista_'+str(robot_id)+'/goal_status',
self.status_check,
10)
Expand Down Expand Up @@ -110,7 +110,7 @@ def status_check(self, msg):
Args:
msg (String): goal status message
"""
if msg.data == "goal_reached":
if msg.data == True:
print("stopped")

self.delta_x = round(
Expand Down

0 comments on commit 5009e16

Please sign in to comment.