Esempio n. 1
0
    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);
    }
Esempio n. 2
0
 private void CreateRosContext()
 {
     Context = new rclcs.Context();
     rclcs.Rclcs.Init(Context);
 }
Esempio n. 3
0
 void Awake()
 {
     context = new rclcs.Context();
     rclcs.Rclcs.Init(context);
     node = new rclcs.Node(NodeName, context);
 }