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

BASIC intepreter for Robobuilder

Korean company maker of Robot kits and servos designed for of articulated robots. Re-incarnation of Megarobotics.
36 postsPage 2 of 31, 2, 3
36 postsPage 2 of 31, 2, 3

Post by l3v3rz » Wed Nov 30, 2011 4:55 pm

Post by l3v3rz
Wed Nov 30, 2011 4:55 pm

Nice to see some one using it and sorry you're having problems.

I get runtime error 5 in line 30 when I try to run this, Most of the examples work, but I get runtime error 5 on this and a few other examples. Mirror for one, suggestions ?


I see you are using basicclient.exe - if you're also using latest firmware (and you should because it's much more stable) then unfortunately they're not compatible - I've modified how IF statement are tokenised and not updated basiccleint. You should also see that list 'l' does work correctly either.

You either need to type the program in directly or use the new java based JBasic. The idea of going to java was to make it portable between different OS - should work on windows, mac or linux.
Nice to see some one using it and sorry you're having problems.

I get runtime error 5 in line 30 when I try to run this, Most of the examples work, but I get runtime error 5 on this and a few other examples. Mirror for one, suggestions ?


I see you are using basicclient.exe - if you're also using latest firmware (and you should because it's much more stable) then unfortunately they're not compatible - I've modified how IF statement are tokenised and not updated basiccleint. You should also see that list 'l' does work correctly either.

You either need to type the program in directly or use the new java based JBasic. The idea of going to java was to make it portable between different OS - should work on windows, mac or linux.
l3v3rz
Savvy Roboteer
Savvy Roboteer
Posts: 473
Joined: Fri Jul 18, 2008 2:34 pm

Post by ron » Wed Nov 30, 2011 10:30 pm

Post by ron
Wed Nov 30, 2011 10:30 pm

I really love the work you have done here. My basic is a little rusty. I think I have Jbasic running correcctly this is what I see, however it did not seem to respond to command input, If I click the go button I got some output. I tried a simple program in the top window something like
10 print "hello"
20 goto 10

How do I execute ? What do i need to do to take your code examples and make them work on the bot? Load them to top window and hit download button ? I dont see any area to configure com port etc... Sorry for all the noobish questions, like I said last time I played with basic was in my trs-80 COCO days....
Image
I really love the work you have done here. My basic is a little rusty. I think I have Jbasic running correcctly this is what I see, however it did not seem to respond to command input, If I click the go button I got some output. I tried a simple program in the top window something like
10 print "hello"
20 goto 10

How do I execute ? What do i need to do to take your code examples and make them work on the bot? Load them to top window and hit download button ? I dont see any area to configure com port etc... Sorry for all the noobish questions, like I said last time I played with basic was in my trs-80 COCO days....
Image
ron
Robot Builder
Robot Builder
Posts: 11
Joined: Fri Oct 14, 2011 5:39 am

Post by l3v3rz » Thu Dec 01, 2011 10:17 am

Post by l3v3rz
Thu Dec 01, 2011 10:17 am

Unfortunately you're right - this version only supports /dev/ttyUSB0 - I'll update it should have a new version by the weekend.

You can just use the direct interface by using hyperterm or similar such as putty - for that full trs80 experience.

UPDATE: see below Ive fixed BasicIDE as that was quicker

cheers
Unfortunately you're right - this version only supports /dev/ttyUSB0 - I'll update it should have a new version by the weekend.

You can just use the direct interface by using hyperterm or similar such as putty - for that full trs80 experience.

UPDATE: see below Ive fixed BasicIDE as that was quicker

cheers
Last edited by l3v3rz on Thu Dec 01, 2011 2:19 pm, edited 1 time in total.
l3v3rz
Savvy Roboteer
Savvy Roboteer
Posts: 473
Joined: Fri Jul 18, 2008 2:34 pm

Post by l3v3rz » Thu Dec 01, 2011 2:18 pm

Post by l3v3rz
Thu Dec 01, 2011 2:18 pm

I've loaded an updated version of BasicIDE.exe - this should fix the problems you're having with the earlier version

http://code.google.com/p/robobuilderlib ... sicIDE.exe
I've loaded an updated version of BasicIDE.exe - this should fix the problems you're having with the earlier version

http://code.google.com/p/robobuilderlib ... sicIDE.exe
l3v3rz
Savvy Roboteer
Savvy Roboteer
Posts: 473
Joined: Fri Jul 18, 2008 2:34 pm

Post by ron » Thu Dec 01, 2011 11:09 pm

Post by ron
Thu Dec 01, 2011 11:09 pm

