You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Only the first instance (singelton) needs to be initialized
84
+
ifgetattr(self, "_initialized", False):
85
+
return
86
+
87
87
# Parameters:
88
88
# machine_namespace (Optional[str], optional): The Namespace from '/' to the ROS namespace for the specific Mirte. Defaults to "/{HOSTNAME}". (This only has to be changed when running the Robot API from a different machine directly. It is configured correctly for the Web interface)
89
89
# hardware_namespace (str, optional): The namespace for the hardware peripherals. Defaults to "io".
@@ -105,10 +105,8 @@ def __init__(
105
105
106
106
ROS_DISTRO=os.getenv("ROS_DISTRO")
107
107
108
-
rclpy.init()
109
-
110
-
# This node should be only ran once.
111
-
# No 'anonymous' flag available, so use unix epoch nano seconds to pad name
108
+
# In order to be able to run this from multiple python files (ie creating
109
+
# multtiple nodes) a timestamp is added (replicating a 'anonymous' node)
0 commit comments