diff --git a/mil_common/utils/mil_tools/scripts/preflight.py b/mil_common/utils/mil_tools/scripts/preflight.py new file mode 100755 index 000000000..185c5d21c --- /dev/null +++ b/mil_common/utils/mil_tools/scripts/preflight.py @@ -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")