├── .gitignore
├── DefaultIcon.png
├── LICENSE
├── README.md
├── app
├── alloy.js
├── assets
│ ├── commands
│ │ ├── colorm.sphero
│ │ └── dance1.sphero
│ ├── fonts
│ │ └── README
│ ├── images
│ │ ├── icons
│ │ │ ├── arrow-right.png
│ │ │ ├── arrow-right@2x.png
│ │ │ ├── connected.png
│ │ │ ├── connected@2x.png
│ │ │ ├── disconnected.png
│ │ │ ├── disconnected@2x.png
│ │ │ ├── features
│ │ │ │ ├── colorize.png
│ │ │ │ ├── colorize@2x.png
│ │ │ │ ├── drive.png
│ │ │ │ ├── drive@2x.png
│ │ │ │ ├── routes.png
│ │ │ │ └── routes@2x.png
│ │ │ ├── settings.png
│ │ │ └── settings@2x.png
│ │ └── logo@2x.png
│ ├── iphone
│ │ ├── Default-568h@2x.png
│ │ ├── Default-667h@2x.png
│ │ ├── Default-Portrait-736h@3x.png
│ │ ├── Default-Portrait.png
│ │ ├── Default-Portrait@2x.png
│ │ └── Default@2x.png
│ ├── nko_brightness_guide.png
│ ├── nko_brightness_guide@2x.png
│ └── nko_colormap.png
├── config.json
├── controllers
│ └── index.js
├── i18n
│ ├── de
│ │ └── strings.xml
│ └── en
│ │ └── strings.xml
├── lib
│ ├── bluetooth.js
│ ├── controls.js
│ ├── robot.js
│ ├── tests
│ │ ├── should.js
│ │ ├── suites.js
│ │ └── ti-mocha.js
│ ├── ti.sphero.js
│ ├── ti.touchid.js
│ ├── utils.js
│ └── webcolor.js
├── models
│ └── device.js
├── styles
│ ├── app.tss
│ └── index.tss
├── views
│ └── index.xml
└── widgets
│ ├── com.appcelerator.robot.devicedetails
│ ├── controllers
│ │ ├── colorize
│ │ │ └── index.js
│ │ ├── drive
│ │ │ └── index.js
│ │ ├── routes
│ │ │ ├── index.js
│ │ │ └── routes.js
│ │ └── widget.js
│ ├── styles
│ │ ├── colorize
│ │ │ └── index.tss
│ │ ├── drive
│ │ │ └── index.tss
│ │ ├── routes
│ │ │ └── index.tss
│ │ └── widget.tss
│ ├── views
│ │ ├── colorize
│ │ │ └── index.xml
│ │ ├── drive
│ │ │ └── index.xml
│ │ ├── routes
│ │ │ └── index.xml
│ │ └── widget.xml
│ └── widget.json
│ ├── com.appcelerator.robot.devicelist
│ ├── controllers
│ │ └── widget.js
│ ├── styles
│ │ └── widget.tss
│ ├── views
│ │ └── widget.xml
│ └── widget.json
│ ├── com.appcelerator.robot.devicesearch
│ ├── controllers
│ │ ├── manualSearch.js
│ │ └── widget.js
│ ├── styles
│ │ ├── manualSearch.tss
│ │ └── widget.tss
│ ├── views
│ │ ├── manualSearch.xml
│ │ └── widget.xml
│ └── widget.json
│ └── com.appcelerator.robot.settings
│ ├── controllers
│ ├── environment.js
│ ├── webview.js
│ └── widget.js
│ ├── styles
│ ├── environment.tss
│ ├── webview.tss
│ └── widget.tss
│ ├── views
│ ├── environment.xml
│ ├── webview.xml
│ └── widget.xml
│ └── widget.json
├── appc.js
├── i18n
├── alloy_generated
├── de
│ └── strings.xml
└── en
│ └── strings.xml
├── platform
└── ios
│ └── alloy_generated
├── plugins
└── ti.alloy
│ ├── hooks
│ ├── alloy.js
│ └── deepclean.js
│ └── plugin.py
├── src
└── RobotKit.framework
│ ├── Frameworks
│ ├── CPPCoreSDK.framework
│ │ ├── APIV2Processor.d
│ │ ├── APIV2Processor.dia
│ │ ├── APIV2Processor.o
│ │ ├── CPPCoreSDK
│ │ ├── DLog.d
│ │ ├── DLog.dia
│ │ ├── DLog.o
│ │ ├── Headers
│ │ │ ├── APIV2.h
│ │ │ ├── APIV2Constants.h
│ │ │ ├── APIV2Processor.h
│ │ │ ├── CPPCoreSDK.h
│ │ │ └── Packet.h
│ │ ├── Info.plist
│ │ ├── Modules
│ │ │ └── module.modulemap
│ │ ├── Packet.d
│ │ ├── Packet.dia
│ │ ├── Packet.o
│ │ └── _CodeSignature
│ │ │ ├── CodeDirectory
│ │ │ ├── CodeRequirements
│ │ │ ├── CodeRequirements-1
│ │ │ ├── CodeResources
│ │ │ └── CodeSignature
│ ├── RobotCommandKit.framework
│ │ ├── Headers
│ │ │ ├── FWLevel1DiagnosticAsyncData.h
│ │ │ ├── FWLevel1DiagnosticChunkedAsyncData.h
│ │ │ ├── FWLevel1DiagnosticChunkedCommand.h
│ │ │ ├── FWLevel1DiagnosticChunkedResponse.h
│ │ │ ├── FWLevel1DiagnosticCommand.h
│ │ │ ├── FWLevel1DiagnosticResponse.h
│ │ │ ├── NSData+Extensions.h
│ │ │ ├── NSData+RobotDataParsing.h
│ │ │ ├── RKAccelerometerData.h
│ │ │ ├── RKAppUtils.h
│ │ │ ├── RKAsyncFactory.h
│ │ │ ├── RKAsyncId.h
│ │ │ ├── RKAsyncMessage.h
│ │ │ ├── RKAttitudeData.h
│ │ │ ├── RKBackEMFData.h
│ │ │ ├── RKBackLEDOutputCommand.h
│ │ │ ├── RKBackLEDOutputResponse.h
│ │ │ ├── RKBuildDescriptors.h
│ │ │ ├── RKByteAsyncMessage.h
│ │ │ ├── RKByteCommand.h
│ │ │ ├── RKByteResponse.h
│ │ │ ├── RKCollisionDetectedAsyncData.h
│ │ │ ├── RKCommandList.h
│ │ │ ├── RKConfigureCollisionDetectionCommand.h
│ │ │ ├── RKConfigureCollisionDetectionResponse.h
│ │ │ ├── RKConfigureLocatorCommand.h
│ │ │ ├── RKConfigureLocatorResponse.h
│ │ │ ├── RKDeviceCommand.h
│ │ │ ├── RKDeviceList.h
│ │ │ ├── RKDeviceMessage.h
│ │ │ ├── RKDeviceResponse.h
│ │ │ ├── RKDeviceSensorsAsyncData.h
│ │ │ ├── RKDeviceSensorsData.h
│ │ │ ├── RKDiscoveryAgent.h
│ │ │ ├── RKDriveAlgorithm.h
│ │ │ ├── RKFlashWritingCommandDetector.h
│ │ │ ├── RKForceChargeCommand.h
│ │ │ ├── RKGetAutoReconnectCommand.h
│ │ │ ├── RKGetAutoReconnectResponse.h
│ │ │ ├── RKGetBluetoothInfoCommand.h
│ │ │ ├── RKGetBluetoothInfoResponse.h
│ │ │ ├── RKGetChargerStateCommand.h
│ │ │ ├── RKGetChargerStateResponse.h
│ │ │ ├── RKGetChassisIdCommand.h
│ │ │ ├── RKGetChassisIdResponse.h
│ │ │ ├── RKGetDeviceModeCommand.h
│ │ │ ├── RKGetDeviceModeResponse.h
│ │ │ ├── RKGetNonPersistentOptionFlagsCommand.h
│ │ │ ├── RKGetNonPersistentOptionFlagsResponse.h
│ │ │ ├── RKGetOptionFlagsCommand.h
│ │ │ ├── RKGetOptionFlagsResponse.h
│ │ │ ├── RKGetPersistentPageCRCCommand.h
│ │ │ ├── RKGetPersistentPageCRCResponse.h
│ │ │ ├── RKGetPowerStateCommand.h
│ │ │ ├── RKGetPowerStateResponse.h
│ │ │ ├── RKGetSkuCommand.h
│ │ │ ├── RKGetSkuResponse.h
│ │ │ ├── RKGetUserRGBLEDColorCommand.h
│ │ │ ├── RKGetUserRGBLEDColorResponse.h
│ │ │ ├── RKGoToSleepCommand.h
│ │ │ ├── RKGoToSleepResponse.h
│ │ │ ├── RKGyroData.h
│ │ │ ├── RKJoyStickDriveAlgorithm.h
│ │ │ ├── RKJumpToBootloaderCommand.h
│ │ │ ├── RKJumpToBootloaderResponse.h
│ │ │ ├── RKJumpToMainAppCommand.h
│ │ │ ├── RKJumpToMainAppResponse.h
│ │ │ ├── RKLastDataStreamingDataTracker.h
│ │ │ ├── RKLinkDelegate.h
│ │ │ ├── RKLocatorData.h
│ │ │ ├── RKMagnetometerData.h
│ │ │ ├── RKMainProcessorState.h
│ │ │ ├── RKMajorMinorVersion.h
│ │ │ ├── RKMath.h
│ │ │ ├── RKPingCommand.h
│ │ │ ├── RKPingResponse.h
│ │ │ ├── RKPowerNotificationAsyncData.h
│ │ │ ├── RKQuaternionData.h
│ │ │ ├── RKRGBLEDOutputCommand.h
│ │ │ ├── RKRGBLEDOutputResponse.h
│ │ │ ├── RKRawMotorValuesCommand.h
│ │ │ ├── RKRawMotorValuesResponse.h
│ │ │ ├── RKReadOdometerCommand.h
│ │ │ ├── RKReadOdometerResponse.h
│ │ │ ├── RKResponseCodes.h
│ │ │ ├── RKResponseFactory.h
│ │ │ ├── RKRobotBase.h
│ │ │ ├── RKRobotNotification.h
│ │ │ ├── RKRollCommand.h
│ │ │ ├── RKRollingQueue.h
│ │ │ ├── RKRotationRateCommand.h
│ │ │ ├── RKRotationRateResponse.h
│ │ │ ├── RKSelfLevelCommand.h
│ │ │ ├── RKSelfLevelCompleteAsyncData.h
│ │ │ ├── RKSelfLevelResponse.h
│ │ │ ├── RKSensorData.h
│ │ │ ├── RKSession.h
│ │ │ ├── RKSetAutoReconnectCommand.h
│ │ │ ├── RKSetAutoReconnectResponse.h
│ │ │ ├── RKSetBluetoothNameCommand.h
│ │ │ ├── RKSetBluetoothNameResponse.h
│ │ │ ├── RKSetDataStreamingCommand.h
│ │ │ ├── RKSetDataStreamingResponse.h
│ │ │ ├── RKSetFactoryDeviceModeCommand.h
│ │ │ ├── RKSetFactoryDeviceModeResponse.h
│ │ │ ├── RKSetHeadingCommand.h
│ │ │ ├── RKSetHeadingResponse.h
│ │ │ ├── RKSetInactivityTimeoutCommand.h
│ │ │ ├── RKSetInactivityTimeoutResponse.h
│ │ │ ├── RKSetMotionTimeoutCommand.h
│ │ │ ├── RKSetMotionTimeoutResponse.h
│ │ │ ├── RKSetNonPersistentOptionFlagsCommand.h
│ │ │ ├── RKSetNonPersistentOptionFlagsResponse.h
│ │ │ ├── RKSetOptionFlagsCommand.h
│ │ │ ├── RKSetOptionFlagsResponse.h
│ │ │ ├── RKSetPIDCommand.h
│ │ │ ├── RKSetPowerNotificationCommand.h
│ │ │ ├── RKSetPowerNotificationResponse.h
│ │ │ ├── RKSetUserHackModeCommand.h
│ │ │ ├── RKSetUserHackModeResponse.h
│ │ │ ├── RKSleepDidOccurMessage.h
│ │ │ ├── RKSleepWillOccurMessage.h
│ │ │ ├── RKStabilizationCommand.h
│ │ │ ├── RKStabilizationResponse.h
│ │ │ ├── RKStat.h
│ │ │ ├── RKStatEventListener.h
│ │ │ ├── RKStatForPacketFactory.h
│ │ │ ├── RKStatOdometerHack.h
│ │ │ ├── RKStatRecorder.h
│ │ │ ├── RKStats.h
│ │ │ ├── RKTemperatureCommand.h
│ │ │ ├── RKTemperatureResponse.h
│ │ │ ├── RKTypes.h
│ │ │ ├── RKURLRequestFactory.h
│ │ │ ├── RKV1Session.h
│ │ │ ├── RKV2Session.h
│ │ │ ├── RKVersioningCommand.h
│ │ │ ├── RKVersioningResponse.h
│ │ │ ├── RKWebSyncAgent.h
│ │ │ ├── RKWritePersistentPageCommand.h
│ │ │ ├── RKWritePersistentPageResponse.h
│ │ │ ├── RobotCommandKit-Prefix.pch
│ │ │ └── RobotCommandKit.h
│ │ ├── Info.plist
│ │ ├── RobotCommandKit
│ │ └── _CodeSignature
│ │ │ ├── CodeDirectory
│ │ │ ├── CodeRequirements
│ │ │ ├── CodeRequirements-1
│ │ │ ├── CodeResources
│ │ │ └── CodeSignature
│ ├── RobotKitClassic.framework
│ │ ├── Headers
│ │ │ ├── RKAccelerometerFilter.h
│ │ │ ├── RKAccuAngleDriveAddon.h
│ │ │ ├── RKDiscoveryAgentClassic.h
│ │ │ ├── RKLogarithmicScaleDriveAddon.h
│ │ │ ├── RKRobotClassic.h
│ │ │ ├── RKSteeringWheelDriveAlgorithm.h
│ │ │ ├── RKTiltDriveAlgorithm.h
│ │ │ ├── RKTypes.h
│ │ │ └── RobotKitClassic.h
│ │ ├── Info.plist
│ │ ├── PrivateHeaders
│ │ │ └── RKTighterControlAddon.h
│ │ ├── RobotKitClassic
│ │ └── _CodeSignature
│ │ │ ├── CodeDirectory
│ │ │ ├── CodeRequirements
│ │ │ ├── CodeRequirements-1
│ │ │ ├── CodeResources
│ │ │ └── CodeSignature
│ ├── RobotKitLE.framework
│ │ ├── Headers
│ │ │ ├── CBUUID+Extension.h
│ │ │ ├── NSMutableArray+OrbQueue.h
│ │ │ ├── RKAccessoryDiscoveryAgent.h
│ │ │ ├── RKByNameConnectStrategy.h
│ │ │ ├── RKCharacteristic.h
│ │ │ ├── RKControlSystemPresetCommand.h
│ │ │ ├── RKDeviceInfoServiceWrapper.h
│ │ │ ├── RKDiscoveryAgentLE.h
│ │ │ ├── RKHiByeMonitor.h
│ │ │ ├── RKLeBaseLink.h
│ │ │ ├── RKLeBatchConnectStrategy.h
│ │ │ ├── RKLeClosestConnectStrategy.h
│ │ │ ├── RKLeConnectStrategy.h
│ │ │ ├── RKLeFavoritesManager.h
│ │ │ ├── RKLeIfOneConnectStrategy.h
│ │ │ ├── RKLeNode.h
│ │ │ ├── RKLeProximityConnectStrategy.h
│ │ │ ├── RKLeRobotLink.h
│ │ │ ├── RKNoConnectStrategy.h
│ │ │ ├── RKNodeStateChangedNotification.h
│ │ │ ├── RKRadioDescriptor.h
│ │ │ ├── RKRadioServiceWrapper.h
│ │ │ ├── RKRobotDiscoveryAgentLE.h
│ │ │ ├── RKRobotLE.h
│ │ │ ├── RKRobotRadioDescriptor.h
│ │ │ └── RobotKitLE.h
│ │ ├── Info.plist
│ │ ├── RobotKitLE
│ │ └── _CodeSignature
│ │ │ ├── CodeDirectory
│ │ │ ├── CodeRequirements
│ │ │ ├── CodeRequirements-1
│ │ │ ├── CodeResources
│ │ │ └── CodeSignature
│ └── RobotLanguageKit.framework
│ │ ├── Headers
│ │ ├── RKAbortMacroCommand.h
│ │ ├── RKAbortMacroResponse.h
│ │ ├── RKAppendCompleteOvalCommand.h
│ │ ├── RKAppendCompleteOvalResponse.h
│ │ ├── RKAppendFragmentOvalCommand.h
│ │ ├── RKAppendFragmentOvalResponse.h
│ │ ├── RKInitMacroExecutiveCommand.h
│ │ ├── RKInitMacroExecutiveResponse.h
│ │ ├── RKMCCalibrate.h
│ │ ├── RKMCComment.h
│ │ ├── RKMCDelay.h
│ │ ├── RKMCEmit.h
│ │ ├── RKMCFrontLED.h
│ │ ├── RKMCGoSub.h
│ │ ├── RKMCGoTo.h
│ │ ├── RKMCLoopEnd.h
│ │ ├── RKMCLoopFor.h
│ │ ├── RKMCRGB.h
│ │ ├── RKMCRGBSD2.h
│ │ ├── RKMCRawMotor.h
│ │ ├── RKMCRoll.h
│ │ ├── RKMCRollSD1.h
│ │ ├── RKMCRollSD1SPD1.h
│ │ ├── RKMCRollSD1SPD2.h
│ │ ├── RKMCRotateOverTime.h
│ │ ├── RKMCRotateOverTimeSD1.h
│ │ ├── RKMCRotateOverTimeSD2.h
│ │ ├── RKMCRotationRate.h
│ │ ├── RKMCSD1.h
│ │ ├── RKMCSD2.h
│ │ ├── RKMCSPD1.h
│ │ ├── RKMCSPD2.h
│ │ ├── RKMCSleep.h
│ │ ├── RKMCSlew.h
│ │ ├── RKMCStabilization.h
│ │ ├── RKMCStop.h
│ │ ├── RKMCStreamEnd.h
│ │ ├── RKMCWaitUntilStop.h
│ │ ├── RKMacroCommand.h
│ │ ├── RKMacroEmitMarker.h
│ │ ├── RKMacroObject+Compatibility.h
│ │ ├── RKMacroObject.h
│ │ ├── RKMacroPlayer.h
│ │ ├── RKOrbBasicAbortCommand.h
│ │ ├── RKOrbBasicAbortResponse.h
│ │ ├── RKOrbBasicAppendFragmentCommand.h
│ │ ├── RKOrbBasicAppendFragmentResponse.h
│ │ ├── RKOrbBasicEraseStorageCommand.h
│ │ ├── RKOrbBasicEraseStorageResponse.h
│ │ ├── RKOrbBasicErrorASCII.h
│ │ ├── RKOrbBasicErrorBinary.h
│ │ ├── RKOrbBasicExecuteCommand.h
│ │ ├── RKOrbBasicExecuteResponse.h
│ │ ├── RKOrbBasicPrintMessage.h
│ │ ├── RKOrbBasicProgram.h
│ │ ├── RKOvalControl.h
│ │ ├── RKOvalDeviceBroadcast.h
│ │ ├── RKOvalErrorBroadcast.h
│ │ ├── RKResetOvmCommand.h
│ │ ├── RKResetOvmResponse.h
│ │ ├── RKRunMacroCommand.h
│ │ ├── RKRunMacroResponse.h
│ │ ├── RKSaveMacroCommand.h
│ │ ├── RKSaveMacroResponse.h
│ │ ├── RKSaveTemporaryMacroChunkCommand.h
│ │ ├── RKSaveTemporaryMacroChunkResponse.h
│ │ ├── RKSaveTemporaryMacroCommand.h
│ │ ├── RKSaveTemporaryMacroResponse.h
│ │ └── RobotLanguageKit.h
│ │ ├── Info.plist
│ │ ├── RobotLanguageKit
│ │ └── _CodeSignature
│ │ ├── CodeDirectory
│ │ ├── CodeRequirements
│ │ ├── CodeRequirements-1
│ │ ├── CodeResources
│ │ └── CodeSignature
│ ├── Headers
│ ├── RKConvenienceRobot.h
│ ├── RKDriveable.h
│ ├── RKOllie.h
│ ├── RKRobotDiscoveryAgent.h
│ ├── RKSensorControl.h
│ ├── RKSphero.h
│ └── RobotKit.h
│ ├── Info.plist
│ ├── PrivateHeaders
│ └── RobotKitPrivate.h
│ ├── RobotKit
│ └── _CodeSignature
│ ├── CodeDirectory
│ ├── CodeRequirements
│ ├── CodeRequirements-1
│ ├── CodeResources
│ └── CodeSignature
└── tiapp.xml
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | Resources
3 | build.log
4 | build
5 | npm-debug.log
6 | tmp
7 | .map
8 | .project
9 | .settings
10 | Thumbs.db
11 | app/assets/fonts/plexesmediumpro.ttf
12 | Pods
13 | Podfile.lock
14 |
--------------------------------------------------------------------------------
/DefaultIcon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/DefaultIcon.png
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright 2015-2016 Hans Knoechel
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | #
2 |
3 | Appcelerator Hyperloop based application to program for the Sphero iOS SDK. This project uses the native module [ti.sphero](https://github.com/hansemannn/ti.sphero) to communicate to the Sphero framework. This will also be bridged to Hyperloop in the new feature.
4 |
5 | ### Features
6 |
7 | - [x] Search devices automatically
8 | - [x] Save devices for later usages
9 | - [x] Drive the Sphero using your phone
10 | - [x] Change the Sphero LED color
11 |
12 | ### Technologies using Hyperloop
13 |
14 | - [x] RobotKit.framework (`RKRobotDiscovery`, `RKConvenienceRobot`, ...)
15 | - [x] Settings (`UITableView`)
16 | - [x] LED color-grid (`UICollectionView`)
17 | - [x] Content pages (`WKWebView`)
18 | - [x] Device control (`UIBezierPath`)
19 |
20 | ### Screenshots
21 |
22 |
23 |
24 |
25 |
26 | ### Author
27 | Hans Knoechel ([@hansemannnn](https://twitter.com/hansemannnn) / [Web](http://hans-knoechel.de)) x Appcelerator, Inc.
28 |
29 | ### License
30 |
31 | Apache 2
32 |
33 | Contributing
34 | ---------------
35 | Code contributions are greatly appriciated, please submit a pull request! Please note than I cannot merge commits before 2016/06/01, since this project is part of my bachelor thesis at the University of Applied Sciences Osnabrück (Germany).
36 |
--------------------------------------------------------------------------------
/app/alloy.js:
--------------------------------------------------------------------------------
1 | require('tests/ti-mocha');
2 |
3 | Alloy.Collections.device = Alloy.createCollection("device");
4 |
--------------------------------------------------------------------------------
/app/assets/commands/colorm.sphero:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/app/assets/commands/colorm.sphero
--------------------------------------------------------------------------------
/app/assets/commands/dance1.sphero:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/app/assets/commands/dance1.sphero
--------------------------------------------------------------------------------
/app/assets/fonts/README:
--------------------------------------------------------------------------------
1 | The "Plexes" font is not included in this project, since it needs to be licensed.
--------------------------------------------------------------------------------
/app/assets/images/icons/arrow-right.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/app/assets/images/icons/arrow-right.png
--------------------------------------------------------------------------------
/app/assets/images/icons/arrow-right@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/app/assets/images/icons/arrow-right@2x.png
--------------------------------------------------------------------------------
/app/assets/images/icons/connected.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/app/assets/images/icons/connected.png
--------------------------------------------------------------------------------
/app/assets/images/icons/connected@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/app/assets/images/icons/connected@2x.png
--------------------------------------------------------------------------------
/app/assets/images/icons/disconnected.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/app/assets/images/icons/disconnected.png
--------------------------------------------------------------------------------
/app/assets/images/icons/disconnected@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/app/assets/images/icons/disconnected@2x.png
--------------------------------------------------------------------------------
/app/assets/images/icons/features/colorize.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/app/assets/images/icons/features/colorize.png
--------------------------------------------------------------------------------
/app/assets/images/icons/features/colorize@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/app/assets/images/icons/features/colorize@2x.png
--------------------------------------------------------------------------------
/app/assets/images/icons/features/drive.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/app/assets/images/icons/features/drive.png
--------------------------------------------------------------------------------
/app/assets/images/icons/features/drive@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/app/assets/images/icons/features/drive@2x.png
--------------------------------------------------------------------------------
/app/assets/images/icons/features/routes.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/app/assets/images/icons/features/routes.png
--------------------------------------------------------------------------------
/app/assets/images/icons/features/routes@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/app/assets/images/icons/features/routes@2x.png
--------------------------------------------------------------------------------
/app/assets/images/icons/settings.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/app/assets/images/icons/settings.png
--------------------------------------------------------------------------------
/app/assets/images/icons/settings@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/app/assets/images/icons/settings@2x.png
--------------------------------------------------------------------------------
/app/assets/images/logo@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/app/assets/images/logo@2x.png
--------------------------------------------------------------------------------
/app/assets/iphone/Default-568h@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/app/assets/iphone/Default-568h@2x.png
--------------------------------------------------------------------------------
/app/assets/iphone/Default-667h@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/app/assets/iphone/Default-667h@2x.png
--------------------------------------------------------------------------------
/app/assets/iphone/Default-Portrait-736h@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/app/assets/iphone/Default-Portrait-736h@3x.png
--------------------------------------------------------------------------------
/app/assets/iphone/Default-Portrait.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/app/assets/iphone/Default-Portrait.png
--------------------------------------------------------------------------------
/app/assets/iphone/Default-Portrait@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/app/assets/iphone/Default-Portrait@2x.png
--------------------------------------------------------------------------------
/app/assets/iphone/Default@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/app/assets/iphone/Default@2x.png
--------------------------------------------------------------------------------
/app/assets/nko_brightness_guide.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/app/assets/nko_brightness_guide.png
--------------------------------------------------------------------------------
/app/assets/nko_brightness_guide@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/app/assets/nko_brightness_guide@2x.png
--------------------------------------------------------------------------------
/app/assets/nko_colormap.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/app/assets/nko_colormap.png
--------------------------------------------------------------------------------
/app/config.json:
--------------------------------------------------------------------------------
1 | {
2 | "global": {
3 | "styles": {
4 | "tintColor": "#c91326"
5 | }
6 | },
7 | "env:development": {},
8 | "env:test": {},
9 | "env:production": {},
10 | "os:android": {},
11 | "os:blackberry": {},
12 | "os:ios": {},
13 | "os:mobileweb": {},
14 | "os:windows": {},
15 | "dependencies": {
16 | "com.appcelerator.robot.devicesearch": "1.0",
17 | "com.appcelerator.robot.devicelist": "1.0",
18 | "com.appcelerator.robot.devicedetails": "1.0",
19 | "com.appcelerator.robot.settings": "1.0"
20 | }
21 | }
--------------------------------------------------------------------------------
/app/lib/tests/suites.js:
--------------------------------------------------------------------------------
1 | describe('PersistenceTest', function() {
2 |
3 | var devices = null;
4 | var initialTitle = 'Sphero #1';
5 | var updatedTitle = 'Sphero #2';
6 | var identifier = 'mocha-test';
7 | var should = require('tests/should');
8 |
9 | before(function() {
10 | devices = Alloy.Collections.instance('device');
11 | });
12 |
13 | it('#addDevice', function() {
14 | var device = Alloy.createModel('device', {
15 | title: initialTitle,
16 | identifier: identifier
17 | });
18 | device.save();
19 | devices.fetch();
20 |
21 | var foundDevices = devices.where({
22 | identifier: identifier
23 | });
24 |
25 | should(foundDevices).not.be.undefined;
26 | should(foundDevices[0].get('title')).eql(initialTitle);
27 | });
28 |
29 | it('#updateDevice', function() {
30 | var testModel = devices.where({
31 | identifier: identifier
32 | })[0];
33 | testModel.set('title', updatedTitle);
34 | testModel.save();
35 |
36 | should(testModel.get('title')).eql(updatedTitle);
37 | });
38 |
39 | it('#removeDevice', function() {
40 | var testModel = devices.where({
41 | identifier: identifier
42 | })[0];
43 | testModel.destroy();
44 | });
45 |
46 | after(function() {
47 | // Check something afterwards?
48 | });
49 | });
--------------------------------------------------------------------------------
/app/models/device.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Defines a Sphero device
3 | */
4 | exports.definition = {
5 | config : {
6 | "columns" : {
7 | "id" : "INTEGER PRIMARY KEY AUTOINCREMENT",
8 | "title" : "TEXT",
9 | "identifier" : "TEXT",
10 | "created_at" : "INTEGER",
11 | "connected" : "INTEGER"
12 | },
13 | "defaults" : {
14 | "title" : "",
15 | "identifier" : "",
16 | "created_at" : 0,
17 | "connected" : 0
18 | },
19 | "adapter" : {
20 | "type" : "sql",
21 | "idAttribute" : "id",
22 | "collection_name" : "devices"
23 | }
24 | },
25 |
26 | extendModel : function(Model) {
27 | Model.prototype.toURL = function() {
28 | var url = "";
29 | var proximity = JSON.parse(this.get("proximity"));
30 | var categories = JSON.parse(this.get("categories"));
31 | var tags = JSON.parse(this.get("tags"));
32 |
33 | // Add location data is available
34 | if (proximity.source.latitude && proximity.source.longitude) {
35 | url += "&proximity[source][latitude]=" + proximity.source.latitude;
36 | url += "&proximity[source][longitude]=" + proximity.source.longitude;
37 |
38 | url += "&proximity[radius]=" + proximity.radius;
39 | }
40 |
41 | // Concatenate categories
42 | _.each(categories, function(category, index) {
43 | url += "&categories[" + index + "]=" + category;
44 | });
45 |
46 | // Concatenate tags
47 | _.each(tags, function(tag, index) {
48 | url += "&tags[" + index + "]=" + tag;
49 | });
50 |
51 | return url;
52 | };
53 | },
54 | extendCollection : function(Collection) {
55 | Collection.prototype.destroyAll = function(opt) {
56 | var db = Ti.Database.open(this.config.adapter.db_name);
57 | db.execute("DELETE FROM " + this.config.adapter.collection_name);
58 | db.close();
59 | this.models = [];
60 | if (!opt || !opt.silent) {
61 | this.trigger("reset");
62 | }
63 | return this;
64 | };
65 | }
66 | };
67 |
--------------------------------------------------------------------------------
/app/styles/app.tss:
--------------------------------------------------------------------------------
1 | "Window": {
2 | backgroundColor: "#222",
3 | backButtonTitle: "",
4 | translucent: false,
5 | barColor: "#000",
6 | navTintColor: Alloy.CFG.styles.tintColor,
7 | titleAttributes: {
8 | color: "#fff",
9 | font: {
10 | fontFamily: "PlexesMediumPro",
11 | fontSize: 20
12 | }
13 | }
14 | }
15 |
16 | "Label": {
17 | font: {
18 | fontFamily: "PlexesMediumPro",
19 | fontSize: 16
20 | }
21 | }
22 |
23 | "Button": {
24 | font: {
25 | fontFamily: "PlexesMediumPro",
26 | fontSize: 16
27 | }
28 | }
29 |
30 | "TextField": {
31 | font: {
32 | fontFamily: "PlexesMediumPro",
33 | fontSize: 16
34 | },
35 | tintColor: Alloy.CFG.styles.tintColor
36 | }
--------------------------------------------------------------------------------
/app/styles/index.tss:
--------------------------------------------------------------------------------
1 | "Window": {
2 | backgroundColor: "#fff"
3 | }
4 |
--------------------------------------------------------------------------------
/app/views/index.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/app/widgets/com.appcelerator.robot.devicedetails/controllers/drive/index.js:
--------------------------------------------------------------------------------
1 | var robot;
2 |
3 | /**
4 | * Constructor
5 | **/
6 | (function constructor(args) {
7 | robot = args.robot;
8 | })(arguments[0] || {});
9 |
10 | function driveForward() {
11 | drive(0, 0.5);
12 | }
13 |
14 | function driveRight() {
15 | drive(90, 0.5);
16 | }
17 |
18 | function driveBackward() {
19 | drive(180, 0.5);
20 | }
21 |
22 | function driveLeft() {
23 | drive(270, 0.5);
24 | }
25 |
26 | function drive(heading, velocity) {
27 | Ti.API.debug("Driving with heading = " + heading + " and velocity = " + velocity);
28 | robot.startDrivingWithHeadingAndVelocity(heading, velocity);
29 | }
30 |
31 | function stopDriving() {
32 | Ti.API.debug("Stopping ...");
33 | robot.stopDriving();
34 | }
35 |
--------------------------------------------------------------------------------
/app/widgets/com.appcelerator.robot.devicedetails/controllers/routes/index.js:
--------------------------------------------------------------------------------
1 | var robot;
2 |
3 | /**
4 | * Constructor
5 | **/
6 | (function constructor(args) {
7 | robot = args.robot;
8 | })(arguments[0] || {});
9 |
10 | function executeTestCommand() {
11 | var file = Ti.Filesystem.getFile(Ti.Filesystem.getResourcesDirectory(), "/commands/dance1.sphero");
12 | robot.runMacro(file.resolve(), 1337);
13 | }
14 |
--------------------------------------------------------------------------------
/app/widgets/com.appcelerator.robot.devicedetails/controllers/routes/routes.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Constructor
3 | **/
4 | (function constructor(args) {
5 |
6 | })(arguments[0] || {});
7 |
--------------------------------------------------------------------------------
/app/widgets/com.appcelerator.robot.devicedetails/controllers/widget.js:
--------------------------------------------------------------------------------
1 | var robot,
2 | nav;
3 |
4 | /**
5 | * Constructor
6 | **/
7 | (function constructor(args) {
8 | nav = args.nav;
9 | robot = args.robot;
10 |
11 | setUI();
12 | })(arguments[0] || {});
13 |
14 | function setUI() {
15 | $.window.setTitle(robot.name);
16 | }
17 |
18 | function disconnectRobot() {
19 | robot.disconnect();
20 | }
21 |
22 | function openFeature(e) {
23 | nav.openWindow(Widget.createController(e.itemId + "/index", {
24 | robot: robot
25 | }).getView());
26 | }
27 |
--------------------------------------------------------------------------------
/app/widgets/com.appcelerator.robot.devicedetails/styles/colorize/index.tss:
--------------------------------------------------------------------------------
1 | "#container": {
2 | layout: "horizontal",
3 | top: 0,
4 | contentWidth: Ti.UI.FILL,
5 | scrollType: "vertical"
6 | }
7 |
--------------------------------------------------------------------------------
/app/widgets/com.appcelerator.robot.devicedetails/styles/drive/index.tss:
--------------------------------------------------------------------------------
1 |
2 | "Circle": {
3 | width: 300,
4 | height: 300
5 | }
6 |
7 | ".arrow": {
8 | width: 40,
9 | height: 40,
10 | bubbleParent: true
11 | }
12 |
13 | "#arrowTop": {
14 | top: 20
15 | }
16 |
17 | "#arrowRight": {
18 | right: 20
19 | }
20 |
21 | "#arrowBottom": {
22 | bottom: 20
23 | }
24 |
25 | "#arrowLeft": {
26 | left: 20
27 | }
28 |
--------------------------------------------------------------------------------
/app/widgets/com.appcelerator.robot.devicedetails/styles/routes/index.tss:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/app/widgets/com.appcelerator.robot.devicedetails/styles/routes/index.tss
--------------------------------------------------------------------------------
/app/widgets/com.appcelerator.robot.devicedetails/styles/widget.tss:
--------------------------------------------------------------------------------
1 | "#listView": {
2 | backgroundColor: "transparent",
3 | separatorStyle: Ti.UI.iPhone.ListViewSeparatorStyle.NONE,
4 | footerTitle: ""
5 | }
6 |
7 | "ListItem": {
8 | height: 130,
9 | backgroundColor: "transparent",
10 | selectionStyle: Ti.UI.iOS.ListViewCellSelectionStyle.NONE
11 | }
12 |
13 | ".featureContainer": {
14 | backgroundColor: "#fff",
15 | borderRadius: 4,
16 | top: 15,
17 | left: 15,
18 | right: 15
19 | }
20 |
21 | ".featureImage": {
22 | touchEnabled: false,
23 | tintColor: Alloy.CFG.styles.tintColor,
24 | left: 15,
25 | width: 60,
26 | height: 60
27 | }
28 |
29 | ".featureTitle": {
30 | font: {
31 | fontSize: 25,
32 | fontWeight: "bold"
33 | },
34 | left: 90,
35 | height: Ti.UI.SIZE,
36 | color: "#333"
37 | }
38 |
39 | ".arrow": {
40 | right: 20,
41 | image: "images/icons/arrow-right.png",
42 | width: 12,
43 | height: 20
44 | }
45 |
--------------------------------------------------------------------------------
/app/widgets/com.appcelerator.robot.devicedetails/views/colorize/index.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/app/widgets/com.appcelerator.robot.devicedetails/views/drive/index.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/app/widgets/com.appcelerator.robot.devicedetails/views/routes/index.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/app/widgets/com.appcelerator.robot.devicedetails/views/widget.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/app/widgets/com.appcelerator.robot.devicedetails/widget.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "com.appcelerator.robot.devicedetails",
3 | "name": "com.appcelerator.robot.devicedetails",
4 | "description" : "",
5 | "author": "",
6 | "version": "1.0",
7 | "copyright":"Copyright (c) 2016",
8 | "license":"Public Domain",
9 | "min-alloy-version": "1.0",
10 | "min-titanium-version":"2.1",
11 | "tags":"",
12 | "platforms":"ios"
13 | }
--------------------------------------------------------------------------------
/app/widgets/com.appcelerator.robot.devicelist/styles/widget.tss:
--------------------------------------------------------------------------------
1 | "ListView": {
2 | backgroundColor: "transparent",
3 | footerTitle: "",
4 | separatorStyle: Ti.UI.iPhone.ListViewSeparatorStyle.NONE
5 | }
6 |
7 | ".settings": {
8 | image: "images/icons/settings.png"
9 | }
10 |
11 | ".robotOutterContainer": {
12 | height: Ti.UI.SIZE
13 | }
14 |
15 | ".robotContainer": {
16 | height: Ti.UI.SIZE,
17 | backgroundColor: "#fff",
18 | borderRadius: 4,
19 | top: 8,
20 | left: 15,
21 | right: 15,
22 | bottom: 7
23 | }
24 |
25 | ".robotTitle": {
26 | font: {
27 | fontSize: 20,
28 | fontWeight: "bold"
29 | },
30 | top: 20,
31 | left: 20,
32 | bottom: 4,
33 | height: Ti.UI.SIZE,
34 | color: "#333"
35 | }
36 |
37 | ".robotSubtitle": {
38 | bottom: 20,
39 | height: Ti.UI.SIZE,
40 | left: 20,
41 | color: "#999"
42 | }
43 |
44 | ".robotConnectionStatus": {
45 | height: 50,
46 | left: 20,
47 | layout: "horizontal"
48 | }
49 |
50 | ".robotConnectionStatusIcon": {
51 | width: 20,
52 | height: 20,
53 | touchEnabled: false,
54 | left: 0
55 | }
56 |
57 | ".robotConnectionStatusTitle": {
58 | left: 5,
59 | height: Ti.UI.SIZE,
60 | color: "#999",
61 | top: 3
62 | }
63 |
64 | ".arrow": {
65 | right: 20,
66 | image: "images/icons/arrow-right.png",
67 | width: 12,
68 | height: 20
69 | }
70 |
71 | "#footer": {
72 | textAlign: "center",
73 | color: "#ccc",
74 | top: 20
75 | }
76 |
--------------------------------------------------------------------------------
/app/widgets/com.appcelerator.robot.devicelist/views/widget.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | OK
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/app/widgets/com.appcelerator.robot.devicelist/widget.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "com.appcelerator.robot.devicelist",
3 | "name": "com.appcelerator.robot.devicelist",
4 | "description" : "",
5 | "author": "",
6 | "version": "1.0",
7 | "copyright":"Copyright (c) 2016",
8 | "license":"Public Domain",
9 | "min-alloy-version": "1.0",
10 | "min-titanium-version":"2.1",
11 | "tags":"",
12 | "platforms":"ios"
13 | }
--------------------------------------------------------------------------------
/app/widgets/com.appcelerator.robot.devicesearch/controllers/manualSearch.js:
--------------------------------------------------------------------------------
1 | var onCancel,
2 | onSuccess,
3 | utils,
4 | moment;
5 |
6 | /**
7 | * Constructor
8 | **/
9 | (function constructor(args) {
10 | utils = require("utils");
11 | moment = require("alloy/moment");
12 |
13 | onCancel = args.cancel;
14 | onSuccess = args.success;
15 | })(arguments[0] || {});
16 |
17 | function focusNameField() {
18 | $.name.focus();
19 | }
20 |
21 | function validateSubmitButton(e) {
22 | $.submit.setEnabled($.ip.getValue().trim().length > 0 && $.name.getValue().trim().length > 0);
23 | }
24 |
25 | function cancel() {
26 | close();
27 | onCancel && onCancel();
28 | }
29 |
30 | function close() {
31 | $.nav.close();
32 | }
33 |
34 | function submit() {
35 | var model = Alloy.createModel("device", {
36 | title : $.name.getValue(),
37 | identifier : utils.slugify($.name.getValue()),
38 | created_at : moment().unix(),
39 | connected: true
40 | });
41 | model.save();
42 |
43 | close();
44 | onSuccess && onSuccess();
45 | }
46 |
47 | exports = {
48 | open : function() {
49 | $.nav.open({
50 | modal : true
51 | });
52 | }
53 | };
54 |
--------------------------------------------------------------------------------
/app/widgets/com.appcelerator.robot.devicesearch/styles/manualSearch.tss:
--------------------------------------------------------------------------------
1 | ".form": {
2 | layout: "vertical"
3 | }
4 |
5 | ".intro": {
6 | top: 40,
7 | bottom: 40,
8 | textAlign: "center",
9 | color: "#fff",
10 | left: 30,
11 | right: 30
12 | }
13 |
14 | "TextField": {
15 | height: 40,
16 | width: 260,
17 | paddingLeft: 15,
18 | backgroundColor: "#666",
19 | borderRadius: 4,
20 | bottom: 15,
21 | color: "#fff",
22 | autocorrect: false,
23 | font: {
24 | fontSize: 15
25 | }
26 | }
27 |
28 | "#ip": {
29 | hintText: L("ip_address"),
30 | returnKeyType: Ti.UI.RETURNKEY_NEXT
31 | }
32 |
33 | "#name": {
34 | hintText: L("name"),
35 | returnKeyType: Ti.UI.RETURNKEY_DONE
36 | }
37 |
38 | "#submit": {
39 | width: 260,
40 | height: 40,
41 | enabled: false,
42 | backgroundColor: Alloy.CFG.styles.tintColor,
43 | tintColor: "#fff",
44 | borderRadius: 4
45 | }
46 |
--------------------------------------------------------------------------------
/app/widgets/com.appcelerator.robot.devicesearch/styles/widget.tss:
--------------------------------------------------------------------------------
1 | ".logo": {
2 | width: 240,
3 | top: 60,
4 | image: "images/logo.png"
5 | }
6 |
7 | "#content": {
8 | layout: "vertical",
9 | height: 100,
10 | opacity: 0
11 | }
12 |
13 | "#loader": {
14 | style: Titanium.UI.ActivityIndicatorStyle.BIG
15 | }
16 |
17 | "#loaderText": {
18 | color: "#fff",
19 | top: 10,
20 | textAlign: "center"
21 | }
22 |
23 | "#alert": {
24 | title: "No devices found",
25 | message: "We could not find any devices. Please try to add your device manually!",
26 | cancel: 0
27 | }
28 |
--------------------------------------------------------------------------------
/app/widgets/com.appcelerator.robot.devicesearch/views/manualSearch.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/app/widgets/com.appcelerator.robot.devicesearch/views/widget.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | L("try_again")
12 | L("add_manually")
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/app/widgets/com.appcelerator.robot.devicesearch/widget.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "com.appcelerator.robot.devicesearch",
3 | "name": "com.appcelerator.robot.devicesearch",
4 | "description" : "",
5 | "author": "",
6 | "version": "1.0",
7 | "copyright":"Copyright (c) 2016",
8 | "license":"Public Domain",
9 | "min-alloy-version": "1.0",
10 | "min-titanium-version":"2.1",
11 | "tags":"",
12 | "platforms":"ios"
13 | }
--------------------------------------------------------------------------------
/app/widgets/com.appcelerator.robot.settings/controllers/environment.js:
--------------------------------------------------------------------------------
1 |
2 | /**
3 | * Constructor
4 | */
5 | (function constructor(args) {
6 |
7 | })(arguments[0] || {});
8 |
9 | function checkEnvironment() {
10 | var bluetooth = require("bluetooth");
11 | bluetooth.checkEnvironment(function(e) {
12 | $.status.setText(e.message);
13 | });
14 | }
--------------------------------------------------------------------------------
/app/widgets/com.appcelerator.robot.settings/styles/environment.tss:
--------------------------------------------------------------------------------
1 |
2 | "#status": {
3 | font: {
4 | fontSize: 20
5 | },
6 | color: "#fff"
7 | }
8 |
--------------------------------------------------------------------------------
/app/widgets/com.appcelerator.robot.settings/styles/webview.tss:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/app/widgets/com.appcelerator.robot.settings/styles/webview.tss
--------------------------------------------------------------------------------
/app/widgets/com.appcelerator.robot.settings/styles/widget.tss:
--------------------------------------------------------------------------------
1 | "#listView": {
2 | style: Ti.UI.iOS.ListViewStyle.GROUPED
3 | }
4 |
5 | "ListItem": {
6 | accessoryType: Ti.UI.LIST_ACCESSORY_TYPE_DISCLOSURE
7 | }
8 |
--------------------------------------------------------------------------------
/app/widgets/com.appcelerator.robot.settings/views/environment.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | >
--------------------------------------------------------------------------------
/app/widgets/com.appcelerator.robot.settings/views/webview.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/app/widgets/com.appcelerator.robot.settings/views/widget.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/app/widgets/com.appcelerator.robot.settings/widget.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "com.appcelerator.robot.settings",
3 | "name": "com.appcelerator.robot.settings",
4 | "description" : "",
5 | "author": "",
6 | "version": "1.0",
7 | "copyright":"Copyright (c) 2016",
8 | "license":"Public Domain",
9 | "min-alloy-version": "1.0",
10 | "min-titanium-version":"2.1",
11 | "tags":"",
12 | "platforms":"ios"
13 | }
--------------------------------------------------------------------------------
/appc.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Hyperloop configuration
3 | */
4 | module.exports = {
5 | type: 'app',
6 | group: 'titanium',
7 | dependencies: {
8 | },
9 | hyperloop: {
10 | ios: {
11 | xcodebuild: {
12 | /**
13 | * any flags available to be passed into the Xcode can be
14 | * included here to further customize the xcode build
15 | */
16 | flags: {
17 | FRAMEWORK_SEARCH_PATHS: '$(inherited) ../../src',
18 | OTHER_LDFLAGS: '-ObjC -lc++'
19 | },
20 | frameworks: [
21 | 'RobotKit'
22 | ]
23 | },
24 | /**
25 | * optionally, you can bring in third-party or first-party libraries,
26 | * source code, resources etc. by including them here. The 'key' is the
27 | * name of the package that will be used in the require (if code).
28 | * the values can either be an Array or String value to the directory
29 | * where the files are located
30 | */
31 | thirdparty: {
32 | 'RobotKit': {
33 | source: ['src'],
34 | header: 'src',
35 | resource: 'src'
36 | }
37 | }
38 | }
39 | }
40 | };
41 |
--------------------------------------------------------------------------------
/i18n/alloy_generated:
--------------------------------------------------------------------------------
1 | This directory is generated from the "/app/i18n" and "/app/theme//i18n" directories.
2 |
3 | Do not modify any files in this directory. Your changes will be lost on next build.
4 |
5 | Please make sure "/i18n" is added to your version control's ignore list (i.e. .gitignore).
--------------------------------------------------------------------------------
/platform/ios/alloy_generated:
--------------------------------------------------------------------------------
1 | This directory is generated from the "/app/platform" and "/app/theme//platform" directories.
2 |
3 | Do not modify any files in this directory. Your changes will be lost on next build.
4 |
5 | Please make sure "/platform" is added to your version control's ignore list (i.e. .gitignore).
--------------------------------------------------------------------------------
/plugins/ti.alloy/hooks/deepclean.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Alloy
3 | * Copyright (c) 2014 by Appcelerator, Inc. All Rights Reserved.
4 | * See LICENSE for more information on licensing.
5 | */
6 |
7 | exports.cliVersion = '>=3.X';
8 | var SILENT = true;
9 |
10 | exports.init = function (logger, config, cli, appc) {
11 | var path = require('path'),
12 | fs = require('fs'),
13 | afs = appc.fs;
14 |
15 | function run(finished) {
16 | if(cli.argv['shallow'] === '') {
17 | logger.info('Not cleaning the Resources directory');
18 | finished();
19 | return;
20 | }
21 | var appDir = path.join(cli.argv['project-dir'], 'app');
22 | if (!afs.exists(appDir)) {
23 | logger.debug('Project not an Alloy app, exiting.');
24 | finished();
25 | return;
26 | }
27 |
28 | var resourcesDir = path.join(cli.argv['project-dir'], 'Resources');
29 | if (!afs.exists(resourcesDir)) {
30 | logger.debug('Resources directory does not exist.');
31 | finished();
32 | return;
33 | }
34 | rmdir(resourcesDir, fs, path, logger);
35 | logger.debug('Resources directory of %s has been emptied', appDir.cyan);
36 | finished();
37 | }
38 |
39 | cli.addHook('clean.post', function (build, finished) {
40 | run(finished);
41 | });
42 |
43 | };
44 |
45 | function rmdir(dirPath, fs, path, logger, removeSelf) {
46 | var files;
47 | try {
48 | files = fs.readdirSync(dirPath);
49 | }
50 | catch(e) {
51 | return;
52 | }
53 | if (files.length > 0) {
54 | for (var i = 0; i < files.length; i++) {
55 | var filePath = path.join(dirPath, files[i]);
56 | if (fs.statSync(filePath).isFile()) {
57 | fs.unlinkSync(filePath);
58 | } else {
59 | rmdir(filePath, fs, path, logger, true);
60 | }
61 | }
62 | }
63 | if (removeSelf) {
64 | fs.rmdirSync(dirPath);
65 | }
66 | }
67 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/CPPCoreSDK.framework/APIV2Processor.d:
--------------------------------------------------------------------------------
1 | dependencies: \
2 | /Users/Shared/TeamCity/bamboo-home-mysql/xml-data/build-dir/SDK-SDKI-ISM2/cppcoresdk/APIV2Processor/APIV2Processor/APIV2Processor.cpp \
3 | /Users/Shared/TeamCity/bamboo-home-mysql/xml-data/build-dir/SDK-SDKI-ISM2/cppcoresdk/APIV2Processor/APIV2Processor/pch.h \
4 | /Users/Shared/TeamCity/bamboo-home-mysql/xml-data/build-dir/SDK-SDKI-ISM2/cppcoresdk/APIV2Processor/APIV2Processor/APIV2Processor.h \
5 | /Users/Shared/TeamCity/bamboo-home-mysql/xml-data/build-dir/SDK-SDKI-ISM2/cppcoresdk/APIV2Processor/APIV2Processor/APIV2.h \
6 | /Users/Shared/TeamCity/bamboo-home-mysql/xml-data/build-dir/SDK-SDKI-ISM2/cppcoresdk/APIV2Processor/APIV2Processor/Packet.h \
7 | /Users/Shared/TeamCity/bamboo-home-mysql/xml-data/build-dir/SDK-SDKI-ISM2/cppcoresdk/APIV2Processor/APIV2Processor/APIV2Constants.h \
8 | /Users/Shared/TeamCity/bamboo-home-mysql/xml-data/build-dir/SDK-SDKI-ISM2/cppcoresdk/APIV2Processor/APIV2Processor/DLog.h
9 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/CPPCoreSDK.framework/APIV2Processor.dia:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/src/RobotKit.framework/Frameworks/CPPCoreSDK.framework/APIV2Processor.dia
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/CPPCoreSDK.framework/APIV2Processor.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/src/RobotKit.framework/Frameworks/CPPCoreSDK.framework/APIV2Processor.o
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/CPPCoreSDK.framework/CPPCoreSDK:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/src/RobotKit.framework/Frameworks/CPPCoreSDK.framework/CPPCoreSDK
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/CPPCoreSDK.framework/DLog.d:
--------------------------------------------------------------------------------
1 | dependencies: \
2 | /Users/Shared/TeamCity/bamboo-home-mysql/xml-data/build-dir/SDK-SDKI-ISM2/cppcoresdk/APIV2Processor/APIV2Processor/DLog.cpp \
3 | /Users/Shared/TeamCity/bamboo-home-mysql/xml-data/build-dir/SDK-SDKI-ISM2/cppcoresdk/APIV2Processor/APIV2Processor/pch.h \
4 | /Users/Shared/TeamCity/bamboo-home-mysql/xml-data/build-dir/SDK-SDKI-ISM2/cppcoresdk/APIV2Processor/APIV2Processor/DLog.h
5 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/CPPCoreSDK.framework/DLog.dia:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/src/RobotKit.framework/Frameworks/CPPCoreSDK.framework/DLog.dia
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/CPPCoreSDK.framework/DLog.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/src/RobotKit.framework/Frameworks/CPPCoreSDK.framework/DLog.o
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/CPPCoreSDK.framework/Headers/APIV2.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 |
3 | // The following ifdef block is the standard way of creating macros which make exporting
4 | // from a DLL simpler. All files within this DLL are compiled with the APIV2PROCESSOR_EXPORTS
5 | // symbol defined on the command line. This symbol should not be defined on any project
6 | // that uses this DLL. This way any other project whose source files include this file see
7 | // APIV2PROCESSOR_EXPORTS functions as being imported from a DLL, whereas this DLL sees symbols
8 | // defined with this macro as being exported.
9 | #ifdef APIV2PROCESSOR_EXPORTS
10 | # if WINDOWS_BUILD
11 | # define APIV2PROCESSOR_API __declspec(dllexport)
12 | # else
13 | # define APIV2PROCESSOR_API
14 | # endif //WINDOWS_BUILD
15 | #else
16 | # if WINDOWS_BUILD
17 | # define APIV2PROCESSOR_API __declspec(dllimport)
18 | # else
19 | # define APIV2PROCESSOR_API
20 | # endif //WINDOWS_BUILD
21 | #endif //APIV2PROCESSOR_EXPORTS
22 |
23 | #include
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/CPPCoreSDK.framework/Headers/APIV2Constants.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include
3 |
4 | #define SLIP_ESCAPE_MASK 0x88
5 | #define SLIP_ENCODE(value) ((value) & ~SLIP_ESCAPE_MASK)
6 | #define SLIP_DECODE(value) ((value) | SLIP_ESCAPE_MASK)
7 |
8 | namespace apiv2
9 | {
10 | const uint8_t ESCAPE = 0xAB;
11 | const uint8_t START_OF_PACKET = 0x8D;
12 | const uint8_t END_OF_PACKET = 0xD8;
13 | const uint8_t ESCAPED_ESCAPE = SLIP_ENCODE(ESCAPE);
14 | const uint8_t ESCAPED_START_OF_PACKET = SLIP_ENCODE(START_OF_PACKET);
15 | const uint8_t ESCAPED_END_OF_PACKET = SLIP_ENCODE(END_OF_PACKET);
16 | const int MINIMUM_PACKET_LENGTH = 7;
17 |
18 | enum ErrorCode
19 | {
20 | badEscapeValue = 0x00,
21 | badChecksum = 0x01,
22 | earlyEndOfPacket = 0x02,
23 | earlyStartOfPacket = 0x03,
24 | invalidFlags = 0x04
25 | };
26 |
27 | enum Flags
28 | {
29 | none = 0x00,
30 | isResponse = 0x01,
31 | requestResponse = 0x02,
32 | resetInactivityTimeout = 0x04
33 | };
34 | }
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/CPPCoreSDK.framework/Headers/APIV2Processor.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include
3 | #include
4 | #include "APIV2.h"
5 | #include "Packet.h"
6 | #include "APIV2Constants.h"
7 |
8 | namespace apiv2
9 | {
10 | typedef void(*DataParsedCallback)(std::shared_ptr parsedPacket, void* callbackObject);
11 | typedef void(*ProtocolErrorOccurredCallback)(ErrorCode errorCode, void* callbackObject);
12 |
13 | class APIV2PROCESSOR_API APIV2Processor
14 | {
15 | public:
16 | APIV2Processor();
17 | void processRawData(const std::vector data);
18 | void setDataParsedCallback(DataParsedCallback callback, void* callbackObject);
19 | void setProtocolErrorOccurredCallback(ProtocolErrorOccurredCallback callback, void* callbackObject);
20 | std::shared_ptr> encodePacket(Packet packet);
21 |
22 | enum State
23 | {
24 | waitingForSop = 0,
25 | waitingForEop = 1
26 | };
27 |
28 | private:
29 | DataParsedCallback _dataParsedCallback;
30 | void* _dataParsedCallbackObject;
31 | ProtocolErrorOccurredCallback _protocolErrorOccurredCallback;
32 | void* _protocolErrorOccurredObject;
33 | State _state = State::waitingForSop;
34 | bool _escaped = false;
35 | uint8_t _runningChecksum;
36 | std::vector _dataBuffer;
37 | bool _errorReportingUnlocked = false;
38 | uint8_t _currentSequenceNumber = 0x00;
39 |
40 | //static std::shared_ptr parseData(const std::vector data);
41 | void invokeParsedCallback(std::shared_ptr parsedPacket);
42 | void invokeProtocolErrorCallback(ErrorCode errorCode);
43 | void processByte(uint8_t b);
44 | void reset();
45 | std::shared_ptr generateErrorPacket(ErrorCode errorCode);
46 | };
47 |
48 |
49 | }
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/CPPCoreSDK.framework/Headers/CPPCoreSDK.h:
--------------------------------------------------------------------------------
1 | #import
2 |
3 | //! Project version number for CPPCoreSDK.
4 | FOUNDATION_EXPORT double CPPCoreSDKVersionNumber;
5 |
6 | //! Project version string for CPPCoreSDK.
7 | FOUNDATION_EXPORT const unsigned char CPPCoreSDKVersionString[];
8 |
9 | // In this header, you should import all the public headers of your framework using statements like #import
10 |
11 | #import
12 | #import
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/CPPCoreSDK.framework/Headers/Packet.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "APIV2.h"
3 | #include
4 | #include "APIV2Constants.h"
5 |
6 | namespace apiv2
7 | {
8 | class APIV2PROCESSOR_API Packet
9 | {
10 | public:
11 | Packet(std::vector rawPacket);
12 | Packet(uint8_t flags, uint8_t id0, uint8_t id1, uint8_t sequenceNumber, std::vector data);
13 | Packet(uint8_t flags, uint8_t id0, uint8_t id1, std::vector data);
14 | uint8_t getFlags();
15 | uint8_t getId0();
16 | uint8_t getId1();
17 | uint8_t getSequenceNumber();
18 | uint8_t getChecksum();
19 | const std::vector getData();
20 | const std::vector getRawPacket();
21 | private:
22 | std::vector _rawPacket;
23 | };
24 | }
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/CPPCoreSDK.framework/Info.plist:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/src/RobotKit.framework/Frameworks/CPPCoreSDK.framework/Info.plist
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/CPPCoreSDK.framework/Modules/module.modulemap:
--------------------------------------------------------------------------------
1 | framework module CPPCoreSDK {
2 | umbrella header "CPPCoreSDK.h"
3 |
4 | export *
5 | module * { export * }
6 | }
7 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/CPPCoreSDK.framework/Packet.d:
--------------------------------------------------------------------------------
1 | dependencies: \
2 | /Users/Shared/TeamCity/bamboo-home-mysql/xml-data/build-dir/SDK-SDKI-ISM2/cppcoresdk/APIV2Processor/APIV2Processor/Packet.cpp \
3 | /Users/Shared/TeamCity/bamboo-home-mysql/xml-data/build-dir/SDK-SDKI-ISM2/cppcoresdk/APIV2Processor/APIV2Processor/pch.h \
4 | /Users/Shared/TeamCity/bamboo-home-mysql/xml-data/build-dir/SDK-SDKI-ISM2/cppcoresdk/APIV2Processor/APIV2Processor/Packet.h \
5 | /Users/Shared/TeamCity/bamboo-home-mysql/xml-data/build-dir/SDK-SDKI-ISM2/cppcoresdk/APIV2Processor/APIV2Processor/APIV2.h \
6 | /Users/Shared/TeamCity/bamboo-home-mysql/xml-data/build-dir/SDK-SDKI-ISM2/cppcoresdk/APIV2Processor/APIV2Processor/APIV2Constants.h
7 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/CPPCoreSDK.framework/Packet.dia:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/src/RobotKit.framework/Frameworks/CPPCoreSDK.framework/Packet.dia
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/CPPCoreSDK.framework/Packet.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/src/RobotKit.framework/Frameworks/CPPCoreSDK.framework/Packet.o
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/CPPCoreSDK.framework/_CodeSignature/CodeDirectory:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/src/RobotKit.framework/Frameworks/CPPCoreSDK.framework/_CodeSignature/CodeDirectory
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/CPPCoreSDK.framework/_CodeSignature/CodeRequirements:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/src/RobotKit.framework/Frameworks/CPPCoreSDK.framework/_CodeSignature/CodeRequirements
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/CPPCoreSDK.framework/_CodeSignature/CodeRequirements-1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/src/RobotKit.framework/Frameworks/CPPCoreSDK.framework/_CodeSignature/CodeRequirements-1
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/CPPCoreSDK.framework/_CodeSignature/CodeSignature:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/src/RobotKit.framework/Frameworks/CPPCoreSDK.framework/_CodeSignature/CodeSignature
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/FWLevel1DiagnosticAsyncData.h:
--------------------------------------------------------------------------------
1 | #import "RKAsyncMessage.h"
2 |
3 | @interface FWLevel1DiagnosticAsyncData : RKAsyncMessage
4 |
5 | @property (nonatomic, readonly) NSString *diagString;
6 |
7 | @end
8 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/FWLevel1DiagnosticChunkedAsyncData.h:
--------------------------------------------------------------------------------
1 | #import "RKAsyncMessage.h"
2 |
3 | @interface FWLevel1DiagnosticChunkedAsyncData : RKAsyncMessage
4 |
5 | @property (nonatomic, strong, readonly) NSString *diagString;
6 |
7 | @end
8 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/FWLevel1DiagnosticChunkedCommand.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceCommand.h"
2 |
3 | @interface FWLevel1DiagnosticChunkedCommand : RKDeviceCommand
4 |
5 | @end
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/FWLevel1DiagnosticChunkedResponse.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceResponse.h"
2 |
3 | @interface FWLevel1DiagnosticChunkedResponse : RKDeviceResponse
4 |
5 | @end
6 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/FWLevel1DiagnosticCommand.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceCommand.h"
2 |
3 | @interface FWLevel1DiagnosticCommand : RKDeviceCommand
4 |
5 | @end
6 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/FWLevel1DiagnosticResponse.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceResponse.h"
2 |
3 | @interface FWLevel1DiagnosticResponse : RKDeviceResponse
4 |
5 | @end
6 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/NSData+Extensions.h:
--------------------------------------------------------------------------------
1 | //
2 | // NSData+Extensions.h
3 | // RobotKitLE
4 | //
5 | // Created by wes on 12/8/13.
6 | // Copyright (c) 2013 Orbotix. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface NSData (Extensions)
12 |
13 | +(id) dataWithHexString:(NSString*) hexString;
14 |
15 | - (NSString *)hexStringRepresentation;
16 |
17 | -(NSMutableArray*) chunkWithMax:(int) maxlen;
18 |
19 |
20 |
21 | @end
22 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/NSData+RobotDataParsing.h:
--------------------------------------------------------------------------------
1 | //
2 | // NSData+RobotDataParsing.h
3 | // RobotCommandKit
4 | //
5 | // Created by wes on 6/30/14.
6 | // Copyright (c) 2014 Orbotix Inc. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface NSData (RobotDataParsing)
12 |
13 | -(uint32_t) uint32Value;
14 | -(uint16_t) uint16Value;
15 | -(float) fixedPoint16Value;
16 | - (NSData *)reverse;
17 |
18 | @end
19 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKAccelerometerData.h:
--------------------------------------------------------------------------------
1 | //
2 | // RKAccelerometerData.h
3 | // RobotKit
4 | //
5 | // Created by Brian Smith on 7/12/11.
6 | // Copyright 2011 Orbotix Inc. All rights reserved.
7 | //
8 |
9 | /*! @file */
10 |
11 | #import
12 | #import "RKSensorData.h"
13 |
14 | /*!
15 | * @brief A structure to represent accelerometer values.
16 | *
17 | * Structure used to represent acceleration values normalized to 1 g.
18 | *
19 | */
20 | struct RKAcceleration {
21 | float x;
22 | /*!< The x axis acceleration value. */
23 | float y;
24 | /*!< The y axis acceleration value. */
25 | float z; /*!< The z azis acceleration value. */
26 | };
27 |
28 | /*! Type repersenting filtered 3 axis acceleration data */
29 | typedef struct RKAcceleration RKAcceleration;
30 |
31 |
32 | /*!
33 | * @brief Class to represent samples of filtered and raw accelerometer data.
34 | *
35 | * Class that contains structures to the accelerometer sensor data received from data
36 | * streaming. The data can be filtered values and raw values. Data streaming can be set to
37 | * return specific axises, so the state structure indicates which values are valid.
38 | *
39 | * @sa RKSetDataStreamingCommand.
40 | */
41 | @interface RKAccelerometerData : RKSensorData
42 |
43 | /*! Read only property to a structure with the sensor values normailized to 1g. */
44 | @property ( nonatomic, readonly ) RKAcceleration acceleration;
45 | /*! Read only property to a structure with raw data that is represent as integer values
46 | * from the sensor.
47 | */
48 | @property ( nonatomic, readonly ) RK3AxisSensor accelerationRaw;
49 | /*! Read on property to a state stucture that indicates which sensor data is valid. */
50 | @property ( nonatomic, readonly ) RK3AxisSensorState state;
51 |
52 | @end
53 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKAppUtils.h:
--------------------------------------------------------------------------------
1 | //
2 | // RKAppUtils.h
3 | // RobotCommandKit
4 | //
5 | // Created by wes on 5/11/15.
6 | // Copyright (c) 2015 Orbotix Inc. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #if TARGET_OS_IPHONE
12 | #import
13 | #else
14 | #import
15 | #endif
16 |
17 | @interface RKAppUtils : NSObject
18 |
19 | + (BOOL)isAppActive;
20 | + (BOOL)isAppForeground;
21 |
22 | @end
23 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKAsyncFactory.h:
--------------------------------------------------------------------------------
1 | #import
2 | #import "RKAsyncMessage.h"
3 |
4 | @interface RKAsyncFactory : NSObject
5 |
6 | + (nonnull instancetype)new NS_UNAVAILABLE;
7 | + (void)registerClass:(nonnull Class)asyncClass;
8 | + (nonnull RKAsyncMessage *)asyncMessageFromDeviceId:(uint8_t)deviceId commandId:(uint8_t)commandId sequenceNumber:(uint8_t)sequenceNumber data:(nullable NSData *)data requestsResponse:(BOOL)requestsResponse;
9 |
10 | - (nonnull instancetype)init NS_UNAVAILABLE;
11 |
12 | @end
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKAsyncId.h:
--------------------------------------------------------------------------------
1 | typedef NS_ENUM(uint8_t, RKAsyncId) {
2 | RKAsyncIdPowerNotifications = 0x01,
3 | RKAsyncIdLevel1DiagnosticResponse = 0x02,
4 | RKAsyncIdSensorDataStreaming = 0x03,
5 | RKAsyncIdConfigBlockContents = 0x04,
6 | RKAsyncIdPreSleepWarning = 0x05,
7 | RKAsyncIdMacroEmitMarker = 0x06,
8 | RKAsyncIdCollisionDetected = 0x07,
9 | RKAsyncIdOrbBasicPrint = 0x08,
10 | RKAsyncIdOrbBasicErrorASCII = 0x09,
11 | RKAsyncIdOrbBasicErrorBinary = 0x0A,
12 | RKAsyncIdSelfLevelComplete = 0x0B,
13 | RKAsyncIdGyroRangeExceeded = 0x0C,
14 | RKAsyncIdSoulDataResponse = 0x0D,
15 | RKAsyncIdSoulLevelUpNotification = 0x0E,
16 | RKAsyncIdSoulShieldNotification = 0x0F,
17 | RKAsyncIdBoostNotification = 0x11,
18 | RKAsyncIdOvalErrorBroadcast = 0x12,
19 | RKAsyncIdOvalDeviceBroadcast = 0x13,
20 | RKAsyncIdDidSleep = 0x14,
21 | RKAsyncIdLevel1DiagnosticChunkedResponse = 0x15,
22 | RKAsyncIdSoulBlockData = 0x20,
23 | RKAsyncIdXPUpdateEvent = 0x21
24 | };
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKAsyncMessage.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceCommand.h"
2 | #import "RKAsyncId.h"
3 |
4 | @interface RKAsyncMessage : RKDeviceCommand
5 |
6 | - (nullable instancetype)initWithSequenceNumber:(uint8_t)sequenceNumber data:(nullable NSData *)data NS_DESIGNATED_INITIALIZER;
7 |
8 | - (RKAsyncId)asyncId;
9 |
10 | @end
11 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKAttitudeData.h:
--------------------------------------------------------------------------------
1 | //
2 | // RKIMUData.h
3 | // RobotKit
4 | //
5 | // Created by Brian Smith on 7/12/11.
6 | // Copyright 2011 Orbotix Inc. All rights reserved.
7 | //
8 |
9 | /*! @file */
10 |
11 | #import
12 | #import "RKSensorData.h"
13 |
14 | /*!
15 | * @brief Structure to indicate which values in RKAttitudeData are valid.
16 | *
17 | * Indicates which attitude value are valid based on the mask that was sent
18 | * to start the data streaming.
19 | */
20 | typedef struct {
21 | BOOL pitchValid;
22 | /*!< Indicates if the pitch value is valid. */
23 | BOOL rollValid;
24 | /*!< Indicates if the roll value is valid. */
25 | BOOL yawValid; /*!< Indicates if the yaw value is valid. */
26 | } RKAttitudeState;
27 |
28 |
29 | /*!
30 | * @brief Class to contain attitude data from data streaming.
31 | *
32 | * Class that contains structures to the attitude data received from data
33 | * streaming. Data streaming can be set to return specific angles, so the state structure
34 | * indicates which values are valid.
35 | *
36 | * @sa RKDeviceSensorsData
37 | */
38 | @interface RKAttitudeData : RKSensorData {
39 | float pitch;
40 | float roll;
41 | float yaw;
42 |
43 | RKAttitudeState state;
44 | }
45 |
46 | /*! Read only property for the pitch angle of Sphero. */
47 | @property ( nonatomic, readonly ) float pitch;
48 | /*! Read only property for the roll angle of Sphero. */
49 | @property ( nonatomic, readonly ) float roll;
50 | /*! Read only property for the yaw angle of Sphero. */
51 | @property ( nonatomic, readonly ) float yaw;
52 | /*! Read only property to the state structure that indicates which angles are valid numbers. */
53 | @property ( nonatomic, readonly ) RKAttitudeState state;
54 |
55 | @end
56 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKBackLEDOutputCommand.h:
--------------------------------------------------------------------------------
1 | #import
2 | #import "RKDeviceCommand.h"
3 |
4 | @interface RKBackLEDOutputCommand : RKDeviceCommand
5 |
6 | - (nullable instancetype)initWithBrightness:(float)brightness;
7 |
8 | @end
9 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKBackLEDOutputResponse.h:
--------------------------------------------------------------------------------
1 | #import
2 | #import "RKDeviceResponse.h"
3 |
4 | @interface RKBackLEDOutputResponse : RKDeviceResponse
5 |
6 | @end
7 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKBuildDescriptors.h:
--------------------------------------------------------------------------------
1 | #import
2 |
3 | @interface RKBuildDescriptors : NSObject
4 |
5 | + (NSUInteger)majorVersion;
6 | + (NSUInteger)minorVersion;
7 | + (NSUInteger)buildNumber;
8 | + (NSString *)versionString;
9 |
10 | @end
11 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKByteAsyncMessage.h:
--------------------------------------------------------------------------------
1 | #import "RKAsyncMessage.h"
2 |
3 | @interface RKByteAsyncMessage : RKAsyncMessage
4 |
5 | - (nullable instancetype)initWithSequenceNumber:(uint8_t)sequenceNumber data:(nullable NSData *)data NS_UNAVAILABLE;
6 | - (nullable instancetype)initWithRequestsResponse:(BOOL)requestsResponse deviceId:(uint8_t)deviceId commandId:(uint8_t)commandId sequenceNumber:(uint8_t)sequenceNumber data:(nullable NSData *)data;
7 |
8 | @end
9 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKByteCommand.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceCommand.h"
2 |
3 | @interface RKByteCommand : RKDeviceCommand
4 |
5 | - (nullable instancetype)initWithSequenceNumber:(uint8_t)sequenceNumber data:(nullable NSData *)data NS_UNAVAILABLE;
6 | - (nullable instancetype)initWithRequestsResponse:(BOOL)requestsResponse deviceId:(uint8_t)deviceId commandId:(uint8_t)commandId data:(nullable NSData *)data;
7 |
8 | @end
9 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKByteResponse.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceResponse.h"
2 |
3 | @interface RKByteResponse : RKDeviceResponse
4 |
5 | - (nullable instancetype)initWithResponseCode:(RKResponseCode)responseCode andData:(nullable NSData *)data NS_UNAVAILABLE;
6 | - (nullable instancetype)initWithResponseCode:(RKResponseCode)responseCode sequenceNumber:(uint8_t)sequenceNumber deviceId:(uint8_t)deviceId commandId:(uint8_t)commandId data:(nullable NSData *)data;
7 |
8 | @end
9 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKCollisionDetectedAsyncData.h:
--------------------------------------------------------------------------------
1 | #import "RKAsyncMessage.h"
2 |
3 | struct RKCollisionAcceleration {
4 | float x;
5 | float y;
6 | float z;
7 | };
8 | typedef struct RKCollisionAcceleration RKCollisionAcceleration;
9 |
10 | struct RKCollisionAxis {
11 | bool x : 1;
12 | bool y : 1;
13 | };
14 | typedef struct RKCollisionAxis RKCollisionAxis;
15 |
16 | struct RKCollisionPower {
17 | int x;
18 | int y;
19 | };
20 | typedef struct RKCollisionPower RKCollisionPower;
21 |
22 | @interface RKCollisionDetectedAsyncData : RKAsyncMessage
23 |
24 | @property ( nonatomic, readonly ) RKCollisionAcceleration impactAcceleration;
25 | @property ( nonatomic, readonly ) RKCollisionAxis impactAxis;
26 | @property ( nonatomic, readonly ) RKCollisionPower impactPower;
27 | @property ( nonatomic, readonly ) float impactSpeed;
28 | @property ( nonatomic, readonly ) NSTimeInterval impactTimeStamp;
29 |
30 | @end
31 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKConfigureCollisionDetectionCommand.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceCommand.h"
2 |
3 | typedef NS_ENUM(uint8_t, RKCollisionDetectionMethod ){
4 | RKCollisionDetectionMethodDetectionOff = 0,
5 | RKCollisionDetectionMethod1 = 1,
6 | RKCollisionDetectionMethod2 = 2,
7 | RKCollisionDetectionMethod3 = 3
8 | };
9 |
10 | @interface RKConfigureCollisionDetectionCommand : RKDeviceCommand
11 |
12 | - (nullable instancetype)initForMethod:(RKCollisionDetectionMethod)method
13 | xThreshold:(uint8_t)xThreshold
14 | xSpeedThreshold:(uint8_t)xSpeedThreshold
15 | yThreshold:(uint8_t)yThreshold
16 | ySpeedThreshold:(uint8_t)ySpeedThreshold
17 | postTimeDeadZone:(NSTimeInterval)deadZone;
18 |
19 | @end
20 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKConfigureCollisionDetectionResponse.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceResponse.h"
2 |
3 | @interface RKConfigureCollisionDetectionResponse : RKDeviceResponse
4 |
5 | @end
6 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKConfigureLocatorCommand.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceCommand.h"
2 |
3 | typedef NS_ENUM(uint8_t, RKConfigureLocatorFlag) {
4 | RKConfigureLocatorRotateWithCalibrateFlagOff = 0x00,
5 | RKConfigureLocatorRotateWithCalibrateFlagOn = 0x01
6 | };
7 |
8 | @interface RKConfigureLocatorCommand : RKDeviceCommand
9 |
10 | - (instancetype)initForFlag:(RKConfigureLocatorFlag)flag newX:(int16_t)x newY:(int16_t)y newYaw:(int16_t)yaw;
11 |
12 | @end
13 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKConfigureLocatorResponse.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceResponse.h"
2 |
3 | @interface RKConfigureLocatorResponse : RKDeviceResponse
4 |
5 | @end
6 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKDeviceCommand.h:
--------------------------------------------------------------------------------
1 | #import
2 | #import "RKDeviceMessage.h"
3 |
4 | @interface RKDeviceCommand : RKDeviceMessage
5 |
6 | @property (nonatomic, assign) BOOL requestsResponse;
7 |
8 | @end
9 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKDeviceList.h:
--------------------------------------------------------------------------------
1 | typedef NS_ENUM (uint8_t, RKDeviceIdType) {
2 | RKDeviceIdCore = 0x00,
3 | RKDeviceIdBootloader = 0x01,
4 | RKDeviceIdSphero = 0x02
5 | };
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKDeviceMessage.h:
--------------------------------------------------------------------------------
1 | #import
2 | // Include these here so commands don't all have to declare them
3 | #import "RKCommandList.h"
4 | #import "RKDeviceList.h"
5 |
6 | @interface RKDeviceMessage : NSObject
7 |
8 | @property (nonatomic, assign, readonly) uint8_t sequenceNumber;
9 | @property (nonatomic, strong, nullable, readonly) NSData *data;
10 |
11 | - (uint8_t)deviceId;
12 | - (uint8_t)commandId;
13 |
14 | - (nullable instancetype)initWithData:(nullable NSData *)data;
15 | - (nullable instancetype)initWithSequenceNumber:(uint8_t)sequenceNumber data:(nullable NSData *)data;
16 |
17 | @end
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKDeviceResponse.h:
--------------------------------------------------------------------------------
1 | #import
2 | #import "RKDeviceMessage.h"
3 | #import "RKResponseCodes.h"
4 |
5 | @interface RKDeviceResponse : RKDeviceMessage
6 |
7 | @property (nonatomic, assign, readonly) RKResponseCode responseCode;
8 |
9 | - (nullable instancetype)initWithSequenceNumber:(uint8_t)sequenceNumber data:(nullable NSData *)data NS_UNAVAILABLE;
10 | - (nullable instancetype)initWithSequenceNumber:(uint8_t)sequenceNumber responseCode:(RKResponseCode)responseCode data:(nullable NSData *)data;
11 |
12 | @end
13 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKDeviceSensorsAsyncData.h:
--------------------------------------------------------------------------------
1 | #import "RKAsyncMessage.h"
2 |
3 | @interface RKDeviceSensorsAsyncData : RKAsyncMessage
4 |
5 | @property (nonatomic, strong, readonly) NSArray *dataFrames;
6 |
7 | @end
8 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKDeviceSensorsData.h:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright 2011-2014 Orbotix Inc. All rights reserved.
3 | //
4 |
5 | /*! @file */
6 | #import
7 | #import "RKSensorData.h"
8 | #import "RKSetDataStreamingCommand.h"
9 |
10 | @class RKBackEMFData;
11 | @class RKMagnetometerData;
12 | @class RKGyroData;
13 | @class RKAccelerometerData;
14 | @class RKAttitudeData;
15 | @class RKLocatorData;
16 | @class RKQuaternionData;
17 | @class RKMotorData;
18 |
19 |
20 | /*!
21 | * @brief Class that represents a sample of sensor data received when streaming data.
22 | *
23 | * This class contains objects of various sensor data that is returned for a sample.
24 | *
25 | */
26 | @interface RKDeviceSensorsData : RKSensorData
27 |
28 | /*! Property for the object that contains a back EMF sample. */
29 | @property ( nonatomic, readonly ) RKBackEMFData *backEMFData;
30 | /*! Property for the object that contains a sample from the magnetometer. */
31 | @property ( nonatomic, readonly ) RKMagnetometerData *magnetometerData;
32 | /*! Property for the object that contains a sample from the gyro sensor */
33 | @property ( nonatomic, readonly ) RKGyroData *gyroData;
34 | /*! Property for the object that contains a sample from the accelerometer */
35 | @property ( nonatomic, readonly ) RKAccelerometerData *accelerometerData;
36 | /*! Property to a RKAttitude object */
37 | @property ( nonatomic, readonly ) RKAttitudeData *attitudeData;
38 | /*! Property to a RKLocator object */
39 | @property ( nonatomic, readonly ) RKLocatorData *locatorData;
40 | /*! Property to a RKQuaternion object */
41 | @property ( nonatomic, readonly ) RKQuaternionData *quaternionData;
42 |
43 | @property ( nonatomic, readonly) RKMotorData * motorData;
44 |
45 | - (id) initWithMask:(RKDataStreamingMask) mask data:(NSData *) data;
46 |
47 | @end
48 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKDiscoveryAgent.h:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2014 Orbotix Inc. All rights reserved.
3 | //
4 |
5 | #import
6 | #import "RKRobotBase.h"
7 |
8 | /*! execute block when Robot connects */
9 | typedef void (^RKRobotConnectBlock)(id robot);
10 |
11 |
12 | @protocol RKDiscoveryAgent
13 |
14 | +(BOOL) startDiscovery;
15 | +(BOOL) startDiscoveryAndReturnError:(NSError**) err;
16 |
17 | +(void) stopDiscovery;
18 |
19 | +(void) connect:(id) robot;
20 |
21 | +(void) connect:(id) robot withCompletionHandler:(RKRobotConnectBlock) connectBlock;
22 |
23 | -(BOOL) isDiscovering;
24 |
25 | @end
26 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKFlashWritingCommandDetector.h:
--------------------------------------------------------------------------------
1 | //
2 | // RKFlashWritingCommandDetector.h
3 | // RobotCommandKit
4 | //
5 | // Created by Hunter Lang on 12/2/14.
6 | // Copyright (c) 2014 Orbotix Inc. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "RKDeviceCommand.h"
11 |
12 | @interface RKFlashWritingCommandDetector : NSObject
13 |
14 | +(BOOL)isFlashWritingCommand:(RKDeviceCommand *)command;
15 |
16 | @end
17 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKForceChargeCommand.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceCommand.h"
2 |
3 | @interface RKForceChargeCommand : RKDeviceCommand
4 |
5 | @end
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKGetAutoReconnectCommand.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceCommand.h"
2 |
3 | @interface RKGetAutoReconnectCommand : RKDeviceCommand
4 |
5 | @end
6 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKGetAutoReconnectResponse.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceResponse.h"
2 |
3 | @interface RKGetAutoReconnectResponse : RKDeviceResponse
4 |
5 | @property (nonatomic, assign, readonly) BOOL enableFlag;
6 | @property (nonatomic, assign, readonly) uint8_t autoReconnectStartTime;
7 |
8 | @end
9 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKGetBluetoothInfoCommand.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceCommand.h"
2 |
3 | @interface RKGetBluetoothInfoCommand : RKDeviceCommand
4 |
5 | @end
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKGetBluetoothInfoResponse.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceResponse.h"
2 |
3 | @interface RKGetBluetoothInfoResponse : RKDeviceResponse
4 |
5 | @property (nonatomic, strong, readonly) NSString *name;
6 | @property (nonatomic, strong, readonly) NSString *address;
7 |
8 | @end
9 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKGetChargerStateCommand.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceCommand.h"
2 |
3 | @interface RKGetChargerStateCommand : RKDeviceCommand
4 |
5 | @end
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKGetChargerStateResponse.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceResponse.h"
2 | #import "RKTypes.h"
3 |
4 | @interface RKGetChargerStateResponse : RKDeviceResponse
5 |
6 | @property (nonatomic, assign, readonly) RKBatteryPowerState batteryState;
7 | @property (nonatomic, assign, readonly) RKChargerState chargerState;
8 |
9 | @end
10 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKGetChassisIdCommand.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceCommand.h"
2 |
3 | @interface RKGetChassisIdCommand : RKDeviceCommand
4 |
5 | @end
6 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKGetChassisIdResponse.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceResponse.h"
2 |
3 | @interface RKGetChassisIdResponse : RKDeviceResponse
4 |
5 | @property (nonatomic, strong) NSNumber *chassisId;
6 |
7 | @end
8 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKGetDeviceModeCommand.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceCommand.h"
2 |
3 | @interface RKGetDeviceModeCommand : RKDeviceCommand
4 |
5 | @end
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKGetDeviceModeResponse.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceResponse.h"
2 |
3 | typedef NS_ENUM(uint8_t, RKDeviceMode) {
4 | RKDeviceModeNormal = 0,
5 | RKDeviceModeUserHack = 1,
6 | RKDeviceModeFactory = 2
7 | };
8 |
9 | @interface RKGetDeviceModeResponse : RKDeviceResponse
10 |
11 | @property (nonatomic, assign, readonly) RKDeviceMode mode;
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKGetNonPersistentOptionFlagsCommand.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceCommand.h"
2 |
3 | @interface RKGetNonPersistentOptionFlagsCommand : RKDeviceCommand
4 |
5 | @end
6 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKGetNonPersistentOptionFlagsResponse.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceResponse.h"
2 | #import "RKSetNonPersistentOptionFlagsCommand.h"
3 |
4 | @interface RKGetNonPersistentOptionFlagsResponse : RKDeviceResponse
5 |
6 | @property (nonatomic, assign, readonly) RKGetNonPersistentOptionFlagsMask optionFlags;
7 |
8 | - (BOOL)isSetWithOptionFlag:(RKGetNonPersistentOptionFlagsMask)flag;
9 | - (BOOL)isStopOnDisconnect;
10 | - (BOOL)isCompatibilityModeEnabled;
11 |
12 | @end
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKGetOptionFlagsCommand.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceCommand.h"
2 |
3 | @interface RKGetOptionFlagsCommand : RKDeviceCommand
4 |
5 | @end
6 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKGetOptionFlagsResponse.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceResponse.h"
2 | #import "RKSetOptionFlagsCommand.h"
3 |
4 | @interface RKGetOptionFlagsResponse : RKDeviceResponse
5 |
6 | @property (nonatomic, assign, readonly) RKGetOptionFlagsMask optionFlags;
7 |
8 | - (BOOL) isSetWithOptionFlag:(RKGetOptionFlagsMask) flag;
9 | - (BOOL) isPreventSleepInCharger;
10 | - (BOOL) isPreventSelfLevelInCharger;
11 | - (BOOL) isMotionTimeout;
12 | - (BOOL) isVectorDrive;
13 | - (BOOL) isTailLightAlwaysOn;
14 |
15 | @end
16 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKGetPersistentPageCRCCommand.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceCommand.h"
2 |
3 | @interface RKGetPersistentPageCRCCommand : RKDeviceCommand
4 |
5 | - (instancetype)initWithBlockId:(ushort)blockId;
6 |
7 | @end
8 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKGetPersistentPageCRCResponse.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceResponse.h"
2 |
3 | @interface RKGetPersistentPageCRCResponse : RKDeviceResponse
4 |
5 | - (BOOL)compareCRCWithData:(NSData *)data;
6 |
7 | @end
8 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKGetPowerStateCommand.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceCommand.h"
2 |
3 | @interface RKGetPowerStateCommand : RKDeviceCommand
4 |
5 | @end
6 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKGetPowerStateResponse.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceResponse.h"
2 | #import "RKTypes.h"
3 |
4 | @interface RKGetPowerStateResponse : RKDeviceResponse
5 |
6 | @property (nonatomic, assign, readonly) RKBatteryPowerState powerState;
7 | @property (nonatomic, assign, readonly) float batteryVoltage;
8 | @property (nonatomic, assign, readonly) NSUInteger numberCharges;
9 | @property (nonatomic, assign, readonly) NSUInteger timeSinceLastCharge;
10 |
11 | @end
12 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKGetSkuCommand.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceCommand.h"
2 |
3 | @interface RKGetSkuCommand : RKDeviceCommand
4 |
5 | @end
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKGetSkuResponse.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceResponse.h"
2 |
3 | @interface RKGetSkuResponse : RKDeviceResponse
4 |
5 | @property (nonatomic, strong, readonly) NSString *sku;
6 |
7 | - (BOOL)isDarkside;
8 |
9 | @end
10 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKGetUserRGBLEDColorCommand.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceCommand.h"
2 |
3 | @interface RKGetUserRGBLEDColorCommand : RKDeviceCommand
4 |
5 | @end
6 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKGetUserRGBLEDColorResponse.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceResponse.h"
2 |
3 | @interface RKGetUserRGBLEDColorResponse : RKDeviceResponse
4 |
5 | @property (nonatomic, assign, readonly) float redIntensity;
6 | @property (nonatomic, assign, readonly) float greenIntensity;
7 | @property (nonatomic, assign, readonly) float blueIntensity;
8 |
9 | @end
10 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKGoToSleepCommand.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceCommand.h"
2 |
3 | typedef NS_ENUM(uint8_t, RKSleepType) {
4 | RKSleep = 0x00,
5 | RKSleepDeep = 0x01,
6 | RKSleepLowPower = 0x02
7 | };
8 |
9 | typedef uint16_t RKSleepTimeInterval;
10 |
11 | @interface RKGoToSleepCommand : RKDeviceCommand
12 |
13 | - (nullable instancetype)initWithWakeUpTimeInterval:(RKSleepTimeInterval)interval macroId:(uint8_t)identifier;
14 | - (nullable instancetype)initWithWakeUpTimeInterval:(RKSleepTimeInterval)interval orbbasic:(uint16_t)lineNumber;
15 |
16 | @end
17 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKGoToSleepResponse.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceResponse.h"
2 |
3 | @interface RKGoToSleepResponse : RKDeviceResponse
4 |
5 | @end
6 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKGyroData.h:
--------------------------------------------------------------------------------
1 | //
2 | // RKGyroData.h
3 | // RobotKit
4 | //
5 | // Created by Brian Smith on 7/12/11.
6 | // Copyright 2011 Orbotix Inc. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "RKSensorData.h"
11 |
12 | /*!
13 | * @brief Class to contain gyro sensor data from data streaming.
14 | *
15 | * Class that contains structures to the gyro sensor data received from data
16 | * streaming. The data can be filtered values and raw values. Data streaming can be set to
17 | * return specific axes, so the state structure indicates which values are valid.
18 | *
19 | * @sa RKDeviceSensorsData
20 | */
21 | @interface RKGyroData : RKSensorData {
22 | @private
23 | RK3AxisSensor rotationRate;
24 | RK3AxisSensor rotationRateRaw;
25 | RK3AxisSensorState state;
26 | }
27 |
28 | /*! Read only property for the filtered rotation rate values. */
29 | @property ( nonatomic, readonly ) RK3AxisSensor rotationRate;
30 | /*! Read only property for the raw rotation rate values. */
31 | @property ( nonatomic, readonly ) RK3AxisSensor rotationRateRaw;
32 | /*! Read only property for the state structure which indicates valid values for the axes. */
33 | @property ( nonatomic, readonly ) RK3AxisSensorState state;
34 |
35 | @end
36 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKJoyStickDriveAlgorithm.h:
--------------------------------------------------------------------------------
1 | //
2 | // RKJoyStickDriveAlgorithm.h
3 | // RobotCommandKit
4 | //
5 | // Imported to RobotCommandKit by Hunter Lang on 12/13/13.
6 | // Copyright 2010 Orbotix Inc. All rights reserved.
7 | //
8 |
9 | #import
10 | #import
11 |
12 | #import "RKDriveAlgorithm.h"
13 |
14 | /*! @file */
15 |
16 | /*!
17 | * @brief A classs for a joy stick style drive control.
18 | *
19 | * This algorithm takes and size that represents an area the
20 | * a joy stick control is dragged in, and converts x and y coordinates in this
21 | * area into drive coordinates.
22 | */
23 |
24 | @interface RKJoyStickDriveAlgorithm : RKDriveAlgorithm
25 |
26 | /*! Center point of the joy pad area */
27 | @property ( nonatomic, readonly ) CGPoint center;
28 |
29 | /*!
30 | * Initializes the algorithm with the size of the drag area used for the
31 | * joy stick.
32 | * @param size The bounds of area used for the joy stick control.
33 | * @return The initialized object.
34 | */
35 | - (id) initWithPadSize:(CGSize) size;
36 | /*!
37 | * Updates the size of the screen area used for the joystick.
38 | * @param size The bounds of the area used for the joystick.
39 | */
40 | - (void) updatePadSize:(CGSize) size;
41 |
42 |
43 | @end
44 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKJumpToBootloaderCommand.h:
--------------------------------------------------------------------------------
1 | #import
2 | #import "RKDeviceCommand.h"
3 |
4 | @interface RKJumpToBootloaderCommand : RKDeviceCommand
5 |
6 | @end
7 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKJumpToBootloaderResponse.h:
--------------------------------------------------------------------------------
1 | #import
2 | #import "RKDeviceResponse.h"
3 |
4 | @interface RKJumpToBootloaderResponse : RKDeviceResponse
5 |
6 | @end
7 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKJumpToMainAppCommand.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceCommand.h"
2 |
3 | @interface RKJumpToMainAppCommand : RKDeviceCommand
4 |
5 | @end
6 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKJumpToMainAppResponse.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceResponse.h"
2 |
3 | @interface RKJumpToMainAppResponse : RKDeviceResponse
4 |
5 | @end
6 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKLastDataStreamingDataTracker.h:
--------------------------------------------------------------------------------
1 | #import
2 | #import "RKTypes.h"
3 |
4 | @interface RKLastDataStreamingDataTracker : NSObject
5 |
6 | + (NSUInteger)frameCount;
7 | + (RKDataStreamingMask)mask;
8 | + (void)setFrameCount:(NSUInteger)frameCount;
9 | + (void)setMask:(RKDataStreamingMask)mask;
10 |
11 | @end
12 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKLinkDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2014 Orbotix. All rights reserved.
3 | //
4 |
5 | #import
6 |
7 | @protocol RKLinkDelegate
8 |
9 | -(void) didConnect;
10 | -(void) didWake;
11 | -(void) didDisconnect;
12 | -(void) didUpdateRssi;
13 |
14 | @end
15 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKMagnetometerData.h:
--------------------------------------------------------------------------------
1 | //
2 | // RKMagnetometerData.h
3 | // RobotKit
4 | //
5 | // Created by Brian Smith on 7/12/11.
6 | // Copyright 2011 Orbotix Inc. All rights reserved.
7 | //
8 |
9 | /*! @file */
10 |
11 | #import
12 | #import "RKSensorData.h"
13 |
14 | /*!
15 | * @brief Class to contain magnetometer sensor data from data streaming.
16 | *
17 | * Class that contains structures to the magnetometer sensor data received from data
18 | * streaming. The data can be filtered values and raw values. Data streaming can be set to
19 | * return specific axises, so the state structure indicates which values are valid.
20 | *
21 | * @sa RKDeviceSensorsData
22 | */
23 | @interface RKMagnetometerData : RKSensorData {
24 | @private
25 | RK3AxisSensor magnetometer;
26 | RK3AxisSensor magnetometerRaw;
27 | RK3AxisSensorState state;
28 | }
29 |
30 | /*! The filtered magnetometer 3 axis values. */
31 | @property ( nonatomic, readonly ) RK3AxisSensor magnetometer;
32 | /*! The raw magnetometer 3 axis values. */
33 | @property ( nonatomic, readonly ) RK3AxisSensor magnetometerRaw;
34 | /*! A structure indicating which axis values are valid. */
35 | @property ( nonatomic, readonly ) RK3AxisSensorState state;
36 |
37 | @end
38 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKMainProcessorState.h:
--------------------------------------------------------------------------------
1 | typedef NS_ENUM (uint8_t, RKMainProcessorState){
2 | RKMPState_Offline = 0,
3 | RKMPState_MainProcessorPowerOnRequested = 10,
4 | RKMPState_MainProcessorPowerOn = 11,
5 | RKMPState_Initializing = 15,
6 | RKMPState_JumpToMainAppRequested = 16,
7 | RKMPState_JumpToBootloaderRequested = 17,
8 | RKMPState_JumpToBootloaderFailed = 20,
9 | RKMPState_InBootloader = 22,
10 | RKMPState_MainAppCorrupt = 91,
11 | RKMPState_InMainApp = 100,
12 | RKMPState_OfflineRequested = 101
13 | };
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKMajorMinorVersion.h:
--------------------------------------------------------------------------------
1 | @interface RKMajorMinorVersion : NSObject
2 |
3 | @property (nonatomic, strong, readonly, nonnull) NSString *major;
4 | @property (nonatomic, strong, readonly, nonnull) NSString *minor;
5 |
6 | - (nullable instancetype)initWithVersionString:(nonnull NSString *)versionString;
7 | - (NSComparisonResult)compare:(nonnull RKMajorMinorVersion *)version;
8 | - (BOOL)isGreaterThan:(nonnull RKMajorMinorVersion *)version;
9 | - (BOOL)isLessThan:(nonnull RKMajorMinorVersion *)version;
10 | - (nonnull NSString *)versionString;
11 |
12 | @end
13 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKMath.h:
--------------------------------------------------------------------------------
1 | /*
2 | * RKMath.h
3 | * RobotCommandKit
4 | *
5 | * Created by Brian Smith on 12/6/10.
6 | * Imported to RobotCommandKit by Hunter Lang on 12/12/13.
7 | * Copyright 2010 Orbotix Inc. All rights reserved.
8 | *
9 | */
10 |
11 | /*! @file */
12 |
13 | /*!
14 | * Calculates the normal value of a 2D vector. The algorithm is
15 | * \f$\sqrt(x^2 + y^2)\f$.
16 | * @param x The x coordinate.
17 | * @param y The y coordinate.
18 | */
19 | extern double Norm2D(double x, double y);
20 |
21 | /*!
22 | * Calculate the normal value of a 3D vector. The algorithm used is
23 | * \f$\sqrt(x^2 + y^2 + z^2)\f$.
24 | * @param x The x coordinate.
25 | * @param y The y coordinate.
26 | * @param z The z coordinate.
27 | */
28 | extern double Norm3D(double x, double y, double z);
29 |
30 | /*!
31 | * Function to clamp a value to minimum and maximum values.
32 | * @param v The value to clamp.
33 | * @param min The minimum value that v can go to.
34 | * @param max The maximum value that v can go to.
35 | */
36 | extern double Clamp(double v, double min, double max);
37 |
38 | /*!
39 | * Function to set a window on a value to keep it at a fixed value
40 | * within the window's delta.
41 | * @param v The value to keep within the window.
42 | * @param fixed The value fix to if the value is within the window's delta.
43 | * @param delta The delta to keep the value to the fixed value.
44 | */
45 | extern double Window(double v, double fixed, double delta);
46 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKPingCommand.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceCommand.h"
2 |
3 | @interface RKPingCommand : RKDeviceCommand
4 |
5 | @end
6 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKPingResponse.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceResponse.h"
2 |
3 | @interface RKPingResponse : RKDeviceResponse
4 |
5 | @end
6 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKPowerNotificationAsyncData.h:
--------------------------------------------------------------------------------
1 | #import "RKAsyncMessage.h"
2 | #import "RKTypes.h"
3 |
4 | @interface RKPowerNotificationAsyncData : RKAsyncMessage
5 |
6 | @property ( nonatomic, readonly ) RKBatteryPowerState state;
7 |
8 | @end
9 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKRGBLEDOutputCommand.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceCommand.h"
2 |
3 | @interface RKRGBLEDOutputCommand : RKDeviceCommand
4 |
5 | - (nullable instancetype)initWithRed:(float)red green:(float)green blue:(float)blue;
6 | - (nullable instancetype)initWithRed:(float)red green:(float)green blue:(float)blue userDefault:(BOOL)defaultState;
7 |
8 | @end
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKRGBLEDOutputResponse.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceResponse.h"
2 |
3 | @interface RKRGBLEDOutputResponse : RKDeviceResponse
4 |
5 | @end
6 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKRawMotorValuesCommand.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceCommand.h"
2 |
3 | typedef NS_ENUM(uint8_t, RKRawMotorMode) {
4 | RKRawMotorModeOff = 0,
5 | RKRawMotorModeForward = 1,
6 | RKRawMotorModeReverse = 2,
7 | RKRawMotorModeBrake = 3,
8 | RKRawMotorModeIgnore = 4
9 | };
10 |
11 | typedef uint8_t RKRawMotorPower;
12 |
13 | @interface RKRawMotorValuesCommand : RKDeviceCommand
14 |
15 | - (nullable instancetype)initWithLeftMode:(RKRawMotorMode)leftMode
16 | leftPower:(RKRawMotorPower)leftPower
17 | rightMode:(RKRawMotorMode)rightMode
18 | rightPower:(RKRawMotorPower)rightPower;
19 |
20 | @end
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKRawMotorValuesResponse.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceResponse.h"
2 |
3 | @interface RKRawMotorValuesResponse : RKDeviceResponse
4 |
5 | @end
6 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKReadOdometerCommand.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceCommand.h"
2 |
3 | @interface RKReadOdometerCommand : RKDeviceCommand
4 |
5 | @end
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKReadOdometerResponse.h:
--------------------------------------------------------------------------------
1 | #import "RobotCommandKit.h"
2 |
3 | @interface RKReadOdometerResponse : RKDeviceResponse
4 |
5 | @property (nonatomic, assign, readonly) uint32_t distanceInCentimeters;
6 |
7 | @end
8 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKResponseCodes.h:
--------------------------------------------------------------------------------
1 | typedef NS_ENUM(uint8_t, RKResponseCode) {
2 | RKResponseCodeOK = 0x00,
3 | RKResponseCodeErrorGeneral = 0x01,
4 | RKResponseCodeErrorChecksum = 0x02,
5 | RKResponseCodeErrorFragment = 0x03,
6 | RKResponseCodeErrorBadCommand = 0x04,
7 | RKResponseCodeErrorUnsupported = 0x05,
8 | RKResponseCodeErrorBadMessage = 0x06,
9 | RKResponseCodeErrorParameter = 0x07,
10 | RKResponseCodeErrorExecute = 0x08,
11 | RKResponseCodeUnknownDevice = 0x09,
12 | RKResponseCodeMemoryBusy = 0x0A,
13 | RKResponseCodeBadPassword = 0x0B,
14 | RKResponseCodeDeviceBusy = 0x0C,
15 | RKResponseCodeOVMAppendFailed = 0x0D,
16 | RKResponseCodeLowVoltageError = 0x31,
17 | RKResponseCodeIllegalPageNum = 0x32,
18 | RKResponseCodeFlashFail = 0x33,
19 | RKResponseCodeMainAppCorrupt = 0x34,
20 | RKResponseCodeResponseTimeout = 0x35
21 | };
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKResponseFactory.h:
--------------------------------------------------------------------------------
1 | #import
2 | #import "RKDeviceCommand.h"
3 | #import "RKDeviceResponse.h"
4 |
5 | @interface RKResponseFactory : NSObject
6 |
7 | + (nonnull instancetype)new NS_UNAVAILABLE;
8 | + (void)registerResponse:(nonnull Class)responseClass;
9 | + (nonnull RKDeviceResponse *)responseFromDeviceId:(uint8_t)deviceId
10 | commandId:(uint8_t)commandId
11 | sequenceNumber:(uint8_t)sequenceNumber
12 | responseCode:(uint8_t)responseCode
13 | data:(nonnull NSData *)data;
14 |
15 | - (nonnull instancetype)init NS_UNAVAILABLE;
16 |
17 | @end
18 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKRollCommand.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceCommand.h"
2 |
3 | typedef NS_ENUM(NSInteger, RKRollType) {
4 | RKRollStop = 0,
5 | RKRoll = 1,
6 | RKRollCalibrate = 2
7 | };
8 |
9 | @interface RKRollCommand : RKDeviceCommand
10 |
11 | - (nullable instancetype)initWithHeading:(float)heading velocity:(float)velocity;
12 | - (nullable instancetype)initWithHeading:(float)heading velocity:(float)velocity type:(RKRollType)type;
13 | - (nullable instancetype)initWithHeading:(float)heading velocity:(float)velocity type:(RKRollType)type reverse:(BOOL)reverse;
14 |
15 | @end
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKRollingQueue.h:
--------------------------------------------------------------------------------
1 | //
2 | // RKRollingQueue.h
3 | // RobotCommandKit
4 | //
5 | // Borrowed from CelloHill by wes on 11/14/14.
6 | // Copyright (c) 2014 Orbotix Inc. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface RKRollingQueue : NSObject
12 |
13 | /*! @brief The maximum size for the rolling queue. */
14 | @property ( nonatomic, assign) int maxSize;
15 |
16 | /*! @brief Create a new rolling queue with the given maximum size.
17 | * @param maxSize The maximum size of the rolling queue.
18 | */
19 | - (id) initWithMaxSize:(int) maxSize;
20 |
21 | /*! @brief Add an object to the queue.
22 | * @param sample The sample to enqueue.
23 | */
24 | - (void) enqueue:(id) obj;
25 |
26 | /*! @brief Remove and return the next object in the queue */
27 | - (id) dequeue;
28 |
29 | /*! @brief Peek at the next object in the queue without removing it. */
30 | - (id) peek;
31 |
32 | /*! @brief Fetch the previously added (enqueued) object */
33 | - (id) prev;
34 |
35 | /*! @brief Determine the number of objects in the sample queue. */
36 | - (int) count;
37 |
38 | /*! @brief Get the data in the queue as an array. */
39 | - (NSArray *) dataset;
40 |
41 | /*! @brief Get the data in the queue as a reversed array. */
42 | - (NSArray *) invertedDataset;
43 |
44 |
45 | @end
46 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKRotationRateCommand.h:
--------------------------------------------------------------------------------
1 | #import
2 | #import "RKDeviceCommand.h"
3 |
4 | @interface RKRotationRateCommand : RKDeviceCommand
5 |
6 | - (nullable instancetype)initWithRate:(float)rate;
7 |
8 | @end
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKRotationRateResponse.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceResponse.h"
2 |
3 | @interface RKRotationRateResponse : RKDeviceResponse
4 |
5 | @end
6 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKSelfLevelCommand.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceCommand.h"
2 |
3 | typedef NS_ENUM(uint8_t, RKSelfLevelCommandOptions) {
4 | RKSelfLevelCommandOptionStart = 0x01,
5 | RKSelfLevelCommandOptionKeepHeading = 0x02,
6 | RKSelfLevelCommandOptionSleepAfter = 0x04,
7 | RKSelfLevelCommandOptionControlSystemOn = 0x08
8 | };
9 |
10 | @interface RKSelfLevelCommand : RKDeviceCommand
11 |
12 | - (nullable instancetype)initWithOptions:(RKSelfLevelCommandOptions)options
13 | angleLimit:(uint8_t)angleLimit
14 | timeout:(uint8_t)timeout
15 | accuracy:(uint8_t)accuracy;
16 |
17 | @end
18 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKSelfLevelCompleteAsyncData.h:
--------------------------------------------------------------------------------
1 | #import "RKAsyncMessage.h"
2 |
3 | typedef NS_ENUM(uint8_t, RKSelfLevelCompleteResultCode) {
4 | RKSelfLevelCompleteResultCodeUnknown = 0x00,
5 | RKSelfLevelCompleteResultCodeTimeOut = 0x01,
6 | RKSelfLevelCompleteResultCodeSensorsError = 0x02,
7 | RKSelfLevelCompleteResultCodeSelfLevelDisable = 0x03,
8 | RKSelfLevelCompleteResultCodeAborted = 0x04,
9 | RKSelfLevelCompleteResultCodeChargerNotFound = 0x05,
10 | RKSelfLevelCompleteResultCodeSuccess = 0x06
11 | };
12 |
13 | @interface RKSelfLevelCompleteAsyncData : RKAsyncMessage
14 |
15 | @property (nonatomic, assign, readonly) RKSelfLevelCompleteResultCode resultCode;
16 |
17 | @end
18 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKSelfLevelResponse.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceResponse.h"
2 |
3 | @interface RKSelfLevelResponse : RKDeviceResponse
4 |
5 | @end
6 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKSession.h:
--------------------------------------------------------------------------------
1 | #import
2 | #import "RKDeviceResponse.h"
3 | #import "RKAsyncMessage.h"
4 | #import "RKDeviceCommand.h"
5 |
6 | @protocol RKSessionDelegate
7 |
8 | - (void)handleResponse:(RKDeviceResponse *)response;
9 | - (void)handleStringResponse:(NSString *)stringResponse;
10 | - (void)handleAsyncData:(RKAsyncMessage *)asyncData;
11 |
12 | @end
13 |
14 | @protocol RKSession
15 |
16 | @property (nonatomic, weak) id delegate;
17 |
18 | - (instancetype)initWithDelegate:(id)delegate;
19 | - (void)processRawData:(NSData *)data;
20 | - (NSData *)generatePacketFromCommand:(RKDeviceCommand *)command;
21 |
22 | @end
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKSetAutoReconnectCommand.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceCommand.h"
2 |
3 | @interface RKSetAutoReconnectCommand : RKDeviceCommand
4 |
5 | - (nullable instancetype)initWithEnableFlag:(BOOL)flag startTime:(uint8_t)time;
6 |
7 | @end
8 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKSetAutoReconnectResponse.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceResponse.h"
2 |
3 | @interface RKSetAutoReconnectResponse : RKDeviceResponse
4 |
5 | @end
6 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKSetBluetoothNameCommand.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceCommand.h"
2 |
3 | @interface RKSetBluetoothNameCommand : RKDeviceCommand
4 |
5 | - (nullable instancetype)initWithName:(nonnull NSString *)name;
6 |
7 | @end
8 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKSetBluetoothNameResponse.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceResponse.h"
2 |
3 | @interface RKSetBluetoothNameResponse : RKDeviceResponse
4 |
5 | @end
6 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKSetDataStreamingCommand.h:
--------------------------------------------------------------------------------
1 | #import
2 | #import "RKDeviceCommand.h"
3 | #import "RKTypes.h"
4 |
5 | @interface RKSetDataStreamingCommand : RKDeviceCommand
6 |
7 | - (nullable instancetype)initWithSampleRateDivisor:(uint16_t)divisor
8 | packetFrames:(uint16_t)frames
9 | sensorMask:(RKDataStreamingMask)mask
10 | packetCount:(uint8_t)count;
11 | - (nullable instancetype)initWithStop;
12 |
13 | @end
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKSetDataStreamingResponse.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceResponse.h"
2 |
3 | @interface RKSetDataStreamingResponse : RKDeviceResponse
4 |
5 | @end
6 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKSetFactoryDeviceModeCommand.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceCommand.h"
2 |
3 | @interface RKSetFactoryDeviceModeCommand : RKDeviceCommand
4 |
5 | - (nullable instancetype)initWithFactoryModeRequest:(BOOL)factoryDeviceMode password:(UInt32)pass;
6 |
7 | @end
8 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKSetFactoryDeviceModeResponse.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceResponse.h"
2 |
3 | @interface RKSetFactoryDeviceModeResponse : RKDeviceResponse
4 |
5 | @property (nonatomic, assign, readonly) UInt32 Rn;
6 |
7 | @end
8 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKSetHeadingCommand.h:
--------------------------------------------------------------------------------
1 | #import
2 | #import "RKDeviceCommand.h"
3 |
4 | @interface RKSetHeadingCommand : RKDeviceCommand
5 |
6 | - (nullable instancetype)initWithHeading:(uint16_t)heading;
7 |
8 | @end
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKSetHeadingResponse.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceResponse.h"
2 |
3 | @interface RKSetHeadingResponse : RKDeviceResponse
4 |
5 | @end
6 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKSetInactivityTimeoutCommand.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceCommand.h"
2 |
3 | @interface RKSetInactivityTimeoutCommand : RKDeviceCommand
4 |
5 | - (nullable instancetype)initWithInactivityTimeout:(uint16_t)timeout;
6 |
7 | @end
8 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKSetInactivityTimeoutResponse.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceResponse.h"
2 |
3 | @interface RKSetInactivityTimeoutResponse : RKDeviceResponse
4 |
5 | @end
6 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKSetMotionTimeoutCommand.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceCommand.h"
2 |
3 | @interface RKSetMotionTimeoutCommand : RKDeviceCommand
4 |
5 | - (nullable instancetype)initWithTime:(uint16_t)time;
6 |
7 | @end
8 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKSetMotionTimeoutResponse.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceResponse.h"
2 |
3 | @interface RKSetMotionTimeoutResponse : RKDeviceResponse
4 |
5 | @end
6 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKSetNonPersistentOptionFlagsCommand.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceCommand.h"
2 |
3 | typedef NS_OPTIONS(uint32_t, RKGetNonPersistentOptionFlagsMask) {
4 | RKGetNonPersistentOptionFlagsStopOnDisconnect = 0x00000001,
5 | RKGetNonPersistentOptionFlagsCompatibilityMode = 0x00000002,
6 | };
7 |
8 | @interface RKSetNonPersistentOptionFlagsCommand : RKDeviceCommand
9 |
10 | - (instancetype) initWithOptionFlags:(uint32_t)flags;
11 |
12 | @end
13 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKSetNonPersistentOptionFlagsResponse.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceResponse.h"
2 |
3 | @interface RKSetNonPersistentOptionFlagsResponse : RKDeviceResponse
4 |
5 | @end
6 |
7 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKSetOptionFlagsCommand.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceCommand.h"
2 |
3 | typedef NS_OPTIONS(uint32_t, RKGetOptionFlagsMask) {
4 | RKGetOptionFlagsPreventSleepInCharger = 0x00000001,
5 | RKGetOptionFlagsEnableVectorDrive = 0x00000002,
6 | RKGetOptionFlagsDisableSelfLevelInCharger = 0x00000004,
7 | RKGetOptionFlagsTailLightAlwaysOn = 0x00000008,
8 | RKGetOptionFlagsEnableMotionTimeout = 0x00000010,
9 | RKGetOptionFlagsDemoMode = 0x00000020,
10 | RKGetOptionFlagsLightDoubleTap = 0x00000040,
11 | RKGetOptionFlagsHeavyDoubleTap = 0x00000080,
12 | RKGetOptionFlagsGyroMaxAsync = 0x00000100,
13 | RKGetOptionFlagsEnableSoul = 0x00000200,
14 | RKGetOptionFlagsSlewRawMotors = 0x00000400,
15 | };
16 |
17 | @interface RKSetOptionFlagsCommand : RKDeviceCommand
18 |
19 | - (nullable instancetype)initWithOptionFlags:(uint32_t)flags;
20 |
21 | @end
22 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKSetOptionFlagsResponse.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceResponse.h"
2 |
3 | @interface RKSetOptionFlagsResponse : RKDeviceResponse
4 |
5 | @end
6 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKSetPIDCommand.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceCommand.h"
2 |
3 | typedef NS_ENUM(Byte, RKAxis){
4 | RKPitchAxis = 0x00,
5 | RKRollAxis = 0x01,
6 | RKYawAxis = 0x02
7 | };
8 |
9 | @interface RKSetPIDCommand : RKDeviceCommand
10 |
11 | - (nullable instancetype)initWithAxis:(RKAxis)axis p:(nonnull NSNumber *)p i:(nonnull NSNumber *)i andD:(nonnull NSNumber *)d;
12 |
13 | @end
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKSetPowerNotificationCommand.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceCommand.h"
2 |
3 | @interface RKSetPowerNotificationCommand : RKDeviceCommand
4 |
5 | - (instancetype)initWithState:(BOOL)notificationState;
6 |
7 | @end
8 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKSetPowerNotificationResponse.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceResponse.h"
2 |
3 | @interface RKSetPowerNotificationResponse : RKDeviceResponse
4 |
5 | @end
6 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKSetUserHackModeCommand.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceCommand.h"
2 |
3 | @interface RKSetUserHackModeCommand : RKDeviceCommand
4 |
5 | - (nonnull instancetype)initToSetUserHackMode:(BOOL)userHackMode;
6 |
7 | @end
8 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKSetUserHackModeResponse.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceResponse.h"
2 |
3 | @interface RKSetUserHackModeResponse : RKDeviceResponse
4 |
5 | @end
6 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKSleepDidOccurMessage.h:
--------------------------------------------------------------------------------
1 | #import "RKAsyncMessage.h"
2 |
3 | @interface RKSleepDidOccurMessage : RKAsyncMessage
4 |
5 | @end
6 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKSleepWillOccurMessage.h:
--------------------------------------------------------------------------------
1 | #import "RKAsyncMessage.h"
2 |
3 | @interface RKSleepWillOccurMessage : RKAsyncMessage
4 |
5 | @end
6 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKStabilizationCommand.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceCommand.h"
2 |
3 | typedef NS_ENUM(uint8_t, RKStabilizationState) {
4 | RKStabilizationStateOff = 0,
5 | RKStabilizationStateOn = 1,
6 | RKStabilizationStateOnNoReset = 2
7 | };
8 |
9 | @interface RKStabilizationCommand : RKDeviceCommand
10 |
11 | - (nullable instancetype)initWithState:(RKStabilizationState)state;
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKStabilizationResponse.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceResponse.h"
2 |
3 | @interface RKStabilizationResponse : RKDeviceResponse
4 |
5 | @end
6 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKStat.h:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2014 Orbotix Inc. All rights reserved.
3 | //
4 |
5 | #import
6 |
7 | typedef NS_ENUM(uint8_t, RKStatKey) {
8 | RKStatKeyDistanceDriven,
9 | RKStatKeyRGBChange,
10 | RKStatKeyMacroRun,
11 | RKStatKeyCollision,
12 | RKStatKeyBluetoothConnectionEvent,
13 | RKStatKeyConnectTime,
14 | RKStatKeyOdometer,
15 | RKStatKeyRobotProfile,
16 | };
17 |
18 | typedef NS_ENUM(uint8_t, RKStatDataKey) {
19 | RKStatDataKeyId,
20 | RKStatDataKeyTime,
21 | RKStatDataKeyValue,
22 | RKStatDataKeyCm,
23 | RKStatDataKeyHex,
24 | RKStatDataKeyName,
25 | RKStatDataKeySerialNumber,
26 | RKStatDataKeyModel,
27 | RKStatDataKeyMainApp,
28 | RKStatDataKeyBootloader,
29 | RKStatDataKeyRadioFirmware,
30 | RKStatDataKeySku,
31 | RKStatDataKeyChassisId,
32 | RKStatDataKeyFactoryConfigBlockCRC,
33 | };
34 |
35 | @interface RKStat : NSObject
36 |
37 | @property (nonatomic, readonly) RKStatKey statKey;
38 | @property (strong, nonatomic, readonly) NSString *stringStatKey;
39 | @property (strong, nonatomic, readonly) NSString *associatedMac;
40 | @property (strong, nonatomic, readonly) NSMutableDictionary *baseDictionary;
41 |
42 | + (instancetype)statWithKey:(RKStatKey)key mac:(NSString *)mac;
43 |
44 | - (void)addDataToStatWithKey:(RKStatDataKey)key value:(NSString *)value;
45 | - (void)addDataToStatWithKey:(RKStatDataKey)key uintValue:(uint32_t)uintValue;
46 |
47 | - (NSDictionary *)getDataDictionary;
48 |
49 | - (NSData *)serialize;
50 | + (instancetype)deserialize:(NSData *)statData;
51 |
52 | + (NSString *)filterMac:(NSString *)mac;
53 |
54 |
55 | @end
56 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKStatEventListener.h:
--------------------------------------------------------------------------------
1 | #import
2 | #import "RKRobotBase.h"
3 |
4 | @interface RKStatEventListener : NSObject
5 |
6 | + (instancetype)sharedListener;
7 |
8 | + (instancetype)new NS_UNAVAILABLE;
9 | - (instancetype)init NS_UNAVAILABLE;
10 |
11 | - (void)startListener;
12 | - (void)stopListener;
13 |
14 | @end
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKStatForPacketFactory.h:
--------------------------------------------------------------------------------
1 | //
2 | // RKStatForCommandFactory.h
3 | // RobotKitLE
4 | //
5 | // Created by Hunter Lang on 7/14/14.
6 | // Copyright (c) 2014 Orbotix Inc. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "RKStat.h"
11 |
12 | @interface RKStatForPacketFactory : NSObject
13 |
14 | + (RKStat *)statForPacket:(NSData *)packet identifier:(NSString *)usuallyMac;
15 |
16 | @end
17 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKStatOdometerHack.h:
--------------------------------------------------------------------------------
1 | #import
2 | #import "RKRollCommand.h"
3 |
4 | @interface RKStatOdometerHack : NSObject
5 |
6 | + (void)recordStatForPacket:(NSData *)packet andMac:(NSString *)mac;
7 |
8 | @end
9 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKStatRecorder.h:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2014 Orbotix Inc. All rights reserved.
3 | //
4 |
5 | #import
6 | #import "RKStat.h"
7 |
8 | @interface RKStatRecorder : NSObject
9 |
10 | + (RKStatRecorder *)sharedRecorder;
11 | - (void)recordStat:(RKStat *)stat;
12 | - (void)forceSync;
13 |
14 | @end
15 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKStats.h:
--------------------------------------------------------------------------------
1 | #import "RKStatEventListener.h"
2 | #import "RKStatRecorder.h"
3 | #import "RKStatForPacketFactory.h"
4 | #import "RKStatOdometerHack.h"
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKTemperatureCommand.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceCommand.h"
2 |
3 | @interface RKTemperatureCommand : RKDeviceCommand
4 |
5 | @end
6 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKTemperatureResponse.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceResponse.h"
2 |
3 | @interface RKTemperatureResponse : RKDeviceResponse
4 |
5 | @property (nonatomic, strong, readonly) NSNumber *temperature;
6 |
7 | @end
8 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKURLRequestFactory.h:
--------------------------------------------------------------------------------
1 | //
2 | // RKWebAsyncRequestFactory.h
3 | // RobotKitLE
4 | //
5 | // Created by Hunter Lang on 7/11/14.
6 | // Copyright (c) 2014 Orbotix Inc. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface RKURLRequestFactory : NSObject
12 |
13 | + (NSURLRequest *)requestWithURL:(NSURL *)URL stats:(NSArray *)stats;
14 |
15 | @end
16 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKV1Session.h:
--------------------------------------------------------------------------------
1 | #import
2 | #import "RKDeviceResponse.h"
3 | #import "RKAsyncMessage.h"
4 | #import "RKDeviceCommand.h"
5 | #import "RKSession.h"
6 |
7 | typedef NS_ENUM(uint8_t, RKV1SessionState) {
8 | RKV1SessionStateWaitingForSop,
9 | RKV1SessionStateWaitingForFlags,
10 | RKV1SessionStateWaitingForMSRP,
11 | RKV1SessionStateWaitingForSequenceNumber,
12 | RKV1SessionStateWaitingForDlen,
13 | RKV1SessionStateWaitingForEndOfPacket,
14 | RKV1SessionStateWaitingForAsyncId,
15 | RKV1SessionStateWaitingForAsyncDlen1,
16 | RKV1SessionStateWaitingForAsyncDlen2,
17 | RKV1SessionStateWaitingForAsyncEndOfPacket
18 | };
19 |
20 |
21 |
22 | @interface RKV1Session : NSObject
23 |
24 | @property (nonatomic, weak) id delegate;
25 | @property (nonatomic, assign, readonly) RKV1SessionState currentState;
26 |
27 |
28 | @end
29 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKV2Session.h:
--------------------------------------------------------------------------------
1 | #import
2 | #import "RKSession.h"
3 |
4 | @interface RKV2Session : NSObject
5 |
6 | @property (nonatomic, weak) id delegate;
7 |
8 | @end
9 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKVersioningCommand.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceCommand.h"
2 |
3 | @interface RKVersioningCommand : RKDeviceCommand
4 |
5 | @end
6 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKVersioningResponse.h:
--------------------------------------------------------------------------------
1 | #import
2 | #import "RKDeviceResponse.h"
3 | #import "RKMajorMinorVersion.h"
4 |
5 |
6 | typedef NS_ENUM(uint8_t, RKRobotModel) {
7 | SpheroS1 = 0,
8 | OllieBadFirmware = 1,
9 | SpheroS2 = 2,
10 | SpheroS3 = 3,
11 | Unknown4 = 4,
12 | Ollie01 = 10,
13 | BB8_01 = 30,
14 | WeBall = 40,
15 | SprkPlus = 50,
16 | };
17 |
18 | @interface RKVersioningResponse : RKDeviceResponse
19 |
20 | @property ( strong, nonatomic, readonly ) NSString *recordVersion;
21 | @property ( nonatomic, readonly ) RKRobotModel modelNumber;
22 | @property ( strong, nonatomic, readonly ) NSString *hardwareVersion;
23 | @property ( strong, nonatomic, readonly ) RKMajorMinorVersion *mainAppVersion;
24 | @property ( strong, nonatomic, readonly ) RKMajorMinorVersion *bootloaderVersion;
25 | @property ( strong, nonatomic, readonly ) NSString *orbBasicVersion;
26 | @property ( strong, nonatomic, readonly ) NSString *overlayManagerVersion;
27 |
28 | @end
29 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKWebSyncAgent.h:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2014 Orbotix Inc. All rights reserved.
3 | //
4 |
5 | #import
6 |
7 | @interface RKWebSyncAgent : NSObject
8 |
9 | + (BOOL)recordStats:(NSArray *)stats;
10 |
11 | @end
12 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKWritePersistentPageCommand.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceCommand.h"
2 |
3 | extern const ushort MINIMUM_BLOCK_ID;
4 | extern const ushort MAXIMUM_BLOCK_ID;
5 |
6 | @interface RKWritePersistentPageCommand : RKDeviceCommand
7 |
8 | + (instancetype)new NS_UNAVAILABLE;
9 | + (instancetype)commandWithPage:(NSData *)page andBlockId:(ushort)blockId;
10 |
11 | - (instancetype)init NS_UNAVAILABLE;
12 | - (instancetype)initWithPage:(NSData *)page andBlockId:(ushort)blockId;
13 |
14 | @end
15 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Headers/RKWritePersistentPageResponse.h:
--------------------------------------------------------------------------------
1 | #import "RKDeviceResponse.h"
2 |
3 | @interface RKWritePersistentPageResponse : RKDeviceResponse
4 |
5 | @end
6 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Info.plist:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/Info.plist
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/RobotCommandKit:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/RobotCommandKit
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/_CodeSignature/CodeDirectory:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/_CodeSignature/CodeDirectory
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/_CodeSignature/CodeRequirements:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/_CodeSignature/CodeRequirements
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/_CodeSignature/CodeRequirements-1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/_CodeSignature/CodeRequirements-1
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/_CodeSignature/CodeSignature:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/src/RobotKit.framework/Frameworks/RobotCommandKit.framework/_CodeSignature/CodeSignature
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotKitClassic.framework/Headers/RKAccuAngleDriveAddon.h:
--------------------------------------------------------------------------------
1 | //
2 | // RKAccuAngleFilter.h
3 | // RobotKit
4 | //
5 | // Created by wes felteau on 3/25/13.
6 | // Copyright (c) 2013 Orbotix Inc. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface RKAccuAngleDriveAddon : NSObject
12 |
13 | @property ( readwrite ) BOOL enabled;
14 | @property ( readwrite ) int32_t rotationRateThreshold;
15 | @property ( readwrite ) float_t outputRatio;
16 | @end
17 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotKitClassic.framework/Headers/RKLogarithmicScaleDriveAddon.h:
--------------------------------------------------------------------------------
1 | //
2 | // RKLogarithmicScaleModifier.h
3 | // RobotKit
4 | //
5 | // Created by wes felteau on 3/25/13.
6 | // Copyright (c) 2013 Orbotix Inc. All rights reserved.
7 | //
8 |
9 | #import
10 | #import
11 |
12 | @interface RKLogarithmicScaleDriveAddon : NSObject
13 |
14 | @property ( readwrite ) BOOL enabled;
15 | @property ( readwrite ) float logScale;
16 |
17 | - (id) initWithScale:(float) inLogScale;
18 |
19 | @end
20 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotKitClassic.framework/Headers/RKSteeringWheelDriveAlgorithm.h:
--------------------------------------------------------------------------------
1 | //
2 | // RKSteeringWheelDriveAlgorithm.h
3 | // RobotKit
4 | //
5 | // Copyright 2010 Orbotix Inc. All rights reserved.
6 | //
7 |
8 | #import
9 | #import
10 |
11 | /*! @file */
12 |
13 | /**
14 | * @brief Implemention of a steering wheel style algorithm for accelerometer control.
15 | *
16 | * An object will convert accelerometer data into heading and speed for driving
17 | * a robot ball.
18 | *
19 | * The car steering metephor is meant to be a intuitive and familiar control for
20 | * use in a racing type game.
21 | *
22 | * Full stop is considered to be when the z axis perpendicular to the gravity vector,
23 | * |z| = zero, and the x axis is parrellel to the gravity vector, |x| = 1. The
24 | * y accelerometer value is used for direction since it will start at zero.
25 | */
26 | @interface RKSteeringWheelDriveAlgorithm : RKDriveAlgorithm {
27 | }
28 |
29 | @end
30 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotKitClassic.framework/Headers/RKTiltDriveAlgorithm.h:
--------------------------------------------------------------------------------
1 | //
2 | // RKTiltDriveAlgorithm.h
3 | // RobotKit
4 | //
5 | // Copyright 2010 Orbotix Inc. All rights reserved.
6 | //
7 |
8 | #import
9 | #import
10 | #import
11 |
12 | /*! @file */
13 |
14 | /*!
15 | * @brief Implementation of tilt bassed drive control from accelerometer data.
16 | *
17 | * Drive Algorithm for using the tilt of the device to control direction and speed
18 | * using accelerometer data. The stopOffset property is read as radians from
19 | * the device setting flat.
20 | */
21 | @interface RKTiltDriveAlgorithm : RKDriveAlgorithm {
22 | @private
23 | double orientationAngle;
24 | }
25 |
26 | /*! Maximum tilt angle in radians used to clamp angle values to */
27 | @property ( nonatomic, readonly ) double maximumTilt;
28 | /*! An angle that represents the yaw orientation of the iOS device. This angle can be used as
29 | * an offset for the heading.
30 | */
31 | @property ( nonatomic, assign ) double orientationAngle;
32 |
33 | /*!
34 | * Initializer for the class, which takes the iOS device orientation into account.
35 | * @param orientation The iOS device orientation.
36 | * @return The initialized object.
37 | */
38 | - (id) initWithOrientation:(UIInterfaceOrientation) orientation;
39 |
40 | @end
41 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotKitClassic.framework/Headers/RKTypes.h:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2012-2015 Orbotix Inc. All rights reserved.
3 | //
4 |
5 | // TYPES FOR CLASSIC ONLY.
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotKitClassic.framework/Headers/RobotKitClassic.h:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright 2013-2014 Orbotix Inc. All rights reserved.
3 | //
4 |
5 | #import
6 |
7 | #import
8 |
9 | #import
10 | #import
11 | #import
12 | #import
13 |
14 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotKitClassic.framework/Info.plist:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/src/RobotKit.framework/Frameworks/RobotKitClassic.framework/Info.plist
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotKitClassic.framework/PrivateHeaders/RKTighterControlAddon.h:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2013-2014 Sphero. All rights reserved.
3 | //
4 |
5 | #import
6 | #import
7 |
8 | @interface RKTighterControlAddon : NSObject
9 |
10 | @property ( readwrite ) BOOL enabled;
11 | @property (strong, nonatomic) id robot;
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotKitClassic.framework/RobotKitClassic:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/src/RobotKit.framework/Frameworks/RobotKitClassic.framework/RobotKitClassic
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotKitClassic.framework/_CodeSignature/CodeDirectory:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/src/RobotKit.framework/Frameworks/RobotKitClassic.framework/_CodeSignature/CodeDirectory
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotKitClassic.framework/_CodeSignature/CodeRequirements:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/src/RobotKit.framework/Frameworks/RobotKitClassic.framework/_CodeSignature/CodeRequirements
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotKitClassic.framework/_CodeSignature/CodeRequirements-1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/src/RobotKit.framework/Frameworks/RobotKitClassic.framework/_CodeSignature/CodeRequirements-1
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotKitClassic.framework/_CodeSignature/CodeSignature:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/src/RobotKit.framework/Frameworks/RobotKitClassic.framework/_CodeSignature/CodeSignature
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotKitLE.framework/Headers/CBUUID+Extension.h:
--------------------------------------------------------------------------------
1 | //
2 | // CBUUID+Extension.h
3 | // RobotKitLE
4 | //
5 | // Created by wes on 3/29/14.
6 | // Copyright (c) 2014 Orbotix. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface CBUUID (Extension)
12 |
13 | //-(BOOL) isEqualToStringUUID:(NSString*) uuid;
14 | -(NSString *)getStringRepresentation;
15 |
16 | @end
17 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotKitLE.framework/Headers/NSMutableArray+OrbQueue.h:
--------------------------------------------------------------------------------
1 | //
2 | // NSMutableArray+OrbQueue.h
3 | // RobotKitLE
4 | //
5 | // Created by wes on 12/23/13.
6 | // Copyright (c) 2013 Orbotix. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface NSMutableArray (OrbQueue)
12 |
13 |
14 | - (void) enqueue: (id)item;
15 | - (id) dequeue;
16 | - (id) peek;
17 |
18 | @end
19 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotKitLE.framework/Headers/RKAccessoryDiscoveryAgent.h:
--------------------------------------------------------------------------------
1 | //
2 | // RKWatchDiscoveryAgent.h
3 | // RobotKitLE
4 | //
5 | // Created by Paul Trebilcox on 11/9/15.
6 | // Copyright © 2015 Sphero. All rights reserved.
7 | //
8 |
9 | #import
10 | #import
11 |
12 | typedef void(^RKIsConnectedToWearableCallback)(BOOL isWearableConnected);
13 |
14 | @interface RKAccessoryDiscoveryAgent : NSObject
15 |
16 | - (void)isWearableConnectedWith:(RKIsConnectedToWearableCallback)callback;
17 |
18 | @end
19 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotKitLE.framework/Headers/RKByNameConnectStrategy.h:
--------------------------------------------------------------------------------
1 | //
2 | // RKByNameConnectStrategy.h
3 | // RobotKitLE
4 | //
5 | // Created by wes on 8/26/15.
6 | // Copyright (c) 2015 Orbotix Inc. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "RKLeConnectStrategy.h"
11 |
12 |
13 | @interface RKByNameConnectStrategy : NSObject
14 |
15 | @property (strong, nonatomic) NSString* deviceName;
16 |
17 | -(id) initWithName:(NSString*) name;
18 |
19 |
20 | @end
21 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotKitLE.framework/Headers/RKCharacteristic.h:
--------------------------------------------------------------------------------
1 | //
2 | // RKCharacteristic.h
3 | // RobotKitLE
4 | //
5 | // Created by wes on 11/22/13.
6 | // Copyright (c) 2013 Orbotix. All rights reserved.
7 | //
8 |
9 | #import
10 | #import
11 |
12 | @interface RKCharacteristic : NSObject
13 |
14 | @property (strong, nonatomic, readonly) CBCharacteristic* characteristic;
15 | @property (readwrite) BOOL waitOnResponse;
16 |
17 |
18 | @end
19 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotKitLE.framework/Headers/RKControlSystemPresetCommand.h:
--------------------------------------------------------------------------------
1 | //
2 | // RKControlSystemPresetCommand.h
3 | // RobotKitLE
4 | //
5 | // Created by wes on 12/23/13.
6 | // Copyright (c) 2013 Orbotix. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface RKControlSystemPresetCommand : RKDeviceCommand
12 |
13 | -(id)initWithPreset:(uint8_t) presetId;
14 |
15 | +(id)commandWithPreset:(uint8_t) presetId;
16 |
17 | @end
18 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotKitLE.framework/Headers/RKDeviceInfoServiceWrapper.h:
--------------------------------------------------------------------------------
1 | //
2 | // RKDeviceInfoServiceWrapper.h
3 | // RobotKitLE
4 | //
5 | // Created by wes on 5/13/15.
6 | // Copyright (c) 2015 Orbotix Inc. All rights reserved.
7 | //
8 |
9 | #import
10 | #import
11 | #import
12 |
13 | #import "RKRadioDescriptor.h"
14 |
15 | @interface RKDeviceInfoServiceWrapper : NSObject
16 |
17 | @property (weak, nonatomic, readonly) CBService* service;
18 | @property (strong, nonatomic, readonly) RKMajorMinorVersion* rfVersion;
19 | @property (strong, nonatomic, readonly) NSString* serialNumber;
20 | @property (strong, nonatomic, readonly) NSString* manufacturerName;
21 | @property (strong, nonatomic, readonly) NSString* modelNumber;
22 | @property (strong, nonatomic, readonly) NSString* hardwareRevision;
23 |
24 |
25 | -(id) initWithService:(CBService*) service andRadioDescriptor:(RKRadioDescriptor*) meta;
26 |
27 | -(void) peripheral:(CBPeripheral *)peripheral didWriteValueForCharacteristic:(CBCharacteristic *)characteristic error:(NSError *)error;
28 |
29 | - (void)peripheral:(CBPeripheral *)peripheral didUpdateValueForCharacteristic:(CBCharacteristic *)characteristic error:(NSError *)error;
30 |
31 | @end
32 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotKitLE.framework/Headers/RKHiByeMonitor.h:
--------------------------------------------------------------------------------
1 | //
2 | // RKHiByeMonitor.h
3 | // LeTestDrive
4 | //
5 | // Created by wes on 5/12/15.
6 | // Copyright (c) 2015 Orbotix. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "RKRobotLE.h"
11 |
12 | @protocol RKHiByeMonitorDelegate
13 |
14 | @optional
15 | -(void) robotDidSayHi:(RKRobotLE*) robot withUserInfo:(NSDictionary*) userInfo;
16 | -(void) robotDidSayBye:(RKRobotLE*) robot withUserInfo:(NSDictionary*) userInfo;
17 | @end
18 |
19 | @interface RKHiByeMonitor : NSObject
20 |
21 | -(id) initWithDelegate:(id) delegate;
22 |
23 | -(id) initWithHiThreshold:(uint8_t) hiThreshold andByeThreshold:(uint8_t) byeThreshold;
24 |
25 | -(void) enableRemoteRSSIMonitor:(RKRobotLE*) robot withInterval:(uint16_t) interval;
26 |
27 | @end
28 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotKitLE.framework/Headers/RKLeBaseLink.h:
--------------------------------------------------------------------------------
1 | //
2 | // RKLeBaseLink.h
3 | // RobotKitLE
4 | //
5 | // Created by Corey Earwood on 10/9/14.
6 | // Copyright (c) 2014 Orbotix Inc. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "RKLeConnectStrategy.h"
11 | #import
12 |
13 | @interface RKLeBaseLink : NSObject
14 |
15 | @end
16 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotKitLE.framework/Headers/RKLeBatchConnectStrategy.h:
--------------------------------------------------------------------------------
1 | //
2 | // RKLeBatchConnectStrategy.h
3 | // RobotKitLE
4 | //
5 | // Created by Corey Earwood on 9/9/15.
6 | // Copyright (c) 2015 Sphero. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "RKLeConnectStrategy.h"
11 |
12 | @interface RKLeBatchConnectStrategy : NSObject
13 |
14 | + (instancetype)strategy NS_UNAVAILABLE;
15 | + (instancetype)connectStrategyByBatchingStrategies:(NSArray *)connectStrategies;
16 |
17 | @end
18 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotKitLE.framework/Headers/RKLeClosestConnectStrategy.h:
--------------------------------------------------------------------------------
1 | //
2 | // RKLeClosestConnectStrategy.h
3 | // RobotKitLE
4 | //
5 | // Created by wes on 9/11/14.
6 | // Copyright (c) 2014 Orbotix Inc. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "RKLeConnectStrategy.h"
11 |
12 | /*! connect to the closest robot - wait 2s for the RSSI values to stabilize the list */
13 | @interface RKLeClosestConnectStrategy : NSObject
14 |
15 | @property (readwrite) int guardTime;
16 |
17 | @end
18 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotKitLE.framework/Headers/RKLeConnectStrategy.h:
--------------------------------------------------------------------------------
1 | //
2 | // RKLeConnectStrategy.h
3 | // RobotKitLE
4 | //
5 | // Created by wes on 9/11/14.
6 | // Copyright (c) 2014 Orbotix Inc. All rights reserved.
7 | //
8 | #import
9 | #import "RKLeNode.h"
10 |
11 | @protocol RKLeConnectStrategy
12 |
13 | + (id) strategy;
14 |
15 | -(id) nodeToConnectFromAvailableNodes:(NSArray*) availableNodes withLatestNode:(id)latestNode;
16 |
17 | @end
18 |
19 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotKitLE.framework/Headers/RKLeFavoritesManager.h:
--------------------------------------------------------------------------------
1 | //
2 | // RKRobotFavorites.h
3 | // RobotKitLE
4 | //
5 | // Created by wes on 9/11/14.
6 | // Copyright (c) 2014 Orbotix Inc. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "RKRobotLE.h"
11 |
12 | @interface RKLeFavoritesManager : NSObject
13 |
14 | @property (strong, nonatomic, readonly) NSMutableSet *favoriteRobotUUIDS; // NSUUID
15 |
16 | +(RKLeFavoritesManager *) sharedManager;
17 |
18 | -(void) addRobotToFavorites:(RKRobotLE*) robot;
19 | -(void) removeRobotFromFavorites:(RKRobotLE*) robot;
20 | -(bool) isRobotAFavorite:(RKRobotLE*) robot;
21 | -(void) clearRobotFavorites;
22 |
23 | @end
24 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotKitLE.framework/Headers/RKLeIfOneConnectStrategy.h:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2015 Orbotix Inc. All rights reserved.
3 | //
4 |
5 | #import
6 | #import "RKLeConnectStrategy.h"
7 |
8 | @interface RKLeIfOneConnectStrategy : NSObject
9 |
10 | @end
11 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotKitLE.framework/Headers/RKLeProximityConnectStrategy.h:
--------------------------------------------------------------------------------
1 | //
2 | // RKLeTouchConnectStrategy.h
3 | // RobotKitLE
4 | //
5 | // Created by wes on 9/11/14.
6 | // Copyright (c) 2014 Orbotix Inc. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "RKLeConnectStrategy.h"
11 |
12 |
13 |
14 | @interface RKLeProximityConnectStrategy : NSObject
15 |
16 | // in % 0 - 100
17 | - (void)setConnectionSignalStrengthThresholdValue:(int)threshold;
18 |
19 |
20 | @end
21 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotKitLE.framework/Headers/RKNoConnectStrategy.h:
--------------------------------------------------------------------------------
1 | //
2 | // RKNoConnectStrategy.h
3 | // RobotKitLE
4 | //
5 | // Created by wes on 11/14/14.
6 | // Copyright (c) 2014 Orbotix Inc. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "RKLeConnectStrategy.h"
11 |
12 | @interface RKNoConnectStrategy : NSObject
13 |
14 | @end
15 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotKitLE.framework/Headers/RKRadioDescriptor.h:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2015 Orbotix Inc. All rights reserved.
3 | //
4 |
5 | #import
6 | #import
7 |
8 | @interface RKRadioDescriptor : NSObject
9 |
10 | - (id)initWithAdvertised:(NSArray *)adUUIDS andRequiredUUIDS:(NSArray *)reqUUIDS;
11 |
12 | + (id)descriptorWithAdvertisedUUIDS:(NSArray *)adUUIDS andRequiredUUIDS:(NSArray *)reqUUIDS;
13 |
14 | /*! Services advertised by the remote device*/
15 | @property (nonatomic, strong , readonly) NSArray* advertisedUUIDS;
16 |
17 | /*! Required service UUIDS for the device to function */
18 | @property (nonatomic, strong, readonly) NSArray* requiredUUIDS;
19 |
20 | /*! */
21 | @property (nonatomic, strong) NSArray* namePrefixes;
22 |
23 | // SpheroCo Radio service and characteristics
24 | @property (nonatomic, strong) CBUUID *uuidRadioService;
25 | @property (nonatomic, strong) CBUUID *uuidTxPowerCharacteristic;
26 | @property (nonatomic, strong) CBUUID *uuidDeepSleepCharacteristic;
27 | @property (nonatomic, strong) CBUUID *uuidAntiDOSCharacteristic;
28 | @property (nonatomic, strong) CBUUID *uuidAntiDOSTimeoutCharacteristic;
29 | @property (nonatomic, strong) CBUUID *uuidSecurityCharacteristic;
30 | @property (nonatomic, strong) CBUUID* uuidWakeCharacteristic;
31 | @property (nonatomic, strong) CBUUID* uuidRSSICharacteristic;
32 |
33 | - (BOOL)nameMatchesPrefixes:(NSString *)name;
34 |
35 | @end
36 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotKitLE.framework/Headers/RKRobotDiscoveryAgentLE.h:
--------------------------------------------------------------------------------
1 | #import
2 | #import
3 | #import "RKRobotLE.h"
4 | #import "RKLeConnectStrategy.h"
5 | #import "RKDiscoveryAgentLE.h"
6 | #import
7 |
8 |
9 | /*!
10 | @brief Discover & Connect to Bluetooth LE Robots
11 | Discovery and connection services for Robots
12 | Simple Connect
13 | @code
14 | [[RKRobotDiscoveryAgentLE sharedAgent]
15 | connect:robot
16 | withCompletionHandler:(RKRobotConnectBlock) connectBlock;
17 |
18 | @endcode
19 |
20 | Connect using @p RKRobotStateChangeNotification @c
21 | @code
22 | // setup notification listener
23 | [[NSNotificationCenter defaultCenter]
24 | addObserver:self
25 | selector:@selector(didChangeRobotStateNotification:)
26 | name:kRobotDidChangeStateNotification
27 | object:nil];
28 | [[RKRobotDiscoveryAgentLE sharedAgent] startDiscovery];
29 | @endcode
30 |
31 |
32 | @copyright (c) 2013-2014 Sphero.
33 | @author Wes Felteau
34 | */
35 | @interface RKRobotDiscoveryAgentLE : NSProxy
36 |
37 | +(RKRobotDiscoveryAgentLE *) sharedAgent;
38 |
39 | +(id) robotForName:(NSString*) name;
40 | -(id) robotForName:(NSString*) name;
41 |
42 | - (NSOrderedSet*) connectingRobots;
43 |
44 | /*! radio connected robots
45 | @returns proxy to connectedNodes */
46 | - (NSOrderedSet*) connectedRobots;
47 |
48 | /*! online (main processor on) robots
49 | @returns proxy to onlineNodes */
50 | - (NSOrderedSet*) onlineRobots;
51 |
52 | @end
53 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotKitLE.framework/Headers/RKRobotLE.h:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2013-2014 Orbotix. All rights reserved.
3 | //
4 |
5 | #import
6 | #import
7 | #import
8 | #import "RKLeRobotLink.h"
9 | #import "RKLeConnectStrategy.h"
10 |
11 | extern NSString * const kRobotRadioDidACK;
12 | extern NSString * const kRobotDidUpdateRSSI;
13 | extern NSString * const kRobotDidGetCloseNotification;
14 |
15 | @interface RKRobotLE : NSObject
16 |
17 | /*! BLE Radio Stack */
18 | @property (strong, nonatomic, readonly) RKLeRobotLink *radioLink;
19 |
20 | #pragma cached values - asyncronously updated on command calls
21 | @property (readonly) NSNumber* lastOdometerReading;
22 | @property (readonly) RKVersioningResponse* versions;
23 |
24 | -(NSNumber*) connectTimeInSeconds;
25 |
26 |
27 | #pragma mark - ble radio control service
28 |
29 | /*! request the robot sleep - upon internal callback that sleepDidOccur, SDK disconnects by default. */
30 | -(void) sleep:(RKSleepType) sleepType;
31 | -(void) wake;
32 |
33 | -(BOOL) isOnline;
34 |
35 |
36 | @end
37 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotKitLE.framework/Headers/RKRobotRadioDescriptor.h:
--------------------------------------------------------------------------------
1 | //
2 | // RKLeRadioMeta.h
3 | // RobotKitLE
4 | //
5 | // Created by wes on 4/13/15.
6 | // Copyright (c) 2015 Orbotix Inc. All rights reserved.
7 | //
8 |
9 | #import
10 | #import
11 | #import "RKRadioDescriptor.h"
12 |
13 | @interface RKRobotRadioDescriptor : RKRadioDescriptor
14 |
15 | // ROBOT
16 | @property (strong) CBUUID* uuidRobotService;
17 | @property (strong) CBUUID* uuidControlCharacteristic;
18 | @property (strong) CBUUID* uuidResponseCharacteristic;
19 |
20 |
21 | // ONLY Production scheduled devices should be listed here.
22 | + (instancetype)ollieDescriptor;
23 | + (instancetype)weBallDescriptor;
24 | + (instancetype)sprkPlusDescriptor;
25 |
26 |
27 | @end
28 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotKitLE.framework/Headers/RobotKitLE.h:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2013-2014 Orbotix. All rights reserved.
3 | //
4 |
5 | #import
6 |
7 | //! Project version number for RobotKitLE.
8 | FOUNDATION_EXPORT double RobotKitLEVersionNumber;
9 |
10 | //! Project version string for RobotKitLE.
11 | FOUNDATION_EXPORT const unsigned char RobotKitLEVersionString[];
12 |
13 | // LE Base
14 | #import "RKRobotLE.h"
15 | #import "RKRobotDiscoveryAgentLE.h"
16 | #import "RKLeFavoritesManager.h"
17 | #import "RKNodeStateChangedNotification.h"
18 | #import "RKDiscoveryAgentLE.h"
19 | #import "CBUUID+Extension.h"
20 |
21 | #import "RKHiByeMonitor.h"
22 |
23 | #import "RKControlSystemPresetCommand.h"
24 |
25 |
26 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotKitLE.framework/Info.plist:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/src/RobotKit.framework/Frameworks/RobotKitLE.framework/Info.plist
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotKitLE.framework/RobotKitLE:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/src/RobotKit.framework/Frameworks/RobotKitLE.framework/RobotKitLE
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotKitLE.framework/_CodeSignature/CodeDirectory:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/src/RobotKit.framework/Frameworks/RobotKitLE.framework/_CodeSignature/CodeDirectory
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotKitLE.framework/_CodeSignature/CodeRequirements:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/src/RobotKit.framework/Frameworks/RobotKitLE.framework/_CodeSignature/CodeRequirements
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotKitLE.framework/_CodeSignature/CodeRequirements-1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/src/RobotKit.framework/Frameworks/RobotKitLE.framework/_CodeSignature/CodeRequirements-1
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotKitLE.framework/_CodeSignature/CodeSignature:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/src/RobotKit.framework/Frameworks/RobotKitLE.framework/_CodeSignature/CodeSignature
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKAbortMacroCommand.h:
--------------------------------------------------------------------------------
1 | #import
2 |
3 | @interface RKAbortMacroCommand : RKDeviceCommand
4 |
5 | @end
6 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKAbortMacroResponse.h:
--------------------------------------------------------------------------------
1 | #import
2 |
3 | typedef NS_ENUM(uint8_t, RKAbortMacroCode) {
4 | RKAbortMacroCodeMacroNotRunning = 0
5 | };
6 |
7 | @interface RKAbortMacroResponse : RKDeviceResponse
8 |
9 | @property (nonatomic, assign, readonly) RKAbortMacroCode abortCode;
10 |
11 | @end
12 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKAppendCompleteOvalCommand.h:
--------------------------------------------------------------------------------
1 | #import
2 |
3 | @interface RKAppendCompleteOvalCommand : RKDeviceCommand
4 |
5 | @end
6 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKAppendCompleteOvalResponse.h:
--------------------------------------------------------------------------------
1 | #import
2 |
3 | @interface RKAppendCompleteOvalResponse : RKDeviceResponse
4 |
5 | @end
6 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKAppendFragmentOvalCommand.h:
--------------------------------------------------------------------------------
1 | #import
2 | #import
3 |
4 | @interface RKAppendFragmentOvalCommand : RKDeviceCommand
5 |
6 | @end
7 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKAppendFragmentOvalResponse.h:
--------------------------------------------------------------------------------
1 | #import
2 |
3 | @interface RKAppendFragmentOvalResponse : RKDeviceResponse
4 |
5 | @end
6 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKInitMacroExecutiveCommand.h:
--------------------------------------------------------------------------------
1 | #import
2 |
3 | @interface RKInitMacroExecutiveCommand : RKDeviceCommand
4 |
5 | @end
6 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKInitMacroExecutiveResponse.h:
--------------------------------------------------------------------------------
1 | #import
2 |
3 | @interface RKInitMacroExecutiveResponse : RKDeviceResponse
4 |
5 | @end
6 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKMCCalibrate.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCCalibrate.h
3 | // MacroLab
4 | //
5 | // Created by Jon Carroll on 9/12/11.
6 | // Copyright (c) 2011 Orbotix, Inc. All rights reserved.
7 | //
8 |
9 | #import "RKMacroCommand.h"
10 |
11 | /*!
12 | * @brief Macro Command to calibrate the robot
13 | *
14 | * When this command is sent the current heading of the robot will become
15 | * the heading that is passed in as a parameter.
16 | * Allowed values:
17 | * heading 0-359
18 | * delay 0-255
19 | */
20 |
21 | @interface RKMCCalibrate : RKMacroCommand {
22 | int heading;
23 | int delay;
24 | }
25 |
26 | /*! The current heading of the robot will become this value after the command is executed. 0-359 allowed. */
27 | @property int heading;
28 |
29 | /*! The delay in ms after this command is executed before the next command is. 0-255 allowed.*/
30 | @property int delay;
31 |
32 | /*! Convenience method for creating a command and setting the parameters in one line.
33 | * @param heading The heading the command will be initialized with.
34 | * @param delay The delay the command will be initialized with
35 | * @return An instance of the command with the given parameters.
36 | */
37 | + (RKMCCalibrate *) commandWithHeading:(int) heading delay:(int) delay;
38 |
39 | @end
40 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKMCComment.h:
--------------------------------------------------------------------------------
1 | //
2 | // RKMCComment.h
3 | // RobotKit
4 | //
5 | // Created by Jon Carroll on 1/27/12.
6 | // Copyright (c) 2012 Orbotix Inc. All rights reserved.
7 | //
8 |
9 | #import "RKMacroCommand.h"
10 |
11 | @interface RKMCComment : RKMacroCommand
12 |
13 | @property ( nonatomic, strong ) NSString *comment;
14 |
15 | + (RKMCComment *) commandWithComment:(NSString *) comment;
16 |
17 | @end
18 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKMCDelay.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCDelay.h
3 | // MacroLab
4 | //
5 | // Created by Jon Carroll on 9/12/11.
6 | // Copyright (c) 2011 Orbotix, Inc. All rights reserved.
7 | //
8 |
9 | #import "RKMacroCommand.h"
10 |
11 | /*!
12 | * @brief A command for adding a delay between commands
13 | *
14 | * This command will allow you to add a delay between commands greater than the 255 ms
15 | * delay limit on most commands.
16 | * Allowed values:
17 | * delay 0-65,535
18 | */
19 | @interface RKMCDelay : RKMacroCommand {
20 | int delay;
21 | }
22 |
23 | /*! Delay in ms associated with this command. 0-65,535 allowed. */
24 | @property int delay;
25 |
26 | /*! Convenience method for creating a command and setting the parameters in one line.
27 | * @param delay The delay the command will be initialized with.
28 | * @return An instance of the command with the given parameters.
29 | */
30 | + (RKMCDelay *) commandWithDelay:(int) delay;
31 |
32 | @end
33 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKMCEmit.h:
--------------------------------------------------------------------------------
1 | //
2 | // RKMCEmit.h
3 | // RobotKit
4 | //
5 | // Created by Jon Carroll on 10/30/11.
6 | // Copyright (c) 2011 Orbotix Inc. All rights reserved.
7 | //
8 |
9 | #import "RKMacroCommand.h"
10 |
11 | /*!
12 | * @brief Command to cause an asyncronous emit from the ball
13 | *
14 | * Command that will cause the ball to generate an asyncronous emit command
15 | * when the command is encountered with the specified emit identifier.
16 | * Allowed values:
17 | * identifier 0-255
18 | *
19 | * Emit identifiers 0-10 are reserved for internal SDK use, avoid using them
20 | */
21 | @interface RKMCEmit : RKMacroCommand {
22 | uint8_t emitID;
23 | }
24 |
25 | /*! The identifier that will be associated with the generated emit */
26 | @property uint8_t emitID;
27 |
28 | /*! Convenience method for creating a command and setting the parameters in one line.
29 | * @param identifier The identifier that will be associated with the emit that is generated.
30 | * @return An instance of the command with the given parameters.
31 | */
32 | + (RKMCEmit *) commandWithID:(uint8_t) identifier;
33 |
34 | @end
35 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKMCFrontLED.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCFrontLED.h
3 | // MacroLab
4 | //
5 | // Created by Jon Carroll on 9/12/11.
6 | // Copyright (c) 2011 Orbotix, Inc. All rights reserved.
7 | //
8 |
9 | #import "RKMacroCommand.h"
10 |
11 | /*!
12 | * @brief Command to control the Back LED on the robot
13 | *
14 | * Used to control the intensity of the Back LED on the robot
15 | * Allowed values:
16 | * intensity 0.0-1.0
17 | * delay 0-255
18 | */
19 | @interface RKMCFrontLED : RKMacroCommand {
20 | float intensity;
21 | int delay;
22 | }
23 |
24 | /*! The intensity the back LED will be lit at. 0.0-1.0 allowed. */
25 | @property float intensity;
26 |
27 | /*! The delay between this command and the next command in ms. 0-255 allowed. */
28 | @property int delay;
29 |
30 | /*! Convenience method for creating a command and setting the parameters in one line.
31 | * @param intensity The intensity the Back LED will be lit at. 0.0-1.0 allowed.
32 | * @param delay The delay between this command and the next command. 0-255 allowed.
33 | * @return An instance of the command with the given parameters.
34 | */
35 | + (RKMCFrontLED *) commandWithIntensity:(float) intensity delay:(int) delay;
36 |
37 | @end
38 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKMCGoSub.h:
--------------------------------------------------------------------------------
1 | //
2 | // RKMCGoSub.h
3 | // RobotKit
4 | //
5 | // Created by Jon Carroll on 1/27/12.
6 | // Copyright (c) 2012 Orbotix Inc. All rights reserved.
7 | //
8 |
9 | #import "RKMacroCommand.h"
10 |
11 | /*!
12 | * @brief Allows you to execute another macro inline inside of a macro
13 | *
14 | * Allows execution of a macro inside of another macro.
15 | * After the other macro execution has finished execution of the
16 | * macro that issued the gosub command will continue.
17 | * You can only GoSub 1 macro deep outside of the main main macro executing.
18 | * GoSub commands inside a streaming macro (id 254) will be ignored.
19 | */
20 | @interface RKMCGoSub : RKMacroCommand {
21 | uint8_t macroID;
22 | }
23 |
24 | /*! The identifier of the macro that should be executed inline. 0-253, 255 allowed */
25 | @property uint8_t macroID;
26 |
27 | /*! Convenience method for creating a command and setting the parameters in one line.
28 | * @param identifier The identifier of the macro that should be executed inline.
29 | * @return An instance of the command with the given parameters.
30 | */
31 | + (RKMCGoSub *) commandWithID:(uint8_t) identifier;
32 |
33 | @end
34 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKMCGoTo.h:
--------------------------------------------------------------------------------
1 | //
2 | // RKMCGoTo.h
3 | // RobotKit
4 | //
5 | // Created by Jon Carroll on 11/10/11.
6 | // Copyright (c) 2011 Orbotix Inc. All rights reserved.
7 | //
8 |
9 | #import "RKMacroCommand.h"
10 |
11 | /*!
12 | * @brief Command to cause the macro exec to goto another macro
13 | *
14 | * This command can be used to chain macros togother or to loop macros.
15 | * This can be used in RKMacroObjectModeNormal to loop by using macroID 255.
16 | * This command cannot be used in RKMacroObjectModeCachedStreaming.
17 | * This command will not allow you to goto the streaming macro (id 254).
18 | * Allowed values:
19 | * macroID 0-253, 255
20 | */
21 | @interface RKMCGoTo : RKMacroCommand {
22 | uint8_t macroID;
23 | }
24 |
25 | /*! The identifier of the macro execution should continue at the beginning of. 0-253, 255 allowed */
26 | @property uint8_t macroID;
27 |
28 | /*! Convenience method for creating a command and setting the parameters in one line.
29 | * @param identifier The identifier of the macro that execution should continue at the beginning of.
30 | * @return An instance of the command with the given parameters.
31 | */
32 | + (RKMCGoTo *) commandWithID:(uint8_t) identifier;
33 |
34 | @end
35 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKMCLoopEnd.h:
--------------------------------------------------------------------------------
1 | //
2 | // RKMCLoopEnd.h
3 | // RobotKit
4 | //
5 | // Created by Jon Carroll on 1/27/12.
6 | // Copyright (c) 2012 Orbotix Inc. All rights reserved.
7 | //
8 |
9 | #import "RKMacroCommand.h"
10 |
11 | /*!
12 | * @brief Command to mark the end of a loop
13 | *
14 | * Placed after a RKMCLoopFor command to mark the end of a loop
15 | */
16 | @interface RKMCLoopEnd : RKMacroCommand
17 |
18 | /*! Convenience method for creating a command and setting the parameters in one line.
19 | * @return An instance of the command with the given parameters.
20 | */
21 | + (RKMCLoopEnd *) command;
22 |
23 | @end
24 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKMCLoopFor.h:
--------------------------------------------------------------------------------
1 | //
2 | // RKMCLoopFor.h
3 | // RobotKit
4 | //
5 | // Created by Jon Carroll on 1/27/12.
6 | // Copyright (c) 2012 Orbotix Inc. All rights reserved.
7 | //
8 |
9 | #import "RKMacroCommand.h"
10 |
11 | /*!
12 | * @brief A command to mark the beginning of a loop
13 | *
14 | * Place command at the beginning of a set of commands to loop.
15 | * Place a RKMCLoopEnd command at the end of the commands to loop.
16 | */
17 | @interface RKMCLoopFor : RKMacroCommand {
18 | uint8_t repeats;
19 | }
20 |
21 | /*! Number of times to loop */
22 | @property uint8_t repeats;
23 |
24 | /*! Convenience method for creating a command and setting the parameters in one line.
25 | * @param repeats The number of times the loop will repeat
26 | * @return An instance of the command with the given parameters.
27 | */
28 | + (RKMCLoopFor *) commandWithRepeats:(uint8_t) repeats;
29 |
30 | @end
31 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKMCRGB.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCRGB.h
3 | // MacroLab
4 | //
5 | // Created by Jon Carroll on 9/11/11.
6 | // Copyright (c) 2011 Orbotix, Inc. All rights reserved.
7 | //
8 |
9 | #import "RKMacroCommand.h"
10 |
11 |
12 | /*!
13 | * @brief Command to control the RGB LED inside the robot
14 | *
15 | * This command controls the output of the RGB LED inside of the robot
16 | * Allowed values:
17 | * red 0.0-1.0
18 | * green 0.0-1.0
19 | * blue 0.0-1.0
20 | * delay 0-255
21 | */
22 | @interface RKMCRGB : RKMacroCommand {
23 | float red;
24 | float green;
25 | float blue;
26 | int delay;
27 | }
28 |
29 | /*! The intensity of the red LED. 0.0-1.0 allowed. */
30 | @property float red;
31 |
32 | /*! The intensity of the green LED. 0.0-1.0 allowed. */
33 | @property float green;
34 |
35 | /*! The intensity of the blue LED. 0.0-1.0 allowed. */
36 | @property float blue;
37 |
38 | /*! The delay between this command and the previous command. 0-255 allowed. */
39 | @property int delay;
40 |
41 | /*! Convenience method for creating a command and setting the parameters in one line.
42 | * @param red The intensity of the red LED. 0.0-1.0 allowed.
43 | * @param green The intensity of the green LED. 0.0-1.0 allowed.
44 | * @param blue The intensity of the blue LED. 0.0-1.0 allowed.
45 | * @param delay The delay between this command and the next command. 0-255 allowed.
46 | * @return An instance of the command with the given parameters.
47 | */
48 | + (RKMCRGB *) commandWithRed:(float) red green:(float) green blue:(float) blue delay:(int) delay;
49 |
50 | @end
51 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKMCRGBSD2.h:
--------------------------------------------------------------------------------
1 | //
2 | // RKMCRGBSD2.h
3 | // RobotKit
4 | //
5 | // Created by Jon Carroll on 10/28/11.
6 | // Copyright (c) 2011 Orbotix Inc. All rights reserved.
7 | //
8 |
9 | #import "RKMacroCommand.h"
10 |
11 | /*!
12 | * @brief Command to control the RGB LED inside the robot using the System Delay 2 variable
13 | *
14 | * This command controls the output of the RGB LED inside of the robot.
15 | * A delay will be automatically added after the command that will be equal to the current
16 | * value of the system delay 2 variable. This can be set with the RKMCSD2 command.
17 | * Allowed values:
18 | * red 0.0-1.0
19 | * green 0.0-1.0
20 | * blue 0.0-1.0
21 | */
22 | @interface RKMCRGBSD2 : RKMacroCommand {
23 | float red;
24 | float green;
25 | float blue;
26 | }
27 |
28 | /*! The intensity of the red LED. 0.0-1.0 allowed. */
29 | @property float red;
30 |
31 | /*! The intensity of the green LED. 0.0-1.0 allowed. */
32 | @property float green;
33 |
34 | /*! The intensity of the blue LED. 0.0-1.0 allowed. */
35 | @property float blue;
36 |
37 | /*! Convenience method for creating a command and setting the parameters in one line.
38 | * @param red The intensity of the red LED. 0.0-1.0 allowed.
39 | * @param green The intensity of the green LED. 0.0-1.0 allowed.
40 | * @param blue The intensity of the blue LED. 0.0-1.0 allowed.
41 | * @return An instance of the command with the given parameters.
42 | */
43 | + (RKMCRGBSD2 *) commandWithRed:(float) red green:(float) green blue:(float) blue;
44 |
45 | @end
46 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKMCRawMotor.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCRawMotor.h
3 | // MacroLab
4 | //
5 | // Created by Jon Carroll on 10/13/11.
6 | // Copyright (c) 2011 Orbotix, Inc. All rights reserved.
7 | //
8 |
9 | #import "RKMacroCommand.h"
10 |
11 | /*!
12 | * @brief A raw motor command to manually control the motors
13 | *
14 | * A command to manually control the motors in the robot
15 | */
16 | @interface RKMCRawMotor : RKMacroCommand {
17 | int leftMode;
18 | int leftSpeed;
19 | int rightMode;
20 | int rightSpeed;
21 | int delay;
22 | }
23 |
24 | /*! The mode the left motor is in */
25 | @property int leftMode;
26 |
27 | /*! The speed of the left motor */
28 | @property int leftSpeed;
29 |
30 | /*! The mode of the right motor */
31 | @property int rightMode;
32 |
33 | /*! The speed of the right motor */
34 | @property int rightSpeed;
35 |
36 | /*! The delay after this command before the next command, 0-255 allowed */
37 | @property int delay;
38 |
39 | /*! Convenience method for creating a command and setting the parameters in one line.
40 | * @param leftMode The mode of the left motor
41 | * @param leftSpeed The speed of the left motor
42 | * @param rightMode The mode of the right motor
43 | * @param rightSpeed The speed of the right motor
44 | * @param delay The delay after this command before the next one
45 | * @return An instance of the command with the given parameters.
46 | */
47 | + (RKMCRawMotor *) commandWithLeftMode:(int) leftMode leftSpeed:(int) leftSpeed
48 | rightMode:(int) rightMode rightSpeed:(int) rightSpeed delay:(int) delay;
49 |
50 |
51 | @end
52 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKMCRoll.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCRoll.h
3 | // MacroLab
4 | //
5 | // Created by Jon Carroll on 9/11/11.
6 | // Copyright (c) 2011 Orbotix, Inc. All rights reserved.
7 | //
8 |
9 | #import "RKMacroCommand.h"
10 |
11 | /*!
12 | * @brief Command to roll the robot at a given heading and speed
13 | *
14 | * This command will cause the robot to roll at the given heading and speed.
15 | * The robot will continue rolling until a roll command with a speed of 0.0
16 | * is issued.
17 | * Allowed values:
18 | * speed 0.0-1.0
19 | * heading 0-359
20 | * delay 0-255
21 | */
22 | @interface RKMCRoll : RKMacroCommand {
23 | float speed;
24 | int heading;
25 | int delay;
26 | }
27 |
28 | /*! The speed at which the robot will roll. 0.0-1.0 allowed. */
29 | @property float speed;
30 |
31 | /*! The direction the robot will roll in. 0-359 allowed. */
32 | @property int heading;
33 |
34 | /*! The delay between this command and the next command. 0-255 allowed. */
35 | @property int delay;
36 |
37 | /*! Convenience method for creating a command and setting the parameters in one line.
38 | * @param speed The speed at which the robot will roll. 0.0-1.0 allowed.
39 | * @param heading The direction the robot will roll in. 0-359 allowed.
40 | * @param delay The delay between this command and the next command. 0-255 allowed.
41 | * @return An instance of the command with the given parameters.
42 | */
43 | + (RKMCRoll *) commandWithSpeed:(float) speed heading:(int) heading delay:(int) delay;
44 |
45 | @end
46 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKMCRollSD1.h:
--------------------------------------------------------------------------------
1 | //
2 | // RKMCRollSD1.h
3 | // RobotKit
4 | //
5 | // Created by Jon Carroll on 10/28/11.
6 | // Copyright (c) 2011 Orbotix Inc. All rights reserved.
7 | //
8 |
9 | #import "RKMacroCommand.h"
10 |
11 | /*!
12 | * @brief Command to roll the robot at a given heading and speed using system delay 1
13 | *
14 | * This command will cause the robot to roll at the given heading and speed.
15 | * The robot will continue rolling until a roll command with a speed of 0.0
16 | * is issued. A delay will be automatically added after this command with the value
17 | * specified in the system delay 1 variable. This can be set using the MCSD1 command.
18 | * Allowed values:
19 | * speed 0.0-1.0
20 | * heading 0-359
21 | */
22 | @interface RKMCRollSD1 : RKMacroCommand {
23 | float speed;
24 | int heading;
25 | }
26 |
27 | /*! The speed at which the robot will roll. 0.0-1.0 allowed. */
28 | @property float speed;
29 |
30 | /*! The direction the robot will roll in. 0-359 allowed. */
31 | @property int heading;
32 |
33 | /*! Convenience method for creating a command and setting the parameters in one line.
34 | * @param speed The speed at which the robot will roll. 0.0-1.0 allowed.
35 | * @param heading The direction the robot will roll in. 0-359 allowed.
36 | * @return An instance of the command with the given parameters.
37 | */
38 | + (RKMCRollSD1 *) commandWithSpeed:(float) speed heading:(int) heading;
39 |
40 | @end
41 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKMCRollSD1SPD1.h:
--------------------------------------------------------------------------------
1 | //
2 | // RKMCRollSD1SPD1.h
3 | // RobotKit
4 | //
5 | // Created by Jon Carroll on 10/28/11.
6 | // Copyright (c) 2011 Orbotix Inc. All rights reserved.
7 | //
8 |
9 | #import "RKMacroCommand.h"
10 |
11 | /*!
12 | * @brief Command to roll the robot at a given heading using system speed 1 and system delay 1
13 | *
14 | * This command will cause the robot to roll at the given heading. The system speed 1
15 | * variable will be used with this command. It can be set using the RKMCSPD1 command.
16 | * The robot will continue rolling until a roll command with a speed of 0.0
17 | * is issued. A delay will be automatically added after this command with the value
18 | * specified in the system delay 1 variable. This can be set using the MCSD1 command.
19 | * Allowed values:
20 | * heading 0-359
21 | */
22 | @interface RKMCRollSD1SPD1 : RKMacroCommand {
23 | int heading;
24 | }
25 |
26 | /*! The direction the robot will roll in. 0-359 allowed. */
27 | @property int heading;
28 |
29 | /*! Convenience method for creating a command and setting the parameters in one line.
30 | * @param heading The direction the robot will roll in. 0-359 allowed.
31 | * @return An instance of the command with the given parameters.
32 | */
33 | + (RKMCRollSD1SPD1 *) commandWithHeading:(int) heading;
34 |
35 | @end
36 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKMCRollSD1SPD2.h:
--------------------------------------------------------------------------------
1 | //
2 | // RKMCRollSD1SPD2.h
3 | // RobotKit
4 | //
5 | // Created by Jon Carroll on 10/28/11.
6 | // Copyright (c) 2011 Orbotix Inc. All rights reserved.
7 | //
8 |
9 | #import "RKMacroCommand.h"
10 |
11 | /*!
12 | * @brief Command to roll the robot at a given heading using system speed 2 and system delay 1
13 | *
14 | * This command will cause the robot to roll at the given heading. The system speed 2
15 | * variable will be used with this command. It can be set using the RKMCSPD2 command.
16 | * The robot will continue rolling until a roll command with a speed of 0.0
17 | * is issued. A delay will be automatically added after this command with the value
18 | * specified in the system delay 1 variable. This can be set using the MCSD1 command.
19 | * Allowed values:
20 | * heading 0-359
21 | */
22 | @interface RKMCRollSD1SPD2 : RKMacroCommand {
23 | int heading;
24 | }
25 |
26 | /*! The direction the robot will roll in. 0-359 allowed. */
27 | @property int heading;
28 |
29 | /*! Convenience method for creating a command and setting the parameters in one line.
30 | * @param heading The direction the robot will roll in. 0-359 allowed.
31 | * @return An instance of the command with the given parameters.
32 | */
33 | + (RKMCRollSD1SPD2 *) commandWithHeading:(int) heading;
34 |
35 | @end
36 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKMCRotateOverTime.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCRotateOverTime.h
3 | // MacroLab
4 | //
5 | // Created by Jon Carroll on 9/21/11.
6 | // Copyright (c) 2011 Orbotix, Inc. All rights reserved.
7 | //
8 |
9 | #import "RKMacroCommand.h"
10 |
11 |
12 | /*!
13 | * @brief This command rotates the robot over a given time.
14 | *
15 | * This command will cause the robot to rotate inside the shell over the specified delay.
16 | * The robot can rotate at about 360 degrees per second.
17 | * Allowed values:
18 | * delay 0-65,535
19 | * rotation -32,767-32,767
20 | */
21 | @interface RKMCRotateOverTime : RKMacroCommand {
22 | int delay;
23 | short rotation;
24 | }
25 |
26 | /*! The amount of time the rotation is allowed to complete. 0-65,535 allowed. */
27 | @property int delay;
28 |
29 | /*! The number of degrees the ball should rotate. -32,767-32,767 allowed */
30 | @property short rotation;
31 |
32 | /*! Convenience method for creating a command and setting the parameters in one line.
33 | * @param rotation The number of degrees the robot should rotate
34 | * @param delay The delay the command will be initialized with.
35 | * @return An instance of the command with the given parameters.
36 | */
37 | + (RKMCRotateOverTime *) commandWithRotation:(short) rotation delay:(int) delay;
38 |
39 | @end
40 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKMCRotateOverTimeSD1.h:
--------------------------------------------------------------------------------
1 | //
2 | // RKMCRotateOverTimeSD1.h
3 | // RobotKit
4 | //
5 | // Created by Jon Carroll on 2/17/12.
6 | // Copyright (c) 2012 Orbotix Inc. All rights reserved.
7 | //
8 |
9 | #import "RKMacroCommand.h"
10 |
11 | /*!
12 | * @brief This command rotates the robot over the duration current set in SD1
13 | *
14 | * This command will cause the robot to rotate inside the shell over the delay specified in SD1 @see RKMCSD1
15 | * The robot can rotate at about 360 degrees per second.
16 | * Allowed values:
17 | * rotation -32,767-32,767
18 | */
19 | @interface RKMCRotateOverTimeSD1 : RKMacroCommand {
20 | short rotation;
21 | }
22 |
23 | /*! The number of degrees the ball should rotate. -32,767-32,767 allowed */
24 | @property short rotation;
25 |
26 | /*! Convenience method for creating a command and setting the parameters in one line.
27 | * @param rotation The number of degrees the robot should rotate
28 | * @return An instance of the command with the given parameters.
29 | */
30 | + (RKMCRotateOverTimeSD1 *) commandWithRotation:(short) rotation;
31 |
32 | @end
33 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKMCRotateOverTimeSD2.h:
--------------------------------------------------------------------------------
1 | //
2 | // RKMCRotateOverTimeSD2.h
3 | // RobotKit
4 | //
5 | // Created by Jon Carroll on 2/17/12.
6 | // Copyright (c) 2012 Orbotix Inc. All rights reserved.
7 | //
8 |
9 | #import "RKMacroCommand.h"
10 |
11 | /*!
12 | * @brief This command rotates the robot over the duration current set in SD2
13 | *
14 | * This command will cause the robot to rotate inside the shell over the delay specified in SD2 @see RKMCSD2
15 | * The robot can rotate at about 360 degrees per second.
16 | * Allowed values:
17 | * rotation -32,767-32,767
18 | */
19 | @interface RKMCRotateOverTimeSD2 : RKMacroCommand {
20 | short rotation;
21 | }
22 |
23 | /*! The number of degrees the ball should rotate. -32,767-32,767 allowed */
24 | @property short rotation;
25 |
26 | /*! Convenience method for creating a command and setting the parameters in one line.
27 | * @param rotation The number of degrees the robot should rotate
28 | * @return An instance of the command with the given parameters.
29 | */
30 | + (RKMCRotateOverTimeSD2 *) commandWithRotation:(short) rotation;
31 |
32 | @end
33 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKMCRotationRate.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCRotationRate.h
3 | // MacroLab
4 | //
5 | // Created by Jon Carroll on 9/12/11.
6 | // Copyright (c) 2011 Orbotix, Inc. All rights reserved.
7 | //
8 |
9 | #import "RKMacroCommand.h"
10 |
11 |
12 | /*!
13 | * @brief Sets the rotation rate of the ball
14 | *
15 | * The command will immmedately set the rotation rate of the ball without a delay.
16 | * Allowed values:
17 | * rate 0.0-1.0
18 | */
19 | @interface RKMCRotationRate : RKMacroCommand {
20 | float rate;
21 | }
22 |
23 | /*! The rotation rate to be set. 0.0-1.0 allowed. */
24 | @property float rate;
25 |
26 | /*! Convenience method for creating a command and setting the parameters in one line.
27 | * @param rate The rotation rate to set. 0.0-1.0 allowed.
28 | * @return An instance of the command with the given parameters.
29 | */
30 | + (RKMCRotationRate *) commandWithRate:(float) rate;
31 |
32 | @end
33 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKMCSD1.h:
--------------------------------------------------------------------------------
1 | //
2 | // RKMCSD1.h
3 | // RobotKit
4 | //
5 | // Created by Jon Carroll on 10/28/11.
6 | // Copyright (c) 2011 Orbotix Inc. All rights reserved.
7 | //
8 |
9 | #import "RKMacroCommand.h"
10 |
11 | /*!
12 | * @brief Sets the system delay 1 variable used by roll commands
13 | *
14 | * This command sets the system delay 1 variable that is used by roll
15 | * commands that don't have a specified delay.
16 | * Allowed values:
17 | * delay 0-65,535
18 | */
19 | @interface RKMCSD1 : RKMacroCommand {
20 | int delay;
21 | }
22 |
23 | /*! The delay associated with the command. 0-65,353 allowed. */
24 | @property int delay;
25 |
26 | /*! Convenience method for creating a command and setting the parameters in one line.
27 | * @param delay The delay the command will be initialized with.
28 | * @return An instance of the command with the given parameters.
29 | */
30 | + (RKMCSD1 *) commandWithDelay:(int) delay;
31 |
32 | @end
33 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKMCSD2.h:
--------------------------------------------------------------------------------
1 | //
2 | // RKMCSD2.h
3 | // RobotKit
4 | //
5 | // Created by Jon Carroll on 10/28/11.
6 | // Copyright (c) 2011 Orbotix Inc. All rights reserved.
7 | //
8 |
9 | #import "RKMacroCommand.h"
10 |
11 | /*!
12 | * @brief Sets the system delay 2 variable used by RGB commands
13 | *
14 | * This command sets the system delay 1 variable that is used by RGB
15 | * commands that don't have a specified delay.
16 | * Allowed values:
17 | * delay 0-65,535
18 | */
19 | @interface RKMCSD2 : RKMacroCommand {
20 | int delay;
21 | }
22 |
23 | /*! The delay associated with the command. 0-63,353 allowed */
24 | @property int delay;
25 |
26 | /*! Convenience method for creating a command and setting the parameters in one line.
27 | * @param delay The delay the command will be initialized with.
28 | * @return An instance of the command with the given parameters.
29 | */
30 | + (RKMCSD2 *) commandWithDelay:(int) delay;
31 |
32 | @end
33 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKMCSPD1.h:
--------------------------------------------------------------------------------
1 | //
2 | // RKMCSPD1.h
3 | // RobotKit
4 | //
5 | // Created by Jon Carroll on 10/28/11.
6 | // Copyright (c) 2011 Orbotix Inc. All rights reserved.
7 | //
8 |
9 | #import "RKMacroCommand.h"
10 |
11 | /*!
12 | * @brief Sets the system speed 1 variable
13 | *
14 | * This command sets the system speed 1 variable used by roll commands
15 | * without a speed.
16 | * Allowed values:
17 | * speed 0.0-1.0
18 | */
19 | @interface RKMCSPD1 : RKMacroCommand {
20 | float speed;
21 | }
22 |
23 | /*! The speed associated with the command. 0.0-1.0 allowed. */
24 | @property float speed;
25 |
26 | /*! Convenience method for creating a command and setting the parameters in one line.
27 | * @param rate The speed to set. 0.0-1.0 allowed.
28 | * @return An instance of the command with the given parameters.
29 | */
30 | + (RKMCSPD1 *) commandWithSpeed:(float) speed;
31 |
32 | @end
33 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKMCSPD2.h:
--------------------------------------------------------------------------------
1 | //
2 | // RKMCSPD2.h
3 | // RobotKit
4 | //
5 | // Created by Jon Carroll on 10/28/11.
6 | // Copyright (c) 2011 Orbotix Inc. All rights reserved.
7 | //
8 |
9 | #import "RKMacroCommand.h"
10 |
11 | /*!
12 | * @brief Sets the system speed 2 variable
13 | *
14 | * This command sets the system speed 2 variable used by roll commands
15 | * without a speed.
16 | * Allowed values:
17 | * speed 0.0-1.0
18 | */
19 | @interface RKMCSPD2 : RKMacroCommand {
20 | float speed;
21 | }
22 |
23 | /*! The speed associated with the command */
24 | @property float speed;
25 |
26 | /*! Convenience method for creating a command and setting the parameters in one line.
27 | * @param rate The speed to set. 0.0-1.0 allowed.
28 | * @return An instance of the command with the given parameters.
29 | */
30 | + (RKMCSPD2 *) commandWithSpeed:(float) speed;
31 |
32 | @end
33 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKMCSleep.h:
--------------------------------------------------------------------------------
1 | //
2 | // RKMCSleep.h
3 | // RobotKit
4 | //
5 | // Created by Jon Carroll on 11/18/11.
6 | // Copyright (c) 2011 Orbotix Inc. All rights reserved.
7 | //
8 |
9 | #import "RKMacroCommand.h"
10 |
11 | /*!
12 | * @brief Command to put the robot to sleep
13 | *
14 | * This command will put the robot to sleep
15 | */
16 | @interface RKMCSleep : RKMacroCommand {
17 | int delay;
18 | }
19 |
20 | /*! The delay associated with the command. */
21 | @property int delay;
22 |
23 | /*! Convenience method for creating a command and setting the parameters in one line.
24 | * @param delay The delay associated with the command
25 | * @return An instance of the command with the given parameters.
26 | */
27 | + (RKMCSleep *) commandWithDelay:(int) delay;
28 |
29 | @end
30 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKMCSlew.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCSlew.h
3 | // MacroLab
4 | //
5 | // Created by Jon Carroll on 9/12/11.
6 | // Copyright (c) 2011 Orbotix, Inc. All rights reserved.
7 | //
8 |
9 | #import "RKMacroCommand.h"
10 |
11 | /*!
12 | * @brief Command to fade the RGB LED in the robot to the specified color
13 | *
14 | * This command controls the output of the RGB LED inside of the robot by
15 | * fading from the current color to the specified color. You will usually
16 | * want to follow this command with a RKMCDelay command of equal length.
17 | * Allowed values:
18 | * red 0.0-1.0
19 | * green 0.0-1.0
20 | * blue 0.0-1.0
21 | * delay 0-65,353
22 | */
23 | @interface RKMCSlew : RKMacroCommand {
24 | float red;
25 | float green;
26 | float blue;
27 | int delay;
28 | }
29 |
30 | /*! The intensity of the red LED. 0.0-1.0 allowed. */
31 | @property float red;
32 |
33 | /*! The intensity of the green LED. 0.0-1.0 allowed. */
34 | @property float green;
35 |
36 | /*! The intensity of the blue LED. 0.0-1.0 allowed. */
37 | @property float blue;
38 |
39 | /*! The duration of the fade in ms. */
40 | @property int delay;
41 |
42 | /*! Convenience method for creating a command and setting the parameters in one line.
43 | * @param red The intensity of the red LED. 0.0-1.0 allowed.
44 | * @param green The intensity of the green LED. 0.0-1.0 allowed.
45 | * @param blue The intensity of the blue LED. 0.0-1.0 allowed.
46 | * @param delay The duration of the fade
47 | * @return An instance of the command with the given parameters.
48 | */
49 | + (RKMCSlew *) commandWithRed:(float) red green:(float) green blue:(float) blue delay:(int) delay;
50 |
51 | @end
52 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKMCStabilization.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCStabilization.h
3 | // MacroLab
4 | //
5 | // Created by Jon Carroll on 10/13/11.
6 | // Copyright (c) 2011 Orbotix, Inc. All rights reserved.
7 | //
8 |
9 | #import "RKMacroCommand.h"
10 |
11 | /*!
12 | * @brief Command to turn stabilization on/off
13 | *
14 | * This command will turn stabilization on or off with a given delay after the command
15 | * Allowed values:
16 | * setting 0-1
17 | * delay 0-255
18 | */
19 | @interface RKMCStabilization : RKMacroCommand {
20 | int setting;
21 | int delay;
22 | }
23 |
24 | /*! The stabilization setting associated with the command 0=off 1=on. */
25 | @property int setting;
26 |
27 | /*! The delay after this command before the next command is executed. 0-255 allowed. */
28 | @property int delay;
29 |
30 | /*! Convenience method for creating a command and setting the parameters in one line.
31 | * @param setting The setting associated with the command
32 | * @param delay The delay associated with this command
33 | * @return An instance of the command with the given parameters.
34 | */
35 | + (RKMCStabilization *) commandWithSetting:(int) setting delay:(int) delay;
36 |
37 | @end
38 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKMCStop.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCStop.h
3 | // MacroLab
4 | //
5 | // Created by Adam Wilson on 5/6/13.
6 | // Copyright (c) 2011 Orbotix, Inc. All rights reserved.
7 | //
8 |
9 | #import "RKMacroCommand.h"
10 |
11 | /*!
12 | * @brief Command to send a Stop command to Sphero without altering heading
13 | *
14 | *
15 | * Allowed values:
16 | * speed 0.0-1.0
17 | * delay 0-255
18 | */
19 | @interface RKMCStop : RKMacroCommand {
20 | float speed;
21 | int delay;
22 | }
23 |
24 | /*! The Speed to set the robot to, 0 by default: 0.0-1.0 allowed. */
25 | @property float speed;
26 |
27 | /*! The delay between this command and the next command in ms. 0-255 allowed. */
28 | @property int delay;
29 |
30 | /*! Convenience method for creating a command and setting the parameters in one line.
31 | * @param speed The Speed to set the robot to, 0 by default: 0.0-1.0 allowed.
32 | * @param delay The delay between this command and the next command. 0-255 allowed.
33 | * @return An instance of the command with the given parameters.
34 | */
35 | +(RKMCStop*)commandWithSpeed:(float)speed delay:(int)delay;
36 |
37 | @end
38 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKMCStreamEnd.h:
--------------------------------------------------------------------------------
1 | //
2 | // RKMCStreamEnd.h
3 | // RobotKit
4 | //
5 | // Created by Jon Carroll on 11/4/11.
6 | // Copyright (c) 2011 Orbotix Inc. All rights reserved.
7 | //
8 |
9 | #import "RKMacroCommand.h"
10 |
11 | /*!
12 | * @brief Command to indicate the end of a streaming macro (id 254)
13 | *
14 | * Used in a streaming macro to indicate that a stream
15 | */
16 | @interface RKMCStreamEnd : RKMacroCommand
17 |
18 | /*! Convenience method for creating a command and setting the parameters in one line.
19 | * @return An instance of the command with the given parameters.
20 | */
21 | + (RKMCStreamEnd *) command;
22 |
23 | @end
24 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKMCWaitUntilStop.h:
--------------------------------------------------------------------------------
1 | //
2 | // RKMCWaitUntilStop.h
3 | // RobotKit
4 | //
5 | // Created by Jon Carroll on 11/10/11.
6 | // Copyright (c) 2011 Orbotix Inc. All rights reserved.
7 | //
8 |
9 | #import "RKMacroCommand.h"
10 |
11 | /*!
12 | * @brief Command to cause the robot to wait until it has come to a complete stop
13 | *
14 | * Use this command after a roll command with a speed of 0.0. Macro execution
15 | * will not continue until the robot has come to a complete stop or the time
16 | * specified by delay has expired.
17 | * Allowed values:
18 | * delay 0-65,353
19 | */
20 | @interface RKMCWaitUntilStop : RKMacroCommand {
21 | int delay;
22 | }
23 |
24 | /*! The amount of time to wait for the robot to come to a complete stop */
25 | @property int delay;
26 |
27 | /*! Convenience method for creating a command and setting the parameters in one line.
28 | * @param delay The delay associated with the command. 0-65,353 allowed.
29 | * @return An instance of the command with the given parameters.
30 | */
31 | + (RKMCWaitUntilStop *) commandWithDelay:(int) delay;
32 |
33 | @end
34 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKMacroCommand.h:
--------------------------------------------------------------------------------
1 | #import
2 |
3 | @interface RKMacroCommand : NSObject
4 |
5 | - (RKMacroCommand *)initWithBytes:(NSData *)data;
6 | - (NSString *)description;
7 | - (NSData *)getByteRepresentation;
8 | - (int)length;
9 | - (NSString *)name;
10 |
11 | @end
12 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKMacroEmitMarker.h:
--------------------------------------------------------------------------------
1 | #import
2 |
3 | @interface RKMacroEmitMarker : RKAsyncMessage
4 |
5 | @property (nonatomic, assign, readonly) unsigned char markerId;
6 | @property (nonatomic, assign, readonly) unsigned char macroId;
7 | @property (nonatomic, assign, readonly) unsigned short macroLineNumber;
8 |
9 | @end
10 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKMacroObject+Compatibility.h:
--------------------------------------------------------------------------------
1 | //
2 | // RKMacroObject+Compatibility.h
3 | // RobotCompatibilityKit
4 | //
5 | // Created by Jack Thorp on 7/9/14.
6 | // Copyright (c) 2014 Orbotix Inc. All rights reserved.
7 | //
8 |
9 | #import "RKMacroObject.h"
10 |
11 | @interface RKMacroObject (Compatibility)
12 |
13 | - (void)playMacro;
14 |
15 | @end
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKMacroPlayer.h:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2014 Orbotix Inc. All rights reserved.
3 | //
4 |
5 | #import
6 | #import
7 | #import "RKMacroObject.h"
8 |
9 | @interface RKMacroPlayer : NSObject
10 |
11 | - (id)initWithRobot:(id)robot;
12 | - (void)play:(RKMacroObject *)macroObj;
13 | - (void)stop;
14 |
15 | @end
16 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKOrbBasicAbortCommand.h:
--------------------------------------------------------------------------------
1 | #import
2 |
3 | @interface RKOrbBasicAbortCommand : RKDeviceCommand
4 |
5 | @end
6 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKOrbBasicAbortResponse.h:
--------------------------------------------------------------------------------
1 | #import
2 |
3 | @interface RKOrbBasicAbortResponse : RKDeviceResponse
4 |
5 | @end
6 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKOrbBasicAppendFragmentCommand.h:
--------------------------------------------------------------------------------
1 | #import
2 |
3 | @interface RKOrbBasicAppendFragmentCommand : RKDeviceCommand
4 |
5 | - (nullable instancetype)initWithStorageType:(RKOrbBasicStorageType)type fragment:(nonnull NSData *)frag;
6 |
7 | @end
8 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKOrbBasicAppendFragmentResponse.h:
--------------------------------------------------------------------------------
1 | #import
2 |
3 | @interface RKOrbBasicAppendFragmentResponse : RKDeviceResponse
4 |
5 | @end
6 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKOrbBasicEraseStorageCommand.h:
--------------------------------------------------------------------------------
1 | #import
2 |
3 | @interface RKOrbBasicEraseStorageCommand : RKDeviceCommand
4 |
5 | - (nullable instancetype)initWithStorageType:(RKOrbBasicStorageType)storage;
6 |
7 | @end
8 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKOrbBasicEraseStorageResponse.h:
--------------------------------------------------------------------------------
1 | #import
2 |
3 | @interface RKOrbBasicEraseStorageResponse : RKDeviceResponse
4 |
5 | @end
6 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKOrbBasicErrorASCII.h:
--------------------------------------------------------------------------------
1 | #import
2 |
3 | @interface RKOrbBasicErrorASCII : RKAsyncMessage
4 |
5 | @property (nonatomic, strong, readonly, nonnull) NSString *error;
6 |
7 | @end
8 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKOrbBasicErrorBinary.h:
--------------------------------------------------------------------------------
1 | #import
2 |
3 | @interface RKOrbBasicErrorBinary : RKAsyncMessage
4 |
5 | @end
6 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKOrbBasicExecuteCommand.h:
--------------------------------------------------------------------------------
1 | #import
2 |
3 | @interface RKOrbBasicExecuteCommand : RKDeviceCommand
4 |
5 | - (nullable instancetype)initWithStorageType:(RKOrbBasicStorageType)storageType startLine:(unsigned short)startLine;
6 |
7 | @end
8 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKOrbBasicExecuteResponse.h:
--------------------------------------------------------------------------------
1 | #import
2 |
3 | @interface RKOrbBasicExecuteResponse : RKDeviceResponse
4 |
5 | @end
6 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKOrbBasicPrintMessage.h:
--------------------------------------------------------------------------------
1 | #import
2 |
3 | @interface RKOrbBasicPrintMessage : RKAsyncMessage
4 |
5 | @property (nonatomic, strong, readonly, nonnull) NSString *message;
6 |
7 | @end
8 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKOvalControl.h:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2015 Orbotix Inc. All rights reserved.
3 | //
4 |
5 | #import
6 | #import
7 | #import "RKOvalDeviceBroadcast.h"
8 | #import "RKOvalErrorBroadcast.h"
9 |
10 | @class RKOvalControl;
11 |
12 | @protocol RKOvalControlDelegate
13 |
14 | - (void)ovalControlDidInitialize:(RKOvalControl *)control;
15 | - (void)ovalControl:(RKOvalControl *)control didFailToSendProgramWithMessage:(NSString *)message;
16 | - (void)ovalControlDidFinishSendingProgram:(RKOvalControl *)control;
17 | - (void)ovalControlDidResetOvm:(RKOvalControl *)control;
18 | - (void)ovalControl:(RKOvalControl *)control receivedOvalNotification:(RKOvalDeviceBroadcast *)notification;
19 | - (void)ovalControl:(RKOvalControl *)control receivedVmRuntimeError:(RKOvalErrorBroadcast *)notification;
20 |
21 | @end
22 |
23 | @interface RKOvalControl : NSObject
24 |
25 | @property (nonatomic) BOOL enableCompileReportOutput;
26 |
27 | + (instancetype)new NS_UNAVAILABLE;
28 | + (instancetype)controlWithRobot:(id)robot delegate:(id)delegate;
29 |
30 | - (instancetype)init NS_UNAVAILABLE;
31 | - (instancetype)initWithRobot:(id)robot delegate:(id)delegate;
32 |
33 | - (void)resetOvmAndLibrary:(BOOL)resetLibrary;
34 |
35 | - (void)sendOvalString:(NSString *)program;
36 | - (void)sendOvalString:(NSString *)program allowQueue:(BOOL)allowsQueue;
37 | - (void)sendOvalPrograms:(NSArray *)programs;
38 |
39 | @end
40 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKOvalDeviceBroadcast.h:
--------------------------------------------------------------------------------
1 | #import
2 |
3 | @interface RKOvalDeviceBroadcast : RKAsyncMessage
4 |
5 | @property (nonatomic, strong, nonnull) NSArray *floats;
6 | @property (nonatomic, strong, nonnull) NSArray *ints;
7 |
8 | - (nonnull NSString *)stringInterpretation;
9 |
10 | @end
11 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKOvalErrorBroadcast.h:
--------------------------------------------------------------------------------
1 | #import
2 |
3 | @interface RKOvalErrorBroadcast : RKAsyncMessage
4 |
5 | @property (nonatomic, assign, readonly) int errorCode;
6 |
7 | - (nonnull NSString *)errorDescription;
8 |
9 | @end
10 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKResetOvmCommand.h:
--------------------------------------------------------------------------------
1 | #import
2 |
3 | @interface RKResetOvmCommand : RKDeviceCommand
4 |
5 | - (nullable instancetype)initWithHardReset:(BOOL)hardReset;
6 |
7 | @end
8 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKResetOvmResponse.h:
--------------------------------------------------------------------------------
1 | #import
2 | #import
3 |
4 | @interface RKResetOvmResponse : RKDeviceResponse
5 |
6 | @end
7 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKRunMacroCommand.h:
--------------------------------------------------------------------------------
1 | #import
2 |
3 | typedef NS_ENUM(uint8_t, RKMacroIdType) {
4 | RKDeviceMacroIdFigureEight = 1,
5 | RKDeviceMacroIdSquare = 2
6 | };
7 |
8 | @interface RKRunMacroCommand : RKDeviceCommand
9 |
10 | @property (nonatomic, assign, readonly) RKMacroIdType macroId;
11 |
12 | - (instancetype)initWithId:(RKMacroIdType)identifier;
13 |
14 | @end
15 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKRunMacroResponse.h:
--------------------------------------------------------------------------------
1 | #import
2 |
3 | @interface RKRunMacroResponse : RKDeviceResponse
4 |
5 | @end
6 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKSaveMacroCommand.h:
--------------------------------------------------------------------------------
1 | #import "RKSaveTemporaryMacroCommand.h"
2 | #import
3 |
4 | @interface RKSaveMacroCommand : RKDeviceCommand
5 |
6 | - (nullable instancetype) initWithMacro:(nullable NSData *)data macroID:(uint8_t)identifier flags:(RKMacroFlags)flags delay:(NSTimeInterval)delay;
7 |
8 | @end
9 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKSaveMacroResponse.h:
--------------------------------------------------------------------------------
1 | #import
2 |
3 | @interface RKSaveMacroResponse : RKDeviceResponse
4 |
5 | @end
6 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKSaveTemporaryMacroChunkCommand.h:
--------------------------------------------------------------------------------
1 | #import
2 | #import "RKSaveTemporaryMacroCommand.h"
3 |
4 | @interface RKSaveTemporaryMacroChunkCommand : RKDeviceCommand
5 |
6 |
7 | - (nullable instancetype)initWithMacro:(nonnull NSData *)data flags:(RKMacroFlags)flags delay:(NSTimeInterval)delay isFirstChunk:(BOOL)isFirstChunk;
8 |
9 | @end
10 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKSaveTemporaryMacroChunkResponse.h:
--------------------------------------------------------------------------------
1 | #import "RKSaveTemporaryMacroResponse.h"
2 |
3 | @interface RKSaveTemporaryMacroChunkResponse : RKSaveTemporaryMacroResponse
4 |
5 | @end
6 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKSaveTemporaryMacroCommand.h:
--------------------------------------------------------------------------------
1 | #import
2 |
3 | typedef NS_OPTIONS(uint8_t, RKMacroFlags) {
4 | RKMacroFlagNone = 0x0000,
5 | RKMacroFlagMotorControl = 0x0001,
6 | RKMacroFlagExclusiveDrive = 0x0002,
7 | RKMacroFlagUseVersion3 = 0x0004,
8 | RKMacroFlagInhibitIfConnected = 0x0008,
9 | RKMacroFlagEndMarker = 0x0010,
10 | RKMacroFlagStealth = 0x0020,
11 | RKMacroFlagUnkillable = 0x0040,
12 | RKMacroFlagExtendedFlags = 0x0080
13 | };
14 |
15 | @interface RKSaveTemporaryMacroCommand : RKDeviceCommand
16 |
17 | - (nullable instancetype)initWithMacro:(nullable NSData *)data flags:(RKMacroFlags)flags delay:(NSTimeInterval)delay;
18 |
19 | @end
20 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RKSaveTemporaryMacroResponse.h:
--------------------------------------------------------------------------------
1 | #import
2 |
3 | @interface RKSaveTemporaryMacroResponse : RKDeviceResponse
4 |
5 | @end
6 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Headers/RobotLanguageKit.h:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2014 Orbotix. All rights reserved.
3 | //
4 |
5 | FOUNDATION_EXPORT double RobotLanguageKitVersionNumber;
6 |
7 | FOUNDATION_EXPORT const unsigned char RobotLanguageKitVersionString[];
8 |
9 | #pragma mark - Macros
10 | #import "RKMacroPlayer.h"
11 | #import "RKMacroObject.h"
12 | #import "RKMacroCommand.h"
13 | #import "RKAbortMacroCommand.h"
14 | #import "RKRunMacroCommand.h"
15 | #import "RKMacroEmitMarker.h"
16 |
17 | #import "RKAbortMacroResponse.h"
18 | #import "RKRunMacroResponse.h"
19 |
20 | #pragma mark - OrbBasic
21 | #import "RKOrbBasicProgram.h"
22 |
23 | #import "RKOrbBasicAbortCommand.h"
24 | #import "RKOrbBasicAbortResponse.h"
25 | #import "RKOrbBasicAppendFragmentCommand.h"
26 | #import "RKOrbBasicAppendFragmentResponse.h"
27 | #import "RKOrbBasicEraseStorageCommand.h"
28 | #import "RKOrbBasicEraseStorageResponse.h"
29 | #import "RKOrbBasicExecuteCommand.h"
30 | #import "RKOrbBasicExecuteResponse.h"
31 |
32 | #import "RKOrbBasicErrorASCII.h"
33 | #import "RKOrbBasicErrorBinary.h"
34 | #import "RKOrbBasicPrintMessage.h"
35 |
36 | #pragma mark - Compatibility
37 | #import "RKMacroObject+Compatibility.h"
38 |
39 | #pragma mark - Oval
40 | #import "RKOvalControl.h"
41 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Info.plist:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/Info.plist
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/RobotLanguageKit:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/RobotLanguageKit
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/_CodeSignature/CodeDirectory:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/_CodeSignature/CodeDirectory
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/_CodeSignature/CodeRequirements:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/_CodeSignature/CodeRequirements
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/_CodeSignature/CodeRequirements-1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/_CodeSignature/CodeRequirements-1
--------------------------------------------------------------------------------
/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/_CodeSignature/CodeSignature:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/src/RobotKit.framework/Frameworks/RobotLanguageKit.framework/_CodeSignature/CodeSignature
--------------------------------------------------------------------------------
/src/RobotKit.framework/Headers/RKDriveable.h:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2014 Orbotix Inc. All rights reserved.
3 | //
4 |
5 | #import
6 |
7 | @protocol RKDriveable
8 |
9 | -(void) calibrating:(BOOL) yn;
10 |
11 | -(void) driveWithHeading:(float) heading andVelocity:(float) velocity;
12 |
13 | -(void) rotateWithHeading:(float) heading;
14 |
15 | -(void) stop;
16 |
17 | @end
18 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Headers/RKOllie.h:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2014 Orbotix Inc. All rights reserved.
3 | //
4 |
5 | #import "RKConvenienceRobot.h"
6 |
7 | @interface RKOllie : RKConvenienceRobot
8 |
9 |
10 | @end
11 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Headers/RKRobotDiscoveryAgent.h:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2014 orbotix. All rights reserved.
3 | //
4 |
5 | #import
6 | #import
7 |
8 | /*!
9 | Discovery agent for all types of robots
10 | */
11 | @interface RKRobotDiscoveryAgent : NSObject
12 |
13 | @property (nonatomic, assign) NSUInteger maxConnectedRobots;
14 |
15 | + (RKRobotDiscoveryAgent *)sharedAgent;
16 |
17 | + (BOOL) startDiscoveryAndReturnError:(NSError **) error;
18 | - (BOOL) startDiscoveryAndReturnError:(NSError **) error;
19 | - (void)stopDiscovery;
20 |
21 | + (void)disconnectAll;
22 | - (void)disconnectAll;
23 |
24 | - (void)addNotificationObserver:(id)observer selector:(SEL)selector;
25 | - (void)removeNotificationObserver:(id)observer;
26 |
27 | - (NSOrderedSet*) connectingRobots;
28 | - (NSOrderedSet*) connectedRobots;
29 | - (NSOrderedSet*) onlineRobots;
30 |
31 | - (BOOL) isDiscovering;
32 |
33 |
34 | @end
35 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Headers/RKSphero.h:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2014 orbotix. All rights reserved.
3 | //
4 |
5 | #import "RKConvenienceRobot.h"
6 |
7 | @interface RKSphero : RKConvenienceRobot
8 |
9 | @end
10 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Headers/RobotKit.h:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2014 orbotix. All rights reserved.
3 | //
4 |
5 | #import
6 |
7 | //! Project version number for RobotKit.
8 | FOUNDATION_EXPORT double RobotKitVersionNumber;
9 |
10 | //! Project version string for RobotKit.
11 | FOUNDATION_EXPORT const unsigned char RobotKitVersionString[];
12 |
13 |
14 | #if TARGET_OS_IPHONE
15 | #import
16 | #import "RKRobotDiscoveryAgent.h"
17 | #import "RKSphero.h"
18 | #endif
19 |
20 | #import
21 | #import
22 | #import
23 |
24 | #import "RKOllie.h"
25 | #import "RKDriveable.h"
26 | #import "RKSensorControl.h"
27 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/Info.plist:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/src/RobotKit.framework/Info.plist
--------------------------------------------------------------------------------
/src/RobotKit.framework/PrivateHeaders/RobotKitPrivate.h:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2014 orbotix. All rights reserved.
3 | //
4 |
5 | #import
6 |
--------------------------------------------------------------------------------
/src/RobotKit.framework/RobotKit:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/src/RobotKit.framework/RobotKit
--------------------------------------------------------------------------------
/src/RobotKit.framework/_CodeSignature/CodeDirectory:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/src/RobotKit.framework/_CodeSignature/CodeDirectory
--------------------------------------------------------------------------------
/src/RobotKit.framework/_CodeSignature/CodeRequirements:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/src/RobotKit.framework/_CodeSignature/CodeRequirements
--------------------------------------------------------------------------------
/src/RobotKit.framework/_CodeSignature/CodeRequirements-1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/src/RobotKit.framework/_CodeSignature/CodeRequirements-1
--------------------------------------------------------------------------------
/src/RobotKit.framework/_CodeSignature/CodeSignature:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hansemannn/hyperloop-robot/4ae9c94532580d33818bce03309e87bb444c55d1/src/RobotKit.framework/_CodeSignature/CodeSignature
--------------------------------------------------------------------------------