MathWorks - Mobile View
  • Sign In to Your MathWorks AccountSe connecter
  • Access your MathWorks Account
    • Mon compte
    • Mon profil
    • Mes licences
    • Se déconnecter
  • Produits
  • Solutions
  • Le monde académique
  • Support
  • Communauté
  • Événements
  • Obtenir MATLAB
MathWorks
  • Produits
  • Solutions
  • Le monde académique
  • Support
  • Communauté
  • Événements
  • Obtenir MATLAB
  • Sign In to Your MathWorks AccountSe connecter
  • Access your MathWorks Account
    • Mon compte
    • Mon profil
    • Mes licences
    • Se déconnecter

Vidéos et webinars

  • MathWorks
  • Vidéos
  • Vidéos
  • Recherche
  • Vidéos
  • Recherche
  • Contacter un commercial
  • Version d'essai
  Register to watch video
  • Description
  • Full Transcript
  • Related Resources

Mission on Mars Robot Challenge: Description of the Initial Algorithm

From the series: Mission on Mars Robot Challenge

Olivier Dufour, MathWorks

Overview of the initial algorithm that team members are asked to optimize in the Mission on Mars Robot Challenge.

Hello, my name is Olivier from MathWorks. This video was recorded in the context of the 2016 Mission on Mars Robot Challenge and I will give you an overview of the current algorithm you will have to improve for the competition.

In the model, we will focus on InputProcessing subsystem which contains the robot control algorithm, and more precisely, Brain chart where all decisions are taken.

Let's start the simulation to follow the algorithm.

The default state "Explore" controls the robot in Speed mode: the variable Mode is set to SPEED meaning that we will set the robot speed in cm/s and angular speed in deg/s. If no obstacle is detected, the robot will move forward with a speed of 50 cm/s (and no rotation). There are also 2 types of obstacle detection. Obstacle avoidance means that there is an obstacle in front of the robot, so the robot stops (speed = 0) and an angular velocity of 30 deg/s is applied until obstacle avoidance is accomplished. Obstacle correction means that there is an obstacle on one side of the robot, in this case the robot slows down (speed = 30 cm/s) and an angular speed of 50 deg/s is applied. You can see that angular speed is calculated using "correction sign", this variable give the information about the preferred side to turn according to obstacle position.

Robot stays in Explore state as long as no site is detected by the camera. When site distance is different from 0, meaning that the camera is detecting something, current state changes to TargetInView where site distance and angle is calculated based on camera information (Distance and Bearing variables). In this mode, robot speed is reduced and angle speed is set accordingly to camera data. There are 2 possibilities to go out from this TargetInView state: either site is out of view so robot comes back to Explore state or the distance to target is lower than 35 cm and GoToTarget becomes the current state.

When distance becomes too small (under 35 cm in this case), the camera is no more able to see the site. The command mode is changed to DISTANCE and use the last calculated values for distance and angle to reach the site.

Finally, the remaining distance calculated by the robot is used to identify when the target is reached and to switch to "Wait for scoring" state where all robot movements are stopped. After 3 seconds, the robot goes back to Explore state.

This is the end of this short introduction to the robot algorithm, I hope that it will help you to have a better understanding about how the robot works. Feel free to add/remove/modify elements on this existing base and take advantage of simulation to build a robust and efficient algorithm.

Related Products

  • MATLAB
  • Simulink

Feedback

Featured Product

MATLAB

  • Request Trial
  • Get Pricing

Up Next:

You’ll learn to control the Rover robot using distance and speed commands.
4:18
How to Implement Algorithms for Simple Moves
View full series (8 Videos)

Related Videos:

3:52
Mission on Mars Robot Challenge: Quick Start Guide to the...
2:25
Mission on Mars Robot Challenge: Building a Position...
3:16
Mission on Mars Robot Challenge 2015 France
3:06
Mission on Mars Robot Challenge: How to Build a Stateflow...
2:56
Mission on Mars Robot Challenge: How to Create Different...

View more related videos

MathWorks - Domain Selector

Select a Web Site

Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .

Select web site

You can also select a web site from the following list:

How to Get Best Site Performance

Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.

Americas

  • América Latina (Español)
  • Canada (English)
  • United States (English)

Europe

  • Belgium (English)
  • Denmark (English)
  • Deutschland (Deutsch)
  • España (Español)
  • Finland (English)
  • France (Français)
  • Ireland (English)
  • Italia (Italiano)
  • Luxembourg (English)
  • Netherlands (English)
  • Norway (English)
  • Österreich (Deutsch)
  • Portugal (English)
  • Sweden (English)
  • Switzerland
    • Deutsch
    • English
    • Français
  • United Kingdom (English)

Asia Pacific

  • Australia (English)
  • India (English)
  • New Zealand (English)
  • 中国
    • 简体中文Chinese
    • English
  • 日本Japanese (日本語)
  • 한국Korean (한국어)

Contact your local office

  • Contacter un commercial
  • Version d'essai

Découvrir les produits

  • MATLAB
  • Simulink
  • Version étudiante
  • Support Hardware
  • File Exchange

Essayer ou Acheter

  • Téléchargements
  • Version d'essai
  • Contacter un commercial
  • Tarifs et licences
  • Comment acheter

Se Former

  • Documentation
  • Tutoriels
  • Exemples
  • Vidéos et webinars
  • Formation

Obtenir de l'aide

  • Aide à l'installation
  • Forum MATLAB
  • Services de consulting
  • Gestion Licences
  • Contacter le support technique

La société

  • Offres d'emploi
  • Actualités
  • Social Mission
  • Contacter un commercial
  • La société

MathWorks

Accelerating the pace of engineering and science

MathWorks est le leader mondial des logiciels de calcul mathématique pour les ingénieurs et les scientifiques.

Découvrir…

  • Select a Web Site United States
  • Brevets
  • Marques déposées
  • Charte de confidentialité
  • Lutte anti-piratage
  • État des applications

© 1994-2021 The MathWorks, Inc.

  • Facebook
  • Twitter
  • Instagram
  • YouTube
  • LinkedIn
  • RSS

Rejoignez la conversation

This website uses cookies to improve your user experience, personalize content and ads, and analyze website traffic.  By continuing to use this website, you consent to our use of cookies.  Please see our Privacy Policy to learn more about cookies and how to change your settings.