Go to Post I'm all for an aggressive game, but lets not crack each others lexan. - Molten [more]
Home
Go Back   Chief Delphi > Technical > Programming > Python
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 19-02-2011, 16:56
tux tux is offline
Registered User
AKA: Lee Harr
FRC #3842 (Shock-a-Bots)
Team Role: Mentor
 
Join Date: Apr 2005
Rookie Year: 2005
Location: Rochester, NY
Posts: 91
tux is an unknown quantity at this point
"No Robot Code"

I followed the README to build and deploy RobotPy but when we try to connect all we get is "No Robot Code"

The README says to copy the dist/RobotPy-Core/robot directory. So, when that is finished, should there be a directory called "robot" in the root directory on the cRIO? Or am I copying the contents of the robot directory?

I believe I tried it both ways with no luck.

Any other hints on what I might be doing wrong?
Reply With Quote
  #2   Spotlight this post!  
Unread 19-02-2011, 18:27
Robototes2412's Avatar
Robototes2412 Robototes2412 is offline
1 * 4 != 14
FRC #2412 (Robototes)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2007
Location: Bellevue
Posts: 312
Robototes2412 is on a distinguished road
Re: "No Robot Code"

make a zip of your robot atm and put it on a file sharing site
__________________
Code:
class team2412(GP):
    def __init__(self):
        GP.__init__(self)
        self.coopertition = True
        self.info = {"name": "Robototes", "school": "Sammamish High School, Bellevue, WA"}
        assert self.kind_people == True
Reply With Quote
  #3   Spotlight this post!  
Unread 19-02-2011, 18:51
tux tux is offline
Registered User
AKA: Lee Harr
FRC #3842 (Shock-a-Bots)
Team Role: Mentor
 
Join Date: Apr 2005
Rookie Year: 2005
Location: Rochester, NY
Posts: 91
tux is an unknown quantity at this point
Re: "No Robot Code"

I don't have access to the robot again until next Tuesday (ship day).

When I get access, I can try to get a copy of the code I am having trouble with. Are you talking about FTP'ing the entire root directory from the cRIO?

(I think I'm just going to have to move forward with a C++ project to make sure I have something that works.)

Python seems like a huge win to me though, especially not needing to recompile or restart the cRIO after deploying new code.

(Is there a way with C++ to have the new code start right away when deployed, or do we have to restart the cRIO?)

For the RobotPy situation, I'm using FileZilla to do the transfers mentioned in the README, but it's not clear to me how to do the

Copy the "dist\RobotPy-Core\robot" and "dist\RobotPy-WPILib\robot" directory trees to the root (top level) directory on the robot.

step properly. That may be the only problem.

Or it could be a misconfigured build. I realize now I should have tried the pre-built distribution, but when it wasn't working I just went back to a simple C++ project so we could make a test drive.

Thanks for your help.
Reply With Quote
  #4   Spotlight this post!  
Unread 19-02-2011, 19:46
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,032
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: "No Robot Code"

Tux,

If you pull from my git repository of RobotPy, when you do make_dist.bat there is an 'install.py' in each of the dist directories that will let you upload stuff to the robot automatically. Just enter in your team number and it'll FTP stuff to the robot.

Additionally, my repository is updated to WPILIB v2262, whereas Peter's repo is out of date by at least two WPILib updates.

https://github.com/virtuald/RobotPy
__________________
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
  #5   Spotlight this post!  
Unread 19-02-2011, 20:55
tux tux is offline
Registered User
AKA: Lee Harr
FRC #3842 (Shock-a-Bots)
Team Role: Mentor
 
Join Date: Apr 2005
Rookie Year: 2005
Location: Rochester, NY
Posts: 91
tux is an unknown quantity at this point
Re: "No Robot Code"

> there is an 'install.py' in each of the dist directories that will let you
> upload stuff to the robot automatically

Thanks virtuald. If I have time, I will give this a try.

Do I still need to "Delete the ``dist\RobotPy-Core\robot\ni-rt`` directory tree." or does install.py take care of that?
Reply With Quote
  #6   Spotlight this post!  
Unread 20-02-2011, 09:39
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,032
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: "No Robot Code"

Quote:
Originally Posted by tux View Post
> there is an 'install.py' in each of the dist directories that will let you
> upload stuff to the robot automatically

Thanks virtuald. If I have time, I will give this a try.
Ok. Just remember that the 'official' RobotPy doesn't have the last two WPILib updates integrated [since it uses it's own source code for WPILib, as opposed to the library FIRST distributes], so if you're doing anything that might be affected by those, you'll need to use my source instead.

Quote:
Originally Posted by tux View Post
Do I still need to "Delete the ``dist\RobotPy-Core\robot\ni-rt`` directory tree." or does install.py take care of that?
Hmm.. I've never actually done that, and I can't really imagine why you would need to do that either. Usually my build process involves 'make clean', then 'make', then run 'make_dist.bat' and it automatically cleans the dist directory for you.
__________________
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
  #7   Spotlight this post!  
Unread 26-02-2011, 16:23
tux tux is offline
Registered User
AKA: Lee Harr
FRC #3842 (Shock-a-Bots)
Team Role: Mentor
 
Join Date: Apr 2005
Rookie Year: 2005
Location: Rochester, NY
Posts: 91
tux is an unknown quantity at this point
Re: "No Robot Code"

So... I've tried now with the official git repo,
with virtuald's git repo, and with the official
RobotPy downloads, and still all I ever get is
"No Robot Code".

Luckily our code is not very complex, so I
could just write it in C++, but I have no idea
why I can't get RobotPy working.

Argh.
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 21:37.

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