Legacy Forum: Preserving Nearly 20 Years of Community History - A Time Capsule of Discussions, Memories, and Shared Experiences.

AI

Hitec robotics including ROBONOVA humanoid, HSR-8498HB servos, MR C-3024 Controllers and RoboBasic
64 postsPage 5 of 51, 2, 3, 4, 5
64 postsPage 5 of 51, 2, 3, 4, 5

Post by Humanoido » Sat Jun 02, 2007 4:39 am

Post by Humanoido
Sat Jun 02, 2007 4:39 am

AI for RN
What is the Most Simple AI?

I've obtained the powerhouse BS2px microcontroller and just now going over the programming and ports. I got a cable for programming from the local IT department, and best of all it's usb to usb so it can work with any of the newer NBs.

Anyone care to suggest some very simple AI applications that can be developed in my lifetime? :-)

Well, I'm using the stock RN-1 so that means using motion, and sound. Plus I think some add-on vision would be possible. But how would you make simple vision work with AI? Any ideas? I think I can get RN to react to faces, and moving objects. Also some IR LEDs and receiver is quite common and easy to wire up for vision, plus some photo cells that measure light and changes in light could be very useful.

I think this is the question - what is the most simple AI?

humanoido
AI for RN
What is the Most Simple AI?

I've obtained the powerhouse BS2px microcontroller and just now going over the programming and ports. I got a cable for programming from the local IT department, and best of all it's usb to usb so it can work with any of the newer NBs.

Anyone care to suggest some very simple AI applications that can be developed in my lifetime? :-)

Well, I'm using the stock RN-1 so that means using motion, and sound. Plus I think some add-on vision would be possible. But how would you make simple vision work with AI? Any ideas? I think I can get RN to react to faces, and moving objects. Also some IR LEDs and receiver is quite common and easy to wire up for vision, plus some photo cells that measure light and changes in light could be very useful.

I think this is the question - what is the most simple AI?

humanoido
Humanoido
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 574
Joined: Tue Dec 05, 2006 1:00 am
Location: Deep in the Heart of Asia

Post by DanAlbert » Sat Jun 02, 2007 6:45 am

Post by DanAlbert
Sat Jun 02, 2007 6:45 am

Hi guys,
Sorry for the late entry on this thread. I've been off-line for a few months working for a living.

With robogames coming up I have been working on my replacement OS for the RN. Here's what I have so far:

I've named it MOOSE (My Own Operating System Executive)

I have fixed the FreeLoader.exe program..It can now upload MOOSE or any ATmega128 hex file to RN and it works!..Duh.. Why didn't I check my messages from i-bot about the botched XOR code 4 months ago.

MOOSE has I2C support. It can read and write to the external EEPROM chip.

It can play sounds in the background. (An ISR routine, not a blocked call)

The servo generating ISR is very very fast. Also ISR based. Lots of time to do other stuff.

Freeloader can load Positions and Sequences of Positions into the EEPROM.

The Positions are read by FreeLoader from a text file. They are in the same format as RoboBasic Moves except they are preceded with an up to 10 character name for the move and a speed byte from 0 to 0xF. 0xF being the fastest. There are a lot of great moves out there and I wanted to stay compatible.

IE.
PlCDcd,0,85,71,152,91,112,16,100,40,80,0,254,254,100,40,80,254,254,254,112,76,145,93,92,60

Sequences are lists of positions, variable in length, and can be looped (as in walking) and crossed into other sequences when a mutual move exists in both sequences. IE if WALK and TURNRIGHT both use Position 4 then you can transition from one sequence to the other dynamically without having to finish the WALK sequence.

I have been putting in some RoboBasic command emulation. I currently only support F0, F2 and AF. These are used by RoboBasic to download the RoboBasic OS if you don't like MOOSE.

Both USART ports actual work so strings of commands can be sent.

I have loaded two different RoboNovas and had them walk. I then converted them back to RoboBasic. No harm, no foul.

What's left to do;

LOTS

There is no trim function for the servos.
There is no servo position read.
PTP moves are by default but I may allow non-PTP moves at some point.
A larger RoboBasic command set would be nice to be able to use the existing programs to generate moves.
An I2C API would be nice for those that want to add external devices.
Analog/Digital converters and Gyro/Accelerometer/IMU support is important.

AND OF COURSE THE REASON FOR BEING IN THIS THREAD!

Some sort of AI for autonomous operations.

Here's the nice part..There is plenty of space left for code and tons of EEPROM available.

My push right now is to get the RN soccerbots ready for RobOlympics in two weeks. (Nothing like a deadline!)

Then I am taking requests for features and I will be releasing MOOSE to the public.

Please think about how YOU would like to see things done.
I am always open to suggestions.

Thankx,,,,
Dan
Hi guys,
Sorry for the late entry on this thread. I've been off-line for a few months working for a living.

With robogames coming up I have been working on my replacement OS for the RN. Here's what I have so far:

I've named it MOOSE (My Own Operating System Executive)

I have fixed the FreeLoader.exe program..It can now upload MOOSE or any ATmega128 hex file to RN and it works!..Duh.. Why didn't I check my messages from i-bot about the botched XOR code 4 months ago.

MOOSE has I2C support. It can read and write to the external EEPROM chip.

It can play sounds in the background. (An ISR routine, not a blocked call)

The servo generating ISR is very very fast. Also ISR based. Lots of time to do other stuff.

Freeloader can load Positions and Sequences of Positions into the EEPROM.

The Positions are read by FreeLoader from a text file. They are in the same format as RoboBasic Moves except they are preceded with an up to 10 character name for the move and a speed byte from 0 to 0xF. 0xF being the fastest. There are a lot of great moves out there and I wanted to stay compatible.

