forked from CMU-Robotics-Club/RoboBuggy2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a8e4151
commit 97191d0
Showing
3 changed files
with
81 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
matplotlib==3.1.2 | ||
NavPy==1.0 | ||
numba==0.58.0 | ||
numpy<1.21.0 | ||
osqp==0.6.3 | ||
pandas==2.0.3 | ||
pyembree==0.2.11 | ||
pymap3d==3.0.1 | ||
scipy==1.10.1 | ||
trimesh==3.23.5 | ||
utm==0.7.0 | ||
keyboard==0.13.5 | ||
tk==0.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#! /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() | ||
|
||
|