Go to Post buying an iPhone...$599. Monthly service charge...$59. Going to an Apple store just to post on CD... Priceless!:p - Schnabel [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 24-03-2012, 14:51
BrandonAbe BrandonAbe is offline
Registered User
FRC #1025
 
Join Date: Feb 2012
Location: Michigan
Posts: 10
BrandonAbe is an unknown quantity at this point
Axis 206 help needed!

Hey. I am having some vision problems. When I set up the Axis using the imaging tool to use my bridge it works fine. However, once I turn off the robot and turn it back on again, the camera won't work in my driver station. I have my station set to 10.10.25.5, and the camera is still at the default IP 192.168.0.90. How can I get my driver station to load the image every time the robot turns on? Below is a sample of my robot's camera code...


// Acquire the camera object
printf("Waiting for camera to boot\n");
Wait(5.0);
printf("Getting camera instance\n");
AxisCamera &camera = AxisCamera::GetInstance("10.10.25.15");
printf("Setting camera parameters\n");
camera.WriteResolution(AxisCamera::kResolution_320 x240);
camera.WriteCompression(20);
camera.WriteBrightness(0);

/*
// Process the camera image
if ((m_teleopPeriodicLoops % 10) == 0) { // 5 Hz
AxisCamera& camera = AxisCamera::GetInstance();

if (camera.IsFreshImage()) {
ColorImage *image;
camera.GetImage(image);
BinaryImage *thresholdImage = image->ThresholdRGB(threshold); // get just the red target pixels
BinaryImage *bigObjectsImage = thresholdImage->RemoveSmallObjects(false, 2); // remove small objects (noise)
BinaryImage *convexHullImage = bigObjectsImage->ConvexHull(false); // fill in partial and full rectangles
BinaryImage *filteredImage = convexHullImage->ParticleFilter(criteria, 2); // find the rectangles
vector<ParticleAnalysisReport> *reports = filteredImage->GetOrderedParticleAnalysisReports(); // get the results

for (unsigned i = 0; i < reports->size(); i++) {
ParticleAnalysisReport *r = &(reports->at(i));
printf("particle: %d center_mass_x: %d\n", i, r->center_mass_x);
}
printf("\n");

// be sure to delete images after using them
delete reports;
delete filteredImage;
delete convexHullImage;
delete bigObjectsImage;
delete thresholdImage;
delete image;
}
}
*/
}
Reply With Quote
  #2   Spotlight this post!  
Unread 24-03-2012, 15:01
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,754
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Axis 206 help needed!

Try picking up the latest Axis Camera Tool from NI Utilities Update. The original kickoff one had a settings bug that lost the camera when it was powered down.
Quote:
Fixes in 2.0
  • cRIO Imaging Tool - Timeout error due to various network interface configurations
  • Setup Axis Camera Tool - Axis 206 camera loses communication after power cycle
The camera is also normally set to 10.10.25.11 (rather than .15)
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 24-03-2012 at 15:08.
Reply With Quote
  #3   Spotlight this post!  
Unread 24-03-2012, 17:02
BrandonAbe BrandonAbe is offline
Registered User
FRC #1025
 
Join Date: Feb 2012
Location: Michigan
Posts: 10
BrandonAbe is an unknown quantity at this point
Re: Axis 206 help needed!

Thanks, I'll try it out when we unbag again on Tuesday. I was trying arbitrary numbers, and I saw someone used .15, so I tried it. Thanks for all the help.
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 12:59.

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