mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-06 03:31:43 +00:00
Moves examples.xml to json, and adds template json (#1026)
This commit is contained in:
committed by
Peter Johnson
parent
5c2c5ccd07
commit
dab6f40b46
@@ -1,482 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<examples>
|
||||
<!-- TODO add back in when there are enough samples to justify tags
|
||||
<tagDescription>
|
||||
<name>Simple Robot</name>
|
||||
<description>Examples for simple robot programs.</description>
|
||||
</tagDescription>
|
||||
<tagDescription>
|
||||
<name>Network Tables</name>
|
||||
<description>Examples of how to use Network Tables to accomplish a
|
||||
variety of tasks such as sending and receiving values to both
|
||||
dashboards and co-processors.</description>
|
||||
</tagDescription>
|
||||
<tagDescription>
|
||||
<name>Simulation</name>
|
||||
<description>Examples that can be run in simulation.</description>
|
||||
</tagDescription>-->
|
||||
<tagDescription>
|
||||
<name>Getting Started with C++</name>
|
||||
<description>Examples for getting started with FRC C++</description>
|
||||
</tagDescription>
|
||||
<tagDescription>
|
||||
<name>CommandBased Robot</name>
|
||||
<description>Examples for CommandBased robot programs.</description>
|
||||
</tagDescription>
|
||||
<tagDescription>
|
||||
<name>Actuators</name>
|
||||
<description>Example programs that demonstrate the use of various actuators</description>
|
||||
</tagDescription>
|
||||
<tagDescription>
|
||||
<name>Analog</name>
|
||||
<description>Examples programs that show different uses of analog inputs,
|
||||
outputs and various analog sensors</description>
|
||||
</tagDescription>
|
||||
<tagDescription>
|
||||
<name>CAN</name>
|
||||
<description>Example programs that demonstrate the use of the CAN components in the control
|
||||
system</description>
|
||||
</tagDescription>
|
||||
<tagDescription>
|
||||
<name>Complete List</name>
|
||||
<description>Complete list of all sample programs across all categories</description>
|
||||
</tagDescription>
|
||||
<tagDescription>
|
||||
<name>Digital</name>
|
||||
<description>Example programs that demonstrate the sensors that use the digital I/O ports</description>
|
||||
</tagDescription>
|
||||
<tagDescription>
|
||||
<name>I2C</name>
|
||||
<description>Example programs that demonstrate the use of I2C and various sensors that use
|
||||
it</description>
|
||||
</tagDescription>
|
||||
<tagDescription>
|
||||
<name>Joystick</name>
|
||||
<description>Example programs that demonstate different uses of joysticks for robot
|
||||
driving</description>
|
||||
</tagDescription>
|
||||
<tagDescription>
|
||||
<name>Pneumatics</name>
|
||||
<description>Example programs that demonstrate the use of the compressor and solenoids</description>
|
||||
</tagDescription>
|
||||
<tagDescription>
|
||||
<name>Robot and Motor</name>
|
||||
<description>Example programs that demonstrate driving a robot and motors including safety,
|
||||
servos, etc.</description>
|
||||
</tagDescription>
|
||||
<tagDescription>
|
||||
<name>SPI</name>
|
||||
<description>Example programs that demonstrate the use of the SPI bus and sensors that
|
||||
connect to it</description>
|
||||
</tagDescription>
|
||||
<tagDescription>
|
||||
<name>Safety</name>
|
||||
<description>Example programs that demonstate the motor safety classes and how to use them
|
||||
with your programs</description>
|
||||
</tagDescription>
|
||||
<tagDescription>
|
||||
<name>Sensors</name>
|
||||
<description>Example programs that demonstrate the use of the various commonly used sensors
|
||||
on FRC robots</description>
|
||||
</tagDescription>
|
||||
<tagDescription>
|
||||
<name>Vision</name>
|
||||
<description>Example programs that demonstrate the use of a camera for image acquisition and
|
||||
processing</description>
|
||||
</tagDescription>
|
||||
<example>
|
||||
<name>Motor Controller</name>
|
||||
<description>Demonstrate controlling a single motor with a Joystick.</description>
|
||||
<tags>
|
||||
<tag>Robot and Motor</tag>
|
||||
<tag>Actuators</tag>
|
||||
<tag>Joystick</tag>
|
||||
<tag>Complete List</tag>
|
||||
</tags>
|
||||
<packages>
|
||||
<package>src</package>
|
||||
</packages>
|
||||
<files>
|
||||
<file source="examples/MotorControl/src/Robot.cpp" destination="src/Robot.cpp" />
|
||||
</files>
|
||||
</example>
|
||||
<example>
|
||||
<name>Motor Control With Encoder</name>
|
||||
<description>Demonstrate controlling a single motor with a Joystick and displaying the net
|
||||
movement of the motor using an encoder.</description>
|
||||
<tags>
|
||||
<tag>Robot and Motor</tag>
|
||||
<tag>Digital</tag>
|
||||
<tag>Sensors</tag>
|
||||
<tag>Actuators</tag>
|
||||
<tag>Joystick</tag>
|
||||
<tag>Complete List</tag>
|
||||
</tags>
|
||||
<packages>
|
||||
<package>src</package>
|
||||
</packages>
|
||||
<files>
|
||||
<file source="examples/MotorControl/src/Robot.cpp" destination="src/Robot.cpp" />
|
||||
</files>
|
||||
</example>
|
||||
<example>
|
||||
<name>Relay</name>
|
||||
<description>Demonstrate controlling a Relay from Joystick buttons.</description>
|
||||
<tags>
|
||||
<tag>Actuators</tag>
|
||||
<tag>Joystick</tag>
|
||||
<tag>Complete List</tag>
|
||||
</tags>
|
||||
<packages>
|
||||
<package>src</package>
|
||||
</packages>
|
||||
<files>
|
||||
<file source="examples/Relay/src/Robot.cpp" destination="src/Robot.cpp" />
|
||||
</files>
|
||||
</example>
|
||||
<example>
|
||||
<name>PDP CAN Monitoring</name>
|
||||
<description>Demonstrate using CAN to monitor the voltage, current, and temperature in the
|
||||
Power Distribution Panel.</description>
|
||||
<tags>
|
||||
<tag>Complete List</tag>
|
||||
<tag>CAN</tag>
|
||||
<tag>Sensors</tag>
|
||||
</tags>
|
||||
<packages>
|
||||
<package>src</package>
|
||||
</packages>
|
||||
<files>
|
||||
<file source="examples/CANPDP/src/Robot.cpp" destination="src/Robot.cpp" />
|
||||
</files>
|
||||
</example>
|
||||
<example>
|
||||
<name>Solenoids</name>
|
||||
<description>Demonstrate controlling a single and double solenoid from Joystick buttons.</description>
|
||||
<tags>
|
||||
<tag>Actuators</tag>
|
||||
<tag>Joystick</tag>
|
||||
<tag>Pneumatics</tag>
|
||||
<tag>Complete List</tag>
|
||||
</tags>
|
||||
<packages>
|
||||
<package>src</package>
|
||||
</packages>
|
||||
<files>
|
||||
<file source="examples/Solenoid/src/Robot.cpp" destination="src/Robot.cpp" />
|
||||
</files>
|
||||
</example>
|
||||
<example>
|
||||
<name>Encoder</name>
|
||||
<description>Demonstrate displaying the value of a quadrature encoder on the
|
||||
SmartDashboard.</description>
|
||||
<tags>
|
||||
<tag>Complete List</tag>
|
||||
<tag>Digital</tag>
|
||||
<tag>Sensors</tag>
|
||||
</tags>
|
||||
<packages>
|
||||
<package>src</package>
|
||||
</packages>
|
||||
<files>
|
||||
<file source="examples/Encoder/src/Robot.cpp" destination="src/Robot.cpp" />
|
||||
</files>
|
||||
</example>
|
||||
<example>
|
||||
<name>Arcade Drive</name>
|
||||
<description>An example program which demonstrates the use of Arcade Drive with the DifferentialDrive class</description>
|
||||
<tags>
|
||||
<tag>Getting Started with C++</tag>
|
||||
<tag>Robot and Motor</tag>
|
||||
<tag>Joystick</tag>
|
||||
<tag>Complete List</tag>
|
||||
</tags>
|
||||
<packages>
|
||||
<package>src</package>
|
||||
</packages>
|
||||
<files>
|
||||
<file source="examples/ArcadeDrive/src/Robot.cpp" destination="src/Robot.cpp" />
|
||||
</files>
|
||||
</example>
|
||||
<example>
|
||||
<name>Mecanum Drive</name>
|
||||
<description>An example program which demonstrates the use of Mecanum Drive with the MecanumDrive class</description>
|
||||
<tags>
|
||||
<tag>Getting Started with C++</tag>
|
||||
<tag>Robot and Motor</tag>
|
||||
<tag>Joystick</tag>
|
||||
<tag>Complete List</tag>
|
||||
</tags>
|
||||
<packages>
|
||||
<package>src</package>
|
||||
</packages>
|
||||
<files>
|
||||
<file source="examples/MecanumDrive/src/Robot.cpp" destination="src/Robot.cpp" />
|
||||
</files>
|
||||
</example>
|
||||
<example>
|
||||
<name>Ultrasonic</name>
|
||||
<description>Demonstrate maintaining a set distance using an ultrasonic sensor.</description>
|
||||
<tags>
|
||||
<tag>Robot and Motor</tag>
|
||||
<tag>Complete List</tag>
|
||||
<tag>Sensors</tag>
|
||||
<tag>Analog</tag>
|
||||
</tags>
|
||||
<packages>
|
||||
<package>src</package>
|
||||
</packages>
|
||||
<files>
|
||||
<file source="examples/Ultrasonic/src/Robot.cpp" destination="src/Robot.cpp" />
|
||||
</files>
|
||||
</example>
|
||||
<example>
|
||||
<name>UltrasonicPID</name>
|
||||
<description>Demonstrate maintaining a set distance using an ultrasonic sensor and PID
|
||||
control.</description>
|
||||
<tags>
|
||||
<tag>Robot and Motor</tag>
|
||||
<tag>Complete List</tag>
|
||||
<tag>Sensors</tag>
|
||||
<tag>Analog</tag>
|
||||
</tags>
|
||||
<packages>
|
||||
<package>src</package>
|
||||
</packages>
|
||||
<files>
|
||||
<file source="examples/UltrasonicPID/src/Robot.cpp" destination="src/Robot.cpp" />
|
||||
</files>
|
||||
</example>
|
||||
<example>
|
||||
<name>Gyro</name>
|
||||
<description>An example program showing how to drive straight with using a gyro sensor.</description>
|
||||
<tags>
|
||||
<tag>Robot and Motor</tag>
|
||||
<tag>Complete List</tag>
|
||||
<tag>Sensors</tag>
|
||||
<tag>Analog</tag>
|
||||
<tag>Joystick</tag>
|
||||
</tags>
|
||||
<packages>
|
||||
<package>src</package>
|
||||
</packages>
|
||||
<files>
|
||||
<file source="examples/Gyro/src/Robot.cpp" destination="src/Robot.cpp" />
|
||||
</files>
|
||||
</example>
|
||||
<example>
|
||||
<name>Gyro Mecanum</name>
|
||||
<description>An example program showing how to perform mecanum drive with field oriented
|
||||
controls.</description>
|
||||
<tags>
|
||||
<tag>Robot and Motor</tag>
|
||||
<tag>Complete List</tag>
|
||||
<tag>Sensors</tag>
|
||||
<tag>Analog</tag>
|
||||
<tag>Joysitck</tag>
|
||||
</tags>
|
||||
<packages>
|
||||
<package>src</package>
|
||||
</packages>
|
||||
<files>
|
||||
<file source="examples/GyroMecanum/src/Robot.cpp" destination="src/Robot.cpp" />
|
||||
</files>
|
||||
</example>
|
||||
<example>
|
||||
<name>PotentiometerPID</name>
|
||||
<description>An example to demonstrate the use of a potentiometer and PID control to reach
|
||||
elevator position setpoints.</description>
|
||||
<tags>
|
||||
<tag>Joystick</tag>
|
||||
<tag>Actuators</tag>
|
||||
<tag>Complete List</tag>
|
||||
<tag>Sensors</tag>
|
||||
<tag>Analog</tag>
|
||||
</tags>
|
||||
<packages>
|
||||
<package>src</package>
|
||||
</packages>
|
||||
<files>
|
||||
<file source="examples/PotentiometerPID/src/Robot.cpp" destination="src/Robot.cpp" />
|
||||
</files>
|
||||
</example>
|
||||
<example>
|
||||
<name>Getting Started</name>
|
||||
<description>An example program which demonstrates the simplest autonomous and
|
||||
teleoperated routines.</description>
|
||||
<tags>
|
||||
<tag>Getting Started with C++</tag>
|
||||
<tag>Complete List</tag>
|
||||
</tags>
|
||||
<packages>
|
||||
<package>src</package>
|
||||
</packages>
|
||||
<files>
|
||||
<file source="examples/GettingStarted/src/Robot.cpp" destination="src/Robot.cpp" />
|
||||
</files>
|
||||
</example>
|
||||
<example>
|
||||
<name>Simple Vision</name>
|
||||
<description>The minimal program to acquire images from an attached USB camera on the robot
|
||||
and send them to the dashboard.</description>
|
||||
<tags>
|
||||
<tag>Vision</tag>
|
||||
<tag>Complete List</tag>
|
||||
</tags>
|
||||
<packages>
|
||||
<package>src</package>
|
||||
</packages>
|
||||
<files>
|
||||
<file source="examples/QuickVision/src/Robot.cpp" destination="src/Robot.cpp" />
|
||||
</files>
|
||||
</example>
|
||||
<example>
|
||||
<name>Intermediate Vision</name>
|
||||
<description>An example program that acquires images from an attached USB camera and adds
|
||||
some
|
||||
annotation to the image as you might do for showing operators the result of some image
|
||||
recognition, and sends it to the dashboard for display.</description>
|
||||
<tags>
|
||||
<tag>Vision</tag>
|
||||
<tag>Complete List</tag>
|
||||
</tags>
|
||||
<packages>
|
||||
<package>src</package>
|
||||
</packages>
|
||||
<files>
|
||||
<file source="examples/IntermediateVision/src/Robot.cpp" destination="src/Robot.cpp" />
|
||||
</files>
|
||||
</example>
|
||||
<example>
|
||||
<name>Axis Camera Sample</name>
|
||||
<description>An example program that acquires images from an Axis network camera and adds
|
||||
some
|
||||
annotation to the image as you might do for showing operators the result of some image
|
||||
recognition, and sends it to the dashboard for display. This demonstrates the use of the
|
||||
AxisCamera class.</description>
|
||||
<tags>
|
||||
<tag>Vision</tag>
|
||||
<tag>Complete List</tag>
|
||||
</tags>
|
||||
<packages>
|
||||
<package>src</package>
|
||||
</packages>
|
||||
<files>
|
||||
<file source="examples/AxisCameraSample/src/Robot.cpp" destination="src/Robot.cpp" />
|
||||
</files>
|
||||
</example>
|
||||
<example>
|
||||
<name>GearsBot</name>
|
||||
<description>A fully functional example CommandBased program for
|
||||
WPIs GearsBot robot. This code can run on your computer if it
|
||||
supports simulation.</description>
|
||||
<tags>
|
||||
<tag>CommandBased Robot</tag>
|
||||
<tag>Complete List</tag>
|
||||
</tags>
|
||||
<world>/usr/share/frcsim/worlds/GearsBotDemo.world</world>
|
||||
<packages>
|
||||
<package>src</package>
|
||||
<package>src/Commands</package>
|
||||
<package>src/Subsystems</package>
|
||||
</packages>
|
||||
<files>
|
||||
<file source="examples/GearsBot/src/Commands/Autonomous.cpp" destination="src/Commands/Autonomous.cpp" />
|
||||
<file source="examples/GearsBot/src/Commands/Autonomous.h" destination="src/Commands/Autonomous.h" />
|
||||
<file source="examples/GearsBot/src/Commands/CloseClaw.cpp" destination="src/Commands/CloseClaw.cpp" />
|
||||
<file source="examples/GearsBot/src/Commands/CloseClaw.h" destination="src/Commands/CloseClaw.h" />
|
||||
<file source="examples/GearsBot/src/Commands/DriveStraight.cpp" destination="src/Commands/DriveStraight.cpp" />
|
||||
<file source="examples/GearsBot/src/Commands/DriveStraight.h" destination="src/Commands/DriveStraight.h" />
|
||||
<file source="examples/GearsBot/src/Commands/OpenClaw.cpp" destination="src/Commands/OpenClaw.cpp" />
|
||||
<file source="examples/GearsBot/src/Commands/OpenClaw.h" destination="src/Commands/OpenClaw.h" />
|
||||
<file source="examples/GearsBot/src/Commands/Pickup.cpp" destination="src/Commands/Pickup.cpp" />
|
||||
<file source="examples/GearsBot/src/Commands/Pickup.h" destination="src/Commands/Pickup.h" />
|
||||
<file source="examples/GearsBot/src/Commands/Place.cpp" destination="src/Commands/Place.cpp" />
|
||||
<file source="examples/GearsBot/src/Commands/Place.h" destination="src/Commands/Place.h" />
|
||||
<file source="examples/GearsBot/src/Commands/PrepareToPickup.cpp" destination="src/Commands/PrepareToPickup.cpp" />
|
||||
<file source="examples/GearsBot/src/Commands/PrepareToPickup.h" destination="src/Commands/PrepareToPickup.h" />
|
||||
<file source="examples/GearsBot/src/Commands/SetDistanceToBox.cpp" destination="src/Commands/SetDistanceToBox.cpp" />
|
||||
<file source="examples/GearsBot/src/Commands/SetDistanceToBox.h" destination="src/Commands/SetDistanceToBox.h" />
|
||||
<file source="examples/GearsBot/src/Commands/SetElevatorSetpoint.cpp" destination="src/Commands/SetElevatorSetpoint.cpp" />
|
||||
<file source="examples/GearsBot/src/Commands/SetElevatorSetpoint.h" destination="src/Commands/SetElevatorSetpoint.h" />
|
||||
<file source="examples/GearsBot/src/Commands/SetWristSetpoint.cpp" destination="src/Commands/SetWristSetpoint.cpp" />
|
||||
<file source="examples/GearsBot/src/Commands/SetWristSetpoint.h" destination="src/Commands/SetWristSetpoint.h" />
|
||||
<file source="examples/GearsBot/src/Commands/TankDriveWithJoystick.cpp" destination="src/Commands/TankDriveWithJoystick.cpp" />
|
||||
<file source="examples/GearsBot/src/Commands/TankDriveWithJoystick.h" destination="src/Commands/TankDriveWithJoystick.h" />
|
||||
<file source="examples/GearsBot/src/OI.cpp" destination="src/OI.cpp" />
|
||||
<file source="examples/GearsBot/src/OI.h" destination="src/OI.h" />
|
||||
<file source="examples/GearsBot/src/Robot.cpp" destination="src/Robot.cpp" />
|
||||
<file source="examples/GearsBot/src/Robot.h" destination="src/Robot.h" />
|
||||
<file source="examples/GearsBot/src/Subsystems/Claw.cpp" destination="src/Subsystems/Claw.cpp" />
|
||||
<file source="examples/GearsBot/src/Subsystems/Claw.h" destination="src/Subsystems/Claw.h" />
|
||||
<file source="examples/GearsBot/src/Subsystems/DriveTrain.cpp" destination="src/Subsystems/DriveTrain.cpp" />
|
||||
<file source="examples/GearsBot/src/Subsystems/DriveTrain.h" destination="src/Subsystems/DriveTrain.h" />
|
||||
<file source="examples/GearsBot/src/Subsystems/Elevator.cpp" destination="src/Subsystems/Elevator.cpp" />
|
||||
<file source="examples/GearsBot/src/Subsystems/Elevator.h" destination="src/Subsystems/Elevator.h" />
|
||||
<file source="examples/GearsBot/src/Subsystems/Wrist.cpp" destination="src/Subsystems/Wrist.cpp" />
|
||||
<file source="examples/GearsBot/src/Subsystems/Wrist.h" destination="src/Subsystems/Wrist.h" />
|
||||
</files>
|
||||
</example>
|
||||
<example>
|
||||
<name>PacGoat</name>
|
||||
<description>A fully functional example CommandBased program for FRC Team 190&#39;s 2014
|
||||
robot. This code can run on your computer if it supports simulation.</description>
|
||||
<tags>
|
||||
<tag>CommandBased Robot</tag>
|
||||
<tag>Complete List</tag>
|
||||
</tags>
|
||||
<world>/usr/share/frcsim/worlds/PacGoat2014.world</world>
|
||||
<packages>
|
||||
<package>src</package>
|
||||
<package>src/Commands</package>
|
||||
<package>src/Subsystems</package>
|
||||
<package>src/Triggers</package>
|
||||
</packages>
|
||||
<files>
|
||||
<file source="examples/PacGoat/src/Commands/CheckForHotGoal.cpp" destination="src/Commands/CheckForHotGoal.cpp" />
|
||||
<file source="examples/PacGoat/src/Commands/CheckForHotGoal.h" destination="src/Commands/CheckForHotGoal.h" />
|
||||
<file source="examples/PacGoat/src/Commands/CloseClaw.cpp" destination="src/Commands/CloseClaw.cpp" />
|
||||
<file source="examples/PacGoat/src/Commands/CloseClaw.h" destination="src/Commands/CloseClaw.h" />
|
||||
<file source="examples/PacGoat/src/Commands/Collect.cpp" destination="src/Commands/Collect.cpp" />
|
||||
<file source="examples/PacGoat/src/Commands/Collect.h" destination="src/Commands/Collect.h" />
|
||||
<file source="examples/PacGoat/src/Commands/DriveAndShootAutonomous.cpp" destination="src/Commands/DriveAndShootAutonomous.cpp" />
|
||||
<file source="examples/PacGoat/src/Commands/DriveAndShootAutonomous.h" destination="src/Commands/DriveAndShootAutonomous.h" />
|
||||
<file source="examples/PacGoat/src/Commands/DriveForward.cpp" destination="src/Commands/DriveForward.cpp" />
|
||||
<file source="examples/PacGoat/src/Commands/DriveForward.h" destination="src/Commands/DriveForward.h" />
|
||||
<file source="examples/PacGoat/src/Commands/DriveWithJoystick.cpp" destination="src/Commands/DriveWithJoystick.cpp" />
|
||||
<file source="examples/PacGoat/src/Commands/DriveWithJoystick.h" destination="src/Commands/DriveWithJoystick.h" />
|
||||
<file source="examples/PacGoat/src/Commands/ExtendShooter.cpp" destination="src/Commands/ExtendShooter.cpp" />
|
||||
<file source="examples/PacGoat/src/Commands/ExtendShooter.h" destination="src/Commands/ExtendShooter.h" />
|
||||
<file source="examples/PacGoat/src/Commands/LowGoal.cpp" destination="src/Commands/LowGoal.cpp" />
|
||||
<file source="examples/PacGoat/src/Commands/LowGoal.h" destination="src/Commands/LowGoal.h" />
|
||||
<file source="examples/PacGoat/src/Commands/OpenClaw.cpp" destination="src/Commands/OpenClaw.cpp" />
|
||||
<file source="examples/PacGoat/src/Commands/OpenClaw.h" destination="src/Commands/OpenClaw.h" />
|
||||
<file source="examples/PacGoat/src/Commands/SetCollectionSpeed.cpp" destination="src/Commands/SetCollectionSpeed.cpp" />
|
||||
<file source="examples/PacGoat/src/Commands/SetCollectionSpeed.h" destination="src/Commands/SetCollectionSpeed.h" />
|
||||
<file source="examples/PacGoat/src/Commands/SetPivotSetpoint.cpp" destination="src/Commands/SetPivotSetpoint.cpp" />
|
||||
<file source="examples/PacGoat/src/Commands/SetPivotSetpoint.h" destination="src/Commands/SetPivotSetpoint.h" />
|
||||
<file source="examples/PacGoat/src/Commands/Shoot.cpp" destination="src/Commands/Shoot.cpp" />
|
||||
<file source="examples/PacGoat/src/Commands/Shoot.h" destination="src/Commands/Shoot.h" />
|
||||
<file source="examples/PacGoat/src/Commands/WaitForBall.cpp" destination="src/Commands/WaitForBall.cpp" />
|
||||
<file source="examples/PacGoat/src/Commands/WaitForBall.h" destination="src/Commands/WaitForBall.h" />
|
||||
<file source="examples/PacGoat/src/Commands/WaitForPressure.cpp" destination="src/Commands/WaitForPressure.cpp" />
|
||||
<file source="examples/PacGoat/src/Commands/WaitForPressure.h" destination="src/Commands/WaitForPressure.h" />
|
||||
<file source="examples/PacGoat/src/OI.cpp" destination="src/OI.cpp" />
|
||||
<file source="examples/PacGoat/src/OI.h" destination="src/OI.h" />
|
||||
<file source="examples/PacGoat/src/Robot.cpp" destination="src/Robot.cpp" />
|
||||
<file source="examples/PacGoat/src/Robot.h" destination="src/Robot.h" />
|
||||
<file source="examples/PacGoat/src/Subsystems/Collector.cpp" destination="src/Subsystems/Collector.cpp" />
|
||||
<file source="examples/PacGoat/src/Subsystems/Collector.h" destination="src/Subsystems/Collector.h" />
|
||||
<file source="examples/PacGoat/src/Subsystems/DriveTrain.cpp" destination="src/Subsystems/DriveTrain.cpp" />
|
||||
<file source="examples/PacGoat/src/Subsystems/DriveTrain.h" destination="src/Subsystems/DriveTrain.h" />
|
||||
<file source="examples/PacGoat/src/Subsystems/Pivot.cpp" destination="src/Subsystems/Pivot.cpp" />
|
||||
<file source="examples/PacGoat/src/Subsystems/Pivot.h" destination="src/Subsystems/Pivot.h" />
|
||||
<file source="examples/PacGoat/src/Subsystems/Pneumatics.cpp" destination="src/Subsystems/Pneumatics.cpp" />
|
||||
<file source="examples/PacGoat/src/Subsystems/Pneumatics.h" destination="src/Subsystems/Pneumatics.h" />
|
||||
<file source="examples/PacGoat/src/Subsystems/Shooter.cpp" destination="src/Subsystems/Shooter.cpp" />
|
||||
<file source="examples/PacGoat/src/Subsystems/Shooter.h" destination="src/Subsystems/Shooter.h" />
|
||||
<file source="examples/PacGoat/src/Triggers/DoubleButton.cpp" destination="src/Triggers/DoubleButton.cpp" />
|
||||
<file source="examples/PacGoat/src/Triggers/DoubleButton.h" destination="src/Triggers/DoubleButton.h" />
|
||||
</files>
|
||||
</example>
|
||||
</examples>
|
||||
@@ -1,74 +1,70 @@
|
||||
apply plugin: 'maven-publish'
|
||||
apply plugin: 'edu.wpi.first.wpilib.versioning.WPILibVersioningPlugin'
|
||||
|
||||
if (!hasProperty('releaseType')) {
|
||||
WPILibVersion {
|
||||
releaseType = 'dev'
|
||||
}
|
||||
}
|
||||
|
||||
def pubVersion
|
||||
if (project.hasProperty("publishVersion")) {
|
||||
pubVersion = project.publishVersion
|
||||
} else {
|
||||
pubVersion = WPILibVersion.version
|
||||
}
|
||||
|
||||
def baseExamplesArtifactId = 'examples'
|
||||
def baseTemplatesArtifactId = 'templates'
|
||||
def artifactGroupId = 'edu.wpi.first.wpilibc'
|
||||
|
||||
def outputsFolder = file("$project.buildDir/outputs")
|
||||
|
||||
task cppExamplesZip(type: Zip) {
|
||||
destinationDir = outputsFolder
|
||||
baseName = 'wpilibc-examples'
|
||||
|
||||
from(licenseFile) {
|
||||
into '/'
|
||||
}
|
||||
|
||||
from('src/main/cpp/examples') {
|
||||
into 'examples'
|
||||
}
|
||||
|
||||
from('examples.xml') {
|
||||
into 'examples'
|
||||
}
|
||||
}
|
||||
|
||||
task cppTemplatesZip(type: Zip) {
|
||||
destinationDir = outputsFolder
|
||||
baseName = 'wpilibc-templates'
|
||||
|
||||
from(licenseFile) {
|
||||
into '/'
|
||||
}
|
||||
|
||||
from('src/main/cpp/templates') {
|
||||
into 'templates'
|
||||
}
|
||||
}
|
||||
|
||||
build.dependsOn cppTemplatesZip
|
||||
build.dependsOn cppExamplesZip
|
||||
|
||||
publishing {
|
||||
publications {
|
||||
examples(MavenPublication) {
|
||||
artifact cppExamplesZip
|
||||
|
||||
artifactId = baseExamplesArtifactId
|
||||
groupId artifactGroupId
|
||||
version pubVersion
|
||||
}
|
||||
|
||||
templates(MavenPublication) {
|
||||
artifact cppTemplatesZip
|
||||
|
||||
artifactId = baseTemplatesArtifactId
|
||||
groupId artifactGroupId
|
||||
version pubVersion
|
||||
}
|
||||
}
|
||||
}
|
||||
apply plugin: 'maven-publish'
|
||||
apply plugin: 'edu.wpi.first.wpilib.versioning.WPILibVersioningPlugin'
|
||||
|
||||
if (!hasProperty('releaseType')) {
|
||||
WPILibVersion {
|
||||
releaseType = 'dev'
|
||||
}
|
||||
}
|
||||
|
||||
def pubVersion
|
||||
if (project.hasProperty("publishVersion")) {
|
||||
pubVersion = project.publishVersion
|
||||
} else {
|
||||
pubVersion = WPILibVersion.version
|
||||
}
|
||||
|
||||
def baseExamplesArtifactId = 'examples'
|
||||
def baseTemplatesArtifactId = 'templates'
|
||||
def artifactGroupId = 'edu.wpi.first.wpilibc'
|
||||
|
||||
def outputsFolder = file("$project.buildDir/outputs")
|
||||
|
||||
task cppExamplesZip(type: Zip) {
|
||||
destinationDir = outputsFolder
|
||||
baseName = 'wpilibc-examples'
|
||||
|
||||
from(licenseFile) {
|
||||
into '/'
|
||||
}
|
||||
|
||||
from('src/main/cpp/examples') {
|
||||
into 'examples'
|
||||
}
|
||||
}
|
||||
|
||||
task cppTemplatesZip(type: Zip) {
|
||||
destinationDir = outputsFolder
|
||||
baseName = 'wpilibc-templates'
|
||||
|
||||
from(licenseFile) {
|
||||
into '/'
|
||||
}
|
||||
|
||||
from('src/main/cpp/templates') {
|
||||
into 'templates'
|
||||
}
|
||||
}
|
||||
|
||||
build.dependsOn cppTemplatesZip
|
||||
build.dependsOn cppExamplesZip
|
||||
|
||||
publishing {
|
||||
publications {
|
||||
examples(MavenPublication) {
|
||||
artifact cppExamplesZip
|
||||
|
||||
artifactId = baseExamplesArtifactId
|
||||
groupId artifactGroupId
|
||||
version pubVersion
|
||||
}
|
||||
|
||||
templates(MavenPublication) {
|
||||
artifact cppTemplatesZip
|
||||
|
||||
artifactId = baseTemplatesArtifactId
|
||||
groupId artifactGroupId
|
||||
version pubVersion
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
182
wpilibcExamples/src/main/cpp/examples/examples.json
Normal file
182
wpilibcExamples/src/main/cpp/examples/examples.json
Normal file
@@ -0,0 +1,182 @@
|
||||
[
|
||||
{
|
||||
"name": "Motor Controller",
|
||||
"description": "Demonstrate controlling a single motor with a Joystick.",
|
||||
"tags": [
|
||||
"Robot and Motor",
|
||||
"Actuators",
|
||||
"Joystick",
|
||||
"Complete List"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Motor Control With Encoder",
|
||||
"description": "Demonstrate controlling a single motor with a Joystick and displaying the net movement of the motor using an encoder.",
|
||||
"tags": [
|
||||
"Robot and Motor",
|
||||
"Digital",
|
||||
"Sensors",
|
||||
"Actuators",
|
||||
"Joystick",
|
||||
"Complete List"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Relay",
|
||||
"description": "Demonstrate controlling a Relay from Joystick buttons.",
|
||||
"tags": [
|
||||
"Actuators",
|
||||
"Joystick",
|
||||
"Complete List"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "PDP CAN Monitoring",
|
||||
"description": "Demonstrate using CAN to monitor the voltage, current, and temperature in the Power Distribution Panel.",
|
||||
"tags": [
|
||||
"Complete List",
|
||||
"CAN",
|
||||
"Sensors"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Solenoids",
|
||||
"description": "Demonstrate controlling a single and double solenoid from Joystick buttons.",
|
||||
"tags": [
|
||||
"Actuators",
|
||||
"Joystick",
|
||||
"Pneumatics",
|
||||
"Complete List"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Encoder",
|
||||
"description": "Demonstrate displaying the value of a quadrature encoder on the SmartDashboard.",
|
||||
"tags": [
|
||||
"Complete List",
|
||||
"Digital",
|
||||
"Sensors"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Arcade Drive",
|
||||
"description": "An example program which demonstrates the use of Arcade Drive with the DifferentialDrive class",
|
||||
"tags": [
|
||||
"Getting Started with C++",
|
||||
"Robot and Motor",
|
||||
"Joystick",
|
||||
"Complete List"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Mecanum Drive",
|
||||
"description": "An example program which demonstrates the use of Mecanum Drive with the MecanumDrive class",
|
||||
"tags": [
|
||||
"Getting Started with C++",
|
||||
"Robot and Motor",
|
||||
"Joystick",
|
||||
"Complete List"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Ultrasonic",
|
||||
"description": "Demonstrate maintaining a set distance using an ultrasonic sensor.",
|
||||
"tags": [
|
||||
"Robot and Motor",
|
||||
"Complete List",
|
||||
"Sensors",
|
||||
"Analog"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "UltrasonicPID",
|
||||
"description": "Demonstrate maintaining a set distance using an ultrasonic sensor and PID control.",
|
||||
"tags": [
|
||||
"Robot and Motor",
|
||||
"Complete List",
|
||||
"Sensors",
|
||||
"Analog"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Gyro",
|
||||
"description": "An example program showing how to drive straight with using a gyro sensor.",
|
||||
"tags": [
|
||||
"Robot and Motor",
|
||||
"Complete List",
|
||||
"Sensors",
|
||||
"Analog",
|
||||
"Joystick"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Gyro Mecanum",
|
||||
"description": "An example program showing how to perform mecanum drive with field oriented controls.",
|
||||
"tags": [
|
||||
"Robot and Motor",
|
||||
"Complete List",
|
||||
"Sensors",
|
||||
"Analog",
|
||||
"Joysitck"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "PotentiometerPID",
|
||||
"description": "An example to demonstrate the use of a potentiometer and PID control to reach elevator position setpoints.",
|
||||
"tags": [
|
||||
"Joystick",
|
||||
"Actuators",
|
||||
"Complete List",
|
||||
"Sensors",
|
||||
"Analog"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Getting Started",
|
||||
"description": "An example program which demonstrates the simplest autonomous and teleoperated routines.",
|
||||
"tags": [
|
||||
"Getting Started with C++",
|
||||
"Complete List"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Simple Vision",
|
||||
"description": "The minimal program to acquire images from an attached USB camera on the robot and send them to the dashboard.",
|
||||
"tags": [
|
||||
"Vision",
|
||||
"Complete List"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Intermediate Vision",
|
||||
"description": "An example program that acquires images from an attached USB camera and adds some annotation to the image as you might do for showing operators the result of some image recognition, and sends it to the dashboard for display.",
|
||||
"tags": [
|
||||
"Vision",
|
||||
"Complete List"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Axis Camera Sample",
|
||||
"description": "An example program that acquires images from an Axis network camera and adds some annotation to the image as you might do for showing operators the result of some image recognition, and sends it to the dashboard for display. This demonstrates the use of the AxisCamera class.",
|
||||
"tags": [
|
||||
"Vision",
|
||||
"Complete List"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "GearsBot",
|
||||
"description": "A fully functional example CommandBased program for WPIs GearsBot robot. This code can run on your computer if it supports simulation.",
|
||||
"tags": [
|
||||
"CommandBased Robot",
|
||||
"Complete List"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "PacGoat",
|
||||
"description": "A fully functional example CommandBased program for FRC Team 190's 2014 robot. This code can run on your computer if it supports simulation.",
|
||||
"tags": [
|
||||
"CommandBased Robot",
|
||||
"Complete List"
|
||||
]
|
||||
}
|
||||
]
|
||||
34
wpilibcExamples/src/main/cpp/templates/templates.json
Normal file
34
wpilibcExamples/src/main/cpp/templates/templates.json
Normal file
@@ -0,0 +1,34 @@
|
||||
[
|
||||
{
|
||||
"name": "Iterative Robot",
|
||||
"description": "Iterative style",
|
||||
"tags": [
|
||||
"Iterative"
|
||||
],
|
||||
"foldername": "iterative"
|
||||
},
|
||||
{
|
||||
"name": "Timed Robot",
|
||||
"description": "Timed style",
|
||||
"tags": [
|
||||
"Timed"
|
||||
],
|
||||
"foldername": "timed"
|
||||
},
|
||||
{
|
||||
"name": "Command Robot",
|
||||
"description": "Command style",
|
||||
"tags": [
|
||||
"Command"
|
||||
],
|
||||
"foldername": "command"
|
||||
},
|
||||
{
|
||||
"name": "Sample Robot",
|
||||
"description": "Sample style",
|
||||
"tags": [
|
||||
"Sample"
|
||||
],
|
||||
"foldername": "sample"
|
||||
}
|
||||
]
|
||||
@@ -1,340 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<examples>
|
||||
<!-- Tags -->
|
||||
<!-- Getting Started should be first and then alphabetical. Complete Example should be last -->
|
||||
<tagDescription>
|
||||
<name>Getting Started with Java</name>
|
||||
<description>Examples for getting started with FRC Java</description>
|
||||
</tagDescription>
|
||||
<tagDescription>
|
||||
<name>Actuators</name>
|
||||
<description>Example programs that demonstrate the use of various actuators</description>
|
||||
</tagDescription>
|
||||
<tagDescription>
|
||||
<name>Analog</name>
|
||||
<description>Examples programs that show different uses of analog inputs,
|
||||
outputs and various analog sensors</description>
|
||||
</tagDescription>
|
||||
<tagDescription>
|
||||
<name>CAN</name>
|
||||
<description>Example programs that demonstrate the use of the CAN components in the control
|
||||
system</description>
|
||||
</tagDescription>
|
||||
<tagDescription>
|
||||
<name>Digital</name>
|
||||
<description>Example programs that demonstrate the sensors that use the digital I/O ports</description>
|
||||
</tagDescription>
|
||||
<tagDescription>
|
||||
<name>I2C</name>
|
||||
<description>Example programs that demonstrate the use of I2C and various sensors that use
|
||||
it</description>
|
||||
</tagDescription>
|
||||
<tagDescription>
|
||||
<name>Joystick</name>
|
||||
<description>Example programs that demonstate different uses of joysticks for robot
|
||||
driving</description>
|
||||
</tagDescription>
|
||||
<tagDescription>
|
||||
<name>NetworkTables</name>
|
||||
<description>Examples of how to use NetworkTables to accomplish a
|
||||
variety of tasks such as sending and receiving values to both
|
||||
dashboards and co-processors.</description>
|
||||
</tagDescription>
|
||||
<tagDescription>
|
||||
<name>Pneumatics</name>
|
||||
<description>Example programs that demonstrate the use of the compressor and solenoids</description>
|
||||
</tagDescription>
|
||||
<tagDescription>
|
||||
<name>Robot and Motor</name>
|
||||
<description>Example programs that demonstrate driving a robot and motors including safety,
|
||||
servos, etc.</description>
|
||||
</tagDescription>
|
||||
<tagDescription>
|
||||
<name>Safety</name>
|
||||
<description>Example programs that demonstate the motor safety classes and how to use them
|
||||
with your programs</description>
|
||||
</tagDescription>
|
||||
<tagDescription>
|
||||
<name>Sensors</name>
|
||||
<description>Example programs that demonstrate the use of the various commonly used sensors
|
||||
on FRC robots</description>
|
||||
</tagDescription>
|
||||
<tagDescription>
|
||||
<name>SPI</name>
|
||||
<description>Example programs that demonstrate the use of the SPI bus and sensors that
|
||||
connect to it</description>
|
||||
</tagDescription>
|
||||
<tagDescription>
|
||||
<name>Vision</name>
|
||||
<description>Example programs that demonstrate the use of cameras and image processing</description>
|
||||
</tagDescription>
|
||||
<tagDescription>
|
||||
<name>Complete Robot</name>
|
||||
<description>Complete Robot example programs</description>
|
||||
</tagDescription>
|
||||
|
||||
<!-- Examples -->
|
||||
<example>
|
||||
<name>Getting Started</name>
|
||||
<description>An example program which demonstrates the simplest autonomous and
|
||||
teleoperated routines.</description>
|
||||
<tags>
|
||||
<tag>Getting Started with Java</tag>
|
||||
</tags>
|
||||
<packages>
|
||||
<package>src/$package-dir</package>
|
||||
</packages>
|
||||
<files>
|
||||
<file source="examples/gettingstarted/Robot.java" destination="src/$package-dir/Robot.java" />
|
||||
</files>
|
||||
</example>
|
||||
<example>
|
||||
<name>Tank Drive</name>
|
||||
<description>Demonstrate the use of the RobotDrive class doing teleop driving with tank
|
||||
steering</description>
|
||||
<tags>
|
||||
<tag>Actuators</tag>
|
||||
<tag>Joystick</tag>
|
||||
<tag>Robot and Motor</tag>
|
||||
<tag>Safety</tag>
|
||||
</tags>
|
||||
<packages>
|
||||
<package>src/$package-dir</package>
|
||||
</packages>
|
||||
<files>
|
||||
<file source="examples/tankdrive/Robot.java" destination="src/$package-dir/Robot.java" />
|
||||
</files>
|
||||
</example>
|
||||
<example>
|
||||
<name>Mecanum Drive</name>
|
||||
<description>Demonstrate the use of the RobotDrive class doing teleop driving with Mecanum
|
||||
steering</description>
|
||||
<tags>
|
||||
<tag>Actuators</tag>
|
||||
<tag>Joystick</tag>
|
||||
<tag>Robot and Motor</tag>
|
||||
<tag>Safety</tag>
|
||||
</tags>
|
||||
<packages>
|
||||
<package>src/$package-dir</package>
|
||||
</packages>
|
||||
<files>
|
||||
<file source="examples/mecanumdrive/Robot.java" destination="src/$package-dir/Robot.java" />
|
||||
</files>
|
||||
</example>
|
||||
<example>
|
||||
<name>Ultrasonic</name>
|
||||
<description>Demonstrate maintaining a set distance using an ultrasonic sensor.</description>
|
||||
<tags>
|
||||
<tag>Sensors</tag>
|
||||
<tag>Robot and Motor</tag>
|
||||
<tag>Analog</tag>
|
||||
</tags>
|
||||
<packages>
|
||||
<package>src/$package-dir</package>
|
||||
</packages>
|
||||
<files>
|
||||
<file source="examples/ultrasonic/Robot.java" destination="src/$package-dir/Robot.java" />
|
||||
</files>
|
||||
</example>
|
||||
<example>
|
||||
<name>Ultrasonic PID</name>
|
||||
<description>Demonstrate maintaining a set distance using an ultrasonic sensor and PID
|
||||
Control.</description>
|
||||
<tags>
|
||||
<tag>Sensors</tag>
|
||||
<tag>Robot and Motor</tag>
|
||||
<tag>Analog</tag>
|
||||
</tags>
|
||||
<packages>
|
||||
<package>src/$package-dir</package>
|
||||
</packages>
|
||||
<files>
|
||||
<file source="examples/ultrasonicpid/Robot.java" destination="src/$package-dir/Robot.java" />
|
||||
</files>
|
||||
</example>
|
||||
<example>
|
||||
<name>Potentiometer PID</name>
|
||||
<description>An example to demonstrate the use of a potentiometer and PID control to reach
|
||||
elevator position setpoints.</description>
|
||||
<tags>
|
||||
<tag>Sensors</tag>
|
||||
<tag>Actuators</tag>
|
||||
<tag>Analog</tag>
|
||||
<tag>Joystick</tag>
|
||||
</tags>
|
||||
<packages>
|
||||
<package>src/$package-dir</package>
|
||||
</packages>
|
||||
<files>
|
||||
<file source="examples/potentiometerpid/Robot.java" destination="src/$package-dir/Robot.java" />
|
||||
</files>
|
||||
</example>
|
||||
<example>
|
||||
<name>Gyro</name>
|
||||
<description>An example program showing how to drive straight with using a gyro sensor.</description>
|
||||
<tags>
|
||||
<tag>Sensors</tag>
|
||||
<tag>Robot and Motor</tag>
|
||||
<tag>Analog</tag>
|
||||
<tag>Joystick</tag>
|
||||
</tags>
|
||||
<packages>
|
||||
<package>src/$package-dir</package>
|
||||
</packages>
|
||||
<files>
|
||||
<file source="examples/gyro/Robot.java" destination="src/$package-dir/Robot.java" />
|
||||
</files>
|
||||
</example>
|
||||
<example>
|
||||
<name>Gyro Mecanum</name>
|
||||
<description>An example program showing how to perform mecanum drive with field oriented
|
||||
controls.</description>
|
||||
<tags>
|
||||
<tag>Sensors</tag>
|
||||
<tag>Robot and Motor</tag>
|
||||
<tag>Analog</tag>
|
||||
<tag>Joystick</tag>
|
||||
</tags>
|
||||
<packages>
|
||||
<package>src/$package-dir</package>
|
||||
</packages>
|
||||
<files>
|
||||
<file source="examples/gyromecanum/Robot.java" destination="src/$package-dir/Robot.java" />
|
||||
</files>
|
||||
</example>
|
||||
<example>
|
||||
<name>Motor Controller</name>
|
||||
<description>Demonstrate controlling a single motor with a joystick</description>
|
||||
<tags>
|
||||
<tag>Actuators</tag>
|
||||
<tag>Joystick</tag>
|
||||
<tag>Robot and Motor</tag>
|
||||
</tags>
|
||||
<packages>
|
||||
<package>src/$package-dir</package>
|
||||
</packages>
|
||||
<files>
|
||||
<file source="examples/motorcontrol/Robot.java" destination="src/$package-dir/Robot.java" />
|
||||
</files>
|
||||
</example>
|
||||
<example>
|
||||
<name>GearsBot</name>
|
||||
<description>A fully functional example CommandBased program for WPIs GearsBot robot. This
|
||||
code can run on your computer if it supports simulation.</description>
|
||||
<tags>
|
||||
<tag>Complete Robot</tag>
|
||||
</tags>
|
||||
<world>/usr/share/frcsim/worlds/GearsBotDemo.world</world>
|
||||
<packages>
|
||||
<package>src/$package-dir</package>
|
||||
<package>src/$package-dir/commands</package>
|
||||
<package>src/$package-dir/subsystems</package>
|
||||
</packages>
|
||||
<files>
|
||||
<file source="examples/gearsbot/OI.java" destination="src/$package-dir/OI.java" />
|
||||
<file source="examples/gearsbot/Robot.java" destination="src/$package-dir/Robot.java" />
|
||||
<file source="examples/gearsbot/commands/Autonomous.java" destination="src/$package-dir/commands/Autonomous.java" />
|
||||
<file source="examples/gearsbot/commands/CloseClaw.java" destination="src/$package-dir/commands/CloseClaw.java" />
|
||||
<file source="examples/gearsbot/commands/DriveStraight.java" destination="src/$package-dir/commands/DriveStraight.java" />
|
||||
<file source="examples/gearsbot/commands/OpenClaw.java" destination="src/$package-dir/commands/OpenClaw.java" />
|
||||
<file source="examples/gearsbot/commands/Pickup.java" destination="src/$package-dir/commands/Pickup.java" />
|
||||
<file source="examples/gearsbot/commands/Place.java" destination="src/$package-dir/commands/Place.java" />
|
||||
<file source="examples/gearsbot/commands/PrepareToPickup.java" destination="src/$package-dir/commands/PrepareToPickup.java" />
|
||||
<file source="examples/gearsbot/commands/SetDistanceToBox.java" destination="src/$package-dir/commands/SetDistanceToBox.java" />
|
||||
<file source="examples/gearsbot/commands/SetElevatorSetpoint.java" destination="src/$package-dir/commands/SetElevatorSetpoint.java" />
|
||||
<file source="examples/gearsbot/commands/SetWristSetpoint.java" destination="src/$package-dir/commands/SetWristSetpoint.java" />
|
||||
<file source="examples/gearsbot/commands/TankDriveWithJoystick.java" destination="src/$package-dir/commands/TankDriveWithJoystick.java" />
|
||||
<file source="examples/gearsbot/subsystems/Claw.java" destination="src/$package-dir/subsystems/Claw.java" />
|
||||
<file source="examples/gearsbot/subsystems/DriveTrain.java" destination="src/$package-dir/subsystems/DriveTrain.java" />
|
||||
<file source="examples/gearsbot/subsystems/Elevator.java" destination="src/$package-dir/subsystems/Elevator.java" />
|
||||
<file source="examples/gearsbot/subsystems/Wrist.java" destination="src/$package-dir/subsystems/Wrist.java" />
|
||||
</files>
|
||||
</example>
|
||||
<example>
|
||||
<name>PacGoat</name>
|
||||
<description>A fully functional example CommandBased program for FRC Team 190's 2014
|
||||
robot. This code can run on your computer if it supports simulation.</description>
|
||||
<tags>
|
||||
<tag>Complete Robot</tag>
|
||||
</tags>
|
||||
<world>/usr/share/frcsim/worlds/PacGoat2014.world</world>
|
||||
<packages>
|
||||
<package>src/$package-dir</package>
|
||||
<package>src/$package-dir/commands</package>
|
||||
<package>src/$package-dir/subsystems</package>
|
||||
<package>src/$package-dir/triggers</package>
|
||||
</packages>
|
||||
<files>
|
||||
<file source="examples/pacgoat/OI.java" destination="src/$package-dir/OI.java" />
|
||||
<file source="examples/pacgoat/Robot.java" destination="src/$package-dir/Robot.java" />
|
||||
<file source="examples/pacgoat/commands/CheckForHotGoal.java" destination="src/$package-dir/commands/CheckForHotGoal.java" />
|
||||
<file source="examples/pacgoat/commands/CloseClaw.java" destination="src/$package-dir/commands/CloseClaw.java" />
|
||||
<file source="examples/pacgoat/commands/Collect.java" destination="src/$package-dir/commands/Collect.java" />
|
||||
<file source="examples/pacgoat/commands/DriveAndShootAutonomous.java" destination="src/$package-dir/commands/DriveAndShootAutonomous.java" />
|
||||
<file source="examples/pacgoat/commands/DriveForward.java" destination="src/$package-dir/commands/DriveForward.java" />
|
||||
<file source="examples/pacgoat/commands/DriveWithJoystick.java" destination="src/$package-dir/commands/DriveWithJoystick.java" />
|
||||
<file source="examples/pacgoat/commands/ExtendShooter.java" destination="src/$package-dir/commands/ExtendShooter.java" />
|
||||
<file source="examples/pacgoat/commands/LowGoal.java" destination="src/$package-dir/commands/LowGoal.java" />
|
||||
<file source="examples/pacgoat/commands/OpenClaw.java" destination="src/$package-dir/commands/OpenClaw.java" />
|
||||
<file source="examples/pacgoat/commands/SetCollectionSpeed.java" destination="src/$package-dir/commands/SetCollectionSpeed.java" />
|
||||
<file source="examples/pacgoat/commands/SetPivotSetpoint.java" destination="src/$package-dir/commands/SetPivotSetpoint.java" />
|
||||
<file source="examples/pacgoat/commands/Shoot.java" destination="src/$package-dir/commands/Shoot.java" />
|
||||
<file source="examples/pacgoat/commands/WaitForBall.java" destination="src/$package-dir/commands/WaitForBall.java" />
|
||||
<file source="examples/pacgoat/commands/WaitForPressure.java" destination="src/$package-dir/commands/WaitForPressure.java" />
|
||||
<file source="examples/pacgoat/subsystems/Collector.java" destination="src/$package-dir/subsystems/Collector.java" />
|
||||
<file source="examples/pacgoat/subsystems/DriveTrain.java" destination="src/$package-dir/subsystems/DriveTrain.java" />
|
||||
<file source="examples/pacgoat/subsystems/Pivot.java" destination="src/$package-dir/subsystems/Pivot.java" />
|
||||
<file source="examples/pacgoat/subsystems/Pneumatics.java" destination="src/$package-dir/subsystems/Pneumatics.java" />
|
||||
<file source="examples/pacgoat/subsystems/Shooter.java" destination="src/$package-dir/subsystems/Shooter.java" />
|
||||
<file source="examples/pacgoat/triggers/DoubleButton.java" destination="src/$package-dir/triggers/DoubleButton.java" />
|
||||
</files>
|
||||
</example>
|
||||
<example>
|
||||
<name>Simple Vision</name>
|
||||
<description>Demonstrate the use of the CameraServer class to stream from a USB Webcam
|
||||
without processing the images.</description>
|
||||
<tags>
|
||||
<tag>Vision</tag>
|
||||
<tag>Complete List</tag>
|
||||
</tags>
|
||||
<packages>
|
||||
<package>src/$package-dir</package>
|
||||
</packages>
|
||||
<files>
|
||||
<file source="examples/quickvision/Robot.java" destination="src/$package-dir/Robot.java" />
|
||||
</files>
|
||||
</example>
|
||||
<example>
|
||||
<name>Intermediate Vision</name>
|
||||
<description>Demonstrate the use of the NIVision class to capture image from a Webcam,
|
||||
process them, and then send them to the dashboard.</description>
|
||||
<tags>
|
||||
<tag>Vision</tag>
|
||||
<tag>Complete List</tag>
|
||||
</tags>
|
||||
<packages>
|
||||
<package>src/$package-dir</package>
|
||||
</packages>
|
||||
<files>
|
||||
<file source="examples/intermediatevision/Robot.java" destination="src/$package-dir/Robot.java" />
|
||||
</files>
|
||||
</example>
|
||||
<example>
|
||||
<name>Axis Camera Sample</name>
|
||||
<description>An example program that acquires images from an Axis network camera and adds
|
||||
some
|
||||
annotation to the image as you might do for showing operators the result of some image
|
||||
recognition, and sends it to the dashboard for display. This demonstrates the use of the
|
||||
AxisCamera class.</description>
|
||||
<tags>
|
||||
<tag>Vision</tag>
|
||||
</tags>
|
||||
<packages>
|
||||
<package>src/$package-dir</package>
|
||||
</packages>
|
||||
<files>
|
||||
<file source="examples/axiscamera/Robot.java" destination="src/$package-dir/Robot.java" />
|
||||
</files>
|
||||
</example>
|
||||
</examples>
|
||||
@@ -31,10 +31,6 @@ task javaExamplesZip(type: Zip) {
|
||||
from('src/main/java/edu/wpi/first/wpilibj/examples') {
|
||||
into 'examples'
|
||||
}
|
||||
|
||||
from('examples.xml') {
|
||||
into 'examples'
|
||||
}
|
||||
}
|
||||
|
||||
task javaTemplatesZip(type: Zip) {
|
||||
|
||||
@@ -0,0 +1,137 @@
|
||||
[
|
||||
{
|
||||
"name": "Getting Started",
|
||||
"description": "An example program which demonstrates the simplest autonomous and teleoperated routines.",
|
||||
"tags": [
|
||||
"Getting Started with Java"
|
||||
],
|
||||
"foldername": "gettingstarted"
|
||||
},
|
||||
{
|
||||
"name": "Tank Drive",
|
||||
"description": "Demonstrate the use of the RobotDrive class doing teleop driving with tank steering",
|
||||
"tags": [
|
||||
"Actuators",
|
||||
"Joystick",
|
||||
"Robot and Motor",
|
||||
"Safety"
|
||||
],
|
||||
"foldername": "tankdrive"
|
||||
},
|
||||
{
|
||||
"name": "Mecanum Drive",
|
||||
"description": "Demonstrate the use of the RobotDrive class doing teleop driving with Mecanum steering",
|
||||
"tags": [
|
||||
"Actuators",
|
||||
"Joystick",
|
||||
"Robot and Motor",
|
||||
"Safety"
|
||||
],
|
||||
"foldername": "mecanumdrive"
|
||||
},
|
||||
{
|
||||
"name": "Ultrasonic",
|
||||
"description": "Demonstrate maintaining a set distance using an ultrasonic sensor.",
|
||||
"tags": [
|
||||
"Sensors",
|
||||
"Robot and Motor",
|
||||
"Analog"
|
||||
],
|
||||
"foldername": "ultrasonic"
|
||||
},
|
||||
{
|
||||
"name": "Ultrasonic PID",
|
||||
"description": "Demonstrate maintaining a set distance using an ultrasonic sensor and PID Control.",
|
||||
"tags": [
|
||||
"Sensors",
|
||||
"Robot and Motor",
|
||||
"Analog"
|
||||
],
|
||||
"foldername": "ultrasonicpid"
|
||||
},
|
||||
{
|
||||
"name": "Potentiometer PID",
|
||||
"description": "An example to demonstrate the use of a potentiometer and PID control to reach elevator position setpoints.",
|
||||
"tags": [
|
||||
"Sensors",
|
||||
"Actuators",
|
||||
"Analog",
|
||||
"Joystick"
|
||||
],
|
||||
"foldername": "potentiometerpid"
|
||||
},
|
||||
{
|
||||
"name": "Gyro",
|
||||
"description": "An example program showing how to drive straight with using a gyro sensor.",
|
||||
"tags": [
|
||||
"Sensors",
|
||||
"Robot and Motor",
|
||||
"Analog",
|
||||
"Joystick"
|
||||
],
|
||||
"foldername": "gyro"
|
||||
},
|
||||
{
|
||||
"name": "Gyro Mecanum",
|
||||
"description": "An example program showing how to perform mecanum drive with field oriented controls.",
|
||||
"tags": [
|
||||
"Sensors",
|
||||
"Robot and Motor",
|
||||
"Analog",
|
||||
"Joystick"
|
||||
],
|
||||
"foldername": "gyromecanum"
|
||||
},
|
||||
{
|
||||
"name": "Motor Controller",
|
||||
"description": "Demonstrate controlling a single motor with a joystick",
|
||||
"tags": [
|
||||
"Actuators",
|
||||
"Joystick",
|
||||
"Robot and Motor"
|
||||
],
|
||||
"foldername": "motorcontrol"
|
||||
},
|
||||
{
|
||||
"name": "GearsBot",
|
||||
"description": "A fully functional example CommandBased program for WPIs GearsBot robot. This code can run on your computer if it supports simulation.",
|
||||
"tags": [
|
||||
"Complete Robot"
|
||||
],
|
||||
"foldername": "gearsbot"
|
||||
},
|
||||
{
|
||||
"name": "PacGoat",
|
||||
"description": "A fully functional example CommandBased program for FRC Team 190's 2014 robot. This code can run on your computer if it supports simulation.",
|
||||
"tags": [
|
||||
"Complete Robot"
|
||||
],
|
||||
"foldername": "pacgoat"
|
||||
},
|
||||
{
|
||||
"name": "Simple Vision",
|
||||
"description": "Demonstrate the use of the CameraServer class to stream from a USB Webcam without processing the images.",
|
||||
"tags": [
|
||||
"Vision",
|
||||
"Complete List"
|
||||
],
|
||||
"foldername": "simplevision"
|
||||
},
|
||||
{
|
||||
"name": "Intermediate Vision",
|
||||
"description": "Demonstrate the use of the NIVision class to capture image from a Webcam, process them, and then send them to the dashboard.",
|
||||
"tags": [
|
||||
"Vision",
|
||||
"Complete List"
|
||||
],
|
||||
"foldername": "intermediatevision"
|
||||
},
|
||||
{
|
||||
"name": "Axis Camera Sample",
|
||||
"description": "An example program that acquires images from an Axis network camera and adds some annotation to the image as you might do for showing operators the result of some image recognition, and sends it to the dashboard for display. This demonstrates the use of the AxisCamera class.",
|
||||
"tags": [
|
||||
"Vision"
|
||||
],
|
||||
"foldername": "axiscamera"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,34 @@
|
||||
[
|
||||
{
|
||||
"name": "Iterative Robot",
|
||||
"description": "Iterative style",
|
||||
"tags": [
|
||||
"Iterative"
|
||||
],
|
||||
"foldername": "iterative"
|
||||
},
|
||||
{
|
||||
"name": "Timed Robot",
|
||||
"description": "Timed style",
|
||||
"tags": [
|
||||
"Timed"
|
||||
],
|
||||
"foldername": "timed"
|
||||
},
|
||||
{
|
||||
"name": "Command Robot",
|
||||
"description": "Command style",
|
||||
"tags": [
|
||||
"Command"
|
||||
],
|
||||
"foldername": "commandbased"
|
||||
},
|
||||
{
|
||||
"name": "Sample Robot",
|
||||
"description": "Sample style",
|
||||
"tags": [
|
||||
"Sample"
|
||||
],
|
||||
"foldername": "sample"
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user