View Full Version : "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?
Robototes2412
19-02-2011, 18:27
make a zip of your robot atm and put it on a file sharing site
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.
virtuald
19-02-2011, 19:46
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
> 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?
virtuald
20-02-2011, 09:39
> 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.
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.
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.
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.