Go to Post Brandon, can you make some sort of mind-reading device that i can just think "portal" and i'll go back? - Tom Schindler [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 13-01-2017, 16:05
cnc4 cnc4 is offline
Registered User
FRC #2231 (OnyxTronix)
Team Role: Programmer
 
Join Date: Jul 2016
Rookie Year: 2015
Location: Israel
Posts: 21
cnc4 is an unknown quantity at this point
Lets talk about the long deploying time

I am using java to deploy code to the robot and it's taking about half a minute to deploy in the best case scenario. Before 2017 season it was 15 - 20

now it's not a reasonable run time, I mean I didn't check the build process but running a fresh code which takes about 40 sec can surely be reduced.
Does it copy all the 3rd party lib into the robot every time?

I am intrested in hearing your thoughts guys and build time on your programming language.
Reply With Quote
  #2   Spotlight this post!  
Unread 13-01-2017, 16:09
jtrv's Avatar
jtrv jtrv is offline
github.com/jhtervay
AKA: Justin
FRC #2791 (Shaker Robotics)
Team Role: College Student
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Latham, NY
Posts: 148
jtrv is a name known to alljtrv is a name known to alljtrv is a name known to alljtrv is a name known to alljtrv is a name known to alljtrv is a name known to all
Re: Lets talk about the long deploying time

I have also noticed an odd increase in Java deployment time this year. In 2013 it took around 30 seconds, 2014 down to 20-25ish, and 2015 was down to times around 10 seconds. I am not sure about last year's average time, but this year our deploy times have all been longer than 30 seconds. One possible reason is that we are also deploying a CAN library for our speed controllers this year, but I doubt it's the sole reason, and I'm not sure of any other reasons off the top of my head.
__________________
2791 (2012-2017)
Reply With Quote
  #3   Spotlight this post!  
Unread 13-01-2017, 17:25
virtuald's Avatar
virtuald virtuald is offline
RobotPy Guy
AKA: Dustin Spicuzza
FRC #1418 (), FRC #1973, FRC #4796, FRC #6367 ()
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2003
Location: Boston, MA
Posts: 1,086
virtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant future
Re: Lets talk about the long deploying time

This year's deploy scripts makes more ssh calls than it previous made, and if your mDNS resolving isn't particularly fast, it might be the cause. You can test this (ish) by opening a command prompt and doing a 'ping' of roborio-XXXX-frc.local, where XXXX is your team number, if it takes awhile for it to figure how to resolve that address, that could be the culprit.
__________________
Maintainer of RobotPy - Python for FRC
Creator of pyfrc (Robot Simulator + utilities for Python) and pynetworktables/pynetworktables2js (NetworkTables for Python & Javascript)

2017 Season: Teams #1973, #4796, #6369
Team #1418 (remote mentor): Newton Quarterfinalists, 2016 Chesapeake District Champion, 2x Innovation in Control award, 2x district event winner
Team #1418: 2015 DC Regional Innovation In Control Award, #2 seed; 2014 VA Industrial Design Award; 2014 Finalists in DC & VA
Team #2423: 2012 & 2013 Boston Regional Innovation in Control Award


Resources: FIRSTWiki (relaunched!) | My Software Stuff
Reply With Quote
  #4   Spotlight this post!  
Unread 13-01-2017, 20:42
bdaroz's Avatar
bdaroz bdaroz is offline
Programming Mentor
AKA: Brian Rozmierski
FRC #5881 (TVHS Dragons)
Team Role: Mentor
 
Join Date: Jan 2016
Rookie Year: 2016
Location: Albany, NY
Posts: 407
bdaroz has much to be proud ofbdaroz has much to be proud ofbdaroz has much to be proud ofbdaroz has much to be proud ofbdaroz has much to be proud ofbdaroz has much to be proud ofbdaroz has much to be proud ofbdaroz has much to be proud ofbdaroz has much to be proud of
Re: Lets talk about the long deploying time

Regardless of mDNS lookup times, the additional SSH calls are significant on their own and can easily add at least 1/2 to 2s each to setup/teardown.

I haven't looked at how many more SSH calls there are this year, but I suspect that's a major reason, if not the major reason.
Reply With Quote
  #5   Spotlight this post!  
Unread 13-01-2017, 20:55
lucas.alvarez96's Avatar
lucas.alvarez96 lucas.alvarez96 is offline
Registered User
AKA: Lucas Alvarez
FRC #2576 (Chilean Heart)
 
Join Date: Dec 2013
Rookie Year: 2013
Location: Chile
Posts: 123
lucas.alvarez96 is a name known to alllucas.alvarez96 is a name known to alllucas.alvarez96 is a name known to alllucas.alvarez96 is a name known to alllucas.alvarez96 is a name known to alllucas.alvarez96 is a name known to all
Re: Lets talk about the long deploying time

Quote:
Originally Posted by virtuald View Post
This year's deploy scripts makes more ssh calls than it previous made, and if your mDNS resolving isn't particularly fast, it might be the cause. You can test this (ish) by opening a command prompt and doing a 'ping' of roborio-XXXX-frc.local, where XXXX is your team number, if it takes awhile for it to figure how to resolve that address, that could be the culprit.
Do you know if it's possible to automatically fall back to static IP?
__________________
FRC 2576 2015-2016: Mentor
FRC 2576 2013-2015: Programmer & Chairman's Presenter

Los Angeles Regional 2014: Regional Chairman's Award
Reply With Quote
  #6   Spotlight this post!  
Unread 13-01-2017, 21:15
snekiam snekiam is offline
Registered User
FRC #3322 (Eagle Imperium)
Team Role: Programmer
 
Join Date: Dec 2015
Rookie Year: 2010
Location: SE Michigan
Posts: 95
snekiam has a spectacular aura aboutsnekiam has a spectacular aura aboutsnekiam has a spectacular aura about
Re: Lets talk about the long deploying time

Quote:
Originally Posted by lucas.alvarez96 View Post
Do you know if it's possible to automatically fall back to static IP?
You could add a static route to your hosts file
Reply With Quote
  #7   Spotlight this post!  
Unread 14-01-2017, 02:59
Jaci's Avatar
Jaci Jaci is offline
Registered User
AKA: Jaci R Brunning
FRC #5333 (Can't C# | OpenRIO)
Team Role: Mentor
 
Join Date: Jan 2015
Rookie Year: 2015
Location: Perth, Western Australia
Posts: 265
Jaci has a reputation beyond reputeJaci has a reputation beyond reputeJaci has a reputation beyond reputeJaci has a reputation beyond reputeJaci has a reputation beyond reputeJaci has a reputation beyond reputeJaci has a reputation beyond reputeJaci has a reputation beyond reputeJaci has a reputation beyond reputeJaci has a reputation beyond reputeJaci has a reputation beyond repute
Re: Lets talk about the long deploying time

GradleRIO has recently been updated to be 2017 compatible. Deploy times are anywhere from 5-15 seconds. For each deploy, there are only 3 ssh sessions (one for discovery, one for NI utils, one for user code), and libraries are only deployed if they have changed or have not been deployed before (e.g. wpilib, opencv, talonsrx, cscore, etc).

You can see the project here: https://github.com/Open-RIO/GradleRIO
__________________
Jacinta R

Curtin FRC (5333+5663) : Mentor
5333 : Former [Captain | Programmer | Driver], Now Mentor
OpenRIO : Owner

Website | Twitter | Github
jaci.brunning@gmail.com
Reply With Quote
  #8   Spotlight this post!  
Unread 17-01-2017, 00:33
Hess1113's Avatar
Hess1113 Hess1113 is online now
Registered User
AKA: Christopher Hess
FRC #0291 (CIA)
Team Role: Programmer
 
Join Date: Jan 2017
Rookie Year: 2017
Location: Erie, PA
Posts: 19
Hess1113 is an unknown quantity at this point
Re: Lets talk about the long deploying time

I use LabVIEW and one simply edit to your code and you have to build it and Run as startup. This take about 3-5 minutes but one main issue is you have to sit next to your computer due to a couple of warning messages appearing.
Reply With Quote
  #9   Spotlight this post!  
Unread 17-01-2017, 16:15
Rsave7 Rsave7 is offline
Memer
AKA: Ryan
FRC #0379 (The RoboCats)
Team Role: Programmer
 
Join Date: Feb 2015
Rookie Year: 2015
Location: Ohio, United States
Posts: 12
Rsave7 is an unknown quantity at this point
Re: Lets talk about the long deploying time

Quote:
Originally Posted by Hess1113 View Post
I use LabVIEW and one simply edit to your code and you have to build it and Run as startup. This take about 3-5 minutes but one main issue is you have to sit next to your computer due to a couple of warning messages appearing.
Yup.

Thats one of the infinite downsides to using labview. We really need to switch soon!!
__________________
“Scientists discover the world that exists; engineers create the world that never was.”

― Theodore von Karman
Reply With Quote
  #10   Spotlight this post!  
Unread 17-01-2017, 21:18
The Doctor's Avatar
The Doctor The Doctor is offline
Robotics is life
AKA: Hackson
FRC #3216 (MRT)
Team Role: Programmer
 
Join Date: Mar 2014
Rookie Year: 2013
Location: United States
Posts: 155
The Doctor is on a distinguished road
Re: Lets talk about the long deploying time

If you really want to, you could submit an issue or pull request to the official WPIlib. Clearly, as Jaci points out, it could be faster with the right code.

https://github.com/wpilibsuite/allwpilib
__________________
Robots + Python + pentesting == me;
Blog ~ GitHub ~ Keybase
If you have a pressing issue to discuss with me, kik me at slush.puddles since I don't check CD very often.
Reply With Quote
  #11   Spotlight this post!  
Unread 17-01-2017, 21:25
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: 136
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: Lets talk about the long deploying time

Quote:
Originally Posted by The Doctor View Post
If you really want to, you could submit an issue or pull request to the official WPIlib. Clearly, as Jaci points out, it could be faster with the right code.

https://github.com/wpilibsuite/allwpilib
The deploy stuff is in the Eclipse plugins project

Java deploy tasks are here (build.properties and build.xml)

C++ here
__________________
WPILib
GRIP, RobotBuilder
Reply With Quote
  #12   Spotlight this post!  
Unread 18-01-2017, 17:57
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,753
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Lets talk about the long deploying time

Specifically for LV users. I just tested the default code which includes vision acquisition and analysis.

A build was 25 seconds. A Run as Startup was 18. The first time I did these things on my new installation it was longer because it is building more things and caching them.

The interactive deploy (pressing the run button) was about 60 seconds when the target was running something else that needed to be canceled. It was 20 seconds on a target where the VIs were reloaded but the target had them cached. The interactive run was 3 seconds for small changes where the Main VI was not closed.

This was on an i5 several years old - $400 laptop.

Greg McKaskle
Reply With Quote
  #13   Spotlight this post!  
Unread 21-01-2017, 23:58
c0d3rman's Avatar
c0d3rman c0d3rman is offline
Programming Captain
AKA: Yoni Lerner
FRC #4904 (Bot Provoking)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2014
Location: California
Posts: 10
c0d3rman is an unknown quantity at this point
Re: Lets talk about the long deploying time

One thing I found is that using a manual DNS server (8.8.8.8 & 8.8.4.4 for me) made the lookup take significantly longer (40 seconds with, 10 seconds without).
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 23:52.

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