Go to Post ...he's acting like a programmer whose code is compiling...:yikes: - EricH [more]
Home
Go Back   Chief Delphi > Technical > Programming
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
  #1   Spotlight this post!  
Unread 03-11-2002, 12:45
rbayer's Avatar Unsung FIRST Hero
rbayer rbayer is offline
Blood, Sweat, and Code
no team (Teamless Orphan)
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Minnetonka, MN
Posts: 1,087
rbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of light
Send a message via AIM to rbayer
RoboCon 1.01 (control robot from PC)

It took some work and some massive amounts of Coke and Mountain Dew, but I just finished RoboCon, a program that will allow you to control a robot from your PC. There are two main components to RoboCon:

1. The DLL and LIB files. These can be included in your own programs to create a custom-control application specifically for your robot. Check out the "Writing your own..." document for more information

2. ConSample. A sample application that uses RoboCon. It is very minimal, but ConSample will allow you to control a robot using your PC.

PLEASE read the README. It contains important information on how to make ConSample work.

As always, my programs are available at:
http://FIRSTprograms.tripod.com/Programs.htm
-and-
The whitepapers here

Let me know what you think!

--Rob
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php
  #2   Spotlight this post!  
Unread 03-11-2002, 13:15
VanWEric VanWEric is offline
Registered User
#0250 (Dynamos)
 
Join Date: Feb 2002
Location: NY
Posts: 86
VanWEric is an unknown quantity at this point
Holy Bajeesus.
  #3   Spotlight this post!  
Unread 03-11-2002, 14:38
Adrian Wong Adrian Wong is offline
Registered User
#0596 (SciClones)
Team Role: Alumni
 
Join Date: Jun 2001
Rookie Year: 2001
Location: Hopkinton, Mass.
Posts: 146
Adrian Wong is an unknown quantity at this point
Send a message via AIM to Adrian Wong
Excellent work! I really can't get into the code until I get home later tonight, but I do have one quick question.

Is there any way to control the robot wirelessly from a stationary computer, either via the data being transmitted via the OI/RC radio link; or just connecting the OI and RC by a tether, placing both on the robot, and having an PC/RC radio link?

My apologies if you answered this in the whitepaper ZIP, but I can't open the file from the current computer. I'll be sure to look at it tonight, though.
  #4   Spotlight this post!  
Unread 03-11-2002, 15:31
rbayer's Avatar Unsung FIRST Hero
rbayer rbayer is offline
Blood, Sweat, and Code
no team (Teamless Orphan)
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Minnetonka, MN
Posts: 1,087
rbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of light
Send a message via AIM to rbayer
You should be able to do it wirelessly if you have RS-232 radios lying around. The programming/debugging ones should work if you have those.

Unforunately, I don't know how to get this to work without an OI, so you will still need to tether/radio that to the RC, but as you said, you can just place it in the robot.

Don't forget to send the "RoboCon RC.bsx" program to the RC or absolutely nothing will happen.
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php
  #5   Spotlight this post!  
Unread 03-11-2002, 20:23
rbayer's Avatar Unsung FIRST Hero
rbayer rbayer is offline
Blood, Sweat, and Code
no team (Teamless Orphan)
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Minnetonka, MN
Posts: 1,087
rbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of light
Send a message via AIM to rbayer
I'm at 14 downloads and only a few responses. PLEASE post stuff. I want to know whether I should continue spending my time writing programs for you people or if it's just a waste of my time.

I am especially interested in hearing from programmers who try to write their own app using RoboCon, but I want to hear from everybody.

Thanks in advance!

--Rob
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php
  #6   Spotlight this post!  
Unread 03-11-2002, 20:26
MacZealot MacZealot is offline
Registered User
no team
 
Join Date: Oct 2002
Location: Las Vegas, NV (Not there yet!)
Posts: 123
MacZealot is an unknown quantity at this point
Send a message via AIM to MacZealot
I actually tried roboemu but i still haven't had the chance to actually figure IT out!

lol been too busy working on websites.

