mirror of
https://github.com/trc492/FtcTemplate.git
synced 2025-07-03 14:01:23 -07:00
Removed the fork relationship from FTC SDK so that people can fork this repo without problem if they already had an FTC SDK fork.
This commit is contained in:
BIN
TeamCode/src/main/res/drawable-xxhdpi/mustache.png
Normal file
BIN
TeamCode/src/main/res/drawable-xxhdpi/mustache.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 28 KiB |
3101
TeamCode/src/main/res/raw/haarcascade_clock.xml
Normal file
3101
TeamCode/src/main/res/raw/haarcascade_clock.xml
Normal file
File diff suppressed because it is too large
Load Diff
15452
TeamCode/src/main/res/raw/haarcascade_eye.xml
Normal file
15452
TeamCode/src/main/res/raw/haarcascade_eye.xml
Normal file
File diff suppressed because it is too large
Load Diff
33158
TeamCode/src/main/res/raw/haarcascade_eye_tree_eyeglasses.xml
Normal file
33158
TeamCode/src/main/res/raw/haarcascade_eye_tree_eyeglasses.xml
Normal file
File diff suppressed because it is too large
Load Diff
26161
TeamCode/src/main/res/raw/haarcascade_frontalface_alt.xml
Normal file
26161
TeamCode/src/main/res/raw/haarcascade_frontalface_alt.xml
Normal file
File diff suppressed because it is too large
Load Diff
23550
TeamCode/src/main/res/raw/haarcascade_frontalface_alt2.xml
Normal file
23550
TeamCode/src/main/res/raw/haarcascade_frontalface_alt2.xml
Normal file
File diff suppressed because it is too large
Load Diff
103493
TeamCode/src/main/res/raw/haarcascade_frontalface_alt_tree.xml
Normal file
103493
TeamCode/src/main/res/raw/haarcascade_frontalface_alt_tree.xml
Normal file
File diff suppressed because it is too large
Load Diff
35712
TeamCode/src/main/res/raw/haarcascade_frontalface_default.xml
Normal file
35712
TeamCode/src/main/res/raw/haarcascade_frontalface_default.xml
Normal file
File diff suppressed because it is too large
Load Diff
18118
TeamCode/src/main/res/raw/haarcascade_fullbody.xml
Normal file
18118
TeamCode/src/main/res/raw/haarcascade_fullbody.xml
Normal file
File diff suppressed because it is too large
Load Diff
9803
TeamCode/src/main/res/raw/haarcascade_lefteye_2splits.xml
Normal file
9803
TeamCode/src/main/res/raw/haarcascade_lefteye_2splits.xml
Normal file
File diff suppressed because it is too large
Load Diff
15085
TeamCode/src/main/res/raw/haarcascade_lowerbody.xml
Normal file
15085
TeamCode/src/main/res/raw/haarcascade_lowerbody.xml
Normal file
File diff suppressed because it is too large
Load Diff
10930
TeamCode/src/main/res/raw/haarcascade_mcs_eyepair_big.xml
Normal file
10930
TeamCode/src/main/res/raw/haarcascade_mcs_eyepair_big.xml
Normal file
File diff suppressed because it is too large
Load Diff
12586
TeamCode/src/main/res/raw/haarcascade_mcs_eyepair_small.xml
Normal file
12586
TeamCode/src/main/res/raw/haarcascade_mcs_eyepair_small.xml
Normal file
File diff suppressed because it is too large
Load Diff
9322
TeamCode/src/main/res/raw/haarcascade_mcs_leftear.xml
Normal file
9322
TeamCode/src/main/res/raw/haarcascade_mcs_leftear.xml
Normal file
File diff suppressed because it is too large
Load Diff
23791
TeamCode/src/main/res/raw/haarcascade_mcs_lefteye.xml
Normal file
23791
TeamCode/src/main/res/raw/haarcascade_mcs_lefteye.xml
Normal file
File diff suppressed because it is too large
Load Diff
21991
TeamCode/src/main/res/raw/haarcascade_mcs_mouth.xml
Normal file
21991
TeamCode/src/main/res/raw/haarcascade_mcs_mouth.xml
Normal file
File diff suppressed because it is too large
Load Diff
48433
TeamCode/src/main/res/raw/haarcascade_mcs_nose.xml
Normal file
48433
TeamCode/src/main/res/raw/haarcascade_mcs_nose.xml
Normal file
File diff suppressed because it is too large
Load Diff
9671
TeamCode/src/main/res/raw/haarcascade_mcs_rightear.xml
Normal file
9671
TeamCode/src/main/res/raw/haarcascade_mcs_rightear.xml
Normal file
File diff suppressed because it is too large
Load Diff
42252
TeamCode/src/main/res/raw/haarcascade_mcs_righteye.xml
Normal file
42252
TeamCode/src/main/res/raw/haarcascade_mcs_righteye.xml
Normal file
File diff suppressed because it is too large
Load Diff
46327
TeamCode/src/main/res/raw/haarcascade_mcs_upperbody.xml
Normal file
46327
TeamCode/src/main/res/raw/haarcascade_mcs_upperbody.xml
Normal file
File diff suppressed because it is too large
Load Diff
31930
TeamCode/src/main/res/raw/haarcascade_profileface.xml
Normal file
31930
TeamCode/src/main/res/raw/haarcascade_profileface.xml
Normal file
File diff suppressed because it is too large
Load Diff
9833
TeamCode/src/main/res/raw/haarcascade_righteye_2splits.xml
Normal file
9833
TeamCode/src/main/res/raw/haarcascade_righteye_2splits.xml
Normal file
File diff suppressed because it is too large
Load Diff
29767
TeamCode/src/main/res/raw/haarcascade_upperbody.xml
Normal file
29767
TeamCode/src/main/res/raw/haarcascade_upperbody.xml
Normal file
File diff suppressed because it is too large
Load Diff
3986
TeamCode/src/main/res/raw/hogcascade_pedestrians.xml
Normal file
3986
TeamCode/src/main/res/raw/hogcascade_pedestrians.xml
Normal file
File diff suppressed because it is too large
Load Diff
1505
TeamCode/src/main/res/raw/lbpcascade_frontalface.xml
Normal file
1505
TeamCode/src/main/res/raw/lbpcascade_frontalface.xml
Normal file
File diff suppressed because it is too large
Load Diff
1
TeamCode/src/main/res/raw/readme.md
Normal file
1
TeamCode/src/main/res/raw/readme.md
Normal file
@ -0,0 +1 @@
|
||||
Place your sound files in this folder to use them as project resources.
|
89
TeamCode/src/main/res/raw/songcollection.xml
Normal file
89
TeamCode/src/main/res/raw/songcollection.xml
Normal file
@ -0,0 +1,89 @@
|
||||
<collection>
|
||||
<song name="Les Miserables">
|
||||
|
||||
<sequence>
|
||||
1,2,3,4,5,6,3,4,5,7
|
||||
</sequence>
|
||||
|
||||
<section name="1">
|
||||
A4.8+,G4.16,
|
||||
F4.8+,G4.16,A4.8+,Bb4.16,C5.4,A4.12,G4.12,F4.12,
|
||||
E4.8+,D4.16,E4.8+,F4.16,C4.4,D4.12,C4.12,Bb3.12,
|
||||
A3.8+,C4.16,F4.8+,A4.16,G4.8+,F#4.16,G4.8+,D4.16,
|
||||
F4.8+,E4.16,E4.8+,F4.16,G4.4,A4.8+,G4.16
|
||||
</section>
|
||||
|
||||
<section name="2">
|
||||
F4.8+,G4.16,A4.8+,Bb4.16,C5.4,A4.12,G4.12,F4.12,
|
||||
E4.8+,D4.16,E4.8+,F4.16,C4.4,D4.12,C4.12,Bb3.12,
|
||||
A3.8+,C4.16,F4.8+,A4.16,G4.12,F#4.12,G4.12,Bb4.8+,E4.16,
|
||||
F4.4,R.2,E4.8+,E4.16
|
||||
</section>
|
||||
|
||||
<section name="3">
|
||||
A4.8+,G#4.16,A4.8+,B4.16,C5.8+,B4.16,A4.8+,C5.16,
|
||||
B4.8+,A4.16,G4.8+,A4.16,B4.4,R.12,B4.12,C5.12,
|
||||
D5.8+,C5.16,B4.8+,C5.16,D5.8+,C5.16,B4.8+,D5.16,
|
||||
C5.8+,B4.16,A4.8+,B4.16,C5.4,R.8+,A4.16
|
||||
</section>
|
||||
|
||||
<section name="4">
|
||||
C5.12,B4.12,A4.12,C5.12,B4.12,A4.12,C5.12,B4.12,A4.12,C5.12,B4.12,C5.12,
|
||||
D5.2,R.4,E5.8+,D5.16,
|
||||
C5.8+,D5.16,E5.8+,F5.16,G5.4,E5.12,D5.12,C5.12,
|
||||
B4.8+,A4.16,B4.8+,C5.16,G4.4,A4.12,G4.12,F4.12
|
||||
</section>
|
||||
|
||||
<section name="5">
|
||||
E4.8+,G4.16,C5.8+,E5.16,D5.8+,C#5.16,D5.8+,A4.16,
|
||||
C5.8+,B4.16,B4.8+,C5.16,D5.4,E5.8+,D5.16,
|
||||
C5.8+,D5.16,E5.8+,F5.16,G5.4,E5.12,D5.12,C5.12,
|
||||
B4.8+,A4.16,B4.8+,C5.16,G4.4,A4.12,G4.12,F4.12
|
||||
</section>
|
||||
|
||||
<section name="6">
|
||||
E4.8+,G4.16,C5.8+,E5.16,D5.12,C#5.12,D5.12,F5.8+,B4.16,
|
||||
C5.4,R.2,E4.8+,E4.16
|
||||
</section>
|
||||
|
||||
<section name="7">
|
||||
E4.8+,G4.16,C5.8+,E5.16,D5.12,C#5.12,D5.12,F5.8+,B4.16,
|
||||
C5.4,R.2.4
|
||||
</section>
|
||||
|
||||
</song>
|
||||
|
||||
<song name="Star Wars">
|
||||
|
||||
<sequence>
|
||||
1,2,3
|
||||
</sequence>
|
||||
|
||||
<section name="1">
|
||||
G4.12,G4.12,G4.12,
|
||||
C5.2,G5.2,
|
||||
F5.12,E5.12,D5.12,C6.2,G5.4,
|
||||
F5.12,E5.12,D5.12,C6.2,G5.4,
|
||||
F5.12,E5.12,F5.12,D5.2,G4.8,G4.8,
|
||||
C5.2,G5.2
|
||||
</section>
|
||||
|
||||
<section name="2">
|
||||
F5.12,E5.12,D5.12,C6.2,G5.4,
|
||||
F5.12,E5.12,D5.12,C6.2,G5.4,
|
||||
F5.12,E5.12,F5.12,D5.2,G4.8,G4.8,
|
||||
A4.4+,A4.8,F5.8,E5.8,D5.8,C5.8,
|
||||
C5.12,D5.12,E5.12,D5.4,B4.4,G4.8,G4.8,
|
||||
A4.4+,A4.8,F5.8,E5.8,D5.8,C5.8,
|
||||
G5.4,D5.2,G4.8,G4.8
|
||||
</section>
|
||||
|
||||
<section name="3">
|
||||
A4.4+,A4.8,F5.8,E5.8,D5.8,C5.8,
|
||||
C5.12,D5.12,E5.12,D5.4,B4.4,G5.8,G5.8,
|
||||
C6.8,Bb5.8,Ab5.8,G5.8,F5.8,Eb5.8,D5.8,C5.8,
|
||||
G5.2+
|
||||
</section>
|
||||
|
||||
</song>
|
||||
</collection>
|
4
TeamCode/src/main/res/values/strings.xml
Normal file
4
TeamCode/src/main/res/values/strings.xml
Normal file
@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
</resources>
|
24
TeamCode/src/main/res/xml/empty.xml
Normal file
24
TeamCode/src/main/res/xml/empty.xml
Normal file
@ -0,0 +1,24 @@
|
||||
<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
|
||||
<!--
|
||||
Copyright (c) 2016 Titan Robotics Club (http://www.titanrobotics.com)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
UTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
-->
|
||||
<Robot type="FirstInspires-FTC" name="Null">
|
||||
</Robot>
|
38
TeamCode/src/main/res/xml/mecanumdemobot.xml
Normal file
38
TeamCode/src/main/res/xml/mecanumdemobot.xml
Normal file
@ -0,0 +1,38 @@
|
||||
<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
|
||||
<!--
|
||||
Copyright (c) 2016 Titan Robotics Club (http://www.titanrobotics.com)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
UTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
-->
|
||||
<Robot type="FirstInspires-FTC" name="MecanumDemoRobot">
|
||||
<LynxUsbDevice name="Expansion Hub Portal 1" serialNumber="DQ2EJQK7" parentModuleAddress="2">
|
||||
<LynxModule name="Expansion Hub 2" port="2">
|
||||
<NeveRest40Gearmotor name="rfWheel" port="0" />
|
||||
<NeveRest40Gearmotor name="rbWheel" port="1" />
|
||||
<NeveRest40Gearmotor name="lfWheel" port="2" />
|
||||
<NeveRest40Gearmotor name="lbWheel" port="3" />
|
||||
<DigitalDevice name="elevatorLowerLimit" port="0" />
|
||||
<DigitalDevice name="elevatorUpperLimit" port="2" />
|
||||
<LynxEmbeddedIMU name="imu" port="0" bus="0" />
|
||||
</LynxModule>
|
||||
<LynxModule name="Expansion Hub 3" port="3">
|
||||
<RevRobotics40HDHexMotor name="elevatorMotor" port="0" />
|
||||
</LynxModule>
|
||||
</LynxUsbDevice>
|
||||
</Robot>
|
51
TeamCode/src/main/res/xml/revhubtest_template.xml
Normal file
51
TeamCode/src/main/res/xml/revhubtest_template.xml
Normal file
@ -0,0 +1,51 @@
|
||||
<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
|
||||
<!--
|
||||
Copyright (c) 2018 Titan Robotics Club (http://www.titanrobotics.com)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
-->
|
||||
<Robot type="FirstInspires-FTC-template" name="RevHubTest">
|
||||
<LynxUsbDevice name="Expansion Hub Portal 1" serialNumber="n/a" parentModuleAddress="1">
|
||||
<LynxModule name="Expansion Hub 2" port="n/a">
|
||||
<RevRobotics40HDHexMotor name="motor0" port="0" />
|
||||
<RevRobotics40HDHexMotor name="motor1" port="1" />
|
||||
<RevRobotics40HDHexMotor name="motor2" port="2" />
|
||||
<RevRobotics40HDHexMotor name="motor3" port="3" />
|
||||
<Servo name="servo0" port="0" />
|
||||
<Servo name="servo1" port="1" />
|
||||
<Servo name="servo2" port="2" />
|
||||
<Servo name="servo3" port="3" />
|
||||
<Servo name="servo4" port="4" />
|
||||
<Servo name="servo5" port="5" />
|
||||
<AnalogInput name="analog0" port="0" />
|
||||
<AnalogInput name="analog1" port="1" />
|
||||
<AnalogInput name="analog2" port="2" />
|
||||
<AnalogInput name="analog3" port="3" />
|
||||
<DigitalDevice name="digital0" port="0" />
|
||||
<DigitalDevice name="digital1" port="1" />
|
||||
<DigitalDevice name="digital2" port="2" />
|
||||
<DigitalDevice name="digital3" port="3" />
|
||||
<DigitalDevice name="digital4" port="4" />
|
||||
<DigitalDevice name="digital5" port="5" />
|
||||
<DigitalDevice name="digital6" port="6" />
|
||||
<DigitalDevice name="digital7" port="7" />
|
||||
<LynxEmbeddedIMU name="imu" port="0" bus="0" />
|
||||
</LynxModule>
|
||||
</LynxUsbDevice>
|
||||
</Robot>
|
44
TeamCode/src/main/res/xml/samplerobot.xml
Normal file
44
TeamCode/src/main/res/xml/samplerobot.xml
Normal file
@ -0,0 +1,44 @@
|
||||
<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
|
||||
<!--
|
||||
Copyright (c) 2016 Titan Robotics Club (http://www.titanrobotics.com)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
UTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
-->
|
||||
<Robot type="FirstInspires-FTC" name="SampleRobot">
|
||||
<MotorController name="Motor Controller 1" serialNumber="AH03ETQH">
|
||||
<Motor name="lfWheel" port="1" />
|
||||
<Motor name="lbWheel" port="2" />
|
||||
</MotorController>
|
||||
<MotorController name="Motor Controller 2" serialNumber="AH03ETUV">
|
||||
<Motor name="rfWheel" port="1" />
|
||||
<Motor name="rbWheel" port="2" />
|
||||
</MotorController>
|
||||
<MotorController name="Motor Controller 3" serialNumber="AH03ETU9">
|
||||
</MotorController>
|
||||
<MotorController name="Motor Controller 4" serialNumber="AH03ETUA">
|
||||
</MotorController>
|
||||
<ServoController name="Servo Controller 1" serialNumber="AI049L9E">
|
||||
<Servo name="leftServo" port="1" />
|
||||
<Servo name="rightServo" port="2" />
|
||||
</ServoController>
|
||||
<ServoController name="Servo Controller 2" serialNumber="AI049LVZ">
|
||||
</ServoController>
|
||||
<DeviceInterfaceModule name="Device Interface Module 1" serialNumber="AI02RLBT">
|
||||
</DeviceInterfaceModule>
|
||||
</Robot>
|
33
TeamCode/src/main/res/xml/tankdemobot.xml
Normal file
33
TeamCode/src/main/res/xml/tankdemobot.xml
Normal file
@ -0,0 +1,33 @@
|
||||
<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
|
||||
<!--
|
||||
Copyright (c) 2016 Titan Robotics Club (http://www.titanrobotics.com)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
UTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
-->
|
||||
<Robot type="FirstInspires-FTC" name="TankDemoRobot">
|
||||
<LynxUsbDevice name="Expansion Hub Portal 1" serialNumber="DQ2GEVMX" parentModuleAddress="2">
|
||||
<LynxModule name="Expansion Hub 2" port="2">
|
||||
<NeveRest40Gearmotor name="lfWheel" port="0" />
|
||||
<NeveRest40Gearmotor name="lbWheel" port="1" />
|
||||
<NeveRest40Gearmotor name="rfWheel" port="2" />
|
||||
<NeveRest40Gearmotor name="rbWheel" port="3" />
|
||||
<LynxEmbeddedIMU name="imu" port="0" bus="0" />
|
||||
</LynxModule>
|
||||
</LynxUsbDevice>
|
||||
</Robot>
|
161
TeamCode/src/main/res/xml/teamwebcamcalibrations.xml
Normal file
161
TeamCode/src/main/res/xml/teamwebcamcalibrations.xml
Normal file
@ -0,0 +1,161 @@
|
||||
<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
|
||||
<!--
|
||||
This file can provide additional camera calibration settings beyond those built into the SDK itself.
|
||||
Each calibration is for a particular camera (indicated by USB vid & pid pair) and a particular
|
||||
capture resolution for the camera. Note: it is very important when capturing images used to calibrate
|
||||
a camera that the image acquisition tool can actually control this capture resolution within the camera
|
||||
itself and that you use this setting correctly. Many image acquistion tools do not in fact provide
|
||||
this level of control.
|
||||
|
||||
Beyond simply providing additional, new camera calibrations, calibrations provided herein can
|
||||
*replace/update* those that are builtin to the SDK. This matching is keyed, of course, by the
|
||||
(vid, pid, size) triple. Further, if such a calibration has the 'remove' attribute with value 'true',
|
||||
any existing calibration with that key is removed (and the calibration itself not added).
|
||||
|
||||
Calibrations are internally processed according to aspect ratio. If a format is requested in a size
|
||||
that is not calibrated, but a calibration does exist for the same aspect ratio on the same camera,
|
||||
then the latter will be scaled to accommodate the request. For example, if a 640x480 calibration
|
||||
is requested but only a 800x600 calibration exists for that camera, then the 800x600 is scaled
|
||||
down to service the 640x480 request.
|
||||
|
||||
Further, it is important to note that if *no* calibrations exist for a given camera, then Vuforia
|
||||
is offered the entire range of capture resolutions that the hardware can support (and it does its
|
||||
best to deal with the lack of calibration). However, if *any* calibrations are provided for a camera,
|
||||
then capture resolutions in those aspect ratios supported by the camera for which any calibrations
|
||||
are *not* provided are *not* offered. Thus, if you calibrate a camera but fail to calibrate all
|
||||
the camera's supported aspect ratios, you limit the choices of capture resolutions that Vuforia can
|
||||
select from.
|
||||
|
||||
One image acquisition program that supports control of camera capture resolution is YouCam 7:
|
||||
https://www.cyberlink.com/products/youcam/features_en_US.html
|
||||
|
||||
Programs that can process acquired images to determine camera calibration settings include:
|
||||
https://www.3dflow.net/3df-zephyr-free/ (see "Utilities/Images/Launch Camera Calibration" therein)
|
||||
http://graphics.cs.msu.ru/en/node/909
|
||||
Note that the type of images that must be acquired in order to calibrate is specific to the
|
||||
calibration software used.
|
||||
|
||||
The required contents are illustrated here by example. Note that for the attribute names, both the
|
||||
camelCase or the underscore_variations are supported; they are equivalent. The attributes for
|
||||
each Calibration are as follows:
|
||||
|
||||
size (int pair): space separated camera resolution (width, height).
|
||||
focalLength (float pair): space separated focal length value.
|
||||
principalPoint (float pair): space separated principal point values (width, height).
|
||||
distortionCoefficients (an 8-element float array): distortion coefficients in the following form
|
||||
(r:radial, t:tangential): [r0, r1, t0, t1, r2, r3, r4, r5]
|
||||
see https://docs.opencv.org/2.4/modules/calib3d/doc/camera_calibration_and_3d_reconstruction.html
|
||||
|
||||
The examples here are commented out as the values are built-in to the FTC SDK. They serve instead
|
||||
here as examples on how make your own.
|
||||
|
||||
-->
|
||||
<Calibrations>
|
||||
|
||||
<!-- ======================================================================================= -->
|
||||
|
||||
<!-- Microsoft Lifecam HD 3000 v1, Calibrated by PTC using unknown tooling -->
|
||||
<!-- <Camera vid="Microsoft" pid="0x0779">
|
||||
<Calibration
|
||||
size="640 480"
|
||||
focalLength="678.154f, 678.17f"
|
||||
principalPoint="318.135f, 228.374f"
|
||||
distortionCoefficients="0.154576f, -1.19143f, 0f, 0f, 2.06105f, 0f, 0f, 0f"
|
||||
/>
|
||||
</Camera> -->
|
||||
|
||||
<!-- ======================================================================================= -->
|
||||
|
||||
<!-- Microsoft Lifecam HD 3000 v2, Calibrated by PTC using unknown tooling -->
|
||||
<!-- <Camera vid="Microsoft" pid="0x0810">
|
||||
<Calibration
|
||||
size="640 480"
|
||||
focalLength="678.154f, 678.17f"
|
||||
principalPoint="318.135f, 228.374f"
|
||||
distortionCoefficients="0.154576f, -1.19143f, 0f, 0f, 2.06105f, 0f, 0f, 0f"
|
||||
/>
|
||||
</Camera> -->
|
||||
|
||||
<!-- ======================================================================================= -->
|
||||
|
||||
<!-- Logitech HD Webcam C310, Calibrated by by Robert Atkinson, 2018.05.30 using 3DF Zephyr -->
|
||||
<!-- <Camera vid="Logitech" pid="0x081B">
|
||||
<Calibration
|
||||
size="640 480"
|
||||
focalLength="821.993f, 821.993f"
|
||||
principalPoint="330.489f, 248.997f"
|
||||
distortionCoefficients="-0.018522, 1.03979, 0, 0, -3.3171, 0, 0, 0"
|
||||
/>
|
||||
|
||||
<Calibration
|
||||
size="640 360"
|
||||
focalLength="715.307f, 715.307f"
|
||||
principalPoint="319.759f, 188.917f"
|
||||
distortionCoefficients="-0.0258948, 1.06258, 0, 0, -3.40245, 0, 0, 0"
|
||||
/>
|
||||
</Camera> -->
|
||||
|
||||
<!-- ======================================================================================= -->
|
||||
|
||||
<!-- Logitech HD Pro Webcam C920, Calibrated by Robert Atkinson, 2018.05.30 using 3DF Zephyr -->
|
||||
<!-- <Camera vid="Logitech" pid="0x082D">
|
||||
|
||||
<Calibration
|
||||
size="640 480"
|
||||
focalLength="622.001f, 622.001f"
|
||||
principalPoint="319.803f, 241.251f"
|
||||
distortionCoefficients="0.1208, -0.261599, 0, 0, 0.10308, 0, 0, 0"
|
||||
/>
|
||||
|
||||
<Calibration
|
||||
size="800 600"
|
||||
focalLength="775.79f, 775.79f"
|
||||
principalPoint="400.898f, 300.79f"
|
||||
distortionCoefficients="0.112507, -0.272067, 0, 0, 0.15775, 0, 0, 0"
|
||||
/>
|
||||
|
||||
<Calibration
|
||||
size="640 360"
|
||||
focalLength="463.566f, 463.566f"
|
||||
principalPoint="316.402f, 176.412f"
|
||||
distortionCoefficients="0.111626 , -0.255626, 0, 0, 0.107992, 0, 0, 0"
|
||||
/>
|
||||
|
||||
<Calibration
|
||||
size="1920, 1080"
|
||||
focalLength="1385.92f , 1385.92f"
|
||||
principalPoint="951.982f , 534.084f"
|
||||
distortionCoefficients="0.117627, -0.248549, 0, 0, 0.107441, 0, 0, 0"
|
||||
/>
|
||||
|
||||
<Calibration
|
||||
size="800, 448"
|
||||
focalLength="578.272f , 578.272f"
|
||||
principalPoint="402.145f , 221.506f"
|
||||
distortionCoefficients="0.12175, -0.251652 , 0, 0, 0.112142, 0, 0, 0"
|
||||
/>
|
||||
|
||||
<Calibration
|
||||
size="864, 480"
|
||||
focalLength="626.909f , 626.909f"
|
||||
principalPoint="426.007f , 236.834f"
|
||||
distortionCoefficients="0.120988, -0.253336 , 0, 0, 0.102445, 0, 0, 0"
|
||||
/>
|
||||
|
||||
</Camera> -->
|
||||
|
||||
<!-- ======================================================================================= -->
|
||||
|
||||
<!-- Logitech HD Webcam C270, Calibrated by Noah Andrews, 2019.03.13 using 3DF Zephyr -->
|
||||
<!--<Camera vid="Logitech" pid="0x0825">
|
||||
<Calibration
|
||||
size="640 480"
|
||||
focalLength="822.317f, 822.317f"
|
||||
principalPoint="319.495f, 242.502f"
|
||||
distortionCoefficients="-0.0449369, 1.17277, 0, 0, -3.63244, 0, 0, 0"
|
||||
/>
|
||||
</Camera> -->
|
||||
|
||||
<!-- ======================================================================================= -->
|
||||
|
||||
</Calibrations>
|
48
TeamCode/src/main/res/xml/wildthumper.xml
Normal file
48
TeamCode/src/main/res/xml/wildthumper.xml
Normal file
@ -0,0 +1,48 @@
|
||||
<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
|
||||
<!--
|
||||
Copyright (c) 2016 Titan Robotics Club (http://www.titanrobotics.com)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
UTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
-->
|
||||
<Robot type="FirstInspires-FTC" name="WildThumper">
|
||||
<MotorController name="Motor Controller 2" serialNumber="AH03ETUV">
|
||||
<Motor name="lcWheel" port="1" />
|
||||
<Motor name="rcWheel" port="2" />
|
||||
</MotorController>
|
||||
<DeviceInterfaceModule name="Device Interface Module 1" serialNumber="AI02RLBT">
|
||||
<Gyro name="gyroSensor" port="0" />
|
||||
<I2cDevice name="zxSensor" port="1" />
|
||||
<I2cDevice name="mrGyro" port="2" />
|
||||
<AnalogOutput name="AnalogTone" port="0" />
|
||||
</DeviceInterfaceModule>
|
||||
<MotorController name="Motor Controller 1" serialNumber="AH03ETQH">
|
||||
<Motor name="lfWheel" port="1" />
|
||||
<Motor name="rfWheel" port="2" />
|
||||
</MotorController>
|
||||
<MotorController name="Motor Controller 3" serialNumber="AH03ETU9">
|
||||
</MotorController>
|
||||
<ServoController name="Servo Controller 1" serialNumber="AI049L9E">
|
||||
</ServoController>
|
||||
<ServoController name="Servo Controller 2" serialNumber="AI049LVZ">
|
||||
</ServoController>
|
||||
<MotorController name="Motor Controller 4" serialNumber="AH03ETUA">
|
||||
<Motor name="lbWheel" port="1" />
|
||||
<Motor name="rbWheel" port="2" />
|
||||
</MotorController>
|
||||
</Robot>
|
48
TeamCode/src/main/res/xml/wildthumper_template.xml
Normal file
48
TeamCode/src/main/res/xml/wildthumper_template.xml
Normal file
@ -0,0 +1,48 @@
|
||||
<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
|
||||
<!--
|
||||
Copyright (c) 2016 Titan Robotics Club (http://www.titanrobotics.com)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
UTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
-->
|
||||
<Robot type="FirstInspires-FTC-template" name="WildThumper">
|
||||
<MotorController name="Motor Controller 2" serialNumber="n/a">
|
||||
<Motor name="lcWheel" port="1" />
|
||||
<Motor name="rcWheel" port="2" />
|
||||
</MotorController>
|
||||
<DeviceInterfaceModule name="Device Interface Module 1" serialNumber="n/a">
|
||||
<Gyro name="gyroSensor" port="0" />
|
||||
<I2cDevice name="zxSensor" port="1" />
|
||||
<I2cDevice name="mrGyro" port="2" />
|
||||
<AnalogOutput name="AnalogTone" port="0" />
|
||||
</DeviceInterfaceModule>
|
||||
<MotorController name="Motor Controller 1" serialNumber="n/a">
|
||||
<Motor name="lfWheel" port="1" />
|
||||
<Motor name="rfWheel" port="2" />
|
||||
</MotorController>
|
||||
<MotorController name="Motor Controller 3" serialNumber="n/a">
|
||||
</MotorController>
|
||||
<ServoController name="Servo Controller 1" serialNumber="n/a">
|
||||
</ServoController>
|
||||
<ServoController name="Servo Controller 2" serialNumber="n/a">
|
||||
</ServoController>
|
||||
<MotorController name="Motor Controller 4" serialNumber="n/a">
|
||||
<Motor name="lbWheel" port="1" />
|
||||
<Motor name="rbWheel" port="2" />
|
||||
</MotorController>
|
||||
</Robot>
|
Reference in New Issue
Block a user