Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Python (http://www.chiefdelphi.com/forums/forumdisplay.php?f=187)
-   -   GUI Robot Simulator now available in pyfrc (http://www.chiefdelphi.com/forums/showthread.php?t=125534)

virtuald 31-01-2014 00:57

GUI Robot Simulator now available in pyfrc
 
1 Attachment(s)
If you haven't used it yet, pyfrc is a python 3 library designed to make developing code for RobotPy (the Python interpreter for the FIRST Robotics Competition) easier.

As one of the new features in pyfrc v2014.2.0, there is now a robot simulator GUI built into pyfrc that features many of the available objects of WPILib (a screenshot is attached). After installing pyfrc and enabling it in your robot code, the simulator is launched via your robot.py file using the following command:

Code:

python3 robot.py sim
pyfrc is available via pypi and is easily installed via pip. It has been verified to work on Windows, Linux, and OSX. Check out the website for installation instructions. If you find any bugs, please file an issue on github!

virtuald 10-02-2014 01:10

Re: GUI Robot Simulator now available in pyfrc
 
FYI, I've made a lot of bugfixes and improvements to the simulator, so if you've installed it you'll definitely want to upgrade. Some improvements include:
  • Working watchdog support
  • SmartDashboard communication
  • More WPILib features supported
  • Various bugfixes and improvements

Team 1418 has been using this for development and it has definitely helped our students debug problems before they ever get to running code on the robot. If anyone else is using this, I'd be interested in knowing.


All times are GMT -5. The time now is 19:51.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi