Go to Post Feelings are like the laws of physics: if some one feels offended or alienated, then they are offended or alienated - it doesnt matter why you dropped a hammer, if it falls on someones head they will be hurt. You cant expect it to not hurt, because you did not intend to hurt them. - KenWittlief [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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 18-02-2012, 18:58
NS_Radication's Avatar
NS_Radication NS_Radication is offline
Student
AKA: Marco Schoener
FRC #1369 (Minotaur)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2009
Location: Tampa
Posts: 88
NS_Radication is an unknown quantity at this point
Axis 206 Noob

Our robot is going as planned for the most part, so I tried to attach the Axis 206 camera. I have the camera powered and setup for the cRio. When I got to he default program and loaded it, I got an error for a program in a .cpp extension to read from that DOES NOT EXIST! I have gone to this thread in he of finding help, but I got even more confused!

http://www.chiefdelphi.com/forums/sh...d.php?t=102121

So if anyone can help me, that will be greatly appreciated.

Thank you in advanced and Happy Competitions!

P.S. if I was vague or have misconceptions, please feel free to be as crucially-correct as possible!!!
__________________
Team 1369
Senior
Head Programmer (Java)
Head Electrician
Reply With Quote
  #2   Spotlight this post!  
Unread 19-02-2012, 01:07
jesusrambo jesusrambo is offline
Self-Proclaimed Programmer Messiah
AKA: JD Russo
FRC #2035 (Robo Rockin' Bots)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2010
Location: Carmel, CA
Posts: 114
jesusrambo is an unknown quantity at this point
Re: Axis 206 Noob

What's the error?
Reply With Quote
  #3   Spotlight this post!  
Unread 19-02-2012, 10:02
NS_Radication's Avatar
NS_Radication NS_Radication is offline
Student
AKA: Marco Schoener
FRC #1369 (Minotaur)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2009
Location: Tampa
Posts: 88
NS_Radication is an unknown quantity at this point
Re: Axis 206 Noob

I can't remember, but when I get back from today's meeting, I will post it.
__________________
Team 1369
Senior
Head Programmer (Java)
Head Electrician
Reply With Quote
  #4   Spotlight this post!  
Unread 19-02-2012, 11:02
Chiller Chiller is offline
Registered User
AKA: Connor Christie
FRC #4095 (RoXI Robotics)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Wisconsin
Posts: 118
Chiller is on a distinguished road
Re: Axis 206 Noob

What was the error?
Reply With Quote
  #5   Spotlight this post!  
Unread 19-02-2012, 14:57
jesusrambo jesusrambo is offline
Self-Proclaimed Programmer Messiah
AKA: JD Russo
FRC #2035 (Robo Rockin' Bots)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2010
Location: Carmel, CA
Posts: 114
jesusrambo is an unknown quantity at this point
Can't do too much without that
Reply With Quote
  #6   Spotlight this post!  
Unread 19-02-2012, 23:15
NS_Radication's Avatar
NS_Radication NS_Radication is offline
Student
AKA: Marco Schoener
FRC #1369 (Minotaur)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2009
Location: Tampa
Posts: 88
NS_Radication is an unknown quantity at this point
Re: Axis 206 Noob

Sorry for the wait. Here is the error on Netbeans:

ERROR: S_errno_ECONNREFUSED (0x0000003D): Failed to connect to the camera ...in CreateCameraSocket() in C:/WindRiver/workspace/WPILib/Vision/AxisCameraParams.cpp at line 457


What is this and what do I do? By the way, this is from default program with little camera programming knowledge.

ANYTHING is helpful so be a crucial as needed.

Thanks again in advanced!
__________________
Team 1369
Senior
Head Programmer (Java)
Head Electrician
Reply With Quote
  #7   Spotlight this post!  
Unread 19-02-2012, 23:37
NS_Radication's Avatar
NS_Radication NS_Radication is offline
Student
AKA: Marco Schoener
FRC #1369 (Minotaur)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2009
Location: Tampa
Posts: 88
NS_Radication is an unknown quantity at this point
Re: Axis 206 Noob

By the way, the camera was connected to the second Ethernet port on the cRio I with a default Gateway on the Classmate as 10.13.69.2

I forgot what 10.13.69.11 gave me, but it was probably still the error message in my previous post still.

ERROR: S_errno_ECONNREFUSED (0x0000003D): Failed to connect to the camera ...in CreateCameraSocket() in C:/WindRiver/workspace/WPILib/Vision/AxisCameraParams.cpp at line 457

He this info helps!
__________________
Team 1369
Senior
Head Programmer (Java)
Head Electrician
Reply With Quote
  #8   Spotlight this post!  
Unread 20-02-2012, 15:41
jesusrambo jesusrambo is offline
Self-Proclaimed Programmer Messiah
AKA: JD Russo
FRC #2035 (Robo Rockin' Bots)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2010
Location: Carmel, CA
Posts: 114
jesusrambo is an unknown quantity at this point
Default gateway should be .4 if using a wireless router. Make sure the camera is set up to be 10.13.69.90 in its own config, too
Reply With Quote
  #9   Spotlight this post!  
Unread 20-02-2012, 18:58
nickpeq nickpeq is offline
Turing-complete
FRC #1255 (Blarglefish)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Baytown, TX
Posts: 60
nickpeq is an unknown quantity at this point
Re: Axis 206 Noob

Connect the camera through the bridge instead of the cRIO.
I still get errors like that in the first few seconds that the camera is starting up.
Reply With Quote
  #10   Spotlight this post!  
Unread 25-02-2012, 16:47
NS_Radication's Avatar
NS_Radication NS_Radication is offline
Student
AKA: Marco Schoener
FRC #1369 (Minotaur)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2009
Location: Tampa
Posts: 88
NS_Radication is an unknown quantity at this point
Exclamation Re: Axis 206 Noob

I got live feed to the dashboard thru the bridge and it is reading. I tried running the test and tracker programs. One of the programs was reading how many seconds to get 100 images and after a few times, it got nothing, I am not sure if it was because the targets were not there or not. I don't really now what to do now or how the camera code works. I did get the concept by this thread:

http://www.chiefdelphi.com/forums/sh...d.php?t=103646

AND

http://www.chiefdelphi.com/forums/sh...d.php?t=103705

I don't really know how to change code or what to look for. Any help will be appreciated!

Thanks in advanced and Happy Competitions!
__________________
Team 1369
Senior
Head Programmer (Java)
Head Electrician
Reply With Quote
  #11   Spotlight this post!  
Unread 26-02-2012, 00:09
NS_Radication's Avatar
NS_Radication NS_Radication is offline
Student
AKA: Marco Schoener
FRC #1369 (Minotaur)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2009
Location: Tampa
Posts: 88
NS_Radication is an unknown quantity at this point
Re: Axis 206 Noob

Is it recommended to have a stationary Axis camera? (advantage and disadvantage)
How does the Axis camera servos work, where is the plugin and how does the tracker move them?

I don't fully understand the camera code, but I found a thread that helped me understand the full concept of the camera. But after that, I don't know what to implement or how to implement code on java to track a target or manipulate for what I need.

I got the camera to connect, but I don't know how to detect if it is tracking. I used the cameratest and trackerdemo in java and I saw in one of the programs showed the time per 100 images for a few times and then refused to see anything and gave no images at every activation while the code was running and the cRIO was on. It resets after a recompiling or power cycle.

How can I attach a ring of LEDs around the camera and how do I power it. I have electronics experience, but I do not know how to implement it on the FIRST electronics and how many LEDs are required?

Thank you in advanced for your help!
__________________
Team 1369
Senior
Head Programmer (Java)
Head Electrician
Reply With Quote
  #12   Spotlight this post!  
Unread 29-02-2012, 14:24
NS_Radication's Avatar
NS_Radication NS_Radication is offline
Student
AKA: Marco Schoener
FRC #1369 (Minotaur)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2009
Location: Tampa
Posts: 88
NS_Radication is an unknown quantity at this point
Unhappy Re: Axis 206 Noob

Desperation bump
__________________
Team 1369
Senior
Head Programmer (Java)
Head Electrician
Reply With Quote
  #13   Spotlight this post!  
Unread 29-02-2012, 16:48
Ginto8's Avatar
Ginto8 Ginto8 is offline
Programming Lead
AKA: Joe Doyle
FRC #2729 (Storm)
Team Role: Programmer
 
Join Date: Oct 2010
Rookie Year: 2010
Location: Marlton, NJ
Posts: 174
Ginto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of light
Re: Axis 206 Noob

Although I don't know all the specifics, our team got a 12-LED (or about that) LED ring and attached it around the camera lens with some double-sided foam tape.

I'm really not sure what you mean by "Axis camera servos." The cameras have mounts, and no motorized parts. Theoretically you could mount one on a servo and have a variable angle camera, but it's not an inherent part of the design.

I would not suggest a moving camera, if only because calculations that would normally have constants would have variables that would need to be updated or retrieved somehow, which means more complexity.

Cameras don't inherently track targets - they are stupid, and can only provide images. You the programmer are responsible for making the cRIO be the smarts. Your issue with the camera test crashing sounds like a memory leak (not freeing memory it should be). I ran into an almost identical issue with my tracking code during early testing.

I explained the theory behind tracking targets with the camera fairly extensively in this thread, and once I have the new, simplified version of my code tested (which will happen tomorrow), I will be posting it so that all may benefit.
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 09:53.

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