protected override void LoadAllAvailableChannels() { ChannelRegistry cr = ChannelRegistry.Instance; Channels.Clear(); Channels.Add(cr.RegisterChannel(ChannelNames.Color)); }
/// <summary> /// Resets list of available channels (<see cref="Channels"/>) to union of all cameras supported by the implementing class. /// </summary> protected override void LoadAllAvailableChannels() { ChannelRegistry cr = ChannelRegistry.Instance; Channels.Clear(); log.Warn(Name + ": TODO: Implement LoadAllAvailableChannels()."); Channels.Add(cr.RegisterChannel(ChannelNames.Intensity)); Channels.Add(cr.RegisterCustomChannel(CustomChannelNames.DummyNoiseChannel, typeof(FloatCameraImage))); }
protected override void LoadAllAvailableChannels() { ChannelRegistry cr = ChannelRegistry.Instance; Channels.Clear(); Channels.Add(cr.RegisterChannel(ChannelNames.Intensity)); Channels.Add(cr.RegisterChannel(ChannelNames.Distance)); Channels.Add(cr.RegisterChannel(ChannelNames.Point3DImage)); }
/// <summary> /// Resets list of available channels (<see cref="Channels"/>) to union of all cameras supported by the implementing class. /// Channels are: Intensity, Distance, Confidence and 3D /// </summary> protected override void LoadAllAvailableChannels() { ChannelRegistry cr = ChannelRegistry.Instance; Channels.Clear(); Channels.Add(cr.RegisterChannel(ChannelNames.Intensity)); Channels.Add(cr.RegisterChannel(ChannelNames.Distance)); Channels.Add(cr.RegisterChannel(ChannelNames.ConfidenceMap)); Channels.Add(cr.RegisterCustomChannel(ChannelNames.RawConfidenceMap, typeof(UShortCameraImage))); Channels.Add(cr.RegisterChannel(ChannelNames.Point3DImage)); }
/// <summary> /// Resets list of available channels (<see cref="Channels"/>) to union of all cameras supported by the implementing class. /// </summary> protected override void LoadAllAvailableChannels() { ChannelRegistry cr = ChannelRegistry.Instance; Channels.Clear(); Channels.Add(cr.RegisterChannel(ChannelNames.Amplitude)); Channels.Add(cr.RegisterChannel(ChannelNames.Distance)); Channels.Add(cr.RegisterChannel(ChannelNames.Color)); Channels.Add(cr.RegisterChannel(ChannelNames.Point3DImage)); Channels.Add(cr.RegisterCustomChannel(CustomChannelNames.LongExposureIR, typeof(FloatCameraImage))); Channels.Add(cr.RegisterCustomChannel(CustomChannelNames.BodyIndex, typeof(FloatCameraImage))); }
public void GivenPilotApiAndRabbitClient_WhenConnectionIsCreatedAndPublishCalled_ThenChannelExchangeDeclareIsCalled() { ChannelRegistry channelRegistry; var connectionFactory = new ConnectionFactory() { HostName = "localhost" }; var rabbitClient = new RabbitClient("Team-0", "Team-0", channelRegistry = new ChannelRegistry(), new QueueRegistry(), connectionFactory); rabbitClient.Log = logMock.Object; var pilotApi = new PilotApi(rabbitClient, "Team-0", "Team-0"); pilotApi.ConnectToRabbitMq(); channelRegistry.Channels["Team-0" + "-" + RoutingKeyNames.Power] = channelMock.Object; pilotApi.SetPower(120); channelMock.Verify(mock => mock.ExchangeDeclare(It.IsAny <string>(), "direct", false, false, null)); }
/// <summary> /// Updates channels. Depends on IsMonochrome. /// </summary> private void InitChannels() { ChannelRegistry cr = ChannelRegistry.Instance; Channels.Clear(); if (IsMonochrome) { Channels.Add(cr.RegisterChannel(ChannelNames.Intensity)); ActivateChannel(ChannelNames.Intensity); SelectChannel(ChannelNames.Intensity); } else { Channels.Add(cr.RegisterChannel(ChannelNames.Red)); Channels.Add(cr.RegisterChannel(ChannelNames.Blue)); Channels.Add(cr.RegisterChannel(ChannelNames.Green)); Channels.Add(cr.RegisterChannel(ChannelNames.Color)); ActivateChannel(ChannelNames.Red); SelectChannel(ChannelNames.Red); } }