Go to Post It is a little known fact that Team 1114 is actually "General Motors Canada and Hogwarts Academy" The whole Niagara FIRST thing is just a cover to keep the magic arts concealed from us muggles. - dtengineering [more]
Home
Go Back   Chief Delphi > Technical > Programming
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-10-2016, 21:23
Jayd009's Avatar
Jayd009 Jayd009 is offline
Registered User
AKA: Jonathan
FRC #4468 (Fernbank LINKS)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2016
Location: Atlanta, Georgia
Posts: 27
Jayd009 is on a distinguished road
CameraServer IP Address?

Hello everyone,

I have a quick question. What is the IP Address of a USB Camera that is setup with the cameraserver class? We're trying to run GRIP on the driver station (after failing to run it on a Raspberry Pi & RoboRIO) and I'm trying to set up the camera as an IP Source.

Thanks,

Jonathan

P.S. Is my code correct?
Code:
	
server = CameraServer.getInstance();
camera = new USBCamera("cam0");
camera.setExposureManual(20);
camera.updateSettings();
server.startAutomaticCapture(camera);
__________________
2016: District Event Winner @ Columbus District Qualifier (PCH)
2016: Engineering Inspiration Award @ Peachtree District State Championship
2016: Tesla Subdivision Playoffs Appearance @ FIRST Championship


Reply With Quote
  #2   Spotlight this post!  
Unread 18-10-2016, 21:25
Kyle Heaton's Avatar
Kyle Heaton Kyle Heaton is offline
I like volunteering.
FRC #0045 (TechnoKats)
Team Role: Leadership
 
Join Date: May 2014
Rookie Year: 2014
Location: Indiana, USA
Posts: 23
Kyle Heaton will become famous soon enough
Re: CameraServer IP Address?

I have no experience with GRIP, but I imagine you could find the IP of a camera through the Networking and Sharing Center on your computer (The one connected to said camera), or through the device manager.
__________________
Software Lead Student 2014-2015
Student Technical Lead 2015-2016


Tippecanoe District Winner - Perry Meridian District Winner - District Champs Semifinalists

Kokomo District Quarterfinalists - Dean's List Indiana District Finalist

Arkansas Regional Quarterfinalists - Boilermaker Regional Quarterfinalists

Last edited by Kyle Heaton : 18-10-2016 at 21:28.
Reply With Quote
  #3   Spotlight this post!  
Unread 18-10-2016, 23:41
Peter Johnson Peter Johnson is offline
WPILib Developer
FRC #0294 (Beach Cities Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Redondo Beach, CA
Posts: 243
Peter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud of
Re: CameraServer IP Address?

See https://www.chiefdelphi.com/forums/s...d.php?t=141952. Unless this has changed since then, GRIP doesn't support USB cameras on the roboRio using CameraServer at present due to the non-standard protocol used by the current CameraServer.

We're planning on fixing this for 2017 with a new camera server implementation that provides standard MJPEG-over-HTTP. In the meantime you can look at using mjpg-streamer instead of CameraServer (see https://github.com/robotpy/roborio-p.../mjpg-streamer and https://www.chiefdelphi.com/forums/s...d.php?t=135737). The IP address would be the IP address of the roboRio.
__________________
Author of ntcore - WPILib NetworkTables for 2016+
Creator of RobotPy - Python for FRC

2010 FRC World Champions (294, 67, 177)
2007 FTC World Champions (30, 74, 23)
2001 FRC National Champions (71, 294, 125, 365, 279)

Last edited by Peter Johnson : 18-10-2016 at 23:47.
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 23:57.

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