Go to Post ....you can't go to a single FIRST event without someone saying "Hey, Look! It's SuperNerd!" - [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 23-01-2017, 10:22
Thad House Thad House is offline
Volunteer, WPILib Contributor
no team (Waiting for 2021)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Thousand Oaks, California
Posts: 1,107
Thad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond repute
Re: Sending Raspberry Pi info to Driver's Station

That example already serves a stream of both the input image and the cv image. The input image streams on port 1185, and can be accessed by any web browser by going to
Code:
http://YOUR.IP.ADDRESS.HERE:1185
. The cv image can be accessed at
Code:
http://YOUR.IP.ADDRESS.HERE:1186
In addition, once you have done your cv processing, the example already links to networktables, so all network tables functionality is already there, initialized, and working. All you would need to do is call
Code:
NetworkTable table = NetworkTable.getTable("SmartDashboard");
and you would have a table object that would send data straight to smart dashboard that you could use on your robot.
__________________
All statements made are my own and not the feelings of any of my affiliated teams.
Teams 1510 and 2898 - Student 2010-2012
Team 4488 - Mentor 2013-2016
Co-developer of RobotDotNet, a .NET port of the WPILib.
Reply With Quote
  #2   Spotlight this post!  
Unread 23-01-2017, 11:25
ryan.mitchell ryan.mitchell is offline
Registered User
FRC #1512 (Big Red)
Team Role: Programmer
 
Join Date: Jan 2017
Rookie Year: 2015
Location: Middletown, Delaware
Posts: 14
ryan.mitchell is an unknown quantity at this point
Re: Sending Raspberry Pi info to Driver's Station

Quote:
Originally Posted by Thad House View Post
That example already serves a stream of both the input image and the cv image. The input image streams on port 1185, and can be accessed by any web browser by going to
Code:
http://YOUR.IP.ADDRESS.HERE:1185
. The cv image can be accessed at
Code:
http://YOUR.IP.ADDRESS.HERE:1186
In addition, once you have done your cv processing, the example already links to networktables, so all network tables functionality is already there, initialized, and working. All you would need to do is call
Code:
NetworkTable table = NetworkTable.getTable("SmartDashboard");
and you would have a table object that would send data straight to smart dashboard that you could use on your robot.
By your ip address do you mean the ip of the team network (directs to the system configuration page without the port). If so, when I put in the address with the port 1185 or 1186 it was unable to connect. On the raspberry pi the log file was:
Code:
NT: client: CONNECTED to server [ip address of team 1512 router] port 1735
Reply With Quote
  #3   Spotlight this post!  
Unread 23-01-2017, 11:37
ryan.mitchell ryan.mitchell is offline
Registered User
FRC #1512 (Big Red)
Team Role: Programmer
 
Join Date: Jan 2017
Rookie Year: 2015
Location: Middletown, Delaware
Posts: 14
ryan.mitchell is an unknown quantity at this point
Re: Sending Raspberry Pi info to Driver's Station

Nevermind! When I used the address "raspberrypi.local:1185" it worked! Thanks so much for your 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 15:35.

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