Esempio n. 1
0
        public MarkerModuleData([NotNull] ModuleDataConstructor constructor) :
            base(constructor.GetConfiguration <MarkerConfiguration>()?.Topic ?? constructor.Topic,
                 constructor.GetConfiguration <MarkerConfiguration>()?.Type ?? constructor.Type)
        {
            panel    = DataPanelManager.GetPanelByResourceType <MarkerPanelContents>(ModuleType.Marker);
            listener = new MarkerListener(this);
            if (constructor.Configuration == null)
            {
                listener.Config.Topic = Topic;
                listener.Config.Type  = Type;
            }
            else
            {
                listener.Config = (MarkerConfiguration)constructor.Configuration;
            }

            listener.StartListening();
            UpdateModuleButton();
        }
Esempio n. 2
0
        public GuiDialogModuleData([NotNull] ModuleDataConstructor constructor) :
            base(constructor.GetConfiguration <GuiDialogConfiguration>()?.Topic ?? constructor.Topic,
                 constructor.GetConfiguration <GuiDialogConfiguration>()?.Type ?? constructor.Type)
        {
            dialogPanel    = DataPanelManager.GetPanelByResourceType <GuiDialogPanelContents>(ModuleType.GuiDialog);
            dialogListener = new GuiDialogListener(this);
            if (constructor.Configuration == null)
            {
                dialogListener.Config.Topic = Topic;
                dialogListener.Config.Type  = Type;
            }
            else
            {
                dialogListener.Config = (GuiDialogConfiguration)constructor.Configuration;
            }

            Interactable = ModuleListPanel.SceneInteractable;
            dialogListener.StartListening();
            UpdateModuleButton();
        }
Esempio n. 3
0
        public PointCloudModuleData([NotNull] ModuleDataConstructor constructor) :
            base(constructor.GetConfiguration <PointCloudConfiguration>()?.Topic ?? constructor.Topic, constructor.Type)
        {
            panel    = DataPanelManager.GetPanelByResourceType <PointCloudPanelContents>(ModuleType.PointCloud);
            listener = new PointCloudListener(this);
            if (constructor.Configuration == null)
            {
                listener.Config.Topic = Topic;
            }
            else
            {
                listener.Config = (PointCloudConfiguration)constructor.Configuration;
            }

            listener.StartListening();
            UpdateModuleButton();
        }
Esempio n. 4
0
        public TfModuleData([NotNull] ModuleDataConstructor constructor) :
            base(constructor.GetConfiguration <TfConfiguration>()?.Topic ?? constructor.Topic,
                 constructor.Type)
        {
            panel    = DataPanelManager.GetPanelByResourceType <TfPanelContents>(ModuleType.TF);
            listener = new TfListener(this);
            if (constructor.Configuration != null)
            {
                listener.Config = (TfConfiguration)constructor.Configuration;
            }
            else
            {
                listener.Config.Topic = Topic;
            }

            listener.StartListening();
            UpdateModuleButton();
        }
Esempio n. 5
0
        public JointStateModuleData([NotNull] ModuleDataConstructor constructor) :
            base(constructor.GetConfiguration <JointStateConfiguration>()?.Topic ?? constructor.Topic,
                 constructor.Type)
        {
            panel    = DataPanelManager.GetPanelByResourceType <JointStatePanelContents>(ModuleType.JointState);
            listener = new JointStateListener(this);
            if (constructor.Configuration != null)
            {
                listener.Config = (JointStateConfiguration)constructor.Configuration;
                listener.Robot  = GetRobotWithName(listener.RobotName);
            }
            else
            {
                listener.Config.Topic = Topic;
            }

            listener.StartListening();
            UpdateModuleButton();
        }
        public InteractiveMarkerModuleData([NotNull] ModuleDataConstructor constructor) :
            base(constructor.GetConfiguration <InteractiveMarkerConfiguration>()?.Topic ?? constructor.Topic,
                 constructor.Type)
        {
            panel = DataPanelManager.GetPanelByResourceType <InteractiveMarkerPanelContents>(
                ModuleType.InteractiveMarker);
            listener = new InteractiveMarkerListener(this);
            if (constructor.Configuration != null)
            {
                listener.Config = (InteractiveMarkerConfiguration)constructor.Configuration;
            }
            else
            {
                listener.Config.Topic = Topic;
            }

            Interactable = ModuleListPanel.SceneInteractable;
            listener.StartListening();
            UpdateModuleButton();
        }