excelent !
I actually got the autobalance working lastnight, I jsut did some cut and pasting. Just downloaded the new client, will mess with it after dinner. I also donated to the project. Great work. Do you have any other code examples floating around you would be willing to share ? Thanks again.
-Ron
excelent !
I actually got the autobalance working lastnight, I jsut did some cut and pasting. Just downloaded the new client, will mess with it after dinner. I also donated to the project. Great work. Do you have any other code examples floating around you would be willing to share ? Thanks again.
-Ron
ron
Robot Builder
Robot Builder
Posts: 11
Joined: Fri Oct 14, 2011 5:39 am

Post by l3v3rz » Sat Dec 03, 2011 1:29 pm

Post by l3v3rz
Sat Dec 03, 2011 1:29 pm

Thanks Ron !

There are more examples (if you hunt the code src tree you'll find them) look under trunk/basic. They're not all complete and some are just me experimenting ideas out, so treat with caution.

I'm writing a big update to the manual at the moment as well, this will cover a lot of the new features around neural networks and genetic algorithms and expand on some of the examples. It should be finished in a week or so - and as a donor you'll get first look.

cheers
Thanks Ron !

There are more examples (if you hunt the code src tree you'll find them) look under trunk/basic. They're not all complete and some are just me experimenting ideas out, so treat with caution.

I'm writing a big update to the manual at the moment as well, this will cover a lot of the new features around neural networks and genetic algorithms and expand on some of the examples. It should be finished in a week or so - and as a donor you'll get first look.

cheers
l3v3rz
Savvy Roboteer
Savvy Roboteer
Posts: 473
Joined: Fri Jul 18, 2008 2:34 pm

Post by ron » Sat Dec 03, 2011 8:31 pm

Post by ron
Sat Dec 03, 2011 8:31 pm

Thats great news ! I will do some programming/hacking on the bot sunday night (work all day on sat) everything is working great. I have almost all of the project files and docs downloaded. Im not sure if this is helpful but , I have 2 websites if you ever want to use some of my space on one of the sites to mirror the files i can do that. One of the things I was going to do is I wanted to combine the auto balancing program with the continuous walking, I was thinking when he goes from walking to just standing it runs the auto balance subroutine. Might be good for fighting like when the other bot hits his arms go forward to balance him and keep him from falling. Just a thought. Thanks again for this sweet project, I have not had this much fun programing in years and like I said it bring back my coco days, and BTW i still have all that trs80 stuff in a room in my cellar in perfect working order. Cheers !
Thats great news ! I will do some programming/hacking on the bot sunday night (work all day on sat) everything is working great. I have almost all of the project files and docs downloaded. Im not sure if this is helpful but , I have 2 websites if you ever want to use some of my space on one of the sites to mirror the files i can do that. One of the things I was going to do is I wanted to combine the auto balancing program with the continuous walking, I was thinking when he goes from walking to just standing it runs the auto balance subroutine. Might be good for fighting like when the other bot hits his arms go forward to balance him and keep him from falling. Just a thought. Thanks again for this sweet project, I have not had this much fun programing in years and like I said it bring back my coco days, and BTW i still have all that trs80 stuff in a room in my cellar in perfect working order. Cheers !
ron
Robot Builder
Robot Builder
Posts: 11
Joined: Fri Oct 14, 2011 5:39 am

Post by ron » Sat Dec 03, 2011 10:31 pm

Post by ron
Sat Dec 03, 2011 10:31 pm

I had a little time to play around with the updated basicIDE, and discovered 2 things, (robobuilder is on com7) When I go to conenct it says it can not open com7, So i loaded some code anyway and compiled it, clicked download and it worked fine, dispite the cannot connect error.
I had a little time to play around with the updated basicIDE, and discovered 2 things, (robobuilder is on com7) When I go to conenct it says it can not open com7, So i loaded some code anyway and compiled it, clicked download and it worked fine, dispite the cannot connect error.
ron
Robot Builder
Robot Builder
Posts: 11
Joined: Fri Oct 14, 2011 5:39 am

Post by l3v3rz » Sun Dec 04, 2011 6:34 pm

Post by l3v3rz
Sun Dec 04, 2011 6:34 pm

I've fixed the com port selection and uploaded the new version v389. It was by default trying my com port first :) Added a pick selection as well if you have multiple ports

I'm glad you find it fun - that's what I'm trying to achieve - to make programming robobuilder as easy as possible - rather like in the early days of the PC programming on Acorn or ZX80. In fact the power of chips is comparable.

http://code.google.com/p/robobuilderlib ... IDE389.exe
I've fixed the com port selection and uploaded the new version v389. It was by default trying my com port first :) Added a pick selection as well if you have multiple ports

I'm glad you find it fun - that's what I'm trying to achieve - to make programming robobuilder as easy as possible - rather like in the early days of the PC programming on Acorn or ZX80. In fact the power of chips is comparable.

http://code.google.com/p/robobuilderlib ... IDE389.exe
l3v3rz
Savvy Roboteer
Savvy Roboteer
Posts: 473
Joined: Fri Jul 18, 2008 2:34 pm

Post by l3v3rz » Sat Jan 14, 2012 1:32 pm

Post by l3v3rz
Sat Jan 14, 2012 1:32 pm

New version of the Basic manual now available. Its considerably expanded over the original with lots of programming ideas and new examples

http://robobuilderlib.googlecode.com/fi ... 20V2.2.pdf

Some of the examples require the latest firmware now at Build 390 which has some "Basic" neural network and genetic algorithm features

In other news I now have the linux version as a opkg package that runs on MiniEmbWifi. Next task is to get it communicating with RBC running DCMP firmware. Long term I may build some video processing features into it as well (if I can get my webcam running)
New version of the Basic manual now available. Its considerably expanded over the original with lots of programming ideas and new examples

http://robobuilderlib.googlecode.com/fi ... 20V2.2.pdf

Some of the examples require the latest firmware now at Build 390 which has some "Basic" neural network and genetic algorithm features

In other news I now have the linux version as a opkg package that runs on MiniEmbWifi. Next task is to get it communicating with RBC running DCMP firmware. Long term I may build some video processing features into it as well (if I can get my webcam running)
l3v3rz
Savvy Roboteer
Savvy Roboteer
Posts: 473
Joined: Fri Jul 18, 2008 2:34 pm

Post by l3v3rz » Tue Jan 24, 2012 8:43 pm

Post by l3v3rz
Tue Jan 24, 2012 8:43 pm

New BUILD 408 out. The expression parser has been heavily updated and now supports:

1. Operator precedence . i.e PRINT 3*5+4*6 now prints 39 (not 87!)

2. AND, OR and MOD are supported i.e. PRINT (1=1) AND (2=2) prints 1 (true). The old | % & still work as well

3. Complex expressions now work such as (from dynamic gate demo)
30 LET P=@B[Y]+@A[Y]*$SIN((X+@C[y])*16)/32768
Before this had to broken up. So this also will be faster

4. expression use 32 bit integer arithmetic - previously it was 16 bit, this make the range much better for complex expression - like above

5. Its not trashing memory! -> this was causing OFFSET array to be overwritten causing all sorts of problems with MOVE function.

6. There's a new variant of MOVE command the uses the ! array so it works well with GEN command (to evolve new positions - example coming soon)

7. Versions for Linux and Windows now has floating point (in test mode). Also have built Linux version for OpenWRT - seems to work OK.

There's also new version of BasicIDE that fixes a bug with nested IF/ENDIFs
New BUILD 408 out. The expression parser has been heavily updated and now supports:

1. Operator precedence . i.e PRINT 3*5+4*6 now prints 39 (not 87!)

2. AND, OR and MOD are supported i.e. PRINT (1=1) AND (2=2) prints 1 (true). The old | % & still work as well

3. Complex expressions now work such as (from dynamic gate demo)
30 LET P=@B[Y]+@A[Y]*$SIN((X+@C[y])*16)/32768
Before this had to broken up. So this also will be faster

4. expression use 32 bit integer arithmetic - previously it was 16 bit, this make the range much better for complex expression - like above

5. Its not trashing memory! -> this was causing OFFSET array to be overwritten causing all sorts of problems with MOVE function.

6. There's a new variant of MOVE command the uses the ! array so it works well with GEN command (to evolve new positions - example coming soon)

7. Versions for Linux and Windows now has floating point (in test mode). Also have built Linux version for OpenWRT - seems to work OK.

There's also new version of BasicIDE that fixes a bug with nested IF/ENDIFs
l3v3rz
Savvy Roboteer
Savvy Roboteer
Posts: 473
Joined: Fri Jul 18, 2008 2:34 pm

Post by l3v3rz » Wed Feb 15, 2012 10:43 pm

Post by l3v3rz
Wed Feb 15, 2012 10:43 pm

New version of firmware and windows build now available. (v423)

1/ Adds improved list handling making programs easier
2/ reduce memory footprint so should be more stable

Also a small update to BasicIDE now v415
New version of firmware and windows build now available. (v423)

1/ Adds improved list handling making programs easier
2/ reduce memory footprint so should be more stable

Also a small update to BasicIDE now v415
l3v3rz
Savvy Roboteer
Savvy Roboteer
Posts: 473
Joined: Fri Jul 18, 2008 2:34 pm

Post by l3v3rz » Sun Apr 01, 2012 4:50 pm

Post by l3v3rz
Sun Apr 01, 2012 4:50 pm

Latest version of Basic now available (v452) for firmware and Linux/Windows builds.

1) Adds new ON TIME and ON KEY functions.
2) FIx for the expression handler
3) Improved Basic IDE with better error messages
4) Updated manual
5) Re-organised the wiki and now there are more demos.
Latest version of Basic now available (v452) for firmware and Linux/Windows builds.

