コード例 #1
0
ファイル: StartupTask.cs プロジェクト: peterdrougge/.NET-SDK
 public void Run(IBackgroundTaskInstance taskInstance)
 {
     RobotMessenger.LoadAndPrepareSkill
     (
         taskInstance,
         new RespondToTouchSensors()
     );
 }
コード例 #2
0
 public void Run(IBackgroundTaskInstance taskInstance)
 {
     RobotMessenger.LoadAndPrepareSkill
     (
         taskInstance,
         new MoveArmsAndHead()
     );
 }
コード例 #3
0
 public void Run(IBackgroundTaskInstance taskInstance)
 {
     RobotMessenger.LoadAndPrepareSkill
     (
         taskInstance,
         new Wander(),
         SkillLogLevel.Verbose
     );
 }
コード例 #4
0
 public void Run(IBackgroundTaskInstance taskInstance)
 {
     //Load your skill and attach to the Misty robot
     RobotMessenger.LoadAndPrepareSkill
     (
         taskInstance,
         new MistyNativeSkill(),
         SkillLogLevel.Verbose
     );
 }
コード例 #5
0
        /*
         * Current intro skills in (somewhat) order of complexity:
         *
         *      SkillTemplate,  //empty skill template you can use to build your skills
         *
         *      MostlyHarmlessSkill,
         *      MostlyHarmlessTooSkill,
         *      HelloWorldSkill,
         *      HelloAgainWorldSkill,
         *      LookAroundSkill,
         *      InteractiveMistySkill,
         *      ForceDriving,
         *      HelloLocomotionSkill
         *
         *      Change the skill below and re-deploy to run the skill
         *
         *      If you want to run multiple at the same time, you will need to make a Skill Background Task for each skill and deploy individually - see below or documentation for more details.
         *
         */

        public void Run(IBackgroundTaskInstance taskInstance)
        {
            //Call LoadAndPrepareSkill to register robot events and add an instance of the robot interface to the skill

            RobotMessenger.LoadAndPrepareSkill
            (
                //Background task instance passed in for task management, managed by system
                taskInstance,

                //Instance of your skill
                new ForceDriving(),

                //Skill Log Level to start in
                SkillLogLevel.Verbose,

                //Overwrite default logging preface to help label runs in log
                "Skill Test Run #1 => "
            );
        }
コード例 #6
0
ファイル: StartupTask.cs プロジェクト: peterdrougge/.NET-SDK
 public void Run(IBackgroundTaskInstance taskInstance)
 {
     RobotMessenger.LoadAndPrepareSkill(taskInstance, new UnitTestExampleSkill());
 }
コード例 #7
0
 public void Run(IBackgroundTaskInstance taskInstance)
 {
     RobotMessenger.LoadAndPrepareSkill(taskInstance, new TextToSpeech());
 }
コード例 #8
0
 public void Run(IBackgroundTaskInstance taskInstance)
 {
     RobotMessenger.LoadAndPrepareSkill(taskInstance, new MistyNativeSkill(), MistyRobotics.Common.Types.SkillLogLevel.Verbose);
 }
コード例 #9
0
 public void Run(IBackgroundTaskInstance taskInstance)
 {
     RobotMessenger.LoadAndPrepareSkill(taskInstance, new GrossMisty());
 }