Skip to content

Commit

Permalink
removing timeout from py spins in Foxy (ros-navigation#3161)
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveMacenski authored and hyunseok-yang committed Sep 15, 2022
1 parent 6de42c2 commit 31c550d
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ def main():
help='the y component of the initial position [meters]')
parser.add_argument('-z', type=float, default=0,
help='the z component of the initial position [meters]')
parser.add_argument('-k', '--timeout', type=float, default=10.0,
help="Seconds to wait. Block until the future is complete if negative. Don't wait if 0.")

group = parser.add_mutually_exclusive_group(required=True)
group.add_argument('-t', '--turtlebot_type', type=str,
Expand Down Expand Up @@ -99,7 +97,7 @@ def main():

node.get_logger().info('Sending service request to `/spawn_entity`')
future = client.call_async(request)
rclpy.spin_until_future_complete(node, future, args.timeout)
rclpy.spin_until_future_complete(node, future)
if future.result() is not None:
print('response: %r' % future.result())
else:
Expand Down

0 comments on commit 31c550d

Please sign in to comment.