Skip to content

Commit

Permalink
Fix undefined name in rosbridge_websocket
Browse files Browse the repository at this point in the history
  • Loading branch information
amacneil committed Sep 28, 2021
1 parent 516c6a6 commit a76497b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions rosbridge_server/scripts/rosbridge_websocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,15 +311,13 @@ def main(args=None):
args = sys.argv

rclpy.init(args=args)
rosbridge_websocket_node = RosbridgeWebsocketNode()
node = RosbridgeWebsocketNode()

spin_callback = PeriodicCallback(
lambda: rclpy.spin_once(rosbridge_websocket_node, timeout_sec=0.01), 1
)
spin_callback = PeriodicCallback(lambda: rclpy.spin_once(node, timeout_sec=0.01), 1)
spin_callback.start()
start_hook()

node.destroy_node() # noqa: F821 # To be fixed in issue #604
node.destroy_node()
rclpy.shutdown()
shutdown_hook() # shutdown hook to stop the server

Expand Down

0 comments on commit a76497b

Please sign in to comment.