public new static void CallBack(ROSBridgeMsg msg)
    {
        Int8Msg idMsg = (Int8Msg)msg;

        id        = idMsg.GetData();
        thrusters = GameObject.Find("Thrusters");
        thrusters.GetComponent <DataPublisher>().SendPos(id);
    }
Esempio n. 2
0
                public PointFieldMsg(Int8Msg int8, Int8Msg uint8, Int8Msg int16, Int8Msg uint16, Int8Msg int32, Int8Msg uint32, Int8Msg float32, Int8Msg float64, string name, UInt32Msg offset, UInt8Msg datatype, UInt32Msg count)
                {
                    _int8    = int8;
                    _uint8   = uint8;
                    _int16   = int16;
                    _uint16  = uint16;
                    _int32   = int32;
                    _uint32  = uint32;
                    _float32 = float32;
                    _fluat64 = float64;

                    _name     = name;
                    _offset   = offset;
                    _datatype = datatype;
                    _count    = count;
                }
Esempio n. 3
0
                public PointFieldMsg(JSONNode msg)
                {
                    _int8    = new Int8Msg(msg["INT8"]);
                    _uint8   = new Int8Msg(msg["UINT8"]);
                    _int16   = new Int8Msg(msg["INT16"]);
                    _uint16  = new Int8Msg(msg["UINT16"]);
                    _int32   = new Int8Msg(msg["INT32"]);
                    _uint32  = new Int8Msg(msg["UINT32"]);
                    _float32 = new Int8Msg(msg["FLOAT32"]);
                    _fluat64 = new Int8Msg(msg["FLOAT64"]);

                    _name     = msg["name"].ToString();
                    _offset   = new UInt32Msg(msg["offset"]);
                    _datatype = new UInt8Msg(msg["datatype"]);
                    _count    = new UInt32Msg(msg["count"]);
                }