Go to Post Hey Baker - get a haircut! :) - Sean Schuff [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 12-02-2011, 19:35
Blackphantom91's Avatar
Blackphantom91 Blackphantom91 is offline
Mentor + 4 = Stuck For Life
AKA: Malcolm Stirckland
FRC #1986 (Team Titanium)
Team Role: Mentor
 
Join Date: Nov 2009
Rookie Year: 2008
Location: Kansas City
Posts: 232
Blackphantom91 has a spectacular aura aboutBlackphantom91 has a spectacular aura aboutBlackphantom91 has a spectacular aura about
Vision Trouble 2011

We are having trouble with vision and working it into the framework in labview. We have the example and are not sure what to realisticly do with it.
We use labview and are would really apreciate help with this.
__________________
[img*]http://i.imgur.com/Os2oTET.jpg[/img*]
Reply With Quote
  #2   Spotlight this post!  
Unread 12-02-2011, 21:48
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: Vision Trouble 2011

The vision example shows how you can use a ring light and the camera to identify the column. The paper goes a bit further and shows how to determine distance and even horizontal offset. The examples do not show how to drive the robot based on the camera results.

What do you have so far? What type of robot? What would you like to do with vision?

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 12-02-2011, 23:50
Blackphantom91's Avatar
Blackphantom91 Blackphantom91 is offline
Mentor + 4 = Stuck For Life
AKA: Malcolm Stirckland
FRC #1986 (Team Titanium)
Team Role: Mentor
 
Join Date: Nov 2009
Rookie Year: 2008
Location: Kansas City
Posts: 232
Blackphantom91 has a spectacular aura aboutBlackphantom91 has a spectacular aura aboutBlackphantom91 has a spectacular aura about
Re: Vision Trouble 2011

An 6 wheel robot, I put the half into the vision prossessing from the example now im trying to figure out how to get the outputs and what to do with it?
__________________
[img*]http://i.imgur.com/Os2oTET.jpg[/img*]
Reply With Quote
  #4   Spotlight this post!  
Unread 13-02-2011, 08:14
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: Vision Trouble 2011

The first thing I'd do is figure out what you want the vision code to do. If your robot drives to the target using the line, is this camera for fine tuning, height measurement, or are you using the camera instead of the line?

The example code was showing how to find the columns using only the camera. It returns the camera X pixel location. To make it more useful to steer the robot, consider doing something like
(X / (half the image width)) - 1.

This will give you a -1 to 1 range for the column position. This is pretty similar to the X input to the arcade RobotDrive VI.

If you scale the column position a bit, possibly negate it, you should be able to get the robot to turn to stare at the column -- put the column at the center of the camera image. If you add a small Y value, say -0.4, the robot will steer and move forward trying to keep the column in the center.

First, determine if this is what you want to do with the vision, and feel free to ask questions. Also, keep in mind that it is often better to drive the robot a bit first and map out useful joystick values. 1.0 doesn't sound big, but for the X input, it will make the robot spin very fast. Also, once you start to write code, I recommend putting the robot on blocks and moving the vision stuff around instead. Put a strip of tape on a wheel on each side so that you can better tell how the robot is responding.

Greg McKaskle
Reply With Quote
  #5   Spotlight this post!  
Unread 13-02-2011, 18:23
Blackphantom91's Avatar
Blackphantom91 Blackphantom91 is offline
Mentor + 4 = Stuck For Life
AKA: Malcolm Stirckland
FRC #1986 (Team Titanium)
Team Role: Mentor
 
Join Date: Nov 2009
Rookie Year: 2008
Location: Kansas City
Posts: 232
Blackphantom91 has a spectacular aura aboutBlackphantom91 has a spectacular aura aboutBlackphantom91 has a spectacular aura about
Re: Vision Trouble 2011

Ok basicly I want to steer the robot towards the pole keeping it aligned strait with vision from the reflective tape. Im having problems taking the example and implementing it into the frame work to do that.
__________________
[img*]http://i.imgur.com/Os2oTET.jpg[/img*]
Reply With Quote
  #6   Spotlight this post!  
Unread 13-02-2011, 19:45
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: Vision Trouble 2011

Before you drive the robot, did you copy the code to the right of the green line and put it into the vision loop? Then hook up the image from the camera to the input to the Color Threshold. At that point, test to see if your camera is acquiring images and calculating the pole position correctly.

Greg McKaskle
Reply With Quote
  #7   Spotlight this post!  
Unread 14-02-2011, 12:09
Blackphantom91's Avatar
Blackphantom91 Blackphantom91 is offline
Mentor + 4 = Stuck For Life
AKA: Malcolm Stirckland
FRC #1986 (Team Titanium)
Team Role: Mentor
 
Join Date: Nov 2009
Rookie Year: 2008
Location: Kansas City
Posts: 232
Blackphantom91 has a spectacular aura aboutBlackphantom91 has a spectacular aura aboutBlackphantom91 has a spectacular aura about
Re: Vision Trouble 2011

So I get this output from the Vi or the driverstation?
__________________
[img*]http://i.imgur.com/Os2oTET.jpg[/img*]
Reply With Quote
  #8   Spotlight this post!  
Unread 14-02-2011, 19:48
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: Vision Trouble 2011

The driver station delivers the joystick values and other competition state to the robot. It doesn't have anything to do with vision.

The dashboard is often run on the same computer. It can request the camera images be sent to it, and it is often used to display the images to the drivers, sometimes overlaying field info over the image.

The VI is, I assume, the vision loop that runs on the cRIO and is typically used to process the images and update any sort of driving target info. This info is often sent to the driver station too.

Greg McKaskle
Reply With Quote
  #9   Spotlight this post!  
Unread 15-02-2011, 05:00
Blackphantom91's Avatar
Blackphantom91 Blackphantom91 is offline
Mentor + 4 = Stuck For Life
AKA: Malcolm Stirckland
FRC #1986 (Team Titanium)
Team Role: Mentor
 
Join Date: Nov 2009
Rookie Year: 2008
Location: Kansas City
Posts: 232
Blackphantom91 has a spectacular aura aboutBlackphantom91 has a spectacular aura aboutBlackphantom91 has a spectacular aura about
Re: Vision Trouble 2011

take a look I basicly want to from this point take the coloums and keep the robot strait with it. Here is the code in vision proccessing.
__________________
[img*]http://i.imgur.com/Os2oTET.jpg[/img*]
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 20:36.

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