Go to Post Breath in. Breath out. We still love you - its ok! :^) - KenWittlief [more]
Home
Go Back   Chief Delphi > Technical > Control System
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #31   Spotlight this post!  
Unread 04-04-2005, 19:12
jdong jdong is offline
Linux Nerd
AKA: John D
#0245 (Adam-Bots)
Team Role: Programmer
 
Join Date: Apr 2004
Location: Rochester, MI
Posts: 98
jdong will become famous soon enoughjdong will become famous soon enough
Re: Let's have Linux Robots Next Year!

Quote:
Originally Posted by tux
Building WINE now, but hoping to use SDCC instead if possible.
For OCCRA (local Michigan event), we solely used a Pentium-1 90MHz system running Ubuntu Linux + Ubuntu Backports for programming, and the "adambots-live" SF project has most of our work GPL'd in the CVS repo. It works very nicely

I don't think SDCC would be ready for our purposes any time soon.... The default code is VERY VERY finicky about the compiler.
__________________
John Dong
Co-Captain, Webmaster / Programmer
Team 245 -- Rochester Adams Robotics
  #32   Spotlight this post!  
Unread 05-04-2005, 23:23
lynca's Avatar
lynca lynca is offline
Andrew Lynch
FRC #2587 (DiscoBots)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2001
Location: Houston, TX
Posts: 1,613
lynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond repute
Send a message via AIM to lynca
Re: Let's have Linux Robots Next Year!

I have looked into Ubuntu briefly, what type of real time support does Ubuntu offer?

I think we should devote a project page where we can list requirments on work to be done and existing work. Jdong, maybe this page exists on adam-bots live?
Actually I found it,
http://adambots-live.sourceforge.net...ain/HelpWanted

I think, I am not sure yet what makefile is, I am going to test out ifi picloader but makefile is still foreign to me, possibly could use a bit more description on the wiki,

Last edited by lynca : 05-04-2005 at 23:33.
  #33   Spotlight this post!  
Unread 06-04-2005, 09:01
jdong jdong is offline
Linux Nerd
AKA: John D
#0245 (Adam-Bots)
Team Role: Programmer
 
Join Date: Apr 2004
Location: Rochester, MI
Posts: 98
jdong will become famous soon enoughjdong will become famous soon enough
Re: Let's have Linux Robots Next Year!

26.2ms is not that hard of a constraint. A C program running under any Linux/FreeBSD could probably handle it. I personally don't care what distro/OS to base work off, since it'll all be standards-compliant in the end.

I personally use Ubuntu on my desktop, and am the Super Moderator of the forums. I also lead a packaging project, Ubuntu Backports. I'm fairly involved with this distro!
__________________
John Dong
Co-Captain, Webmaster / Programmer
Team 245 -- Rochester Adams Robotics
  #34   Spotlight this post!  
Unread 08-04-2005, 20:28
tux tux is offline
Registered User
AKA: Lee Harr
FRC #3842 (Shock-a-Bots)
Team Role: Mentor
 
Join Date: Apr 2005
Rookie Year: 2005
Location: Rochester, NY
Posts: 91
tux is an unknown quantity at this point
Re: Let's have Linux Robots Next Year!

I am definitely interested in your idea of using _another_ computer in addition to the FRC controller. That way, we could just compile one set of code for the controller and use a standard (free) compiler for the real code and just bounce through the FRC and out to the robot. Much better than this nightmare with mcc18 and wine.

In any case, I am trying your ebuilds now, but having some trouble. I've sent a few messages to the adambots mailing lists.

Do I need to use a case-insensitive filesystem?
  #35   Spotlight this post!  
Unread 10-04-2005, 16:24
lynca's Avatar
lynca lynca is offline
Andrew Lynch
FRC #2587 (DiscoBots)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2001
Location: Houston, TX
Posts: 1,613
lynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond repute
Send a message via AIM to lynca
Re: Let's have Linux Robots Next Year!

An important step in the separate computer process would be getting python to talk through the serial module using the serial.py module,

From there, using Kevin Watson's serial code through the Programming Port, the FRC will have a basic library (API) of commands like turn motor 1 on (#), turn relay 2 off, etc...
The API could be very similar to IFI's serial packet structure,

With a decent serial API for the RC, most everyone can use python in an interactive manner, robot go forward, robot go backward, etc...

python is a really easy to use language (which can be your first language)
check out this introduction video,
http://www.ibiblio.org/obp/pyBiblio/pythonvideo.php

Then after a basic serial interface between a laptop and FRC, we can consider integrating the FRC into a player/stage client which can use a 2D/3D simulator for people who do not have access to the robot. If we can achieve simulation level, suddenly code development becomes fantastic!, just look at a few of the neural net/ AI programs written for player/stage.

jdong, if you would like to discuss this else where, send me an email,
lyncas@gmail.com

~Andrew
  #36   Spotlight this post!  
Unread 10-04-2005, 22:24
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: Let's have Linux Robots Next Year!

Quote:
Originally Posted by lynca
An important step in the separate computer process would be getting python to talk through the serial module using the serial.py module,

From there, using Kevin Watson's serial code through the Programming Port, the FRC will have a basic library (API) of commands like turn motor 1 on (#), turn relay 2 off, etc...
The API could be very similar to IFI's serial packet structure,

With a decent serial API for the RC, most everyone can use python in an interactive manner, robot go forward, robot go backward, etc...

python is a really easy to use language (which can be your first language)
check out this introduction video,
http://www.ibiblio.org/obp/pyBiblio/pythonvideo.php

Then after a basic serial interface between a laptop and FRC, we can consider integrating the FRC into a player/stage client which can use a 2D/3D simulator for people who do not have access to the robot. If we can achieve simulation level, suddenly code development becomes fantastic!, just look at a few of the neural net/ AI programs written for player/stage.

jdong, if you would like to discuss this else where, send me an email,
lyncas@gmail.com

~Andrew
This sounds like a lot of fun. Let me know if you guys need help making it happen.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #37   Spotlight this post!  
Unread 11-04-2005, 00:43
suneel112 suneel112 is offline
Registered User
AKA: the angry designer on 461
#0461 (Westside Boiler Invasion)
Team Role: Student
 
Join Date: Mar 2003
Location: West Lafayette, IN
Posts: 229
suneel112 has much to be proud ofsuneel112 has much to be proud ofsuneel112 has much to be proud ofsuneel112 has much to be proud ofsuneel112 has much to be proud ofsuneel112 has much to be proud ofsuneel112 has much to be proud ofsuneel112 has much to be proud of
Send a message via AIM to suneel112
Re: Let's have Linux Robots Next Year!