1) Adds new ON TIME and ON KEY functions.
2) FIx for the expression handler
3) Improved Basic IDE with better error messages
4) Updated manual
5) Re-organised the wiki and now there are more demos.
l3v3rz
Savvy Roboteer
Savvy Roboteer
Posts: 473
Joined: Fri Jul 18, 2008 2:34 pm

Post by l3v3rz » Tue Aug 28, 2012 3:02 pm

Post by l3v3rz
Tue Aug 28, 2012 3:02 pm

New version uploaded - see web site
http://code.google.com/p/robobuilderlib/

Main focus has been on Linux and Omnima version which now supports IMAGE processing. The new functions enable BASIC to load jpeg images into arrays and either filtered or grey scales, The image processing has been based on CMVision library and enable user to create multiple colour threshold maps and then blob detect areas.

The IDE has had an Image processing tool to help create filters and check their effect.

New extended commands:
http://code.google.com/p/robobuilderlib ... edCommands

Image processing demo's
http://code.google.com/p/robobuilderlib/wiki/ImageDemos

And a simple gesture recognition example
http://code.google.com/p/robobuilderlib ... ecognition

The new Firmware version is also available includes (since 452)
1/ New 'p' option - set all servos passive
2/ Q option - queries all servo values and displays result
3/ Bug fixes to edit lines
4/ New options on SCALE command to enable threshold
5/ New options on LIST to support stacks and hence Procedure and Functions
6/ New List functions $SHUF and $MAP
7/ New List operators '+' '-' and '.'
8/ Bug fix to expression handler and Cos function
New version uploaded - see web site
http://code.google.com/p/robobuilderlib/

