// constructor
        public RSV2BrowsingFSM(MappingFSM mapfsm, RobosapienV2 robo,
                               int robIpos, int robJpos, int robOrient)
        {
            mappingFSM = mapfsm;

            Robosapien  = robo;
            ipos        = robIpos;
            jpos        = robJpos;
            orientation = robOrient;

            LastKnownCartIpos = mappingFSM.ipos;
            LastKnownCartJpos = mappingFSM.jpos;

            // creating the task queue
            TaskQueue       = new int[MAX_QUEUE_LENGTH];
            TaskQueueLength = 0;

            // registering browsing FSM in mapping FSM
            mappingFSM.registerBrowingFSM(this);

            // now setting up our Last Known location inside the mappingh FSM
            mappingFSM.LastKnownRsv2Ipos = robIpos;
            mappingFSM.LastKnownRsv2Jpos = robJpos;
        }
Пример #2
0
        // constructor
        public RSV2TrainingFSM(RobosapienV2 rsv2)
        {
            Robosapien = rsv2;

            state = stIdle;
        }
        //constructor
        public RSV2MetanetworkFSM(RobosapienV2 robo)
        {
            Robosapien = robo;

            state = stIdle;
        }