Go to Post What is this "tired" of which you speak? Did it come in the KOP? - EricH [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 05-04-2016, 23:21
blackrootbot blackrootbot is offline
Registered User
FRC #5489
 
Join Date: Jan 2016
Location: Twin Falls Idaho
Posts: 3
blackrootbot is an unknown quantity at this point
Re: Help: Raspberry pi and GRIP

Do you log into the pi and start up grip with ./vision/start_grip.sh? Do you see the program boot and run? In top do you see a java program running and using lots of cpu? If GRIP runs do you see it say that it connected to a server?
Reply With Quote
  #2   Spotlight this post!  
Unread 06-04-2016, 04:59
axton900's Avatar
axton900 axton900 is offline
Programming Co-Captain
FRC #1403 (Cougar Robotics)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2015
Location: New Jersey USA
Posts: 46
axton900 has a spectacular aura aboutaxton900 has a spectacular aura aboutaxton900 has a spectacular aura about
Re: Help: Raspberry pi and GRIP

Hey there!
OpenCV is a better and more stable option. Since it's already late in build season, you may not have time to write new code. You should be able to directly port your GRIP code into OpenCV. It will take some time to port but is definitely doable since OpenCV is the backbones for GRIP. Now if you want some code to sample or look at. I would recommend taking a look at Fauge7's TowerTracker. Our team has been able to run it on a Pi. It is Java though and so you have to install the JDK and make it your default JDK in order to install the library properly. Or you can check out Team 2053's TowerTracker C++ port, which is a direct port of Fauge7's code but instead in the faster and more documented, C++.
If you need any help, feel free to PM
Reply With Quote
  #3   Spotlight this post!  
Unread 06-04-2016, 08:26
sysdes sysdes is offline
Engineering Mentor
AKA: Maurice Veldhuis
FRC #4678 (CyberCavs)
Team Role: Mentor
 
Join Date: Dec 2014
Rookie Year: 2013
Location: Drayton, Ontario
Posts: 9
sysdes has a brilliant futuresysdes has a brilliant futuresysdes has a brilliant futuresysdes has a brilliant futuresysdes has a brilliant futuresysdes has a brilliant futuresysdes has a brilliant futuresysdes has a brilliant futuresysdes has a brilliant futuresysdes has a brilliant futuresysdes has a brilliant future
Re: Help: Raspberry pi and GRIP

Team 4678 was able to use grip on the Rpi 2. To get it working reliably, there were a few key things that needed to be done. We used the Rpi camera because it had almost no lag compared to the USB camera. mjpg-streamer was used to get the stream from the camera. The key here is to use -x 320 -y 240 in the execution of mjpg-streamer to make sure a 320 x 240 image is sent to grip. Sending a 640 x 480 image caused grip to crash and run slow. Also handy for mjpg-streamer was the -rot 90 option which allowed the image to be rotated after we mounted the pi camera at the wrong rotation. When it comes to grip, the 1.3.0 version started every time while the 1.2.0 version started most of the time but was not as reliable. We were able to just copy the 1.3.0 jar file on to the pi as grip.jar and it worked with the grip.project file that we created on the laptop using 1.2.0 and deployed to the pi. mjpg-streamer and grip are started up using systemd. We can provide more details if someone needs them for start on boot. At the competition, in order to work with the FMS, we did need to give the pi a static ip address. It did not seem to be able to use dhcp services to get an address that would allow it to talk to the roborio using network tables. Raspbian Jessie doesn't do static IP like we were used to. It's easiest using the gui through startx then right-click on the network icon to set a static IP. The other method is to edit /etc/dhcpcd.conf. Editing /etc/network/interfaces won't get you to far. We used the static IP 10.46.78.15 and had no problems getting the Rpi to talk to the roborio using the host name roborio-4678-frc.local in the grip configuration.
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 03:22.

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