I bet this will sound stupid, but I really want to allow the option of programming the robot in Java.
Yes, I know it is not very useful, but that is the language of choice for the infinitely stupid CollegeBoard, and, since I was in AP Computer Science, the only language I learned.
I got to be quite good at it, and wrote a few programs to calculate motor torque and gear ratios for a telescoping arm with a gas spring.
Unfortunately, that skill was of no use to the robot, which only had one programmer this year.
I don't really see what's so bad with Java. Sun brags and says that the latest NASA robots on Mars are programmed with Java. FIRST should also use small, retro computers (instead of the RC) or an updated RC, with the equivalent of 500 - 600 MHz (32 bit, of course), 64 MB Ram, and 256 - 512 MB of storage. That will allow much more complicated autonomous programs (after two regionals, I still haven't seen a robot grab a vision tetra and place it on a goal) and much more accurate autonomous navigation.

My 2c.
__________________
I'm back like the greatest, from a four year hiatus,
Haters cry later, I'm just getting my paper.
  #38   Spotlight this post!  
Unread 11-04-2005, 01:09
thoughtful's Avatar
thoughtful thoughtful is offline
Registered User
FRC #1219 (Emery Iron Eagle)
Team Role: Alumni
 
Join Date: Nov 2003
Location: Toronto,Canada
Posts: 291
thoughtful is a splendid one to beholdthoughtful is a splendid one to beholdthoughtful is a splendid one to beholdthoughtful is a splendid one to beholdthoughtful is a splendid one to beholdthoughtful is a splendid one to beholdthoughtful is a splendid one to behold
Re: Let's have Linux Robots Next Year!

This will be a great idea, all one needs is a motherboard with a serial port; let alone a laptop. The possibilities are endless, we can have webcams, sound synthhesizers, and so many other cheap gadgets that are used with computers. I dont want to get ahead of ourselves here, but if you guys pull this off this will be "The Move" for FIRST robots programming.

I am not as good as you guys but i will be honoured to help if needed.
__________________
.:Bringling Brains to Life:.

03,04,05-Team 1219 Captain
2003 Rookie all Start @ GTR
2005 Galileo Semi-Finalist & Alliance captain
06-Team 1219 Mentor
2006 Radio Shack Innovation in control @ Waterloo
  #39   Spotlight this post!  
Unread 12-04-2005, 00:08
lynca's Avatar
lynca lynca is offline
Andrew Lynch
FRC #2587 (DiscoBots)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2001
Location: Houston, TX
Posts: 1,613
lynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond repute
Send a message via AIM to lynca
Re: Let's have Linux Robots Next Year!

I've already started playing with a serial interface by exchanging code between the standard IFI debug window and the PIC. However my progress has been slow due to hardware time and my real job.

The next step is sending commands through the Programming port using the IFI packet structure. Unlike the dashboard utilities provided, this will actually send commands for motors/relays like a normal human operator. Therefore little development is needed on the embedded RC.
If I have not properly looked through FIRST history on similar projects which might have accomplished this task, please let me know,

If you need a place to get started and you have programmed before, take a look at Kevin Watson's code, then at the IFI packet structure,

If you have no prior programming experience, I suggest you check out Python , especially a few of the python video tutorials, first "Python Tutorial "(google it) then check out this,
http://www.archive.org/search.php?query=Python you can start with Lecture 3, Python runs on Windows and Linux,

Java or Python are both great languages, the importance is easy learning curve and fast code development, therefore use whatever works and handles the serial driver request.

Last edited by lynca : 12-04-2005 at 00:10.
  #40   Spotlight this post!  
Unread 12-04-2005, 09:28
seanwitte seanwitte is offline
Registered User
None #0116
Team Role: Engineer
 
Join Date: Nov 2002
Location: Herndon, VA
Posts: 378
seanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant future
Send a message via AIM to seanwitte
Re: Let's have Linux Robots Next Year!

Last year I wrote a VB application to interface with the IFI mini-RC. The GUI has four "virtual" joysticks and 8 bits of input and received 8 bytes, 6 signed ints, and 16 bits of feedback from the robot. Once you get the program installed on the RC you can drive the robot around using your mouse. It also captures and plots up to ten of the IO channels. You can download it, and the program from the RC, from http://members.cox.net/seanwitte. I've posted this before but its been awhile. If you look in the pc_interface.c source file you can see the information being exchanged. The protocol is weak and blocks while its waiting for data.

I wrote that before I had a buffered serial port library so its a synchronous protocol with the PC. There isn't any error checking and it will crash the RC if you unplug the serial cable while its running.

If you design a standard serial protocol then people would be able to use it with any programming language. If you wanted to be really flexible you can design a framework that wraps all of the IO and loads "virtual robots" as modules at runtime. Sort of the way RoboCode works. Once you standardize the code running on the RC anyone can build a client framework to take advantage of it.

I know this is a thread about using Linux, but there might be a few people who would like to use Windows (well, maybe just me). For that I would implement the framework as a standalone exe and load the robot classes at runtime.
  #41   Spotlight this post!  
Unread 13-04-2005, 17:08
lynca's Avatar
lynca lynca is offline
Andrew Lynch
FRC #2587 (DiscoBots)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2001
Location: Houston, TX
Posts: 1,613
lynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond repute
Send a message via AIM to lynca
Re: Let's have Linux Robots Next Year!

This is definitely a start, python works well on any platforms, VB is great but not a low cost solution or open source, but there exist VB to Python code converter.
http://vb2py.sourceforge.net/

It might be something worth looking into to avoid reinventing the wheel,
Any questions on python or serial communication , send me an email or please post,

~Andrew
  #42   Spotlight this post!  
Unread 14-04-2005, 08:04
seanwitte seanwitte is offline
Registered User
None #0116
Team Role: Engineer
 
Join Date: Nov 2002
Location: Herndon, VA
Posts: 378
seanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant future
Send a message via AIM to seanwitte
Re: Let's have Linux Robots Next Year!

Quote:
Originally Posted by lynca
This is definitely a start, python works well on any platforms, VB is great but not a low cost solution or open source, but there exist VB to Python code converter.
http://vb2py.sourceforge.net/

It might be something worth looking into to avoid reinventing the wheel,
Any questions on python or serial communication , send me an email or please post,

~Andrew
Its not worth converting, just posted it as an example PC-RC interface to give you all some ideas.
  #43   Spotlight this post!  
Unread 14-04-2005, 18:58
suneel112 suneel112 is offline
Registered User
AKA: the angry designer on 461
#0461 (Westside Boiler Invasion)
Team Role: Student
 
Join Date: Mar 2003
Location: West Lafayette, IN
Posts: 229
suneel112 has much to be proud ofsuneel112 has much to be proud ofsuneel112 has much to be proud ofsuneel112 has much to be proud ofsuneel112 has much to be proud ofsuneel112 has much to be proud ofsuneel112 has much to be proud ofsuneel112 has much to be proud of
Send a message via AIM to suneel112
Re: Let's have Linux Robots Next Year!

In terms of weight and size, probably the best computer to put on a robot (as a replacement to the rc ) is....



I guess that's off topic, since an apple machine can't run linux out of the box (it would have to be installed), but with a simple USB device (to handle the PWMs, Spikes, and inputs), it could be a reality. It would allow for a much greater degree of accuracy with autonomous, etc, would be about $800 (500 plus the cost of a USB device to link / contain PWMs and spikes), and would be very powerful (I think 1.3 Ghz is the slowest one they sell) to allow use of high-level programming languages.

If someone wanted to, they could make a PC like that, but why would they?
__________________
I'm back like the greatest, from a four year hiatus,
Haters cry later, I'm just getting my paper.
  #44   Spotlight this post!  
Unread 19-05-2005, 02:33
catlin101's Avatar
catlin101 catlin101 is offline
Registered User
#0461 (West Side Boiler Invasion)
 
Join Date: Sep 2003
Location: West Lafayette, IN
Posts: 8
catlin101 will become famous soon enough
Re: Let's have Linux Robots Next Year!

Hm, i'm a bit skeptical about the idea of putting linux, java, or anything more complicated than whats currently on the controller.

The main problem is that many people have trouble tryin to get the most simple systems to work, systems that wouldnt benifit at all by multithreading or object orientation.

Like a few people said, FIRST provides all the calls that are "operating systemish" like memory allocation. I don't think that adding linux would really give you capabilities that are that much greater than the current system.

Its true that the vision systems didnt really work this year... but thats more a consequence of algorithms and not computing power.

Don't get me wrong, I like linux, but I just don't think that it would really provide anything beyond what the controllers already have.

If you do want linux, I think it would be a better idea just to integrate it onto the controller with an embedded 32 bit processor rather than a mac mini or something-- freescale and some other companies make a wider variety of 32 bit microcontrollers that are about 500 mhz, have a few megs of ram, and have linux ported to them already
__________________
I am a member of the Cornell University DARPA Grand Challenge Team
  #45   Spotlight this post!  
Unread 03-08-2005, 15:24
jdong jdong is offline
Linux Nerd
AKA: John D
#0245 (Adam-Bots)
Team Role: Programmer
 
Join Date: Apr 2004
Location: Rochester, MI
Posts: 98
jdong will become famous soon enoughjdong will become famous soon enough
Re: Let's have Linux Robots Next Year!

UPDATE: In short, I have this system working, with a Python-in-Linux parser, which could soon be cross-platform.

About 150 loops towards the beginning get dropped, due to the Python script's startup and initialization time. I'm using Pysco to JIT-compile the Python code, and the script uses less than 8% CPU on my 1GHz programming laptop running Ubuntu Linux.

Currently, it performs readouts of two joysticks and outputs four PWM values. I'm gonna add more on. You can see live Subversion snapshots of the work at http://ubuntubackports.org/adambots-2006/ . gumstix/orion.py contains the Python PC parser, and ifi_code/trunk contains Linux-compilable source code.


It's not very user-friendly right now; I'll work on getting it polished a bit, and by the end of the month, I'll make a GPL'd beta release for you guys to play with.

BTW, we're starting to set up a wiki for our team, and (http://adambots.gotdns.com/cgi-bin/v...rceCoProcessor) this seems like the home of our coprocessor project. The page is horribly unfinished right now, so ignore it for a couple days .
__________________
John Dong
Co-Captain, Webmaster / Programmer
Team 245 -- Rochester Adams Robotics
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Robots doing origami! RoboMom Math and Science 4 24-10-2004 19:42
RoboCup International Competition 2004 - Lisbon, Portugal patrickrd Televised Robotics 21 04-07-2004 05:43
2004 Championship Eligibility Criteria!!! dez250 General Forum 214 28-12-2003 20:11
New year, new ideas!! Tyler Olds 3D Animation and Competition 3 08-10-2003 00:23
Whats your honest opinion? Sean General Forum 50 17-04-2003 21:05


All times are GMT -5. The time now is 23:16.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi