예제 #1
0
        public void SubscriptionInit()
        {
            rcl_context_t context     = new rcl_context_t();
            rcl_node_t    node        = new rcl_node_t();
            IntPtr        nodeOptions = new IntPtr();

            RCLInitialize.InitRcl(ref context);
            NodeInitialize.InitNode(ref node, nodeOptions, ref context);

            rcl_subscription_t subscription        = new rcl_subscription_t();
            IntPtr             subscriptionOptions = new IntPtr();

            InitSubscription(ref subscription, subscriptionOptions, ref node);
            ShutdownSubscription(ref subscription, subscriptionOptions, ref node);

            NodeInitialize.ShutdownNode(ref node, nodeOptions);
            RCLInitialize.ShutdownRcl(ref context);
        }
예제 #2
0
 public void TearDown()
 {
     NodeInitialize.ShutdownNode(ref node, nodeOptions);
     RCLInitialize.ShutdownRcl(ref context);
 }