You think I could take a look at that sourcecode? I'd spend much more time on it if it worked on my work machine
__________________

AIM: Joe7464685192 | Email Me! Visit my site!

Uh I'm STILL not in Las vegas GRRRR!! I dun think it'll happen till june and This shoulda happened a freaking year ago
  #7   Spotlight this post!  
Unread 03-11-2002, 20:38
rbayer's Avatar Unsung FIRST Hero
rbayer rbayer is offline
Blood, Sweat, and Code
no team (Teamless Orphan)
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Minnetonka, MN
Posts: 1,087
rbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of light
Send a message via AIM to rbayer
What source code? Source for RoboEmu is included in the RoboTools zip file. Otherwise, source code can always be found at my website:
http://FIRSTprograms.tripod.com/Programs.htm

And now we're up to 15 downloads of RoboCon...
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php

Last edited by rbayer : 03-11-2002 at 20:40.
  #8   Spotlight this post!  
Unread 03-11-2002, 20:57
Adrian Wong Adrian Wong is offline
Registered User
#0596 (SciClones)
Team Role: Alumni
 
Join Date: Jun 2001
Rookie Year: 2001
Location: Hopkinton, Mass.
Posts: 146
Adrian Wong is an unknown quantity at this point
Send a message via AIM to Adrian Wong
Trust me, your RoboCon program will be very useful to a robotics project our club is doing. We'll have a website up in a few days for the project, and your RoboCon program just filled a gaping hole in our control system diagram.

(It's for an autonomous robot. We wanted some way to have a computer program control it, and we were going to settle for placing a stripped down laptop on the robot itself. This should resolve a few problems, because having a stationary computer for telemetry is much more useful.)
  #9   Spotlight this post!  
Unread 03-11-2002, 21:09
rbayer's Avatar Unsung FIRST Hero
rbayer rbayer is offline
Blood, Sweat, and Code
no team (Teamless Orphan)
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Minnetonka, MN
Posts: 1,087
rbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of light
Send a message via AIM to rbayer
Excellent. Let me know if you run into any trouble and I'd be happy to help. I wrote the documentation in about 15mins, so it's not overly polished (I haven't even read it myself). For now, my first priority was just getting it out so people could start thinking about stuff.

A word of warning: make sure the time between calls to "update" is not more than 1/20th of a second. This shouldn't be a problem, but try to keep it in mind.
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php
  #10   Spotlight this post!  
Unread 05-11-2002, 10:00
jrukes jrukes is offline
Registered User
no team (none)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Libertyville,IL
Posts: 36
jrukes is on a distinguished road
Protocol?

I didn't even know you could send data to the RC directly from a PC. That is awesome! This will allow teams to prototype multiple driver stations before they even touch a soldering iron.

Any plans to post the communication protocol between the RC and the OI? I'd prefer to use Visual Basic, out of habit- not because it's better. Specifically, I'd need the following information:

1) COM port settings (Baud Rate,Parity,Databit,Stopbit)
2) What is the format for the data sent to the RC? I'm assuming this is an X-byte array.
3) What is the format for the data received from the RC? Again, I'm guessing this is an X-byte array. I'm thinking it would look similar to the Dashboard port specification.

I would appreciate any info you can provide. I think this would make a great project for the software team to better understand how the control system functions.

Thanks,
Jason
  #11   Spotlight this post!  
Unread 05-11-2002, 12:05
Jnadke Jnadke is offline
Go Badgers!
#0093
Team Role: Alumni
 
Join Date: Jan 2002
Location: Appleton, WI
Posts: 775
Jnadke is on a distinguished road
Send a message via ICQ to Jnadke Send a message via AIM to Jnadke Send a message via Yahoo to Jnadke
You can't communicate directly from your PC to the robot controller.

He's still using the operator interface, IF YOU HAVEN'T READ THAT ALREADY.
__________________
The best moments of our lives fall in two categories: those that did happen and those that did not.
  #12   Spotlight this post!  
