|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Sending Raspberry Pi info to Driver's Station
Hey everyone, I am the sole programmer working on this on my team and so I would really appreciate whatever help I can get with this - currently I have my raspberry pi hooked up via Ethernet cable to the router that the roborio is also hooked up to via Ethernet cable, and my driver's station is connected to the network of course. On the raspberry pi is a program that starts up a USB Camera connected to the pi and processes the image. I know it successfully connects to the radio and starts up the camera when I boot the program (from the log file) but how do I access the image on my driver's station. I have read some things about network tables...could someone enlighten me? Thanks so much!
Also, in case this helps, it is the java project provided here: http://first.wpi.edu/FRC/roborio/cop...JavaGradle.zip I followed these steps: https://wpilib.screenstepslive.com/s...essing-in-java |
|
#2
|
||||
|
||||
|
Re: Sending Raspberry Pi info to Driver's Station
Quote:
Look into Network Tables. They should do what you need, there are plenty of threads about it on CD. https://www.chiefdelphi.com/forums/s...Network+tables |
|
#3
|
|||
|
|||
|
Re: Sending Raspberry Pi info to Driver's Station
Ok, will do! Gotta say, was starting to feel a bit hopeless after spending hours figuring out how the pi worked (never used it before) and then hitting this wall, so I appreciate the direction.
|
|
#4
|
|||
|
|||
|
Re: Sending Raspberry Pi info to Driver's Station
Assuming this will be your competition configuration, you will want to put a switch/hub on your robot so that you can easily tether to your robot during competitions.
I suggest figuring out a way to send the picture directly from the Pi to your DS. Minimize what you have to do through your RoboRio. This might be helpful http://raspberrypi.stackexchange.com...y-pi-to-laptop You can also put an IP camera on your robot that connects to the DS. |
|
#5
|
||||
|
||||
|
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 Code:
http://YOUR.IP.ADDRESS.HERE:1186 Code:
NetworkTable table = NetworkTable.getTable("SmartDashboard");
|
|
#6
|
|||
|
|||
|
Re: Sending Raspberry Pi info to Driver's Station
Quote:
Code:
NT: client: CONNECTED to server [ip address of team 1512 router] port 1735 |
|
#7
|
|||
|
|||
|
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!
|
|
#8
|
|||
|
|||
|
Re: Sending Raspberry Pi info to Driver's Station
Quote:
|
|
#9
|
|||
|
|||
|
Re: Sending Raspberry Pi info to Driver's Station
Quote:
If anyone is interested. |
|
#10
|
||||
|
||||
|
Re: Sending Raspberry Pi info to Driver's Station
That is exactly what I was about to link you to. There is probably a getNumberArray(key) method in there you will want to use.
|
|
#11
|
||||
|
||||
|
Re: Sending Raspberry Pi info to Driver's Station
Quote:
|
|
#12
|
||||
|
||||
|
Re: Sending Raspberry Pi info to Driver's Station
For the record, there was some more discussion on this topic in this thread on the controls forum
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|