Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion rosbridge_server/scripts/rosbridge_websocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ def main(args=None):
rclpy.init(args=args)
node = RosbridgeWebsocketNode()

executor = rclpy.executors.SingleThreadedExecutor()
executor = rclpy.executors.MultiThreadedExecutor()
executor.add_node(node)

def spin_ros():
Expand All @@ -355,6 +355,7 @@ def spin_ros():
rclpy.shutdown()
except KeyboardInterrupt:
print("Exiting due to SIGINT")
spin_callback.stop()
finally:
shutdown_hook() # shutdown hook to stop the server

Expand Down