Society of Robots - Robot Forum

Software => Software => Topic started by: Kitsune on July 02, 2008, 05:25:52 AM

Title: AI in java
Post by: Kitsune on July 02, 2008, 05:25:52 AM
Is it possible to write an AI program in Java
Title: Re: AI in java
Post by: ahab on July 02, 2008, 11:48:45 AM
AI? Sure. It is possible to create an AI with most high level languages. The AI class at my university is taught in Java. Most robots are programmed in C, so you may want to keep that in mind.

Interact directly with hardware? Woo... I have no idea. Java is not my thing anymore.
Title: Re: AI in java
Post by: Webbot on July 02, 2008, 06:47:20 PM
Its perfectly possible to use Java - goggle for the Javelin. However the significant downside with Java is that it needs a Java Runtime (JRE) that interprets your program when it executes. This means that your board also needs to have memory to store this rutime component which may require 8k or so on top of the size of your own program.

As for AI then a program is a program - whether its intelligent or not is in the eye of the beholder
Title: Re: AI in java
Post by: Kitsune on July 02, 2008, 08:30:36 PM
Its perfectly possible to use Java - goggle for the Javelin. However the significant downside with Java is that it needs a Java Runtime (JRE) that interprets your program when it executes. This means that your board also needs to have memory to store this rutime component which may require 8k or so on top of the size of your own program.

As for AI then a program is a program - whether its intelligent or not is in the eye of the beholder

I will be building my own motherboard so I can add as much ram as I want and I have a 2 terabite hard drive
Title: Re: AI in java
Post by: Cotowar on July 08, 2008, 09:52:56 PM
Hey, I have used Java significantly in school, along with Visual BASIC, FORTRAN, and a little C++. Of the four, I would have chosen Java as well for programming my robot, and as for building your own MoBo, you can do that if you want, but you might consider using something like this here.

http://www.logicsupply.com/categories/mainboards

I was considering using this very same board, or perhaps a Nano- ITX form factor. You can get a wireless card adaprter specifically for this board, meaning you can theoretically make your robot utilize the internet or at least a network for operation. The possibilities are endless.

Oh, and you might consider a SSD as opposed to a HDD simply because seek times are faster and the form factor is more low profile. Up to you though.

Cheers, and good luck mate.
Title: Re: AI in java
Post by: arixrobotics on July 12, 2008, 07:27:45 PM
This book migth interest you:
http://www.amazon.com/Hands-AI-Java-Gaming-Robots/dp/0071424962
Title: Re: AI in java
Post by: lemontree on July 18, 2008, 03:21:01 AM
Java is great for doing prototypes and testing algorithms. You also get a few nice things like hash tables.
The real trouble is when you want do any sort of input or output with your code.  Even doing a simple chart is a pain.
I often use FreeBasic because at least I can do a plot or chart or even use OpenGL very easily and get keyboard input.
With AI you would like to be able to work with video and sound data easily but that still seems to be a dream. 
Title: Re: AI in java
Post by: syd919 on August 05, 2008, 02:21:02 AM
guys i'm a first year student in java can u pls post sum cool ideas on AI progamming