INTELIGENCIA EN REDES DE COMUNICACIONES - …DESCRIPCIÓN DE UN ROBOT Robot = Agente software •...
Transcript of INTELIGENCIA EN REDES DE COMUNICACIONES - …DESCRIPCIÓN DE UN ROBOT Robot = Agente software •...
![Page 1: INTELIGENCIA EN REDES DE COMUNICACIONES - …DESCRIPCIÓN DE UN ROBOT Robot = Agente software • Detección del entorno Radar • Actuación sobre el entorno Movimientos del tanque](https://reader033.fdocuments.co/reader033/viewer/2022041909/5e66855a68d5a0751458f774/html5/thumbnails/1.jpg)
INTELIGENCIA EN REDES DECOMUNICACIONES
5º Ingeniería de Telecomunicación
TRABAJO FIN DE ASIGNATURA
![Page 2: INTELIGENCIA EN REDES DE COMUNICACIONES - …DESCRIPCIÓN DE UN ROBOT Robot = Agente software • Detección del entorno Radar • Actuación sobre el entorno Movimientos del tanque](https://reader033.fdocuments.co/reader033/viewer/2022041909/5e66855a68d5a0751458f774/html5/thumbnails/2.jpg)
ÍNDICE• ¿Qué es Robocode?
• Descripción de un robot de Robocode
• Comandos básicos de un robot
• Ejemplo de robot básico
• Robots avanzados
• Nuestros robots
• Nuestros equipos de robots
![Page 3: INTELIGENCIA EN REDES DE COMUNICACIONES - …DESCRIPCIÓN DE UN ROBOT Robot = Agente software • Detección del entorno Radar • Actuación sobre el entorno Movimientos del tanque](https://reader033.fdocuments.co/reader033/viewer/2022041909/5e66855a68d5a0751458f774/html5/thumbnails/3.jpg)
¿QUÉ ES ROBOCODE?
Robocode es un simulador de guerras de robotsprogramados en Java que fue creado por
Mathew Nelson (IBM).
![Page 4: INTELIGENCIA EN REDES DE COMUNICACIONES - …DESCRIPCIÓN DE UN ROBOT Robot = Agente software • Detección del entorno Radar • Actuación sobre el entorno Movimientos del tanque](https://reader033.fdocuments.co/reader033/viewer/2022041909/5e66855a68d5a0751458f774/html5/thumbnails/4.jpg)
DESCRIPCIÓN DE UN ROBOTRobot = Agente software
• Detección del entorno⇒ Radar
• Actuación sobre el entorno⇒ Movimientos del tanque⇒ Movimientos del cañón
![Page 5: INTELIGENCIA EN REDES DE COMUNICACIONES - …DESCRIPCIÓN DE UN ROBOT Robot = Agente software • Detección del entorno Radar • Actuación sobre el entorno Movimientos del tanque](https://reader033.fdocuments.co/reader033/viewer/2022041909/5e66855a68d5a0751458f774/html5/thumbnails/5.jpg)
COMANDOS BÁSICOS
Movimiento del robot (acciones bloqueantes)
turnRight(double degree) y turnLeft(double degree)ahead(double distance) y back(double distance)turnGunRight(double degree) y turnGunLeft(double degree)turnRadarRight(double degree) y turnRadarLeft(double degree)
setAdjustGunForRobotTurn(boolean flag)setAdjustRadarForRobotTurn(boolean flag)setAdjustRadarForGunTurn(boolean flag)
![Page 6: INTELIGENCIA EN REDES DE COMUNICACIONES - …DESCRIPCIÓN DE UN ROBOT Robot = Agente software • Detección del entorno Radar • Actuación sobre el entorno Movimientos del tanque](https://reader033.fdocuments.co/reader033/viewer/2022041909/5e66855a68d5a0751458f774/html5/thumbnails/6.jpg)
COMANDOS BÁSICOS
Obtención de información
getX()getY()
getHeading()getGunHeading()getRadarHeading()
getBattleFieldWidth()getBattleFieldHeight()
![Page 7: INTELIGENCIA EN REDES DE COMUNICACIONES - …DESCRIPCIÓN DE UN ROBOT Robot = Agente software • Detección del entorno Radar • Actuación sobre el entorno Movimientos del tanque](https://reader033.fdocuments.co/reader033/viewer/2022041909/5e66855a68d5a0751458f774/html5/thumbnails/7.jpg)
COMANDOS BÁSICOS
Disparando
fire(double power)fireBullet(double power)
![Page 8: INTELIGENCIA EN REDES DE COMUNICACIONES - …DESCRIPCIÓN DE UN ROBOT Robot = Agente software • Detección del entorno Radar • Actuación sobre el entorno Movimientos del tanque](https://reader033.fdocuments.co/reader033/viewer/2022041909/5e66855a68d5a0751458f774/html5/thumbnails/8.jpg)
COMANDOS BÁSICOS
Eventos
void onScannedRobot(ScannedRobotEvent event)void onHitByBullet(HitByBulletEvent event)void onHitRobot(HitRobotEvent event)void onHitWall(HitWallEvent event)
double getBearing()double getEnergy()String getName()etc.
![Page 9: INTELIGENCIA EN REDES DE COMUNICACIONES - …DESCRIPCIÓN DE UN ROBOT Robot = Agente software • Detección del entorno Radar • Actuación sobre el entorno Movimientos del tanque](https://reader033.fdocuments.co/reader033/viewer/2022041909/5e66855a68d5a0751458f774/html5/thumbnails/9.jpg)
EJEMPLO DE ROBOT BÁSICOpackage nombrePaquete;
import robocode.Robot;import robocode.ScannedRobotEvent;
public class MiPrimerRobot extends Robot {public void run() {
while (true) {ahead(100);turnGunRight(360);back(100);turnGunRight(360);
}}
public void onScannedRobot(ScannedRobotEvent e) {fire(1);
}}
![Page 10: INTELIGENCIA EN REDES DE COMUNICACIONES - …DESCRIPCIÓN DE UN ROBOT Robot = Agente software • Detección del entorno Radar • Actuación sobre el entorno Movimientos del tanque](https://reader033.fdocuments.co/reader033/viewer/2022041909/5e66855a68d5a0751458f774/html5/thumbnails/10.jpg)
ROBOTS AVANZADOS
robocode.AdvancedRobot⇒ Extiende a robocode.Robot⇒ Acciones asíncronas
robocode.TeamRobot⇒ Extiende a robocode.AdvancedRobot⇒ Comunicación entre robots
![Page 11: INTELIGENCIA EN REDES DE COMUNICACIONES - …DESCRIPCIÓN DE UN ROBOT Robot = Agente software • Detección del entorno Radar • Actuación sobre el entorno Movimientos del tanque](https://reader033.fdocuments.co/reader033/viewer/2022041909/5e66855a68d5a0751458f774/html5/thumbnails/11.jpg)
NUESTROS ROBOTS
WallsRobot
• Robot básico
• Movimiento pegado a los muros
• Barrido del radar
• Disparo inteligente
• Modo huida
![Page 12: INTELIGENCIA EN REDES DE COMUNICACIONES - …DESCRIPCIÓN DE UN ROBOT Robot = Agente software • Detección del entorno Radar • Actuación sobre el entorno Movimientos del tanque](https://reader033.fdocuments.co/reader033/viewer/2022041909/5e66855a68d5a0751458f774/html5/thumbnails/12.jpg)
NUESTROS ROBOTS
TrackerRobot
• Robot avanzado
• Busca objetivos
• Acercamiento al objetivo
• Disparo predictivo
• Modo retirada
![Page 13: INTELIGENCIA EN REDES DE COMUNICACIONES - …DESCRIPCIÓN DE UN ROBOT Robot = Agente software • Detección del entorno Radar • Actuación sobre el entorno Movimientos del tanque](https://reader033.fdocuments.co/reader033/viewer/2022041909/5e66855a68d5a0751458f774/html5/thumbnails/13.jpg)
![Page 14: INTELIGENCIA EN REDES DE COMUNICACIONES - …DESCRIPCIÓN DE UN ROBOT Robot = Agente software • Detección del entorno Radar • Actuación sobre el entorno Movimientos del tanque](https://reader033.fdocuments.co/reader033/viewer/2022041909/5e66855a68d5a0751458f774/html5/thumbnails/14.jpg)
![Page 15: INTELIGENCIA EN REDES DE COMUNICACIONES - …DESCRIPCIÓN DE UN ROBOT Robot = Agente software • Detección del entorno Radar • Actuación sobre el entorno Movimientos del tanque](https://reader033.fdocuments.co/reader033/viewer/2022041909/5e66855a68d5a0751458f774/html5/thumbnails/15.jpg)
NUESTROS EQUIPOS
WallsTeam
• Robots básicos del tipo WallsRobot
• Movimiento pegado a los muros
• Barrido del radar
• Disparo inteligente
• Modo retirada
• Modificaciones para no disparar a los compañeros
![Page 16: INTELIGENCIA EN REDES DE COMUNICACIONES - …DESCRIPCIÓN DE UN ROBOT Robot = Agente software • Detección del entorno Radar • Actuación sobre el entorno Movimientos del tanque](https://reader033.fdocuments.co/reader033/viewer/2022041909/5e66855a68d5a0751458f774/html5/thumbnails/16.jpg)
NUESTROS EQUIPOSTrackerTeam• Robots avanzados que extienden de RobotTeam
• Líder del tipo TrackerRobot– Busca objetivos– Acercamiento al objetivo– Disparo predictivo– Modo retirada– Comunicación de objetivo
• Compañeros del tipo TeamDroid– Disparo al objetivo– Sin radar, mayor energía
![Page 17: INTELIGENCIA EN REDES DE COMUNICACIONES - …DESCRIPCIÓN DE UN ROBOT Robot = Agente software • Detección del entorno Radar • Actuación sobre el entorno Movimientos del tanque](https://reader033.fdocuments.co/reader033/viewer/2022041909/5e66855a68d5a0751458f774/html5/thumbnails/17.jpg)
![Page 18: INTELIGENCIA EN REDES DE COMUNICACIONES - …DESCRIPCIÓN DE UN ROBOT Robot = Agente software • Detección del entorno Radar • Actuación sobre el entorno Movimientos del tanque](https://reader033.fdocuments.co/reader033/viewer/2022041909/5e66855a68d5a0751458f774/html5/thumbnails/18.jpg)
![Page 19: INTELIGENCIA EN REDES DE COMUNICACIONES - …DESCRIPCIÓN DE UN ROBOT Robot = Agente software • Detección del entorno Radar • Actuación sobre el entorno Movimientos del tanque](https://reader033.fdocuments.co/reader033/viewer/2022041909/5e66855a68d5a0751458f774/html5/thumbnails/19.jpg)
FIN
Realizado por:
Carlos Lapuente IribasJuan Manuel Carrero LealAlberto Heredia García