Esempio n. 1
0
        void Initialize()
        {
            listener = new Listener <Joy>(topic, Handler);

            node = FrameNode.Instantiate("VrListener");
            node.AttachTo(tfName);
        }
Esempio n. 2
0
        public SimpleRobotController([NotNull] IModuleData moduleData)
        {
            node       = FrameNode.Instantiate("SimpleRobotNode");
            ModuleData = moduleData ?? throw new ArgumentNullException(nameof(moduleData));

            Config = new RobotConfiguration();
        }
Esempio n. 3
0
        public DepthCloudController([NotNull] IModuleData moduleData)
        {
            ModuleData        = moduleData ?? throw new ArgumentNullException(nameof(moduleData));
            depthImageTexture = new ImageTexture();
            colorImageTexture = new ImageTexture();

            node = FrameNode.Instantiate("DepthCloud");
            node.Transform.localRotation = new Quaternion(0, 0.7071f, 0.7071f, 0);

            projector            = ResourcePool.RentDisplay <DepthCloudResource>(node.Transform);
            projector.DepthImage = depthImageTexture;
            projector.ColorImage = colorImageTexture;
            Config = new DepthCloudConfiguration();

            depthImageTexture.Colormap = ColormapId.gray;
            colorImageTexture.Colormap = ColormapId.gray;
        }
Esempio n. 4
0
 public InteractiveMarkerListener([NotNull] IModuleData moduleData)
 {
     ModuleData = moduleData ?? throw new ArgumentNullException(nameof(moduleData));
     node       = FrameNode.Instantiate("[InteractiveMarkerListener]");
 }