void Awake() { GameObject globalContext = GameObject.Find("Global Ros2 Context"); if (globalContext != null) { context = globalContext.GetComponent <GlobalRosContext>().context; } else { context = new rclcs.Context(); } if (!context.isInit) { rclcs.Rclcs.Init(context); } node = new rclcs.Node(NodeName, context); }
private void CreateRosContext() { Context = new rclcs.Context(); rclcs.Rclcs.Init(Context); }
void Awake() { context = new rclcs.Context(); rclcs.Rclcs.Init(context); node = new rclcs.Node(NodeName, context); }