Đang chuẩn bị liên kết để tải về tài liệu:
programming LEGO MINDSTORMS phần 5

Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ

Kiểm soát của một RCX có thể không chỉ được kích hoạt từ một ứng dụng độc lập mà còn qua Internet bằng cách sử dụng một trình duyệt Web hỗ trợ Java, cung cấp giao diện tương tự như một trong những sẽ nhận được với các ứng dụng độc lập. Sử dụng RCXSocketPort, người ta có thể kiểm soát một số RCXs qua mạng | 166 Chapter 4 Communicating with the RCXJava API Beyond Serial Port Communications The RCXApplet Example 0 Control of an RCX can not only be enabled from a stand-alone application but also over the Internet using a Java-enabled Web browser providing the same GUI as one would get with the stand-alone application. 0 Using RCXSocketPort one could control a number of RCXs over a network and the network via a proxy server. 0 Use of the direct control API methods gives you the capability of creating complex frameworks similar to the visual-programming interface that comes with the LEGO MINDSTORMS kit. Direct Control Programming for the RCX Using Java 0 With direct control programming we are using the RCX s brain to pass commands from a proxy brain residing on a PC. There are significant advantages to programming tasks to run on the PC s resources rather than running tasks inside the RCX. 0 Tasks can run on the PC in near real time there is a noticeable time lag . 0 We can add Artificial Intelligence AI capabilities when programming our RCX robots. Neural network programming allows an RCX to learn the right response to stimuli all on its own. www.syngress.com Communicating with the RCXJava API Chapter 4 167 Frequently Asked Questions The following Frequently Asked Questions answered by the authors of this book are designed to both measure your understanding of the concepts presented in this chapter and to assist you with real-life implementation of these concepts. To have your questions about this chapter answered by the author browse to www.syngress.com solutions and click on the Ask the Author form. Q What versions of the Java Runtime Environment does the RCXJava API support Specifically is Microsoft s JVM supported A All versions ofJava 1.1 through 1.4 are supported. Microsoft s Java VM is also supported as long as one doesn t use Java Swing for the GUI.You may also want to make sure you re using the latest version that supports Sun s JNI interface. Q How can I add to