Go to Post In my opinion, the hardest part of the competition is not that actual manufacture of the robot, but the design process. It is the enginners that go through the design process all the time that will have the edge in this competition, not the best machinist. - Wetzel [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 15-01-2011, 00:46
Eric Reed Eric Reed is offline
I am somebody now!
#0481 (De Anza Robotics Team)
 
Join Date: Jun 2001
Location: Richmond, CA
Posts: 103
Eric Reed will become famous soon enoughEric Reed will become famous soon enough
Test camera off robot?

Hello,

Is there an easy way to play with the camera and robot code without actually using the cRIO? Something like a virtual robot so I can see how the code reacts to processed images.

Thanks,

Eric.
Reply With Quote
  #2   Spotlight this post!  
Unread 15-01-2011, 01:30
Fletch1373's Avatar
Fletch1373 Fletch1373 is offline
Registered User
AKA: Fletch
FRC #3181 (Panthers)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2004
Location: Rochester, NY
Posts: 251
Fletch1373 has much to be proud ofFletch1373 has much to be proud ofFletch1373 has much to be proud ofFletch1373 has much to be proud ofFletch1373 has much to be proud ofFletch1373 has much to be proud ofFletch1373 has much to be proud ofFletch1373 has much to be proud ofFletch1373 has much to be proud ofFletch1373 has much to be proud of
Re: Test camera off robot?

This is something a lot of people have been looking for since the release of the cRio as the new controller 2 years ago. I think I remember seeing some posts on here recently about somebody developing an emulator, but I seriously doubt it has vision support.

In short, the answer is no.
__________________
Student:
<04: FRC0213> <05-08: FRC1373>
Mentor:
<09-10: FRC0809> <11-12: FRC3555> <12-14: FRC0073> <15-??: FRC3181>
Volunteer:
<FTAA> <CSA> <Defense Coordinator> <Scorekeeper> <Robot Inspector> <Official Scorer>
2016 Tour:
CTWAT [DefCoord] > Pittsburgh[Mentor/DefCoord] > TVR[FTAA] > FLR[CSA] > NE DCMP[CSA] > CMP[CSA]
Reply With Quote
  #3   Spotlight this post!  
Unread 15-01-2011, 01:39
SuperS_5's Avatar
SuperS_5 SuperS_5 is offline
[Certified LabVIEW Developer]
FRC #1219
 
Join Date: Dec 2010
Rookie Year: 2010
Location: Canada
Posts: 140
SuperS_5 will become famous soon enoughSuperS_5 will become famous soon enough
Re: Test camera off robot?

Quote:
Originally Posted by Eric Reed View Post
Something like a virtual robot ...
There is nothing that "simulates" the cRIO without a tone of programming. Usually, simulation code is written separately.
Quote:
Originally Posted by Eric Reed View Post
so I can see how the code reacts to processed images.
It is possible to access the axis camera without the cRIO. It is a network camera, so your IP would have to be on the same subnet for anything to work. I just had a look at the WPI camera library, and it looks like it is written almost completely in G code. This means that using on the PC should be really easy. Just make sure the you specify the right IP, (If you changed the camera's IP) and your VI is targeted to your PC and not the cRIO. (Open new vi, making sure it is not under the cRIO in the project tree. It can be dragged to the right location)

Edit: Even if you cannot get the axis camera working, a static picture will work with the Vision VIs on the PC. The NI-IMAQdx utility can handle most USB web cameras. If you can install this module, (from the NI website) it would allow you to test the vision logic without the axis camera.
__________________
Mike B

Last edited by SuperS_5 : 15-01-2011 at 01:50.
Reply With Quote
  #4   Spotlight this post!  
Unread 15-01-2011, 02:35
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,751
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: Test camera off robot?

The way I do it is to use NI Vision Assistant. If not installed, you can find it on the LabVIEW DVD.

If you place the camera and PC on the same subnet, or otherwise routable network, the vision asst allows you to acquire images form the camera, make measurements, process the images with vision scripts, save images, and even generate code.

With this networking setup, you can also do basic settings with a web browser by opening the camera IP address.

Greg McKaskle

Last edited by Greg McKaskle : 15-01-2011 at 02:37. Reason: additional info
Reply With Quote
  #5   Spotlight this post!  
Unread 01-02-2012, 20:47
michael714's Avatar
michael714 michael714 is offline
Registered User
FRC #3863 (Pantherbotics)
Team Role: Teacher
 
Join Date: Apr 2006
Rookie Year: 2007
Location: Newbury Park, CA
Posts: 46
michael714 is on a distinguished road
Re: Test camera off robot?

Are you able to process live images from the Axis Cam? We're having a problem where we can process image snapshots from the Axis Cam, but we can't process live images. When we try to grab live images, we get a prompt to install NI-IMAQdx.
Reply With Quote
  #6   Spotlight this post!  
Unread 01-02-2012, 21:43
sometimestommy's Avatar
sometimestommy sometimestommy is offline
Schrödinger's Assistant
AKA: Thomas Moll
FRC #1939 (Ku-Nig-Its)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2009
Location: US
Posts: 48
sometimestommy is on a distinguished road
Re: Test camera off robot?

Yes! it is possible! We did it just a couple of days ago with our axis camera. All you have to do is go to the Support tab of labview and click on "Find FRC examples and go to vision, then "Rectangle Tracking.VI"

Once open, you simply just type in your camera's IP and you can view the original image and then the processed image with tracking overlayed.

EDIT: You can alternatively change the size and frame rate of the image stream to test what settings work best for the actual code (usually the smaller the better for processing speed)
__________________
-Team 1939 The Barstow Ku-Nig-Its!

Last edited by sometimestommy : 01-02-2012 at 21:44. Reason: Forgot to add this
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 10:10.

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