(args=None)
| 301 | |
| 302 | |
| 303 | def 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 | |
| 317 | if __name__ == '__main__': |
no test coverage detected