Skip to content

Commit

Permalink
Created Preflight node and checks if running in simulation
Browse files Browse the repository at this point in the history
  • Loading branch information
keithmk authored and keithmk committed Sep 26, 2023
1 parent 32031c1 commit f0523a1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions mil_common/utils/mil_tools/scripts/preflight.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env python3
import rospy

# Use Rich for nice printing
if __name__ == "__main__":
# Initialize the Preflight Node
rospy.init_node("preflight")

print("Checking for Gazebo")
# Check if the Gazebo Node exists
if rospy.get_param("/is_simulation", None):
print("Running a Simulation")
else:
print("Running for real")

0 comments on commit f0523a1

Please sign in to comment.