You're a keeper.
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 11-02-2017, 23:14
microbuns's Avatar
microbuns microbuns is online now
Registered User
AKA: Sam Maier
FRC #4917 (Sir Lancerbot)
Team Role: Mentor
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Elmira, ON
Posts: 89
microbuns is an unknown quantity at this point
View Non-Axis IP Camera in GRIP Desktop App

We have a working (non Axis) IP camera which is serving an HTTP MJPEG page which we can access in code via
Code:
cs::HttpCamera hikCamera("HikCam", "http://admin:<password>@10.49.17.11/Streaming/channels/2/httppreview" );

frc::CameraServer::GetInstance()->AddCamera(hikCamera);
frc::CameraServer::GetInstance()->StartAutomaticCapture(hikCamera);
This adds the camera to the CameraServer, and we can see the camera stream on the SmartDashboard. Additionally, we can also view this camera stream by adding the identical URL to VLC. Thus, we know this is the correct address, and both the robot and our computer can see it.

When we use a standard Axis IP cam, our GRIP desktop app works perfectly. However, when adding this camera as an IP cam in the GRIP desktop app, with the above address, it does not show up. It gives some kind of stack trace, but we can't highlight it because it spams the error box so fast, and the box is much too small to be able to see the important parts of the stacktrace (file names or lines), so we can't get that information as to why it is failing.

We are using the latest GRIP (1.5.2) and our camera is the DS-2CD2D14WD.

Has anyone got any other IP cameras than the Axis ones to work with the GRIP desktop app? Thanks.
Reply With Quote
  #2   Spotlight this post!  
Unread 11-02-2017, 23:33
SamCarlberg's Avatar
SamCarlberg SamCarlberg is offline
GRIP, WPILib. 2084 alum
FRC #2084
Team Role: Mentor
 
Join Date: Nov 2015
Rookie Year: 2009
Location: MA
Posts: 169
SamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to behold
Re: View Non-Axis IP Camera in GRIP Desktop App

Please launch GRIP from the command line and share the error message.
__________________
WPILib
GRIP, RobotBuilder
Reply With Quote
  #3   Spotlight this post!  
Unread Yesterday, 21:17
egaudet's Avatar
egaudet egaudet is offline
Registered User
FRC #4917 (Sir Lancerbot)
Team Role: Mentor
 
Join Date: Nov 2016
Rookie Year: 2012
Location: Ontario, Canada
Posts: 5
egaudet is on a distinguished road
Re: View Non-Axis IP Camera in GRIP Desktop App

Just got access to the robot again tonight. I tried to run the following in a cmd prompt and I didn't get any errors outside of the GUI:

C:\Users\<user>\AppData\Local\GRIP\app\GRIP-v1.5.2-x64.jar -f <path to my .grip file>

Not sure what I'm doing wrong. The GRIP pipeline did load properly and I still saw the same problem in the GUI.
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 15:28.

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