From fd52cbd98bc8d5f3c73539bb8d56c7536da66700 Mon Sep 17 00:00:00 2001 From: TiaSinghania Date: Wed, 30 Oct 2024 17:21:34 -0400 Subject: [PATCH] got rid of duplicate --- rb_ws/src/buggy/scripts/simulator/engine.py | 32 --------------------- 1 file changed, 32 deletions(-) delete mode 100644 rb_ws/src/buggy/scripts/simulator/engine.py diff --git a/rb_ws/src/buggy/scripts/simulator/engine.py b/rb_ws/src/buggy/scripts/simulator/engine.py deleted file mode 100644 index d0bab70..0000000 --- a/rb_ws/src/buggy/scripts/simulator/engine.py +++ /dev/null @@ -1,32 +0,0 @@ -#! /usr/bin/env python3 -import sys -import time -import rclpy -from std_msgs.msg import String - -class Simulator(): - # simulator constants: - - def __init__(self): - self.test_publisher = self.create_publisher(String, 'test', 10) - if (self.get_namespace() == "SC"): - self.buggy_name = "SC" - - if (self.get_namespace() == "NAND"): - self.buggy_name = "NAND" - - def loop(self): - print("hello") - self.test_publisher.publish(self.buggy_name) - -if __name__ == "__main__": - rclpy.init() - sim = Simulator() - - # publish initial position, then sleep - # so that auton stack has time to initialize - # before buggy moves - time.sleep(15.0) - sim.loop() - -