public MulticastBytePacketClient(NetworkAddress address)
 {
     this.ip = address.Address;
     this.port = (UInt16)address.Port;
     this.name = address.Name;
     if (address.Protocol != NetworkAddressProtocol.UDP_MULTI && address.Protocol != NetworkAddressProtocol.ANY)
         Console.WriteLine("Warning: Using non UDP comaptible network address in Multicast Client (" + address.Name + ")");
 }
Exemplo n.º 2
0
 public Pioneer3(NetworkAddress feedback, NetworkAddress control, bool isBackwards, int id)
 {
     this.isBackwards = isBackwards;
     this.ipMulticast = feedback.Address;
     this.port = feedback.Port;
     this.ipUnicast = control.Address;
     this.controlPort = control.Port;
     status = new SegwayStatus();
     udpClient = new UdpClient();
     simMode = false;
     robotID = id;
 }
Exemplo n.º 3
0
        public Pioneer3(NetworkAddress feedback, NetworkAddress control, bool simmode, bool isBackwards, int id)
            : this(feedback, control, isBackwards, id)
        {
            if (simmode)
            {
                INetworkAddressProvider addrProvider = new HardcodedAddressProvider();
                simRobotCommandServer = new GenericMulticastServer<SimMessage<RobotTwoWheelCommand>>(addrProvider.GetAddressByName("RobotSimCommands"), new CSharpMulticastSerializer<SimMessage<RobotTwoWheelCommand>>(true));
                simRobotCommandServer.Start(NetworkAddress.GetBindingAddressByType(NetworkAddress.BindingType.Wired));

                //Fake Segway feedback (for Odom)
                simSegwayFeedback = new GenericMulticastClient<SimMessage<IRobotTwoWheelStatus>>(addrProvider.GetAddressByName("SimSegwayFeedback"), new CSharpMulticastSerializer<SimMessage<IRobotTwoWheelStatus>>(true));
                simSegwayFeedback.MsgReceived += new EventHandler<MsgReceivedEventArgs<SimMessage<IRobotTwoWheelStatus>>>(simSegwayFeedback_MsgReceived);
                simSegwayFeedback.Start(NetworkAddress.GetBindingAddressByType(NetworkAddress.BindingType.Wired));
            }
            this.simMode = simmode;
        }
Exemplo n.º 4
0
 public ViconTarsus(NetworkAddress na)
 {
     this.ip = na.Address;
     this.port = na.Port;
 }
Exemplo n.º 5
0
 public TSIPGPS(NetworkAddress na, SensorPose toBodyTransform)
 {
     this.ip = na.Address; this.port = na.Port;
     this.toBodyTransform = toBodyTransform;
 }
Exemplo n.º 6
0
 public SimIMU(NetworkAddress na, SensorPose sp)
 {
     simIMUClient = new GenericMulticastClient<SimMessage<IMUData>>(na, new CSharpMulticastSerializer<SimMessage<IMUData>>(false));
     simIMUClient.MsgReceived += new EventHandler<MsgReceivedEventArgs<SimMessage<IMUData>>>(simIMUClient_MsgReceived);
     toBodyTransform = sp;
 }
Exemplo n.º 7
0
 public UDPCamera(NetworkAddress address)
 {
     this.ip = address.Address; this.port = address.Port;
 }
Exemplo n.º 8
0
 public SickLMS(NetworkAddress na, SensorPose toBodyTransform, bool upsideDown)
 {
     this.ip = na.Address; this.port = na.Port; this.upsideDown = upsideDown;
     this.toBodyTransform = toBodyTransform;
 }
Exemplo n.º 9
0
 public SeptentrioUDP(NetworkAddress na, SensorPose toBodyTransform, int id)
 {
     this.ip = na.Address; this.port = na.Port;
     this.toBodyTransform = toBodyTransform;
     this.ID = id;
 }
Exemplo n.º 10
0
 public LittleLaser(NetworkAddress na)
 {
     ip = na.Address;
     port = na.Port;
     udp = new UdpClient();
 }