Go to Post Like fishing, some may get away as you are reeling them in, but never letting out enough line to get the big ones at the bottom is just disappointing. - Eric O [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 31-08-2016, 22:56
4AngryNutjobs's Avatar
4AngryNutjobs 4AngryNutjobs is offline
Registered User
FRC #3859
 
Join Date: Oct 2011
Location: Elk Grove, CA
Posts: 16
4AngryNutjobs is an unknown quantity at this point
Raspberry Pi to Roborio Communication

My team has been working on implementing vision for this offseason, and has been able to create python code on a raspberry pi 2 that finds the angle the robot needs to turn to, to align to the target. The issue our team is struggling with is how to send this data to the roborio. I have been informed that networking and networktables are possible solutions, but i know very little about these topics and would need some serious help in their implementation. If you have any other ideas for communication or examples for how to implement networktables/networking it would be much appreciated. Our pi vision code is in python and our robot code is in c++. Thanks in advance for your help.
Reply With Quote
  #2   Spotlight this post!  
Unread 31-08-2016, 23:23
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,356
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: Raspberry Pi to Roborio Communication

This is Mr. Bill on EagleForce, right across town from you.
We are doing exactly the same thing, except the Robot is coded in Java.
I would highly suggest you use UDP to send your target data to the RoboRio over Ethernet . In Python it is just 2 lines of code.
An alternative is to send it over USB. Again, just a couple lines of code. Just make sure you don't allow the receive buffer overflow.
Please feel free to ask me for help on this. Jack can give you my contact info.
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
Reply With Quote
  #3   Spotlight this post!  
Unread 01-09-2016, 03:08
marshall's Avatar
marshall marshall is offline
My pants are louder than yours.
FRC #0900 (The Zebracorns)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2003
Location: North Carolina
Posts: 1,282
marshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond repute
Re: Raspberry Pi to Roborio Communication

Would also look at using ZeroMQ. Just a suggestion though. It might be more than you need but it works great for us.
__________________
"La mejor salsa del mundo es la hambre" - Miguel de Cervantes
"The future is unwritten" - Joe Strummer
"Simplify, then add lightness" - Colin Chapman
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 01:01.

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