Go to Post actually, I don't work with mechanics, so I just barely learned what Lexan was a few days ago...long story... It's amazing the variety of things FIRST teaches us!!! - tribotec_ca88 [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 17-02-2005, 19:32
Jatheon4316's Avatar
Jatheon4316 Jatheon4316 is offline
Registered User
AKA: Jason
None #0500
Team Role: Programmer
 
Join Date: Jan 2005
Location: RI
Posts: 9
Jatheon4316 can only hope to improve
Send a message via AIM to Jatheon4316
Finding Coordinates of "The Blob"

When the camera sees a "blob" of some specified color, it sends back a packet of information ("T-packet"). This packet has info about "the blob's" size, location on-screen (x and y axis), probability that this is your wanted colored object etc.

What I'd like to know is where I can learn more about using this "T-packet". How can I get the x and y coordinates of the center of the color blob? There are a ton of commands for this type of thing in the camera's manual. However, are these able to be used in C? What kind of syntax do you use with them? Where are they declared or initialized?

Any info at all about the details of manipulating info from the camera would be much appreciated!!!!

Jatheon
  #2   Spotlight this post!  
Unread 17-02-2005, 23:15
whakojacko's Avatar
whakojacko whakojacko is offline
Registered User
FRC #1072 (hrt)
Team Role: College Student
 
Join Date: Feb 2003
Rookie Year: 2003
Location: San Jose, California
Posts: 137
whakojacko is on a distinguished road
Send a message via AIM to whakojacko Send a message via MSN to whakojacko
Re: Finding Coordinates of "The Blob"

well, if center of the target it sees is cam.x and cam.y . If you want to send commands, use their function to do so
__________________
Harker Robotics:1072
http://www.harker-robotics.org
  #3   Spotlight this post!  
Unread 30-06-2005, 09:19
brijkalani brijkalani is offline
Registered User
no team
 
Join Date: Jun 2005
Location: United Kingdom
Posts: 3
brijkalani is an unknown quantity at this point
Question Re: Finding Coordinates of "The Blob"

hi,
i have the same question as jatheon, i am bit new to the cmu cam and programming. i have downloaded the code and going through it. can anyone help me how should i go further(that is which IDE should i use to modify code, a brief tutorial bout its coding etc..). I want to know the coordinates of the blob or the centroid of the blob. is it possible to find the coordinates of the blob in real time while tracking??

i would appreciate if anyone can help me out.

thanks,
brij
  #4   Spotlight this post!  
Unread 30-06-2005, 10:06
Bharat Nain's Avatar
Bharat Nain Bharat Nain is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Jan 2004
Rookie Year: 2003
Location: New York
Posts: 2,000
Bharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond repute
Send a message via AIM to Bharat Nain Send a message via MSN to Bharat Nain
Re: Finding Coordinates of "The Blob"

Quote:
Originally Posted by brijkalani
hi,
i have the same question as jatheon, i am bit new to the cmu cam and programming. i have downloaded the code and going through it. can anyone help me how should i go further(that is which IDE should i use to modify code, a brief tutorial bout its coding etc..). I want to know the coordinates of the blob or the centroid of the blob. is it possible to find the coordinates of the blob in real time while tracking??

i would appreciate if anyone can help me out.

thanks,
brij
Brij,
At the beginning of the season all of us pondered over the same thing you are. Look back into the CMUcam forum and you will see the most common problems, other people's codes and explanations to what you are asking. Additionally, you can look into a white paper Mike Sorrenti posted from 237. It is their robot code which successfully capped a goal.
Thanks,
-Bharat
__________________
-= Bharat Nain =-

Whatever you do, you need courage. Whatever course you decide upon, there is always someone to tell you that you are wrong. There are always difficulties arising that tempt you to believe your critics are right. To map out a course of action and follow it to an end requires some of the same courage that a soldier needs. Peace has its victories, but it takes brave men and women to win them. - Ralph Waldo Emerson
  #5   Spotlight this post!  
Unread 30-06-2005, 10:45
Mike's Avatar
Mike Mike is offline
has common ground with Matt Krass
AKA: Mike Sorrenti
FRC #0237 (Sie-H2O-Bots (See-Hoe-Bots) [T.R.I.B.E.])
Team Role: Programmer
 
Join Date: Dec 2004
Rookie Year: 2004
Location: Watertown, CT
Posts: 1,003
Mike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond repute
Re: Finding Coordinates of "The Blob"

Quote:
Originally Posted by Bharat Nain
Brij,
At the beginning of the season all of us pondered over the same thing you are. Look back into the CMUcam forum and you will see the most common problems, other people's codes and explanations to what you are asking. Additionally, you can look into a white paper Mike Sorrenti posted from 237. It is their robot code which successfully capped a goal.
Thanks,
-Bharat
Heh, I didn't use the x and y coordinates in my code.

It looks like you too guys (Brijkalani and Jatheon) aren't on a FIRST team. We use the MPLAB IDE which is meant for the PIC microchip series. You might wanna take a look at some of the programming references on the IFI Robotics website. Also, this PDF file looks like it will have some information to help you.

EDIT: My bad, Jatheon is on a team.
__________________
http://www.mikesorrenti.com/
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
Finding new teams Kit Gerhart Finding A Team 8 13-04-2004 12:05


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

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