IE.
PlCDcd,0,85,71,152,91,112,16,100,40,80,0,254,254,100,40,80,254,254,254,112,76,145,93,92,60

Sequences are lists of positions, variable in length, and can be looped (as in walking) and crossed into other sequences when a mutual move exists in both sequences. IE if WALK and TURNRIGHT both use Position 4 then you can transition from one sequence to the other dynamically without having to finish the WALK sequence.

I have been putting in some RoboBasic command emulation. I currently only support F0, F2 and AF. These are used by RoboBasic to download the RoboBasic OS if you don't like MOOSE.

Both USART ports actual work so strings of commands can be sent.

I have loaded two different RoboNovas and had them walk. I then converted them back to RoboBasic. No harm, no foul.

What's left to do;

LOTS

There is no trim function for the servos.
There is no servo position read.
PTP moves are by default but I may allow non-PTP moves at some point.
A larger RoboBasic command set would be nice to be able to use the existing programs to generate moves.
An I2C API would be nice for those that want to add external devices.
Analog/Digital converters and Gyro/Accelerometer/IMU support is important.

AND OF COURSE THE REASON FOR BEING IN THIS THREAD!

Some sort of AI for autonomous operations.

Here's the nice part..There is plenty of space left for code and tons of EEPROM available.

My push right now is to get the RN soccerbots ready for RobOlympics in two weeks. (Nothing like a deadline!)

Then I am taking requests for features and I will be releasing MOOSE to the public.

Please think about how YOU would like to see things done.
I am always open to suggestions.

Thankx,,,,
Dan
DanAlbert
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 70
Joined: Fri Feb 04, 2005 1:00 am

Post by Humanoido » Sun Jun 03, 2007 4:41 am

Post by Humanoido
Sun Jun 03, 2007 4:41 am

Dan, that's remarkable what you've accomplished so far! Your MOOSE operating system sounds pretty cool! Especially that you're taking suggestions for an AI section. Thanks for posting in this thread. I think to answer the question about AI and finding some simple applications of real AI, we probably have to look at some of the definitions.

This one is very interesting.
http://www.dobrev.com/AI/definition.html
But that was beyond my means.

So I found this, and quote it here.
artificial intelligence
The branch of computer science concerned with making computers behave like humans. The term was coined in 1956 by John McCarthy at the Massachusetts Institute of Technology. Artificial intelligence includes
# games playing: programming computers to play games such as chess and checkers
# expert systems : programming computers to make decisions in real-life situations (for example, some expert systems help doctors diagnose diseases based on symptoms)
# natural language : programming computers to understand natural human languages
# neural networks : Systems that simulate intelligence by attempting to reproduce the types of physical connections that occur in animal brains
# robotics : programming computers to see and hear and react to other sensory stimuli

Currently, no computers exhibit full artificial intelligence (that is, are able to simulate human behavior). The greatest advances have occurred in the field of games playing. The best computer chess programs are now capable of beating humans. In May, 1997, an IBM super-computer called Deep Blue defeated world chess champion Gary Kasparov in a chess match.

http://www.webopedia.com/TERM/A/artific ... gence.html

humanoido
Dan, that's remarkable what you've accomplished so far! Your MOOSE operating system sounds pretty cool! Especially that you're taking suggestions for an AI section. Thanks for posting in this thread. I think to answer the question about AI and finding some simple applications of real AI, we probably have to look at some of the definitions.

This one is very interesting.
http://www.dobrev.com/AI/definition.html
But that was beyond my means.

So I found this, and quote it here.
artificial intelligence
The branch of computer science concerned with making computers behave like humans. The term was coined in 1956 by John McCarthy at the Massachusetts Institute of Technology. Artificial intelligence includes
# games playing: programming computers to play games such as chess and checkers
# expert systems : programming computers to make decisions in real-life situations (for example, some expert systems help doctors diagnose diseases based on symptoms)
# natural language : programming computers to understand natural human languages
# neural networks : Systems that simulate intelligence by attempting to reproduce the types of physical connections that occur in animal brains
# robotics : programming computers to see and hear and react to other sensory stimuli

Currently, no computers exhibit full artificial intelligence (that is, are able to simulate human behavior). The greatest advances have occurred in the field of games playing. The best computer chess programs are now capable of beating humans. In May, 1997, an IBM super-computer called Deep Blue defeated world chess champion Gary Kasparov in a chess match.

http://www.webopedia.com/TERM/A/artific ... gence.html

humanoido
Humanoido
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 574
Joined: Tue Dec 05, 2006 1:00 am
Location: Deep in the Heart of Asia

Post by NovaOne » Wed Mar 12, 2008 11:12 pm

Post by NovaOne
Wed Mar 12, 2008 11:12 pm

I'm behind the times again.

Excellent work Dan !!! :D

I've just read your article in December issue of Servo. Its Fascinating, although I don't understand fully yet :?

Any more progress news? I am especially interested in the work you are doing with the 5 axis IMU (sparkfun S-SEN-00741 ?) you mentioned.
I'm behind the times again.

Excellent work Dan !!! :D

I've just read your article in December issue of Servo. Its Fascinating, although I don't understand fully yet :?

Any more progress news? I am especially interested in the work you are doing with the 5 axis IMU (sparkfun S-SEN-00741 ?) you mentioned.
NovaOne
Savvy Roboteer
Savvy Roboteer
Posts: 405
Joined: Thu Jul 05, 2007 7:30 am

Previous
64 postsPage 5 of 51, 2, 3, 4, 5
64 postsPage 5 of 51, 2, 3, 4, 5