Unread 05-11-2002, 14:59
Unsung FIRST Hero
miketwalker miketwalker is offline
Robot Lifeguard
FRC #1902 (Exploding Bacon)
 
Join Date: Dec 2001
Rookie Year: 2002
Location: Orlando, FL
Posts: 878
miketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond repute
Send a message via AIM to miketwalker
You probably want to post that on FIRST Codex, cause then it'll be available for all teams to use and see, since FIRST Codex is trying to put together resources for teams for help on programming. By the way, VERY nice code! I'm impressed. Keep up the great work.

http://www.first-codex.net/
__________________
Chopsaw? Chopsaw.
  #13   Spotlight this post!  
Unread 05-11-2002, 15:25
rbayer's Avatar Unsung FIRST Hero
rbayer rbayer is offline
Blood, Sweat, and Code
no team (Teamless Orphan)
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Minnetonka, MN
Posts: 1,087
rbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of light
Send a message via AIM to rbayer
Quote:
Originally posted by Jnadke
You can't communicate directly from your PC to the robot controller.

He's still using the operator interface, IF YOU HAVEN'T READ THAT ALREADY.
half true, half not. Your PC does communicate directly with the RC via the Programming port. The only reason why you still need the OI is that otherwise the master uP stops execution of the Stamp when it doesn't detect a signal from the OI. Strictly speaking, the OI just sits there. In fact, it doesn't even send any important data to the RC as the only things that are present in the Serin command are the sensors and switches.

If anybody knows how to fool the RC into thinking it has a signal, let me know.

I haven't tried to reverse-engineer the packets yet as the documentation specifically says NOT to plug the tether into a computer and I am terrified of frying my serial ports. If anyone has an old computer they are willing to try this on, let me know and I'll send you some code to run and ask you to return the output to me.

--Rob
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php
  #14   Spotlight this post!  
Unread 05-11-2002, 15:52
AJ Quick's Avatar
AJ Quick AJ Quick is offline
Your Attention Please
FRC #0006 (CogSquad)
Team Role: Alumni
 
Join Date: Oct 2002
Rookie Year: 2001
Location: Minnesota
Posts: 464
AJ Quick has a spectacular aura aboutAJ Quick has a spectacular aura about
I am so glad we are on the same team.
__________________
-AJ Quick (Alum on Team 6)
http://www.HHSRobotics.com/

Place your attention entirely on my voice and try to ignore all the others. It is important to be able to focus on a single source of information while blocking out all the other things competing for your attention.
  #15   Spotlight this post!  
Unread 05-11-2002, 18:36
VanWEric VanWEric is offline
Registered User
#0250 (Dynamos)
 
Join Date: Feb 2002
Location: NY
Posts: 86
VanWEric is an unknown quantity at this point
I think i'll be fooling around with roboCon tomarrow or at least sometime this week. I'd be happy to run those tests for you, seeing as that these computers at school are made from a solid mass of kevlar, and could probably withstand anything. That, and i need to distract IMS with problems other than taking my privalages away one by one.
Does anyone know where to find a copy of the program running on the stamp located within the OI? That may help this effort greatly.
Lastly, what exactly is coming out of the computer? Is this a stream of data that can go over the modems? You may be able to replace the OI with a comp, and leave the sensor checks on the stamp code. Just theorizing, don't tear my logic apart to gruesomely.
Any who, send me the code you want me to test, and ill have at it. I'm assuming you just want to monitor it on the serial port, I think I can handle it ( i hope ).
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
How much planning goes into your robot? Jnadke General Forum 41 29-01-2006 21:29
how do you power on the robot control great_one411 Electrical 6 04-02-2003 00:46
WASH Palm scouting at the Championship Mike Soukup Scouting 2 19-04-2002 15:14
robot control emulator for default or other program CharlieWilken Programming 26 24-02-2002 02:36
about how Drive Train push the robot... shouldn't the force accelerate the robot? Ken Leung Technical Discussion 12 26-11-2001 09:39


All times are GMT -5. The time now is 13:37.

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