Go to Post Gracious professionalism... otherwise, the program has failed. - Yan Wang [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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 02-02-2015, 13:11
robat-mentor robat-mentor is offline
Registered User
FRC #3953
 
Join Date: Jan 2013
Location: United States
Posts: 10
robat-mentor is an unknown quantity at this point
C++ deploy code missing

Hi we are unable to deploy code. The menu option is missing. We've reinstalled eclipse and all the plugins etc but nothing works at all. Does anyone know how we can get around this bug?
Reply With Quote
  #2   Spotlight this post!  
Unread 02-02-2015, 13:30
MHSrobotics2853's Avatar
MHSrobotics2853 MHSrobotics2853 is offline
Mililani Robotics
FRC #2853 (Trobobots)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Mililani, HI 96789
Posts: 47
MHSrobotics2853 is just really niceMHSrobotics2853 is just really niceMHSrobotics2853 is just really niceMHSrobotics2853 is just really niceMHSrobotics2853 is just really nice
Re: C++ deploy code missing

You deploy code by clicking the green play button (top left in image below) and selecting "WPILib C++ Deploy." Do you have that option?

Screenshot
Reply With Quote
  #3   Spotlight this post!  
Unread 02-02-2015, 16:17
robat-mentor robat-mentor is offline
Registered User
FRC #3953
 
Join Date: Jan 2013
Location: United States
Posts: 10
robat-mentor is an unknown quantity at this point
Re: C++ deploy code missing

I will take a look and see if we have that option available.
Reply With Quote
  #4   Spotlight this post!  
Unread 02-02-2015, 18:01
robat-mentor robat-mentor is offline
Registered User
FRC #3953
 
Join Date: Jan 2013
Location: United States
Posts: 10
robat-mentor is an unknown quantity at this point
Re: C++ deploy code missing

OK, that menu option does exist. However it does nothing at all.

I have created a sample robot program from the supplied sample.
We have made no edits to the sample cope at all.
we picked, project, clean
then, project build all.
Then pressed green play button, selected WPILib C++ Deploy
and.....

Nothing at all.........................................

(We are connected with the USB cable).

Any suggestions how we can deploy any code to the robot?
Reply With Quote
  #5   Spotlight this post!  
Unread 02-02-2015, 19:45
wireties's Avatar
wireties wireties is offline
Principal Engineer
AKA: Keith Buchanan
FRC #1296 (Full Metal Jackets)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Rockwall, TX
Posts: 1,170
wireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond repute
Send a message via AIM to wireties
Re: C++ deploy code missing

(connected over the network) you can scp the code to the robot, login and run it yourself, something like this...

I do it like this from Linux:

scp FRCUserProgram lvuser@roborio1296.local:/home/lvuser
ssh lvuser@roborio1296.local

(on the robot)

./FRCUserProgram

HTH
__________________
Fast, cheap or working - pick any two!
Reply With Quote
  #6   Spotlight this post!  
Unread 02-02-2015, 20:38
robat-mentor robat-mentor is offline
Registered User
FRC #3953
 
Join Date: Jan 2013
Location: United States
Posts: 10
robat-mentor is an unknown quantity at this point
Re: C++ deploy code missing

Hi and thank you for the reply. Unfortunately I know nothing about Linux or scp. Are there any options within the new roborio web page? If the roborio has a webserver on it, can I upload the code like a web page instead? Would that be done using HTTP protocol?

Thanks
Reply With Quote
  #7   Spotlight this post!  
Unread 02-02-2015, 21:13
robat-mentor robat-mentor is offline
Registered User
FRC #3953
 
Join Date: Jan 2013
Location: United States
Posts: 10
robat-mentor is an unknown quantity at this point
Re: C++ deploy code missing

I tried disabling wifi and wired lan and then I got the deploy option to do something. Unfortunatly the Roborio still doesn't work. The RSL is on solid, I assume this means there's no robot code. Anyway, I couldn't make the deploy option work again because it was no longer on the menus. I deleted all my robot code projects and created a new robot sample. I am now getting a brand new error and the deploy option refuses the work too. Here's the error I am getting now.

Info: Internal Builder is used for build

arm-frc-linux-gnueabi-g++ -std=c++1y "-IC:\\Users\\Developer/wpilib/cpp/current/include“ ”-IC:\\Users\\Developer\\workspace\\Mecanum Drive\\src" -O0 -g3 -Wall -c -fmessage-length=0 -o "src\\Robot.o“ ”..\\src\\Robot.cpp"

arm-frc-linux-gnueabi-g++ "-LC:\\Users\\Developer/wpilib/cpp/current/lib" -Wl,-rpath,/opt/GenICam_v2_3/bin/Linux_armv7-a -o FRCUserProgram "src\\Robot.o" -lwpi

c:/frc/bin/../lib/gcc/arm-frc-linux-gnueabi/4.9.1/../../../../arm-frc-linux-gnueabi/bin/ld.exe: warning: libstdc++.so.6, needed by C:\Users\Developer/wpilib/cpp/current/lib\libFRC_NetworkCommunication.so.1.5.0, not found (try using -rpath or -rpath-link)

23:05:35 Build Finished (took 11s.170ms)

Does anyone know hoe to use the rpath- or rpath-link functions?
Reply With Quote
  #8   Spotlight this post!  
Unread 03-02-2015, 03:52
wireties's Avatar
wireties wireties is offline
Principal Engineer
AKA: Keith Buchanan
FRC #1296 (Full Metal Jackets)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Rockwall, TX
Posts: 1,170
wireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond repute
Send a message via AIM to wireties
Re: C++ deploy code missing

that is a warning, not an error
__________________
Fast, cheap or working - pick any two!
Reply With Quote
  #9   Spotlight this post!  
Unread 03-02-2015, 08:07
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 989
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: C++ deploy code missing

Quote:
Originally Posted by robat-mentor View Post
I am now getting a brand new error and the deploy option refuses the work too. Here's the error I am getting now.
Are you getting anything in the Eclipse Console when you try to Deploy? Or does nothing happen at all? How about if you right click on the build.xml in the project and select Run As->Ant Build (I think that's what it's called, this computer doesn't have Eclipse to double check).
Reply With Quote
  #10   Spotlight this post!  
Unread 03-02-2015, 08:46
wireties's Avatar
wireties wireties is offline
Principal Engineer
AKA: Keith Buchanan
FRC #1296 (Full Metal Jackets)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Rockwall, TX
Posts: 1,170
wireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond repute
Send a message via AIM to wireties
Re: C++ deploy code missing

Try connecting through the network - the first step (after imaging the roborio, did you do that?) is to see if you can ping roborioXXXX.local (XXXX is the team number). If you can do that then deployment from Eclipse should work. Can you post what is printing in the console window (one of the tabbed views in the bottom center of the perspective) when you try to deploy.

I can't help much with the USB connection. We only did that once when we imaged the roborio. You have to connect it to a network eventually anyways - that is how you connect to the driver station. Try it on the network.

HTH
__________________
Fast, cheap or working - pick any two!
Reply With Quote
  #11   Spotlight this post!  
Unread 04-02-2015, 01:06
Morgan Clemons Morgan Clemons is offline
Registered User
FRC #5520
Team Role: Programmer
 
Join Date: Aug 2013
Rookie Year: 2012
Location: Virginia
Posts: 1
Morgan Clemons is an unknown quantity at this point
Re: C++ deploy code missing

Our team is having a similar problem. we have been deploying from our team laptop for about a week now, everything was going fine. Last meeting however, something changed. When we tried to deploy I noticed that the normal option "WPILib C++ Deploy" had vanished. then after restarting eclipse it now says "WPILib Java Deploy" when clicked it does nothing. the plugins for WPILib java are not installed on this machine. The Ant build option does seem like its deploying (Ill be able to connect to the robot tomorrow.) I have the same problem on a second computer only this one has never populated a deploy option. Why is all this is happening, and is there a better "fix"?

Update:
after using the "ant build" option on PC 2 eclipse ran a brief "installing cpp" command, then the build option populated. Trying to replicate on PC 1, so far no such luck.

Last edited by Morgan Clemons : 04-02-2015 at 01:21. Reason: Update (2/4/15)
Reply With Quote
  #12   Spotlight this post!  
Unread 04-02-2015, 13:15
robat-mentor robat-mentor is offline
Registered User
FRC #3953
 
Join Date: Jan 2013
Location: United States
Posts: 10
robat-mentor is an unknown quantity at this point
Re: C++ deploy code missing

Well after much trouble I think I have found some things that might help. We have found a series of quirks and tricks that are required for deployment to work. In order to help other teams get past these major problems, here's a list of the things you need to know. We learned these the hard way but we're glad to help any other team and save them from the hell we went through.

First of all, it's crucial that you do not have multiple channels active. What I mean by that is that when you plug in the USB cable you MUST disable the wired and wireless LAN adapters in your laptop. This is the ONLY way that Eclipse will not become hopelessly confused and remove the deploy menu option.

Secondly, after you have deployed you MUST unplug the USB and then plug it back in again BEFORE you can deploy again, otherwise Eclipse throws an unrelated error which is very misleading.

Thirdly, after you deploy code you MUST find the "restart robot code" button on the drivers station and press it. Otherwise the drivers station erroneously reports that there is NO ROBOT CODE on the roborio.

Fourthly, don't expect the roborio to flash the RSL like the Crio did. There seems to be only 2 modes. ON SOLID or BLINKING. Neither of these modes seems to have anything to do with robot code or the readiness of the roborio at all.

Finally, As I mentioned, whenever you deploy you MUST disable both wired and wireless LAN adapters so that the USB connection is the ONLY choice that Eclipse has available. Once you have deployed you must unplug the USB connector and enable your wireless adapter so that the drivers station can connect to the roborio. I find this very annoying and time consuming.

We have NEVER been able to deploy using ethernet, wired or wireless at all so we stopped wasting our time trying to make it work. There are always challenges related to the setup and usage of the FRC IDE but this season seems to have magnified those challenges and made them a complete show stopper. Our team has lost 1 week of our build season due to these newly introduced problems. We've been unable to deploy any code and therefore unable to test anything. Is this supposed to be part of the challenge?
Reply With Quote
  #13   Spotlight this post!  
Unread 04-02-2015, 14:20
bob.wolff68's Avatar
bob.wolff68 bob.wolff68 is offline
Da' Mentor Man
FRC #1967
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2007
Location: United States
Posts: 157
bob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nice
Re: C++ deploy code missing

Wow - this is a VERY restrictive setup you seem to have. I think the information is GREAT for those having troubles. However, I will say that our team's experience this year is VERY different than yours. We are able to have ethernet and USB connected simultaneously - we are able to deploy via either. We are able to deploy repeatedly - we are able to do so without asking for a robot restart of code or system - and our deploy menu item almost always is present. I do remember seeing it disappear on me once or twice but it came back seemingly without intervention.

I hope your experience can be helpful to WPI/FIRST and to those having troubles, but I don't believe it should be the 'rule' on how to operate.

Good luck and I hope your prescription continues to work for you consistently!

bob
__________________
~~~~~~~~~~~~~~~~~~~
Bob Wolff - Software from the old-school
Mentor / C / C++ guy
Team 1967 - The Janksters - San Jose, CA
Reply With Quote
  #14   Spotlight this post!  
Unread 04-02-2015, 14:34
robat-mentor robat-mentor is offline
Registered User
FRC #3953
 
Join Date: Jan 2013
Location: United States
Posts: 10
robat-mentor is an unknown quantity at this point
Re: C++ deploy code missing

Thank you for taking the time to respond. I am very glad to hear that you haven't faced the problems we and many other teams have. We have learned through bitter experience that to deviate from the hard learned rules only results in many wasted hours reloading Eclipse etc. Your posting actually helps me to highlight another point.

Due to the highly random nature of the problems with the FRC IDE, the playing field is most definately NOT level at all.

I hardly think that it is in the spirit of Gracious Professionalism that our team should lose 1 week of our build season whilst other teams happily have no problems at all.

On the other hand, Solving problems and dealing with all eventualities is what we do best.

If you Google these problems you'll find many that we are not alone.
Reply With Quote
  #15   Spotlight this post!  
Unread 04-02-2015, 15:52
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: C++ deploy code missing

Quote:
Originally Posted by robat-mentor View Post
If you Google these problems you'll find many that we are not alone.
In the vast majority of those problems (at least the ones I know of), turning off firewalls and antivirus programs (and following the instructions correctly) has been the solution.


The causes of other less tractable problems are slowly being identified and fixed. One team eventually discovered that their school networking was inappropriately responding to mDNS queries and had to disconnect from that network. Another found that their school networking was actively interfering with their robot's wireless connection as a "rogue access point". As Bag Day is approaching quickly, I recognize that taking time to do deep troubleshooting is a luxury, and I don't know how long it would take to find the underlying issue given your resources. I do know that finding and fixing it will make the development process a lot easier and faster afterward.
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 14:05.

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