grupo 11 introducci on hardware ndevnpwner software hardware software software del robot clase...
TRANSCRIPT
![Page 1: Grupo 11 Introducci on Hardware ndevnpwner Software Hardware Software Software del Robot Clase Sendable Clase Actuator Interfaz gr a ca Procesamiento de Im agenes Java Native Interface](https://reader034.vdocuments.site/reader034/viewer/2022051909/5ffdcce37e3e7734f83ce692/html5/thumbnails/1.jpg)
\dev\pwner
Grupo 11
Introduccion
Hardware
Software
Software del Robot
Clase Sendable
Clase Actuator
Interfaz grafica
Procesamiento deImagenes
Java Native Interface
ComunicacionPC/Robot
Problemas
Por hacer
\dev\pwnerPlotter Lego
Felipe Contreras SalinasFelipe Munoz Hernandez
Rene Tapia Pincheira
24 de mayo de 2011
![Page 2: Grupo 11 Introducci on Hardware ndevnpwner Software Hardware Software Software del Robot Clase Sendable Clase Actuator Interfaz gr a ca Procesamiento de Im agenes Java Native Interface](https://reader034.vdocuments.site/reader034/viewer/2022051909/5ffdcce37e3e7734f83ce692/html5/thumbnails/2.jpg)
\dev\pwner
Grupo 11
Introduccion
Hardware
Software
Software del Robot
Clase Sendable
Clase Actuator
Interfaz grafica
Procesamiento deImagenes
Java Native Interface
ComunicacionPC/Robot
Problemas
Por hacer
Objetivos
I Construir un robot que sea capaz de imprimir(dibujar/pintar).
I Escribir software para procesar imagenes.
I Comunicar el robot con el PC para transmitir imagenespre-procesadas.
![Page 3: Grupo 11 Introducci on Hardware ndevnpwner Software Hardware Software Software del Robot Clase Sendable Clase Actuator Interfaz gr a ca Procesamiento de Im agenes Java Native Interface](https://reader034.vdocuments.site/reader034/viewer/2022051909/5ffdcce37e3e7734f83ce692/html5/thumbnails/3.jpg)
\dev\pwner
Grupo 11
Introduccion
Hardware
Software
Software del Robot
Clase Sendable
Clase Actuator
Interfaz grafica
Procesamiento deImagenes
Java Native Interface
ComunicacionPC/Robot
Problemas
Por hacer
Objetivos
I Construir un robot que sea capaz de imprimir(dibujar/pintar).
I Escribir software para procesar imagenes.
I Comunicar el robot con el PC para transmitir imagenespre-procesadas.
![Page 4: Grupo 11 Introducci on Hardware ndevnpwner Software Hardware Software Software del Robot Clase Sendable Clase Actuator Interfaz gr a ca Procesamiento de Im agenes Java Native Interface](https://reader034.vdocuments.site/reader034/viewer/2022051909/5ffdcce37e3e7734f83ce692/html5/thumbnails/4.jpg)
\dev\pwner
Grupo 11
Introduccion
Hardware
Software
Software del Robot
Clase Sendable
Clase Actuator
Interfaz grafica
Procesamiento deImagenes
Java Native Interface
ComunicacionPC/Robot
Problemas
Por hacer
Objetivos
I Construir un robot que sea capaz de imprimir(dibujar/pintar).
I Escribir software para procesar imagenes.
I Comunicar el robot con el PC para transmitir imagenespre-procesadas.
![Page 5: Grupo 11 Introducci on Hardware ndevnpwner Software Hardware Software Software del Robot Clase Sendable Clase Actuator Interfaz gr a ca Procesamiento de Im agenes Java Native Interface](https://reader034.vdocuments.site/reader034/viewer/2022051909/5ffdcce37e3e7734f83ce692/html5/thumbnails/5.jpg)
\dev\pwner
Grupo 11
Introduccion
Hardware
Software
Software del Robot
Clase Sendable
Clase Actuator
Interfaz grafica
Procesamiento deImagenes
Java Native Interface
ComunicacionPC/Robot
Problemas
Por hacer
Objetivos
I Construir un robot que sea capaz de imprimir(dibujar/pintar).
I Escribir software para procesar imagenes.
I Comunicar el robot con el PC para transmitir imagenespre-procesadas.
![Page 6: Grupo 11 Introducci on Hardware ndevnpwner Software Hardware Software Software del Robot Clase Sendable Clase Actuator Interfaz gr a ca Procesamiento de Im agenes Java Native Interface](https://reader034.vdocuments.site/reader034/viewer/2022051909/5ffdcce37e3e7734f83ce692/html5/thumbnails/6.jpg)
\dev\pwner
Grupo 11
Introduccion
Hardware
Software
Software del Robot
Clase Sendable
Clase Actuator
Interfaz grafica
Procesamiento deImagenes
Java Native Interface
ComunicacionPC/Robot
Problemas
Por hacer
La idea basica del robot es la siguiente:
PCBrick
WebcamDisplay Sensor Motor
USB/Bluetooth
![Page 7: Grupo 11 Introducci on Hardware ndevnpwner Software Hardware Software Software del Robot Clase Sendable Clase Actuator Interfaz gr a ca Procesamiento de Im agenes Java Native Interface](https://reader034.vdocuments.site/reader034/viewer/2022051909/5ffdcce37e3e7734f83ce692/html5/thumbnails/7.jpg)
\dev\pwner
Grupo 11
Introduccion
Hardware
Software
Software del Robot
Clase Sendable
Clase Actuator
Interfaz grafica
Procesamiento deImagenes
Java Native Interface
ComunicacionPC/Robot
Problemas
Por hacer
Hardware
![Page 8: Grupo 11 Introducci on Hardware ndevnpwner Software Hardware Software Software del Robot Clase Sendable Clase Actuator Interfaz gr a ca Procesamiento de Im agenes Java Native Interface](https://reader034.vdocuments.site/reader034/viewer/2022051909/5ffdcce37e3e7734f83ce692/html5/thumbnails/8.jpg)
\dev\pwner
Grupo 11
Introduccion
Hardware
Software
Software del Robot
Clase Sendable
Clase Actuator
Interfaz grafica
Procesamiento deImagenes
Java Native Interface
ComunicacionPC/Robot
Problemas
Por hacer
Hardware
![Page 9: Grupo 11 Introducci on Hardware ndevnpwner Software Hardware Software Software del Robot Clase Sendable Clase Actuator Interfaz gr a ca Procesamiento de Im agenes Java Native Interface](https://reader034.vdocuments.site/reader034/viewer/2022051909/5ffdcce37e3e7734f83ce692/html5/thumbnails/9.jpg)
\dev\pwner
Grupo 11
Introduccion
Hardware
Software
Software del Robot
Clase Sendable
Clase Actuator
Interfaz grafica
Procesamiento deImagenes
Java Native Interface
ComunicacionPC/Robot
Problemas
Por hacer
Hardware
![Page 10: Grupo 11 Introducci on Hardware ndevnpwner Software Hardware Software Software del Robot Clase Sendable Clase Actuator Interfaz gr a ca Procesamiento de Im agenes Java Native Interface](https://reader034.vdocuments.site/reader034/viewer/2022051909/5ffdcce37e3e7734f83ce692/html5/thumbnails/10.jpg)
\dev\pwner
Grupo 11
Introduccion
Hardware
Software
Software del Robot
Clase Sendable
Clase Actuator
Interfaz grafica
Procesamiento deImagenes
Java Native Interface
ComunicacionPC/Robot
Problemas
Por hacer
Software
Sí
Datos pordefecto
Interacción conel usuario
Previsualizaciónde impresión
Procesarimagen
Inicia conecciónhacia el robot
Inicia GUI Inicia robot
Envía fin demensajes (EOM)
Espera petición
¿Quedaninstrucciones?
¿RecibeEOM?
Recupera puntosde procesamiento
Construye colade mensajes
Espera conecciónentrante
Ejecuta elmensaje
Pide masmensajes
Envía siguientemensaje
Pide unmensaje
No
NoSí
1
1
![Page 11: Grupo 11 Introducci on Hardware ndevnpwner Software Hardware Software Software del Robot Clase Sendable Clase Actuator Interfaz gr a ca Procesamiento de Im agenes Java Native Interface](https://reader034.vdocuments.site/reader034/viewer/2022051909/5ffdcce37e3e7734f83ce692/html5/thumbnails/11.jpg)
\dev\pwner
Grupo 11
Introduccion
Hardware
Software
Software del Robot
Clase Sendable
Clase Actuator
Interfaz grafica
Procesamiento deImagenes
Java Native Interface
ComunicacionPC/Robot
Problemas
Por hacer
1 /*Clase Sendable*/
2 package communications;
3
4 import java.io.DataInputStream;
5 import java.io.DataOutputStream;
6 import java.io.IOException;
7
8 public abstract class Sendable {
9 public int getType() {}
10 public static Sendable readSendable
11 (DataInputStream dis) throws IOException {}
12 public static void writeSendable
13 (DataOutputStream dos, Sendable sen)
14 throws IOException {}
15 public abstract Object writeTo
16 (DataOutputStream dos) throws IOException;
17 public abstract Object readFrom
18 (DataInputStream dis) throws IOException;
19 }
![Page 12: Grupo 11 Introducci on Hardware ndevnpwner Software Hardware Software Software del Robot Clase Sendable Clase Actuator Interfaz gr a ca Procesamiento de Im agenes Java Native Interface](https://reader034.vdocuments.site/reader034/viewer/2022051909/5ffdcce37e3e7734f83ce692/html5/thumbnails/12.jpg)
\dev\pwner
Grupo 11
Introduccion
Hardware
Software
Software del Robot
Clase Sendable
Clase Actuator
Interfaz grafica
Procesamiento deImagenes
Java Native Interface
ComunicacionPC/Robot
Problemas
Por hacer
1 public int getType() {
2 if (this instanceof Segment)
3 return 0;
4 if (this instanceof Config)
5 return 1;
6 return -1;
7 }
8
9 public static Sendable readSendable
10 (DataInputStream dis) throws IOException {
11 int kind = dis.readInt();
12 if (kind == 0)
13 return new Segment().readFrom(dis);
14 if (kind == 1)
15 return new Config().readFrom(dis);
16 throw new
17 IOException( "read unrecognized sendable" );
18 }
![Page 13: Grupo 11 Introducci on Hardware ndevnpwner Software Hardware Software Software del Robot Clase Sendable Clase Actuator Interfaz gr a ca Procesamiento de Im agenes Java Native Interface](https://reader034.vdocuments.site/reader034/viewer/2022051909/5ffdcce37e3e7734f83ce692/html5/thumbnails/13.jpg)
\dev\pwner
Grupo 11
Introduccion
Hardware
Software
Software del Robot
Clase Sendable
Clase Actuator
Interfaz grafica
Procesamiento deImagenes
Java Native Interface
ComunicacionPC/Robot
Problemas
Por hacer
1 public static void writeSendable
2 (DataOutputStream dos, Sendable sen)
3 throws IOException {
4 int kind = sen.getType();
5 if (kind >= 0) {
6 dos.writeInt(kind);
7 sen.writeTo(dos);
8 dos.flush();
9 } else {
10 throw new
11 IOException( "write unrecognized sendable" );
12 }
13 }
![Page 14: Grupo 11 Introducci on Hardware ndevnpwner Software Hardware Software Software del Robot Clase Sendable Clase Actuator Interfaz gr a ca Procesamiento de Im agenes Java Native Interface](https://reader034.vdocuments.site/reader034/viewer/2022051909/5ffdcce37e3e7734f83ce692/html5/thumbnails/14.jpg)
\dev\pwner
Grupo 11
Introduccion
Hardware
Software
Software del Robot
Clase Sendable
Clase Actuator
Interfaz grafica
Procesamiento deImagenes
Java Native Interface
ComunicacionPC/Robot
Problemas
Por hacer
1 /*Clase Actuator*/
2 package robot;
3
4 import lejos.nxt.*;
5 import communications.*;
6
7 public class Actuator {
8 /*variables NXT*/
9 /*variables de calibracion*/
10 /*variables del programa*/
11
12 public Actuator() {
13 /*aplica las variables de
14 calibracion al robot*/
15 }
![Page 15: Grupo 11 Introducci on Hardware ndevnpwner Software Hardware Software Software del Robot Clase Sendable Clase Actuator Interfaz gr a ca Procesamiento de Im agenes Java Native Interface](https://reader034.vdocuments.site/reader034/viewer/2022051909/5ffdcce37e3e7734f83ce692/html5/thumbnails/15.jpg)
\dev\pwner
Grupo 11
Introduccion
Hardware
Software
Software del Robot
Clase Sendable
Clase Actuator
Interfaz grafica
Procesamiento deImagenes
Java Native Interface
ComunicacionPC/Robot
Problemas
Por hacer
1 public boolean process(Sendable sendable)
2 throws Exception {
3 if (sendable instanceof Segment)
4 return processSegment((Segment) sendable);
5 else if (sendable instanceof Config)
6 return processConfig((Config) sendable);
7
8 throw new
9 Exception( "Sendable not recognized" );
10 }
![Page 16: Grupo 11 Introducci on Hardware ndevnpwner Software Hardware Software Software del Robot Clase Sendable Clase Actuator Interfaz gr a ca Procesamiento de Im agenes Java Native Interface](https://reader034.vdocuments.site/reader034/viewer/2022051909/5ffdcce37e3e7734f83ce692/html5/thumbnails/16.jpg)
\dev\pwner
Grupo 11
Introduccion
Hardware
Software
Software del Robot
Clase Sendable
Clase Actuator
Interfaz grafica
Procesamiento deImagenes
Java Native Interface
ComunicacionPC/Robot
Problemas
Por hacer
1 private boolean processSegment
2 (Segment segment) {
3 setPencil(-1);
4 gotoPosition(segment.getP1());
5 setPencil(+1);
6 gotoPosition(segment.getP2());
7 setPencil(-1);
8 return true;
9 }
![Page 17: Grupo 11 Introducci on Hardware ndevnpwner Software Hardware Software Software del Robot Clase Sendable Clase Actuator Interfaz gr a ca Procesamiento de Im agenes Java Native Interface](https://reader034.vdocuments.site/reader034/viewer/2022051909/5ffdcce37e3e7734f83ce692/html5/thumbnails/17.jpg)
\dev\pwner
Grupo 11
Introduccion
Hardware
Software
Software del Robot
Clase Sendable
Clase Actuator
Interfaz grafica
Procesamiento deImagenes
Java Native Interface
ComunicacionPC/Robot
Problemas
Por hacer
1 private boolean processConfig
2 (Config config) {
3 if (config.calibrate)
4 calibrate();
5 if (config.resetPosition)
6 resetPosition();
7 if (config.waitMaintenanceButton)
8 waitMaintenanceButton();
9 if (config.gotoPosition)
10 gotoPosition(config.position);
11 if (config.kill)
12 return false;
13 return true;
14 }
![Page 18: Grupo 11 Introducci on Hardware ndevnpwner Software Hardware Software Software del Robot Clase Sendable Clase Actuator Interfaz gr a ca Procesamiento de Im agenes Java Native Interface](https://reader034.vdocuments.site/reader034/viewer/2022051909/5ffdcce37e3e7734f83ce692/html5/thumbnails/18.jpg)
\dev\pwner
Grupo 11
Introduccion
Hardware
Software
Software del Robot
Clase Sendable
Clase Actuator
Interfaz grafica
Procesamiento deImagenes
Java Native Interface
ComunicacionPC/Robot
Problemas
Por hacer
1 private void stepX(int dir, int units) {
2 int total = dir * units;
3 int ncurrent = currentX + total;
4 if (ncurrent>=0 && ncurrent<=maxWidth) {
5 currentX = ncurrent;
6 rail.rotate((int)
7 (dir * units * degreesPerStepX * scaleX));
8 }
9 }
10
11 private void stepY(int dir, int units) {
12 int total = dir * units;
13 int ncurrent = currentY + total;
14 if (ncurrent>=0 && ncurrent<=maxHeight) {
15 currentY = ncurrent;
16 chasis.rotate((int)
17 (dir * units * degreesPerStepY * scaleY));
18 }
19 }
![Page 19: Grupo 11 Introducci on Hardware ndevnpwner Software Hardware Software Software del Robot Clase Sendable Clase Actuator Interfaz gr a ca Procesamiento de Im agenes Java Native Interface](https://reader034.vdocuments.site/reader034/viewer/2022051909/5ffdcce37e3e7734f83ce692/html5/thumbnails/19.jpg)
\dev\pwner
Grupo 11
Introduccion
Hardware
Software
Software del Robot
Clase Sendable
Clase Actuator
Interfaz grafica
Procesamiento deImagenes
Java Native Interface
ComunicacionPC/Robot
Problemas
Por hacer
1 private void setPencil(int state) {
2 if (state < 0) {
3 pencil.rotateTo(upDegree);
4 pencil.stop();
5 pencil.lock(100);
6 } else if (state == 0) {
7 pencil.stop();
8 pencil.flt();
9 } else {
10 pencil.rotateTo(downDegree);
11 pencil.stop();
12 }
13 }
14
15 /*El resto de las funciones*/
16 }
![Page 20: Grupo 11 Introducci on Hardware ndevnpwner Software Hardware Software Software del Robot Clase Sendable Clase Actuator Interfaz gr a ca Procesamiento de Im agenes Java Native Interface](https://reader034.vdocuments.site/reader034/viewer/2022051909/5ffdcce37e3e7734f83ce692/html5/thumbnails/20.jpg)
\dev\pwner
Grupo 11
Introduccion
Hardware
Software
Software del Robot
Clase Sendable
Clase Actuator
Interfaz grafica
Procesamiento deImagenes
Java Native Interface
ComunicacionPC/Robot
Problemas
Por hacer
Interfaz grafica
![Page 21: Grupo 11 Introducci on Hardware ndevnpwner Software Hardware Software Software del Robot Clase Sendable Clase Actuator Interfaz gr a ca Procesamiento de Im agenes Java Native Interface](https://reader034.vdocuments.site/reader034/viewer/2022051909/5ffdcce37e3e7734f83ce692/html5/thumbnails/21.jpg)
\dev\pwner
Grupo 11
Introduccion
Hardware
Software
Software del Robot
Clase Sendable
Clase Actuator
Interfaz grafica
Procesamiento deImagenes
Java Native Interface
ComunicacionPC/Robot
Problemas
Por hacer
Procesamiento de imagenes
1 /*Ejemplo OpenCV*/
2 #include <cv.h>
3 #include <highgui.h>
4 using namespace cv;
5 int main(){
6 Mat img = imread( "foto.jpg" ,0), final;
7 GaussianBlur(img,final,Size(5,5),0);
8 Canny(final,final,20,40);
9 bitwise_not(final,final);
10
11 imshow( "imagen" , imagen);
12 imshow( "final" , final);
13 waitKey(0);
14 return 0;
15 }
![Page 22: Grupo 11 Introducci on Hardware ndevnpwner Software Hardware Software Software del Robot Clase Sendable Clase Actuator Interfaz gr a ca Procesamiento de Im agenes Java Native Interface](https://reader034.vdocuments.site/reader034/viewer/2022051909/5ffdcce37e3e7734f83ce692/html5/thumbnails/22.jpg)
\dev\pwner
Grupo 11
Introduccion
Hardware
Software
Software del Robot
Clase Sendable
Clase Actuator
Interfaz grafica
Procesamiento deImagenes
Java Native Interface
ComunicacionPC/Robot
Problemas
Por hacer
![Page 23: Grupo 11 Introducci on Hardware ndevnpwner Software Hardware Software Software del Robot Clase Sendable Clase Actuator Interfaz gr a ca Procesamiento de Im agenes Java Native Interface](https://reader034.vdocuments.site/reader034/viewer/2022051909/5ffdcce37e3e7734f83ce692/html5/thumbnails/23.jpg)
\dev\pwner
Grupo 11
Introduccion
Hardware
Software
Software del Robot
Clase Sendable
Clase Actuator
Interfaz grafica
Procesamiento deImagenes
Java Native Interface
ComunicacionPC/Robot
Problemas
Por hacer
Imagen original Desenfoque (GaussianBlur)
Bordes detectados (Canny) Resultado (bitwise not)
![Page 24: Grupo 11 Introducci on Hardware ndevnpwner Software Hardware Software Software del Robot Clase Sendable Clase Actuator Interfaz gr a ca Procesamiento de Im agenes Java Native Interface](https://reader034.vdocuments.site/reader034/viewer/2022051909/5ffdcce37e3e7734f83ce692/html5/thumbnails/24.jpg)
\dev\pwner
Grupo 11
Introduccion
Hardware
Software
Software del Robot
Clase Sendable
Clase Actuator
Interfaz grafica
Procesamiento deImagenes
Java Native Interface
ComunicacionPC/Robot
Problemas
Por hacer
Java Native Interface
JVM
Implementación nativabar.dll | libbar.so
Clase JavaFoo.class
Código JavaFoo.java
Código C++bar.cpp
![Page 25: Grupo 11 Introducci on Hardware ndevnpwner Software Hardware Software Software del Robot Clase Sendable Clase Actuator Interfaz gr a ca Procesamiento de Im agenes Java Native Interface](https://reader034.vdocuments.site/reader034/viewer/2022051909/5ffdcce37e3e7734f83ce692/html5/thumbnails/25.jpg)
\dev\pwner
Grupo 11
Introduccion
Hardware
Software
Software del Robot
Clase Sendable
Clase Actuator
Interfaz grafica
Procesamiento deImagenes
Java Native Interface
ComunicacionPC/Robot
Problemas
Por hacer
Comunicacion PC/Robot
I La interfaz prepara una lista de Sendable (variosSegment y un Config al final).
I Mientras el robot pida Sendable, el PC envıa elsiguiente elemento de la cola.
I Luego de enviar todos los Segment del dibujo, envıa unConfig.
I La interfaz muestra el progreso actual de la impresion.
I Luego de enviar la imagen completamente (toda lacola) se cierra la conexion.
![Page 26: Grupo 11 Introducci on Hardware ndevnpwner Software Hardware Software Software del Robot Clase Sendable Clase Actuator Interfaz gr a ca Procesamiento de Im agenes Java Native Interface](https://reader034.vdocuments.site/reader034/viewer/2022051909/5ffdcce37e3e7734f83ce692/html5/thumbnails/26.jpg)
\dev\pwner
Grupo 11
Introduccion
Hardware
Software
Software del Robot
Clase Sendable
Clase Actuator
Interfaz grafica
Procesamiento deImagenes
Java Native Interface
ComunicacionPC/Robot
Problemas
Por hacer
Comunicacion PC/Robot
I La interfaz prepara una lista de Sendable (variosSegment y un Config al final).
I Mientras el robot pida Sendable, el PC envıa elsiguiente elemento de la cola.
I Luego de enviar todos los Segment del dibujo, envıa unConfig.
I La interfaz muestra el progreso actual de la impresion.
I Luego de enviar la imagen completamente (toda lacola) se cierra la conexion.
![Page 27: Grupo 11 Introducci on Hardware ndevnpwner Software Hardware Software Software del Robot Clase Sendable Clase Actuator Interfaz gr a ca Procesamiento de Im agenes Java Native Interface](https://reader034.vdocuments.site/reader034/viewer/2022051909/5ffdcce37e3e7734f83ce692/html5/thumbnails/27.jpg)
\dev\pwner
Grupo 11
Introduccion
Hardware
Software
Software del Robot
Clase Sendable
Clase Actuator
Interfaz grafica
Procesamiento deImagenes
Java Native Interface
ComunicacionPC/Robot
Problemas
Por hacer
Comunicacion PC/Robot
I La interfaz prepara una lista de Sendable (variosSegment y un Config al final).
I Mientras el robot pida Sendable, el PC envıa elsiguiente elemento de la cola.
I Luego de enviar todos los Segment del dibujo, envıa unConfig.
I La interfaz muestra el progreso actual de la impresion.
I Luego de enviar la imagen completamente (toda lacola) se cierra la conexion.
![Page 28: Grupo 11 Introducci on Hardware ndevnpwner Software Hardware Software Software del Robot Clase Sendable Clase Actuator Interfaz gr a ca Procesamiento de Im agenes Java Native Interface](https://reader034.vdocuments.site/reader034/viewer/2022051909/5ffdcce37e3e7734f83ce692/html5/thumbnails/28.jpg)
\dev\pwner
Grupo 11
Introduccion
Hardware
Software
Software del Robot
Clase Sendable
Clase Actuator
Interfaz grafica
Procesamiento deImagenes
Java Native Interface
ComunicacionPC/Robot
Problemas
Por hacer
Comunicacion PC/Robot
I La interfaz prepara una lista de Sendable (variosSegment y un Config al final).
I Mientras el robot pida Sendable, el PC envıa elsiguiente elemento de la cola.
I Luego de enviar todos los Segment del dibujo, envıa unConfig.
I La interfaz muestra el progreso actual de la impresion.
I Luego de enviar la imagen completamente (toda lacola) se cierra la conexion.
![Page 29: Grupo 11 Introducci on Hardware ndevnpwner Software Hardware Software Software del Robot Clase Sendable Clase Actuator Interfaz gr a ca Procesamiento de Im agenes Java Native Interface](https://reader034.vdocuments.site/reader034/viewer/2022051909/5ffdcce37e3e7734f83ce692/html5/thumbnails/29.jpg)
\dev\pwner
Grupo 11
Introduccion
Hardware
Software
Software del Robot
Clase Sendable
Clase Actuator
Interfaz grafica
Procesamiento deImagenes
Java Native Interface
ComunicacionPC/Robot
Problemas
Por hacer
Comunicacion PC/Robot
I La interfaz prepara una lista de Sendable (variosSegment y un Config al final).
I Mientras el robot pida Sendable, el PC envıa elsiguiente elemento de la cola.
I Luego de enviar todos los Segment del dibujo, envıa unConfig.
I La interfaz muestra el progreso actual de la impresion.
I Luego de enviar la imagen completamente (toda lacola) se cierra la conexion.
![Page 30: Grupo 11 Introducci on Hardware ndevnpwner Software Hardware Software Software del Robot Clase Sendable Clase Actuator Interfaz gr a ca Procesamiento de Im agenes Java Native Interface](https://reader034.vdocuments.site/reader034/viewer/2022051909/5ffdcce37e3e7734f83ce692/html5/thumbnails/30.jpg)
\dev\pwner
Grupo 11
Introduccion
Hardware
Software
Software del Robot
Clase Sendable
Clase Actuator
Interfaz grafica
Procesamiento deImagenes
Java Native Interface
ComunicacionPC/Robot
Problemas
Por hacer
Comunicacion PC/Robot
I La interfaz prepara una lista de Sendable (variosSegment y un Config al final).
I Mientras el robot pida Sendable, el PC envıa elsiguiente elemento de la cola.
I Luego de enviar todos los Segment del dibujo, envıa unConfig.
I La interfaz muestra el progreso actual de la impresion.
I Luego de enviar la imagen completamente (toda lacola) se cierra la conexion.
![Page 31: Grupo 11 Introducci on Hardware ndevnpwner Software Hardware Software Software del Robot Clase Sendable Clase Actuator Interfaz gr a ca Procesamiento de Im agenes Java Native Interface](https://reader034.vdocuments.site/reader034/viewer/2022051909/5ffdcce37e3e7734f83ce692/html5/thumbnails/31.jpg)
\dev\pwner
Grupo 11
Introduccion
Hardware
Software
Software del Robot
Clase Sendable
Clase Actuator
Interfaz grafica
Procesamiento deImagenes
Java Native Interface
ComunicacionPC/Robot
Problemas
Por hacer
Problemas
I El agarre del lapiz no es muy firme.
I A veces se desarma la estructura.
![Page 32: Grupo 11 Introducci on Hardware ndevnpwner Software Hardware Software Software del Robot Clase Sendable Clase Actuator Interfaz gr a ca Procesamiento de Im agenes Java Native Interface](https://reader034.vdocuments.site/reader034/viewer/2022051909/5ffdcce37e3e7734f83ce692/html5/thumbnails/32.jpg)
\dev\pwner
Grupo 11
Introduccion
Hardware
Software
Software del Robot
Clase Sendable
Clase Actuator
Interfaz grafica
Procesamiento deImagenes
Java Native Interface
ComunicacionPC/Robot
Problemas
Por hacer
Problemas
I El agarre del lapiz no es muy firme.
I A veces se desarma la estructura.
![Page 33: Grupo 11 Introducci on Hardware ndevnpwner Software Hardware Software Software del Robot Clase Sendable Clase Actuator Interfaz gr a ca Procesamiento de Im agenes Java Native Interface](https://reader034.vdocuments.site/reader034/viewer/2022051909/5ffdcce37e3e7734f83ce692/html5/thumbnails/33.jpg)
\dev\pwner
Grupo 11
Introduccion
Hardware
Software
Software del Robot
Clase Sendable
Clase Actuator
Interfaz grafica
Procesamiento deImagenes
Java Native Interface
ComunicacionPC/Robot
Problemas
Por hacer
Problemas
I El agarre del lapiz no es muy firme.
I A veces se desarma la estructura.
![Page 34: Grupo 11 Introducci on Hardware ndevnpwner Software Hardware Software Software del Robot Clase Sendable Clase Actuator Interfaz gr a ca Procesamiento de Im agenes Java Native Interface](https://reader034.vdocuments.site/reader034/viewer/2022051909/5ffdcce37e3e7734f83ce692/html5/thumbnails/34.jpg)
\dev\pwner
Grupo 11
Introduccion
Hardware
Software
Software del Robot
Clase Sendable
Clase Actuator
Interfaz grafica
Procesamiento deImagenes
Java Native Interface
ComunicacionPC/Robot
Problemas
Por hacer
Por hacer
I Ajustar los parametros para que el robot dibuje deverdad.
I Cambiar el mecanismo de agarre del lapiz.
I Reformular el algoritmo para obtener lıneas a partir dela imagen original.
I Hacer la estructura del robot mas firme.
![Page 35: Grupo 11 Introducci on Hardware ndevnpwner Software Hardware Software Software del Robot Clase Sendable Clase Actuator Interfaz gr a ca Procesamiento de Im agenes Java Native Interface](https://reader034.vdocuments.site/reader034/viewer/2022051909/5ffdcce37e3e7734f83ce692/html5/thumbnails/35.jpg)
\dev\pwner
Grupo 11
Introduccion
Hardware
Software
Software del Robot
Clase Sendable
Clase Actuator
Interfaz grafica
Procesamiento deImagenes
Java Native Interface
ComunicacionPC/Robot
Problemas
Por hacer
Por hacer
I Ajustar los parametros para que el robot dibuje deverdad.
I Cambiar el mecanismo de agarre del lapiz.
I Reformular el algoritmo para obtener lıneas a partir dela imagen original.
I Hacer la estructura del robot mas firme.
![Page 36: Grupo 11 Introducci on Hardware ndevnpwner Software Hardware Software Software del Robot Clase Sendable Clase Actuator Interfaz gr a ca Procesamiento de Im agenes Java Native Interface](https://reader034.vdocuments.site/reader034/viewer/2022051909/5ffdcce37e3e7734f83ce692/html5/thumbnails/36.jpg)
\dev\pwner
Grupo 11
Introduccion
Hardware
Software
Software del Robot
Clase Sendable
Clase Actuator
Interfaz grafica
Procesamiento deImagenes
Java Native Interface
ComunicacionPC/Robot
Problemas
Por hacer
Por hacer
I Ajustar los parametros para que el robot dibuje deverdad.
I Cambiar el mecanismo de agarre del lapiz.
I Reformular el algoritmo para obtener lıneas a partir dela imagen original.
I Hacer la estructura del robot mas firme.
![Page 37: Grupo 11 Introducci on Hardware ndevnpwner Software Hardware Software Software del Robot Clase Sendable Clase Actuator Interfaz gr a ca Procesamiento de Im agenes Java Native Interface](https://reader034.vdocuments.site/reader034/viewer/2022051909/5ffdcce37e3e7734f83ce692/html5/thumbnails/37.jpg)
\dev\pwner
Grupo 11
Introduccion
Hardware
Software
Software del Robot
Clase Sendable
Clase Actuator
Interfaz grafica
Procesamiento deImagenes
Java Native Interface
ComunicacionPC/Robot
Problemas
Por hacer
Por hacer
I Ajustar los parametros para que el robot dibuje deverdad.
I Cambiar el mecanismo de agarre del lapiz.
I Reformular el algoritmo para obtener lıneas a partir dela imagen original.
I Hacer la estructura del robot mas firme.
![Page 38: Grupo 11 Introducci on Hardware ndevnpwner Software Hardware Software Software del Robot Clase Sendable Clase Actuator Interfaz gr a ca Procesamiento de Im agenes Java Native Interface](https://reader034.vdocuments.site/reader034/viewer/2022051909/5ffdcce37e3e7734f83ce692/html5/thumbnails/38.jpg)
\dev\pwner
Grupo 11
Introduccion
Hardware
Software
Software del Robot
Clase Sendable
Clase Actuator
Interfaz grafica
Procesamiento deImagenes
Java Native Interface
ComunicacionPC/Robot
Problemas
Por hacer
Por hacer
I Ajustar los parametros para que el robot dibuje deverdad.
I Cambiar el mecanismo de agarre del lapiz.
I Reformular el algoritmo para obtener lıneas a partir dela imagen original.
I Hacer la estructura del robot mas firme.