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(); }
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(); }
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(); }
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(); }
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(); }