Go to Post Guess i don't know what the secret weapon is, but i bet if it can be wedge shaped it is. - Chris [more]
Home
Go Back   Chief Delphi > Technical > Kit & Additional Hardware
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 23-09-2015, 09:18
VrewDaive VrewDaive is offline
Registered User
FRC #4284
 
Join Date: Sep 2015
Location: Cincinnati
Posts: 21
VrewDaive is an unknown quantity at this point
Help with Axis Cameras

Hello everyone! This is my first year in my schools robotics team and i have been tasked with basically everything computer based. Coding drive code etc. The team wants to put on a Axis Camera and although they said that they did it just last year it is not working and i am very confused. Ive tried changing the IP address on the computer while its connected wired and i got through the setup of the camera and thats it. Any help or a step by step walk through would be greatly appreciated.
  #2   Spotlight this post!  
Unread 23-09-2015, 09:30
Ty Tremblay's Avatar
Ty Tremblay Ty Tremblay is offline
Robotics Engineer
FRC #0319 (Big Bad Bob)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2004
Location: Alton NH
Posts: 832
Ty Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond repute
Re: Help with Axis Cameras

Honestly, I would highly suggest using a USB webcam.

Here are a few steps to get you in the right direction:
http://wpilib.screenstepslive.com/s/...ifecam-hd-3000
__________________
  #3   Spotlight this post!  
Unread 23-09-2015, 10:02
Ari423's Avatar
Ari423 Ari423 is offline
LabVIEW aficionado and robot addict
AKA: The guy with the yellow hat
FRC #5987 (Galaxia)
Team Role: Mentor
 
Join Date: Mar 2015
Rookie Year: 2012
Location: Haifa, Israel
Posts: 597
Ari423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant future
Re: Help with Axis Cameras

Quote:
Originally Posted by Ty Tremblay View Post
Honestly, I would highly suggest using a USB webcam.

Here are a few steps to get you in the right direction:
http://wpilib.screenstepslive.com/s/...ifecam-hd-3000
The problem with USB webcams is they use a lot of processing time on the RoboRIO. This could be fine if you are doing low quality video, but the higher quality you want, the more processor time you are taking away from other tasks. Granted the RoboRIO is a beast and probably can handle the load, but it's nice to keep your main processor doing as little excess as possible.

Axis cameras, though they are expensive, are typically the better choice imo. FRC gives a tool to set them up that should be relatively self-explanatory. I believe it is either in C:/Program Files or C:/Program Files/National Instruments/Labview 2014/projects if my memory serves me correctly.
__________________
2017-present: Mentor FRC 5987
2017-present: CSA for FIRST in Israel
2012-2016: Member FRC 423
2013: Programmer
2014: Head Programmer, Wiring
2015: Head Programmer, Wiring
2016: Captain, Head Programmer, Wiring, Manipulator, Chassis, CAD, Business, Outreach (basically everything)


  #4   Spotlight this post!  
Unread 23-09-2015, 10:05
EmileH's Avatar
EmileH EmileH is offline
it's not a water game, ok?
AKA: Emile Hamwey
FRC #1058 (The PVC Pirates) & SLFF (NE Way You Want It)
Team Role: Programmer
 
Join Date: Dec 2014
Rookie Year: 2011
Location: New England
Posts: 536
EmileH has a brilliant futureEmileH has a brilliant futureEmileH has a brilliant futureEmileH has a brilliant futureEmileH has a brilliant futureEmileH has a brilliant futureEmileH has a brilliant futureEmileH has a brilliant futureEmileH has a brilliant futureEmileH has a brilliant futureEmileH has a brilliant future
Re: Help with Axis Cameras

The USB cameras are a bit finicky, if your team uses the SmartDashboard (Java/C++) to view robot data and such, you will need to add a patched camera widget to the dashboard in order to view the camera feed if you are using the Simple Vision example code. The problem with using the stock camera viewer and the Simple Vision code is that the CameraServer (used in Simple Vision) does not send the mJPEG data with Huffman tables and causes an error on the Driver Station, preventing you from seeing your video feed. One way to solve this would be to use the Intermediate Vision example class, however it takes a lot of the RoboRIO CPU to decode and then re-encode the video for viewing on the dashboard, but adds the Huffman tables in the process. If you want to save your RoboRIO some CPU load, and insert the Huffman tables in on the DS computer, use this camera widget.
So you can use the USB camera with the Simple Vision example class (which uses the WPILib CameraServer) and view the image on the DS with the patched widget.

