Go to Post The point of FIRST is not to create pretty robots. It's to teach kids about science, technology, and engineering. - Cory [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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 11-02-2013, 22:28
wag2625 wag2625 is offline
Registered User
FRC #2625
 
Join Date: Feb 2013
Location: Canada
Posts: 4
wag2625 is an unknown quantity at this point
Camera image crashing code???

Hello. We are working on the vision tracking component of our robot in Windriver and noticed that when we attempt to retrieve the camera image for filtering and particle analysis, it seems to crash our code.

When we enter Autonomous mode the code runs up until it is supposed to read the image from the camera. After that, the program freezes and we are unable to communicate in either Autonomous or Teleoperated mode, and need to reset the cRio in order to continue.


Any input would be greatly appreciated
Reply With Quote
  #2   Spotlight this post!  
Unread 12-02-2013, 09:52
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Camera image crashing code???

Enable NetConsole and see what the cRIO tells you as it crashes. It'll probably have an error message with a clue about the cause of the problem.
Reply With Quote
  #3   Spotlight this post!  
Unread 14-02-2013, 19:56
aziobro aziobro is offline
Registered User
FRC #4475 (Terrier Byte Bots)
Team Role: Leadership
 
Join Date: Nov 2008
Rookie Year: 2009
Location: Newark,NJ
Posts: 7
aziobro will become famous soon enough
Re: Camera image crashing code???

We are seeing the same problem with our code.
There seems to be a problem with the image from the axis camera.
If we check the height and with of the image we get 0.
Even when the GetImage returns true (1) the height and width still say they are 0.


We are using the vision sample code and add the following to check the height and width.

ColorImage *image;

int cameraimagegood = camera.Getimage(image)
int width = image->GetWidth();
int height = image->GetHeight();

We checked the camera setup and it looks correct. (User FRC Password FRC)
The Camera Image is getting to the DashBoard.

We are able to run in debug mode and set breakpoints to check values.

We are stuck.... Any suggestions?
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 13:05.

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