Main focus has been on Linux and Omnima version which now supports IMAGE processing. The new functions enable BASIC to load jpeg images into arrays and either filtered or grey scales, The image processing has been based on CMVision library and enable user to create multiple colour threshold maps and then blob detect areas.

The IDE has had an Image processing tool to help create filters and check their effect.

New extended commands:
http://code.google.com/p/robobuilderlib ... edCommands

Image processing demo's
http://code.google.com/p/robobuilderlib/wiki/ImageDemos

And a simple gesture recognition example
http://code.google.com/p/robobuilderlib ... ecognition

The new Firmware version is also available includes (since 452)
1/ New 'p' option - set all servos passive
2/ Q option - queries all servo values and displays result
3/ Bug fixes to edit lines
4/ New options on SCALE command to enable threshold
5/ New options on LIST to support stacks and hence Procedure and Functions
6/ New List functions $SHUF and $MAP
7/ New List operators '+' '-' and '.'
8/ Bug fix to expression handler and Cos function
l3v3rz
Savvy Roboteer
Savvy Roboteer
Posts: 473
Joined: Fri Jul 18, 2008 2:34 pm

Post by PedroR » Thu Aug 30, 2012 4:33 pm

Post by PedroR
Thu Aug 30, 2012 4:33 pm

Hi l3v3rz

This is quite an impressive work. Really nice :)

I can see you implement interesting Vision Algorithms in this latest version.

Would it be possible for you to make a Video of the Vision Samples you posted on the Wiki?
Your Wiki is indeed very good, but the Vision part/algorithms, I must confess are still a bit obscure to me.

Regards
Pedro.
Hi l3v3rz

This is quite an impressive work. Really nice :)

I can see you implement interesting Vision Algorithms in this latest version.

Would it be possible for you to make a Video of the Vision Samples you posted on the Wiki?
Your Wiki is indeed very good, but the Vision part/algorithms, I must confess are still a bit obscure to me.

Regards
Pedro.
PedroR
Savvy Roboteer
Savvy Roboteer
Posts: 1199
Joined: Mon Jun 16, 2008 11:07 pm

PreviousNext
36 postsPage 2 of 31, 2, 3
36 postsPage 2 of 31, 2, 3