Go to Post When I saw the title of this thread ("Reverse Robotics"), I thought "what, you get six weeks to take apart a robot or something??" - Katie Reynolds [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 09-02-2013, 10:52
swodaem's Avatar
swodaem swodaem is offline
Registered User
FRC #2197 (Las Pumas)
Team Role: Photography
 
Join Date: Jan 2012
Rookie Year: 2011
Location: new carlisle, IN
Posts: 32
swodaem is an unknown quantity at this point
how to move motors using axis 206 camera

i am the programmer from Team 2197, right now i am learning how to intigrate vision into a robot project, i have the vision processing from the rectanglular target- 2013 project into our project, but what i do not know how to do is...how to program it so we can hit a button, and the camera will track to a certain target, lets say the high goal. i have a some programming experience but i am still learning, and the camera is new to me thank you for any help you can give!
__________________
Las Pumas 2197
__________________
Steps to a Successful Program
1. Load labview software
2. Try to build program
3. Fail to save program on cRIO
4. Look on internet for help
5. Throw chair
6. Drop computer out window
7. Hate life
8. Want to strangle your mentor
-seathroath
Reply With Quote
  #2   Spotlight this post!  
Unread 09-02-2013, 11:39
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: how to move motors using axis 206 camera

If you will describe more about your robot, you'll get better advice.

Does the robot have a turret, or do you need to drive or rotate in order to point at the target?

What sensors does the robot have on it that may help it know how much it is moving or turning?

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 09-02-2013, 16:08
swodaem's Avatar
swodaem swodaem is offline
Registered User
FRC #2197 (Las Pumas)
Team Role: Photography
 
Join Date: Jan 2012
Rookie Year: 2011
Location: new carlisle, IN
Posts: 32
swodaem is an unknown quantity at this point
Re: how to move motors using axis 206 camera

we have a shooter attached to the robot, it doesnt swivel, its gonna be static on the robot, we are using the kit frame, but our shooter is shooting sideways, so if we are pointing forward, the shooter is pointing to the left, and we have encoders (noooo idea how to program them yet) and working on limit switches, if you need anything else let me know!
__________________
Las Pumas 2197
__________________
Steps to a Successful Program
1. Load labview software
2. Try to build program
3. Fail to save program on cRIO
4. Look on internet for help
5. Throw chair
6. Drop computer out window
7. Hate life
8. Want to strangle your mentor
-seathroath
Reply With Quote
  #4   Spotlight this post!  
Unread 09-02-2013, 19:57
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: how to move motors using axis 206 camera

So I assume, or suggest that the camera point to the left also, similar alignment to the shooter. Determine where the shots hit the wall and align the camera so that its image contains the shot, ideally centered horizontally and perhaps with the shot to the upper third of the screen.

When the code detects a target, it returns the position in a -1 to 1 coordinate space which you can use as an error term to drive the robot forward or backward until centered. You may need to reverse the error term before feeding it to robotDrive.

Once the error is low enough, go through your shooting sequence. Especially if you are processing on the cRIO, keep in mind that the camera is a pretty slow sensor and the robot may move too far between frames if it moves quickly. Also, once target is close enough, you can disable the vision.

Greg McKakskle
Reply With Quote
  #5   Spotlight this post!  
Unread 11-02-2013, 12:40
swodaem's Avatar
swodaem swodaem is offline
Registered User
FRC #2197 (Las Pumas)
Team Role: Photography
 
Join Date: Jan 2012
Rookie Year: 2011
Location: new carlisle, IN
Posts: 32
swodaem is an unknown quantity at this point
Re: how to move motors using axis 206 camera

thank you, also, one other thing...do you know where i can find any documents of some sort to help me program the camera? i already intigrated the 2013 example, but i wanted to know if there was more in depth documentation how like, how to code motors to move if a certain image is shown, like the high goal is seen by the camera, so the robot adjusts so it is in the center of the camera (by moving the drivetrain so the whole robot is facing the goal for a shot)
__________________
Las Pumas 2197
__________________
Steps to a Successful Program
1. Load labview software
2. Try to build program
3. Fail to save program on cRIO
4. Look on internet for help
5. Throw chair
6. Drop computer out window
7. Hate life
8. Want to strangle your mentor
-seathroath
Reply With Quote
  #6   Spotlight this post!  
Unread 11-02-2013, 20:11
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: how to move motors using axis 206 camera

I don't mean to split hairs, but the camera is a sensor that returns images. It doesn't recognize things, and it has no idea what a motor is. That is something your code needs to do. The example demonstrates how the code can identify rectangles in an image, identify where the center of the rectangle is and which type of rectangle it most likely is. Try using the coordinates returned from the camera in much the same way as a joystick to move the robot.

Greg McKaskle
Reply With Quote
  #7   Spotlight this post!  
Unread 14-02-2013, 18:54
swodaem's Avatar
swodaem swodaem is offline
Registered User
FRC #2197 (Las Pumas)
Team Role: Photography
 
Join Date: Jan 2012
Rookie Year: 2011
Location: new carlisle, IN
Posts: 32
swodaem is an unknown quantity at this point
Re: how to move motors using axis 206 camera

thank you, im still learning labview, i was just begining to grasp it last year and then well, Labview FRC 2013 happened thank you for all your help!
__________________
Las Pumas 2197
__________________
Steps to a Successful Program
1. Load labview software
2. Try to build program
3. Fail to save program on cRIO
4. Look on internet for help
5. Throw chair
6. Drop computer out window
7. Hate life
8. Want to strangle your mentor
-seathroath
Reply With Quote
Reply


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


All times are GMT -5. The time now is 22:49.

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