There's a really well-written guide on setting up an Axis Camera here: https://wpilib.screenstepslive.com/s...an-axis-camera
__________________
2016-present: High School Student, FRC 1058 PVC Pirates
2016: RiverRage 20 Champions, Battle of the Bay 3 Champions

2013-2015: Middle School Student, FRC 3467 Windham Windup
  #5   Spotlight this post!  
Unread 23-09-2015, 10:31
Ari423's Avatar
Ari423 Ari423 is offline
LabVIEW aficionado and robot addict
AKA: The guy with the yellow hat
FRC #5987 (Galaxia)
Team Role: Mentor
 
Join Date: Mar 2015
Rookie Year: 2012
Location: Haifa, Israel
Posts: 597
Ari423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant future
Re: Help with Axis Cameras

Quote:
Originally Posted by EmileH View Post
The USB cameras are a bit finicky, if your team uses the SmartDashboard (Java/C++) to view robot data and such, you will need to add a patched camera widget to the dashboard in order to view the camera feed if you are using the Simple Vision example code. The problem with using the stock camera viewer and the Simple Vision code is that the CameraServer (used in Simple Vision) does not send the mJPEG data with Huffman tables and causes an error on the Driver Station, preventing you from seeing your video feed. One way to solve this would be to use the Intermediate Vision example class, however it takes a lot of the RoboRIO CPU to decode and then re-encode the video for viewing on the dashboard, but adds the Huffman tables in the process. If you want to save your RoboRIO some CPU load, and insert the Huffman tables in on the DS computer, use this camera widget.
So you can use the USB camera with the Simple Vision example class (which uses the WPILib CameraServer) and view the image on the DS with the patched widget.

There's a really well-written guide on setting up an Axis Camera here: https://wpilib.screenstepslive.com/s...an-axis-camera
I would argue that if this your first year on an FRC team and you are the only programmer without a mentor (guessing because you asked CD not them) you should probably stick with LabVIEW for at least your first year. I was in practically the same boat as you with a little more experience and I can tell you nothing goes smoothly the first year. Even simple tasks like driving become challenging when you have no experience. Your goal for your first year should be to get the robot working, not to do anything fancy with it. I think for beginner robot programmers LabVIEW is much more forgiving of syntax mistakes and easier to do basic things than C++ or Java (even if you have non-robot programming experience in those languages). With that said, if you do choose to use LabVIEW, USB cameras are easier to use and should be fine for your purposes. The code is written into the sample robot project so all you have to do is plug in the camera and click USB camera (either HW or SW) on the sample dashboard. If you choose to use LabVIEW and need any help, PM me and I will be glad to help.
__________________
2017-present: Mentor FRC 5987
2017-present: CSA for FIRST in Israel
2012-2016: Member FRC 423
2013: Programmer
2014: Head Programmer, Wiring
2015: Head Programmer, Wiring
2016: Captain, Head Programmer, Wiring, Manipulator, Chassis, CAD, Business, Outreach (basically everything)


  #6   Spotlight this post!  
Unread 15-10-2015, 06:55
allanconner148 allanconner148 is offline
Registered User
no team
 
Join Date: Sep 2015
Location: United States
Posts: 1
allanconner148 is an unknown quantity at this point
Re: Help with Axis Cameras

Quote:
Originally Posted by Ty Tremblay View Post
Honestly, I would highly suggest using a USB webcam.

Here are a few steps to get you in the right direction:
A big thanks for new newbie it's work at my side
  #7   Spotlight this post!  
Unread 26-10-2015, 16:26
Fauge7 Fauge7 is offline
Head programmer
FRC #3019 (firebird robotics)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Scottsdale
Posts: 195
Fauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to all
Re: Help with Axis Cameras

on topic: Those resources should help, otherwise make everything a static ip and use a static ip with the form 10.xx.xx.y for everything where xxxx is your team number(made everything easier along with advanced programs).

little bit off topic: I think first is in a transition phase with the axis/usb cameras. They didnt update any of the axis camera api but they made the whole camera server thing. It really complicated the vision tracking this year and it seemed like it was thrown into the dust as NO team that had the 3 tote auto used vision or really any team as it took too much time and you couldnt use the tape for anything. The workarounds for the tape were easy. For position/orientation a simple encoder gyro sensor fusion gave you easily enough accuracy within the first 15 seconds that there was no need for any other sensors for auto.
  #8   Spotlight this post!  
Unread 23-09-2015, 21:49
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,113
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: Help with Axis Cameras

See http://www.chiefdelphi.com/forums/sh...d.php?t=135835 for some helpful suggestions. Basically, use dynamic addressing everywhere, and set the camera's host name to "axis-camera" in the advanced TCP configuration.
Closed Thread


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 08:07.

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