MCPcopy Create free account
hub / github.com/TeleHuman/TextOp / main

Function main

TextOpDeploy/src/textop_ctrl/scripts/motion_watcher.py:303–314  ·  view source on GitHub ↗
(args=None)

Source from the content-addressed store, hash-verified

301
302
303def main(args=None):
304 rclpy.init(args=args)
305
306 try:
307 motion_watcher = MotionWatcher(need_save=True)
308 rclpy.spin(motion_watcher)
309 except KeyboardInterrupt:
310 print("Shutting down Motion Watcher...")
311 finally:
312 if 'motion_watcher' in locals():
313 motion_watcher.destroy_node()
314 rclpy.shutdown()
315
316
317if __name__ == '__main__':

Callers 1

motion_watcher.pyFile · 0.70

Calls 2

MotionWatcherClass · 0.85
destroy_nodeMethod · 0.80

Tested by

no test coverage detected