@synapticon/motion-master-client 2.3.0-beta.0 → 6.0.0-alpha.100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/api-error.d.ts +25 -0
- package/dist/api-error.js +52 -0
- package/dist/client.d.ts +20 -0
- package/dist/client.js +37 -0
- package/dist/constants.d.ts +2 -0
- package/dist/constants.js +8 -0
- package/dist/eni.d.ts +197 -0
- package/dist/eni.js +61 -0
- package/dist/generated/Api.d.ts +1886 -0
- package/dist/generated/Api.js +1293 -0
- package/dist/generated/data-contracts.d.ts +2282 -0
- package/dist/generated/data-contracts.js +12 -0
- package/dist/generated/http-client.d.ts +60 -0
- package/dist/generated/http-client.js +171 -0
- package/dist/hex.d.ts +2 -0
- package/dist/hex.js +20 -0
- package/dist/index.d.ts +13 -7
- package/dist/index.js +20 -22
- package/dist/lan.d.ts +4 -0
- package/dist/lan.js +59 -0
- package/dist/mmpd.d.ts +53 -0
- package/dist/mmpd.js +322 -0
- package/dist/sdo.d.ts +17 -0
- package/dist/sdo.js +219 -0
- package/dist/web-socket-connection.d.ts +70 -0
- package/dist/web-socket-connection.js +237 -0
- package/dist/wire-time.d.ts +2 -0
- package/dist/wire-time.js +18 -0
- package/package.json +29 -35
- package/.vscode/launch.json +0 -23
- package/README.md +0 -118
- package/box.config.json +0 -7
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/motion-master-client-web-socket-connection.d.ts +0 -43
- package/dist/motion-master-client-web-socket-connection.d.ts.map +0 -1
- package/dist/motion-master-client-web-socket-connection.js +0 -91
- package/dist/motion-master-client-web-socket-connection.js.map +0 -1
- package/dist/motion-master-client.d.ts +0 -105
- package/dist/motion-master-client.d.ts.map +0 -1
- package/dist/motion-master-client.js +0 -348
- package/dist/motion-master-client.js.map +0 -1
- package/dist/motion-master-notification-subscribe-data.d.ts +0 -8
- package/dist/motion-master-notification-subscribe-data.d.ts.map +0 -1
- package/dist/motion-master-notification-subscribe-data.js +0 -3
- package/dist/motion-master-notification-subscribe-data.js.map +0 -1
- package/dist/motion-master-notification-web-socket-connection.d.ts +0 -56
- package/dist/motion-master-notification-web-socket-connection.d.ts.map +0 -1
- package/dist/motion-master-notification-web-socket-connection.js +0 -115
- package/dist/motion-master-notification-web-socket-connection.js.map +0 -1
- package/dist/motion-master-notification.d.ts +0 -31
- package/dist/motion-master-notification.d.ts.map +0 -1
- package/dist/motion-master-notification.js +0 -44
- package/dist/motion-master-notification.js.map +0 -1
- package/dist/util.d.ts +0 -16
- package/dist/util.d.ts.map +0 -1
- package/dist/util.js +0 -24
- package/dist/util.js.map +0 -1
- package/licenses.format.json +0 -4
- package/motion-master-client.config.json +0 -7
- package/smm_data_dic.json +0 -1213
- package/src/index.ts +0 -7
- package/src/motion-master-client-web-socket-connection.ts +0 -104
- package/src/motion-master-client.ts +0 -468
- package/src/motion-master-notification-subscribe-data.ts +0 -7
- package/src/motion-master-notification-web-socket-connection.ts +0 -143
- package/src/motion-master-notification.ts +0 -51
- package/src/util.ts +0 -22
- package/test.sh +0 -122
- package/tsconfig.json +0 -63
- package/tslint.json +0 -118
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { Observable, Subject } from 'rxjs';
|
|
2
|
-
import { IMotionMasterMessage, MotionMasterMessage } from './util';
|
|
3
|
-
export declare type RequestType = keyof MotionMasterMessage.IRequest;
|
|
4
|
-
export declare type StatusType = keyof MotionMasterMessage.IStatus;
|
|
5
|
-
export declare type SignalGeneratorType = keyof MotionMasterMessage.Request.ISetSignalGeneratorParameters;
|
|
6
|
-
export declare type ComputeAutoTuningGainsType = keyof MotionMasterMessage.Request.IComputeAutoTuningGains;
|
|
7
|
-
export declare type DeviceAddressType = number | null | undefined;
|
|
8
|
-
/**
|
|
9
|
-
* Select observable of Status message based on status type argument.
|
|
10
|
-
* @see https://www.typescriptlang.org/docs/handbook/advanced-types.html#conditional-types
|
|
11
|
-
*/
|
|
12
|
-
export declare type StatusTypeObservable<T extends StatusType> = T extends 'systemPong' ? Observable<MotionMasterMessage.Status.SystemPong> : T extends 'systemVersion' ? Observable<MotionMasterMessage.Status.SystemVersion> : T extends 'systemEvent' ? Observable<MotionMasterMessage.Status.SystemEvent> : T extends 'deviceInfo' ? Observable<MotionMasterMessage.Status.DeviceInfo> : T extends 'deviceParameterInfo' ? Observable<MotionMasterMessage.Status.DeviceParameterInfo> : T extends 'deviceParameterValues' ? Observable<MotionMasterMessage.Status.DeviceParameterValues> : T extends 'multiDeviceParameterValues' ? Observable<MotionMasterMessage.Status.MultiDeviceParameterValues> : T extends 'deviceFileList' ? Observable<MotionMasterMessage.Status.DeviceFileList> : T extends 'deviceFile' ? Observable<MotionMasterMessage.Status.DeviceFile> : T extends 'deviceEvent' ? Observable<MotionMasterMessage.Status.DeviceEvent> : T extends 'deviceFirmwareInstallation' ? Observable<MotionMasterMessage.Status.DeviceFirmwareInstallation> : T extends 'deviceLog' ? Observable<MotionMasterMessage.Status.DeviceLog> : T extends 'deviceFaultReset' ? Observable<MotionMasterMessage.Status.DeviceFaultReset> : T extends 'coggingTorqueRecording' ? Observable<MotionMasterMessage.Status.CoggingTorqueRecording> : T extends 'coggingTorqueData' ? Observable<MotionMasterMessage.Status.CoggingTorqueData> : T extends 'offsetDetection' ? Observable<MotionMasterMessage.Status.OffsetDetection> : T extends 'plantIdentification' ? Observable<MotionMasterMessage.Status.PlantIdentification> : T extends 'autoTuning' ? Observable<MotionMasterMessage.Status.AutoTuning> : T extends 'motionController' ? Observable<MotionMasterMessage.Status.MotionController> : T extends 'signalGenerator' ? Observable<MotionMasterMessage.Status.SignalGenerator> : T extends 'monitoringParameterValues' ? Observable<MotionMasterMessage.Status.MonitoringParameterValues> : T extends 'deviceStop' ? Observable<MotionMasterMessage.Status.DeviceStop> : T extends 'ethercatNetworkState' ? Observable<MotionMasterMessage.Status.EthercatNetworkState> : T extends 'narrowAngleCalibration' ? Observable<MotionMasterMessage.Status.NarrowAngleCalibration> : T extends 'systemIdentification' ? Observable<MotionMasterMessage.Status.SystemIdentification> : T extends 'circuloEncoderMagnetDistance' ? Observable<MotionMasterMessage.Status.CirculoEncoderMagnetDistance> : T extends 'circuloEncoderNarrowAngleCalibrationProcedure' ? Observable<MotionMasterMessage.Status.CirculoEncoderNarrowAngleCalibrationProcedure> : T extends 'deviceCia402State' ? Observable<MotionMasterMessage.Status.DeviceCiA402State> : T extends 'systemLog' ? Observable<MotionMasterMessage.Status.SystemLog> : T extends 'deviceSiiRestore' ? Observable<MotionMasterMessage.Status.DeviceSiiRestore> : T extends 'openLoopFieldControl' ? Observable<MotionMasterMessage.Status.OpenLoopFieldControl> : T extends 'fullAutoTuning' ? Observable<MotionMasterMessage.Status.FullAutoTuning> : T extends 'circuloEncoderConfiguration' ? Observable<MotionMasterMessage.Status.CirculoEncoderConfiguration> : T extends 'osCommand' ? Observable<MotionMasterMessage.Status.OsCommand> : Observable<any>;
|
|
13
|
-
export declare class MotionMasterClient {
|
|
14
|
-
/**
|
|
15
|
-
* Decoded message instances coming from Motion Master.
|
|
16
|
-
* @see https://github.com/protobufjs/protobuf.js#toolset Message.decode
|
|
17
|
-
*/
|
|
18
|
-
readonly input$: Subject<MotionMasterMessage>;
|
|
19
|
-
/**
|
|
20
|
-
* Message instances or objects going to Motion Master.
|
|
21
|
-
* @see https://github.com/protobufjs/protobuf.js#toolset Message.encode
|
|
22
|
-
*/
|
|
23
|
-
readonly output$: Subject<IMotionMasterMessage>;
|
|
24
|
-
requestPingSystem(messageId?: string): Observable<MotionMasterMessage.Status.SystemPong>;
|
|
25
|
-
requestGetSystemVersion(messageId?: string): Observable<MotionMasterMessage.Status.SystemVersion>;
|
|
26
|
-
requestGetDeviceInfo(messageId?: string): Observable<MotionMasterMessage.Status.DeviceInfo>;
|
|
27
|
-
requestGetDeviceParameterInfo(deviceAddress: DeviceAddressType, messageId?: string): Observable<MotionMasterMessage.Status.DeviceParameterInfo>;
|
|
28
|
-
requestGetDeviceParameterValues(deviceAddress: DeviceAddressType, parameters: MotionMasterMessage.Request.GetDeviceParameterValues.IParameter[], sendProgress?: boolean, messageId?: string): Observable<MotionMasterMessage.Status.DeviceParameterValues>;
|
|
29
|
-
requestSetDeviceParameterValues(deviceAddress: DeviceAddressType, parameterValues: MotionMasterMessage.Request.SetDeviceParameterValues.IParameterValue[], messageId?: string): Observable<MotionMasterMessage.Status.DeviceParameterValues>;
|
|
30
|
-
requestGetDeviceFileList(deviceAddress: DeviceAddressType, messageId?: string): Observable<MotionMasterMessage.Status.DeviceFileList>;
|
|
31
|
-
requestGetDeviceFile(deviceAddress: DeviceAddressType, name: string, messageId?: string): Observable<MotionMasterMessage.Status.DeviceFile>;
|
|
32
|
-
requestSetDeviceFile(deviceAddress: DeviceAddressType, name: string, content: Uint8Array, overwrite: boolean, messageId?: string): Observable<MotionMasterMessage.Status.DeviceFile>;
|
|
33
|
-
requestDeleteDeviceFile(deviceAddress: DeviceAddressType, name: string, messageId?: string): Observable<MotionMasterMessage.Status.DeviceFile>;
|
|
34
|
-
requestResetDeviceFault(deviceAddress: DeviceAddressType, messageId?: string): Observable<MotionMasterMessage.Status.DeviceFaultReset>;
|
|
35
|
-
requestStopDevice(deviceAddress: DeviceAddressType, messageId?: string): string;
|
|
36
|
-
requestStartDeviceFirmwareInstallation(deviceAddress: DeviceAddressType, firmwarePackageContent: Uint8Array, skipSiiInstallation?: boolean, messageId?: string): Observable<MotionMasterMessage.Status.DeviceFirmwareInstallation>;
|
|
37
|
-
requestGetDeviceLog(deviceAddress: DeviceAddressType, messageId?: string): Observable<MotionMasterMessage.Status.DeviceLog>;
|
|
38
|
-
requestStartCoggingTorqueRecording(deviceAddress: DeviceAddressType, skipAutoTuning: boolean, messageId?: string): Observable<MotionMasterMessage.Status.CoggingTorqueRecording>;
|
|
39
|
-
requestGetCoggingTorqueData(deviceAddress: DeviceAddressType, messageId?: string): Observable<MotionMasterMessage.Status.CoggingTorqueData>;
|
|
40
|
-
requestStartOffsetDetection(deviceAddress: DeviceAddressType, messageId?: string): Observable<MotionMasterMessage.Status.OffsetDetection>;
|
|
41
|
-
requestStartPlantIdentification(deviceAddress: DeviceAddressType, durationSeconds: number, torqueAmplitude: number, startFrequency: number, endFrequency: number, cutoffFrequency: number, messageId?: string): Observable<MotionMasterMessage.Status.PlantIdentification>;
|
|
42
|
-
requestComputePositionAutoTuningGains(deviceAddress: DeviceAddressType, positionParameters: MotionMasterMessage.Request.ComputeAutoTuningGains.IPositionParameters, messageId?: string): Observable<MotionMasterMessage.Status.AutoTuning>;
|
|
43
|
-
requestComputeVelocityAutoTuningGains(deviceAddress: DeviceAddressType, velocityParameters: MotionMasterMessage.Request.ComputeAutoTuningGains.IVelocityParameters, messageId?: string): Observable<MotionMasterMessage.Status.AutoTuning>;
|
|
44
|
-
requestComputeFullAutoTuningGains(deviceAddress: DeviceAddressType, type: MotionMasterMessage.Request.ComputeFullAutoTuningGains.Type, controllerType?: MotionMasterMessage.Request.ComputeAutoTuningGains.PositionParameters.ControllerType, messageId?: string): Observable<MotionMasterMessage.Status.FullAutoTuning>;
|
|
45
|
-
requestSetMotionControllerParameters(deviceAddress: DeviceAddressType, target: number, messageId?: string): string;
|
|
46
|
-
requestEnableMotionController(deviceAddress: DeviceAddressType, controllerType: MotionMasterMessage.Request.EnableMotionController.ControllerType, filterValue: boolean, messageId?: string): Observable<MotionMasterMessage.Status.MotionController>;
|
|
47
|
-
requestDisableMotionController(deviceAddress: DeviceAddressType, messageId?: string): Observable<MotionMasterMessage.Status.MotionController>;
|
|
48
|
-
requestSetSignalGeneratorParameters(setSignalGeneratorParameters: MotionMasterMessage.Request.ISetSignalGeneratorParameters, messageId?: string): string;
|
|
49
|
-
requestStartSignalGenerator(deviceAddress: DeviceAddressType, messageId?: string): Observable<MotionMasterMessage.Status.SignalGenerator>;
|
|
50
|
-
requestStopSignalGenerator(deviceAddress: DeviceAddressType, messageId?: string): Observable<MotionMasterMessage.Status.SignalGenerator>;
|
|
51
|
-
requestStartMonitoringDeviceParameterValues(deviceAddress: DeviceAddressType, parameters: MotionMasterMessage.Request.GetDeviceParameterValues.IParameter[], interval: number, topic: string, messageId?: string): Observable<MotionMasterMessage.Status.MonitoringParameterValues>;
|
|
52
|
-
requestStopMonitoringDeviceParameterValues(startMonitoringRequestId: string, messageId?: string): Observable<MotionMasterMessage.Status.MonitoringParameterValues>;
|
|
53
|
-
requestGetEthercatNetworkState(deviceAddress: DeviceAddressType, messageId?: string): Observable<MotionMasterMessage.Status.EthercatNetworkState>;
|
|
54
|
-
requestSetEthercatNetworkState(deviceAddress: DeviceAddressType, state: MotionMasterMessage.Request.SetEthercatNetworkState.State, messageId?: string): Observable<MotionMasterMessage.Status.EthercatNetworkState>;
|
|
55
|
-
requestStartNarrowAngleCalibration(deviceAddress: DeviceAddressType, messageId?: string): Observable<MotionMasterMessage.Status.NarrowAngleCalibration>;
|
|
56
|
-
requestSetSystemClientTimeout(timeoutMs: number, messageId?: string): string;
|
|
57
|
-
requestStartSystemIdentification(deviceAddress: DeviceAddressType, durationSeconds: number, torqueAmplitude: number, startFrequency: number, endFrequency: number, messageId?: string): Observable<MotionMasterMessage.Status.SystemIdentification>;
|
|
58
|
-
requestGetCirculoEncoderMagnetDistance(deviceAddress: DeviceAddressType, encoderOrdinal: number, ringRevision: number, messageId?: string): Observable<MotionMasterMessage.Status.CirculoEncoderMagnetDistance>;
|
|
59
|
-
requestStartCirculoEncoderNarrowAngleCalibrationProcedure(deviceAddress: DeviceAddressType, encoderOrdinal: number, messageId?: string): Observable<MotionMasterMessage.Status.CirculoEncoderNarrowAngleCalibrationProcedure>;
|
|
60
|
-
requestGetDeviceCia402State(deviceAddress: DeviceAddressType, messageId?: string): Observable<MotionMasterMessage.Status.DeviceCiA402State>;
|
|
61
|
-
requestSetDeviceCia402State(deviceAddress: DeviceAddressType, state: MotionMasterMessage.Status.DeviceCiA402State.State, messageId?: string): Observable<MotionMasterMessage.Status.DeviceCiA402State>;
|
|
62
|
-
requestGetSystemLog(messageId?: string): Observable<MotionMasterMessage.Status.SystemLog>;
|
|
63
|
-
requestStartDeviceSiiRestore(devicePosition: number, siiContent: Uint8Array, messageId?: string): Observable<MotionMasterMessage.Status.DeviceSiiRestore>;
|
|
64
|
-
requestStartOpenLoopFieldControl(properties: MotionMasterMessage.Request.IStartOpenLoopFieldControl, messageId?: string): Observable<MotionMasterMessage.Status.OpenLoopFieldControl>;
|
|
65
|
-
requestStartFullAutoTuning(deviceAddress: DeviceAddressType, type: MotionMasterMessage.Request.StartFullAutoTuning.Type, controllerType?: MotionMasterMessage.Request.ComputeAutoTuningGains.PositionParameters.ControllerType, messageId?: string): Observable<MotionMasterMessage.Status.FullAutoTuning>;
|
|
66
|
-
requestStopFullAutoTuning(deviceAddress: DeviceAddressType, messageId?: string): Observable<MotionMasterMessage.Status.FullAutoTuning>;
|
|
67
|
-
requestStartCirculoEncoderConfiguration(deviceAddress: DeviceAddressType, encoderOrdinal: number, messageId?: string): Observable<MotionMasterMessage.Status.CirculoEncoderConfiguration>;
|
|
68
|
-
requestStopCirculoEncoderNarrowAngleCalibrationProcedure(deviceAddress: DeviceAddressType, encoderOrdinal: number, messageId?: string): Observable<MotionMasterMessage.Status.CirculoEncoderNarrowAngleCalibrationProcedure>;
|
|
69
|
-
requestStartOsCommand(deviceAddress: DeviceAddressType, timeoutMs: number, command: Uint8Array, messageId?: string): Observable<MotionMasterMessage.Status.OsCommand>;
|
|
70
|
-
/**
|
|
71
|
-
* Select device at position in EtherCAT chain. This function makes an initial request to fetch a list of devices.
|
|
72
|
-
* @param position device position in EtherCAT chain
|
|
73
|
-
* @returns an observable of device messages
|
|
74
|
-
*/
|
|
75
|
-
selectDeviceAtPosition(position: number): Observable<MotionMasterMessage.Status.DeviceInfo.IDevice | null | undefined>;
|
|
76
|
-
/**
|
|
77
|
-
* Select incoming messages by id.
|
|
78
|
-
*
|
|
79
|
-
* This function filters messages by id as there can be multiple messages coming in for a single request,
|
|
80
|
-
* e.g. startOffsetDetection → started → progress → done. Ensure that you unsubscribe or use `takeWhile` operator.
|
|
81
|
-
*
|
|
82
|
-
* @param messageId
|
|
83
|
-
* @returns an observable of motion master messages
|
|
84
|
-
*/
|
|
85
|
-
selectMessage(messageId: string): Observable<MotionMasterMessage>;
|
|
86
|
-
/**
|
|
87
|
-
* Select incoming messages by id (optionally) and get their status response.
|
|
88
|
-
*
|
|
89
|
-
* This function filters messages by id as there can be multiple messages coming in for a single request,
|
|
90
|
-
* e.g. startOffsetDetection → started → progress → done. Ensure that you unsubscribe or use `takeWhile` operator.
|
|
91
|
-
*
|
|
92
|
-
* @param messageId
|
|
93
|
-
* @param type of status message received as a response
|
|
94
|
-
*/
|
|
95
|
-
selectMessageStatus<T extends StatusType>(type: T, messageId?: string): StatusTypeObservable<T>;
|
|
96
|
-
/**
|
|
97
|
-
* Send Request message to output.
|
|
98
|
-
* @param request proto message
|
|
99
|
-
* @param [messageId] identifies request, if no messageId is provided one is generated with uuid v4 and returned
|
|
100
|
-
* @returns passed or generated messageId
|
|
101
|
-
*/
|
|
102
|
-
sendRequest(request: MotionMasterMessage.IRequest, messageId?: string): string;
|
|
103
|
-
sendMessage(message: IMotionMasterMessage): string | null | undefined;
|
|
104
|
-
}
|
|
105
|
-
//# sourceMappingURL=motion-master-client.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"motion-master-client.d.ts","sourceRoot":"","sources":["../src/motion-master-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAI3C,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAEnE,oBAAY,WAAW,GAAG,MAAM,mBAAmB,CAAC,QAAQ,CAAC;AAC7D,oBAAY,UAAU,GAAG,MAAM,mBAAmB,CAAC,OAAO,CAAC;AAC3D,oBAAY,mBAAmB,GAAG,MAAM,mBAAmB,CAAC,OAAO,CAAC,6BAA6B,CAAC;AAClG,oBAA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0B,EAAE,SAAS,CAAC,EAAE,MAAM;IAMvH,0BAA0B,CACxB,aAAa,EAAE,iBAAiB,EAChC,IAAI,EAAE,mBAAmB,CAAC,OAAO,CAAC,mBAAmB,CAAC,IAAI,EAC1D,cAAc,GAAE,mBAAmB,CAAC,OAAO,CAAC,sBAAsB,CAAC,kBAAkB,CAAC,cAA2F,EACjL,SAAS,CAAC,EAAE,MAAM;IAOpB,yBAAyB,CAAC,aAAa,EAAE,iBAAiB,EAAE,SAAS,CAAC,EAAE,MAAM;IAM9E,uCAAuC,CAAC,aAAa,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM;IAMpH,wDAAwD,CAAC,aAAa,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM;IAMrI,qBAAqB,CAAC,aAAa,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,CAAC,EAAE,MAAM;IAMlH;;;;OAIG;IACH,sBAAsB,CAAC,QAAQ,EAAE,MAAM;IAavC;;;;;;;;OAQG;IACH,aAAa,CAAC,SAAS,EAAE,MAAM;IAM/B;;;;;;;;OAQG;IACH,mBAAmB,CAAC,CAAC,SAAS,UAAU,EAAE,IAAI,EAAE,CAAC,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,oBAAoB,CAAC,CAAC,CAAC;IAY/F;;;;;OAKG;IACH,WAAW,CAAC,OAAO,EAAE,mBAAmB,CAAC,QAAQ,EAAE,SAAS,CAAC,EAAE,MAAM;IAOrE,WAAW,CAAC,OAAO,EAAE,oBAAoB;CAK1C"}
|
|
@@ -1,348 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MotionMasterClient = void 0;
|
|
4
|
-
var rxjs_1 = require("rxjs");
|
|
5
|
-
var operators_1 = require("rxjs/operators");
|
|
6
|
-
var uuid_1 = require("uuid");
|
|
7
|
-
var util_1 = require("./util");
|
|
8
|
-
var MotionMasterClient = /** @class */ (function () {
|
|
9
|
-
function MotionMasterClient() {
|
|
10
|
-
/**
|
|
11
|
-
* Decoded message instances coming from Motion Master.
|
|
12
|
-
* @see https://github.com/protobufjs/protobuf.js#toolset Message.decode
|
|
13
|
-
*/
|
|
14
|
-
this.input$ = new rxjs_1.Subject();
|
|
15
|
-
/**
|
|
16
|
-
* Message instances or objects going to Motion Master.
|
|
17
|
-
* @see https://github.com/protobufjs/protobuf.js#toolset Message.encode
|
|
18
|
-
*/
|
|
19
|
-
this.output$ = new rxjs_1.Subject();
|
|
20
|
-
}
|
|
21
|
-
MotionMasterClient.prototype.requestPingSystem = function (messageId) {
|
|
22
|
-
var pingSystem = util_1.MotionMasterMessage.Request.PingSystem.create();
|
|
23
|
-
var id = this.sendRequest({ pingSystem: pingSystem }, messageId);
|
|
24
|
-
return this.selectMessageStatus('systemPong', id);
|
|
25
|
-
};
|
|
26
|
-
MotionMasterClient.prototype.requestGetSystemVersion = function (messageId) {
|
|
27
|
-
var getSystemVersion = util_1.MotionMasterMessage.Request.GetSystemVersion.create();
|
|
28
|
-
var id = this.sendRequest({ getSystemVersion: getSystemVersion }, messageId);
|
|
29
|
-
return this.selectMessageStatus('systemVersion', id);
|
|
30
|
-
};
|
|
31
|
-
MotionMasterClient.prototype.requestGetDeviceInfo = function (messageId) {
|
|
32
|
-
var getDeviceInfo = util_1.MotionMasterMessage.Request.GetDeviceInfo.create();
|
|
33
|
-
var id = this.sendRequest({ getDeviceInfo: getDeviceInfo }, messageId);
|
|
34
|
-
return this.selectMessageStatus('deviceInfo', id);
|
|
35
|
-
};
|
|
36
|
-
MotionMasterClient.prototype.requestGetDeviceParameterInfo = function (deviceAddress, messageId) {
|
|
37
|
-
var getDeviceParameterInfo = util_1.MotionMasterMessage.Request.GetDeviceParameterInfo.create({ deviceAddress: deviceAddress });
|
|
38
|
-
var id = this.sendRequest({ getDeviceParameterInfo: getDeviceParameterInfo }, messageId);
|
|
39
|
-
return this.selectMessageStatus('deviceParameterInfo', id);
|
|
40
|
-
};
|
|
41
|
-
MotionMasterClient.prototype.requestGetDeviceParameterValues = function (deviceAddress, parameters, sendProgress, messageId) {
|
|
42
|
-
if (sendProgress === void 0) { sendProgress = false; }
|
|
43
|
-
var getDeviceParameterValues = util_1.MotionMasterMessage.Request.GetDeviceParameterValues.create({ deviceAddress: deviceAddress, parameters: parameters, sendProgress: sendProgress });
|
|
44
|
-
var id = this.sendRequest({ getDeviceParameterValues: getDeviceParameterValues }, messageId);
|
|
45
|
-
return this.selectMessageStatus('deviceParameterValues', id);
|
|
46
|
-
};
|
|
47
|
-
MotionMasterClient.prototype.requestSetDeviceParameterValues = function (deviceAddress, parameterValues, messageId) {
|
|
48
|
-
var setDeviceParameterValues = util_1.MotionMasterMessage.Request.SetDeviceParameterValues.create({ deviceAddress: deviceAddress, parameterValues: parameterValues });
|
|
49
|
-
var id = this.sendRequest({ setDeviceParameterValues: setDeviceParameterValues }, messageId);
|
|
50
|
-
return this.selectMessageStatus('deviceParameterValues', id);
|
|
51
|
-
};
|
|
52
|
-
MotionMasterClient.prototype.requestGetDeviceFileList = function (deviceAddress, messageId) {
|
|
53
|
-
var getDeviceFileList = util_1.MotionMasterMessage.Request.GetDeviceFileList.create({ deviceAddress: deviceAddress });
|
|
54
|
-
var id = this.sendRequest({ getDeviceFileList: getDeviceFileList }, messageId);
|
|
55
|
-
return this.selectMessageStatus('deviceFileList', id);
|
|
56
|
-
};
|
|
57
|
-
MotionMasterClient.prototype.requestGetDeviceFile = function (deviceAddress, name, messageId) {
|
|
58
|
-
var getDeviceFile = util_1.MotionMasterMessage.Request.GetDeviceFile.create({ deviceAddress: deviceAddress, name: name });
|
|
59
|
-
var id = this.sendRequest({ getDeviceFile: getDeviceFile }, messageId);
|
|
60
|
-
return this.selectMessageStatus('deviceFile', id);
|
|
61
|
-
};
|
|
62
|
-
MotionMasterClient.prototype.requestSetDeviceFile = function (deviceAddress, name, content, overwrite, messageId) {
|
|
63
|
-
var setDeviceFile = util_1.MotionMasterMessage.Request.SetDeviceFile.create({ deviceAddress: deviceAddress, name: name, content: content, overwrite: overwrite });
|
|
64
|
-
var id = this.sendRequest({ setDeviceFile: setDeviceFile }, messageId);
|
|
65
|
-
return this.selectMessageStatus('deviceFile', id);
|
|
66
|
-
};
|
|
67
|
-
MotionMasterClient.prototype.requestDeleteDeviceFile = function (deviceAddress, name, messageId) {
|
|
68
|
-
var deleteDeviceFile = util_1.MotionMasterMessage.Request.DeleteDeviceFile.create({ deviceAddress: deviceAddress, name: name });
|
|
69
|
-
var id = this.sendRequest({ deleteDeviceFile: deleteDeviceFile }, messageId);
|
|
70
|
-
return this.selectMessageStatus('deviceFile', id);
|
|
71
|
-
};
|
|
72
|
-
MotionMasterClient.prototype.requestResetDeviceFault = function (deviceAddress, messageId) {
|
|
73
|
-
var resetDeviceFault = util_1.MotionMasterMessage.Request.ResetDeviceFault.create({ deviceAddress: deviceAddress });
|
|
74
|
-
var id = this.sendRequest({ resetDeviceFault: resetDeviceFault }, messageId);
|
|
75
|
-
return this.selectMessageStatus('deviceFaultReset', id);
|
|
76
|
-
};
|
|
77
|
-
MotionMasterClient.prototype.requestStopDevice = function (deviceAddress, messageId) {
|
|
78
|
-
var stopDevice = util_1.MotionMasterMessage.Request.StopDevice.create({ deviceAddress: deviceAddress });
|
|
79
|
-
var id = this.sendRequest({ stopDevice: stopDevice }, messageId);
|
|
80
|
-
return id;
|
|
81
|
-
};
|
|
82
|
-
MotionMasterClient.prototype.requestStartDeviceFirmwareInstallation = function (deviceAddress, firmwarePackageContent, skipSiiInstallation, messageId) {
|
|
83
|
-
if (skipSiiInstallation === void 0) { skipSiiInstallation = false; }
|
|
84
|
-
var startDeviceFirmwareInstallation = util_1.MotionMasterMessage.Request.StartDeviceFirmwareInstallation.create({ deviceAddress: deviceAddress, firmwarePackageContent: firmwarePackageContent, skipSiiInstallation: skipSiiInstallation });
|
|
85
|
-
var id = this.sendRequest({ startDeviceFirmwareInstallation: startDeviceFirmwareInstallation }, messageId);
|
|
86
|
-
return this.selectMessageStatus('deviceFirmwareInstallation', id);
|
|
87
|
-
};
|
|
88
|
-
MotionMasterClient.prototype.requestGetDeviceLog = function (deviceAddress, messageId) {
|
|
89
|
-
var getDeviceLog = util_1.MotionMasterMessage.Request.GetDeviceLog.create({ deviceAddress: deviceAddress });
|
|
90
|
-
var id = this.sendRequest({ getDeviceLog: getDeviceLog }, messageId);
|
|
91
|
-
return this.selectMessageStatus('deviceLog', id);
|
|
92
|
-
};
|
|
93
|
-
MotionMasterClient.prototype.requestStartCoggingTorqueRecording = function (deviceAddress, skipAutoTuning, messageId) {
|
|
94
|
-
var startCoggingTorqueRecording = util_1.MotionMasterMessage.Request.StartCoggingTorqueRecording.create({ deviceAddress: deviceAddress, skipAutoTuning: skipAutoTuning });
|
|
95
|
-
var id = this.sendRequest({ startCoggingTorqueRecording: startCoggingTorqueRecording }, messageId);
|
|
96
|
-
return this.selectMessageStatus('coggingTorqueRecording', id);
|
|
97
|
-
};
|
|
98
|
-
MotionMasterClient.prototype.requestGetCoggingTorqueData = function (deviceAddress, messageId) {
|
|
99
|
-
var getCoggingTorqueData = util_1.MotionMasterMessage.Request.GetCoggingTorqueData.create({ deviceAddress: deviceAddress });
|
|
100
|
-
var id = this.sendRequest({ getCoggingTorqueData: getCoggingTorqueData }, messageId);
|
|
101
|
-
return this.selectMessageStatus('coggingTorqueData', id);
|
|
102
|
-
};
|
|
103
|
-
MotionMasterClient.prototype.requestStartOffsetDetection = function (deviceAddress, messageId) {
|
|
104
|
-
var startOffsetDetection = util_1.MotionMasterMessage.Request.StartOffsetDetection.create({ deviceAddress: deviceAddress });
|
|
105
|
-
var id = this.sendRequest({ startOffsetDetection: startOffsetDetection }, messageId);
|
|
106
|
-
return this.selectMessageStatus('offsetDetection', id);
|
|
107
|
-
};
|
|
108
|
-
MotionMasterClient.prototype.requestStartPlantIdentification = function (deviceAddress, durationSeconds, torqueAmplitude, startFrequency, endFrequency, cutoffFrequency, messageId) {
|
|
109
|
-
var startPlantIdentification = util_1.MotionMasterMessage.Request.StartPlantIdentification.create({
|
|
110
|
-
deviceAddress: deviceAddress,
|
|
111
|
-
durationSeconds: durationSeconds,
|
|
112
|
-
torqueAmplitude: torqueAmplitude,
|
|
113
|
-
startFrequency: startFrequency,
|
|
114
|
-
endFrequency: endFrequency,
|
|
115
|
-
cutoffFrequency: cutoffFrequency,
|
|
116
|
-
});
|
|
117
|
-
var id = this.sendRequest({ startPlantIdentification: startPlantIdentification }, messageId);
|
|
118
|
-
return this.selectMessageStatus('plantIdentification', id);
|
|
119
|
-
};
|
|
120
|
-
MotionMasterClient.prototype.requestComputePositionAutoTuningGains = function (deviceAddress, positionParameters, messageId) {
|
|
121
|
-
var computeAutoTuningGains = util_1.MotionMasterMessage.Request.ComputeAutoTuningGains.create({ deviceAddress: deviceAddress, positionParameters: positionParameters });
|
|
122
|
-
var id = this.sendRequest({ computeAutoTuningGains: computeAutoTuningGains }, messageId);
|
|
123
|
-
return this.selectMessageStatus('autoTuning', id);
|
|
124
|
-
};
|
|
125
|
-
MotionMasterClient.prototype.requestComputeVelocityAutoTuningGains = function (deviceAddress, velocityParameters, messageId) {
|
|
126
|
-
var computeAutoTuningGains = util_1.MotionMasterMessage.Request.ComputeAutoTuningGains.create({ deviceAddress: deviceAddress, velocityParameters: velocityParameters });
|
|
127
|
-
var id = this.sendRequest({ computeAutoTuningGains: computeAutoTuningGains }, messageId);
|
|
128
|
-
return this.selectMessageStatus('autoTuning', id);
|
|
129
|
-
};
|
|
130
|
-
MotionMasterClient.prototype.requestComputeFullAutoTuningGains = function (deviceAddress, type, controllerType, messageId) {
|
|
131
|
-
if (controllerType === void 0) { controllerType = util_1.MotionMasterMessage.Request.ComputeFullAutoTuningGains.ControllerType.UNSPECIFIED; }
|
|
132
|
-
var computeFullAutoTuningGains = util_1.MotionMasterMessage.Request.ComputeFullAutoTuningGains.create({ deviceAddress: deviceAddress, type: type, controllerType: controllerType });
|
|
133
|
-
var id = this.sendRequest({ computeFullAutoTuningGains: computeFullAutoTuningGains }, messageId);
|
|
134
|
-
return this.selectMessageStatus('fullAutoTuning', id);
|
|
135
|
-
};
|
|
136
|
-
MotionMasterClient.prototype.requestSetMotionControllerParameters = function (deviceAddress, target, messageId) {
|
|
137
|
-
var setMotionControllerParameters = util_1.MotionMasterMessage.Request.SetMotionControllerParameters.create({
|
|
138
|
-
deviceAddress: deviceAddress,
|
|
139
|
-
target: target,
|
|
140
|
-
});
|
|
141
|
-
var id = this.sendRequest({ setMotionControllerParameters: setMotionControllerParameters }, messageId);
|
|
142
|
-
return id;
|
|
143
|
-
};
|
|
144
|
-
MotionMasterClient.prototype.requestEnableMotionController = function (deviceAddress, controllerType, filterValue, messageId) {
|
|
145
|
-
var enableMotionController = util_1.MotionMasterMessage.Request.EnableMotionController.create({
|
|
146
|
-
deviceAddress: deviceAddress,
|
|
147
|
-
controllerType: controllerType,
|
|
148
|
-
filter: filterValue,
|
|
149
|
-
});
|
|
150
|
-
var id = this.sendRequest({ enableMotionController: enableMotionController }, messageId);
|
|
151
|
-
return this.selectMessageStatus('motionController', id);
|
|
152
|
-
};
|
|
153
|
-
MotionMasterClient.prototype.requestDisableMotionController = function (deviceAddress, messageId) {
|
|
154
|
-
var disableMotionController = util_1.MotionMasterMessage.Request.DisableMotionController.create({ deviceAddress: deviceAddress });
|
|
155
|
-
var id = this.sendRequest({ disableMotionController: disableMotionController }, messageId);
|
|
156
|
-
return this.selectMessageStatus('motionController', id);
|
|
157
|
-
};
|
|
158
|
-
MotionMasterClient.prototype.requestSetSignalGeneratorParameters = function (setSignalGeneratorParameters, messageId) {
|
|
159
|
-
var id = this.sendRequest({ setSignalGeneratorParameters: setSignalGeneratorParameters }, messageId);
|
|
160
|
-
return id;
|
|
161
|
-
};
|
|
162
|
-
MotionMasterClient.prototype.requestStartSignalGenerator = function (deviceAddress, messageId) {
|
|
163
|
-
var startSignalGenerator = util_1.MotionMasterMessage.Request.StartSignalGenerator.create({ deviceAddress: deviceAddress });
|
|
164
|
-
var id = this.sendRequest({ startSignalGenerator: startSignalGenerator }, messageId);
|
|
165
|
-
return this.selectMessageStatus('signalGenerator', id);
|
|
166
|
-
};
|
|
167
|
-
MotionMasterClient.prototype.requestStopSignalGenerator = function (deviceAddress, messageId) {
|
|
168
|
-
var stopSignalGenerator = util_1.MotionMasterMessage.Request.StopSignalGenerator.create({ deviceAddress: deviceAddress });
|
|
169
|
-
var id = this.sendRequest({ stopSignalGenerator: stopSignalGenerator }, messageId);
|
|
170
|
-
return this.selectMessageStatus('signalGenerator', id);
|
|
171
|
-
};
|
|
172
|
-
MotionMasterClient.prototype.requestStartMonitoringDeviceParameterValues = function (deviceAddress, parameters, interval, topic, messageId) {
|
|
173
|
-
var getDeviceParameterValues = { deviceAddress: deviceAddress, parameters: parameters };
|
|
174
|
-
var startMonitoringDeviceParameterValues = util_1.MotionMasterMessage.Request.StartMonitoringDeviceParameterValues.create({ getDeviceParameterValues: getDeviceParameterValues, interval: interval, topic: topic });
|
|
175
|
-
var id = this.sendRequest({ startMonitoringDeviceParameterValues: startMonitoringDeviceParameterValues }, messageId);
|
|
176
|
-
return this.selectMessageStatus('monitoringParameterValues', id);
|
|
177
|
-
};
|
|
178
|
-
MotionMasterClient.prototype.requestStopMonitoringDeviceParameterValues = function (startMonitoringRequestId, messageId) {
|
|
179
|
-
var stopMonitoringDeviceParameterValues = util_1.MotionMasterMessage.Request.StopMonitoringDeviceParameterValues.create({ startMonitoringRequestId: startMonitoringRequestId });
|
|
180
|
-
var id = this.sendRequest({ stopMonitoringDeviceParameterValues: stopMonitoringDeviceParameterValues }, messageId);
|
|
181
|
-
return this.selectMessageStatus('monitoringParameterValues', id);
|
|
182
|
-
};
|
|
183
|
-
MotionMasterClient.prototype.requestGetEthercatNetworkState = function (deviceAddress, messageId) {
|
|
184
|
-
var getEthercatNetworkState = util_1.MotionMasterMessage.Request.GetEthercatNetworkState.create({ deviceAddress: deviceAddress });
|
|
185
|
-
var id = this.sendRequest({ getEthercatNetworkState: getEthercatNetworkState }, messageId);
|
|
186
|
-
return this.selectMessageStatus('ethercatNetworkState', id);
|
|
187
|
-
};
|
|
188
|
-
MotionMasterClient.prototype.requestSetEthercatNetworkState = function (deviceAddress, state, messageId) {
|
|
189
|
-
var setEthercatNetworkState = util_1.MotionMasterMessage.Request.SetEthercatNetworkState.create({ deviceAddress: deviceAddress, state: state });
|
|
190
|
-
var id = this.sendRequest({ setEthercatNetworkState: setEthercatNetworkState }, messageId);
|
|
191
|
-
return this.selectMessageStatus('ethercatNetworkState', id);
|
|
192
|
-
};
|
|
193
|
-
MotionMasterClient.prototype.requestStartNarrowAngleCalibration = function (deviceAddress, messageId) {
|
|
194
|
-
var startNarrowAngleCalibration = util_1.MotionMasterMessage.Request.StartNarrowAngleCalibration.create({ deviceAddress: deviceAddress });
|
|
195
|
-
var id = this.sendRequest({ startNarrowAngleCalibration: startNarrowAngleCalibration }, messageId);
|
|
196
|
-
return this.selectMessageStatus('narrowAngleCalibration', id);
|
|
197
|
-
};
|
|
198
|
-
MotionMasterClient.prototype.requestSetSystemClientTimeout = function (timeoutMs, messageId) {
|
|
199
|
-
var setSystemClientTimeout = util_1.MotionMasterMessage.Request.SetSystemClientTimeout.create({ timeoutMs: timeoutMs });
|
|
200
|
-
var id = this.sendRequest({ setSystemClientTimeout: setSystemClientTimeout }, messageId);
|
|
201
|
-
return id;
|
|
202
|
-
};
|
|
203
|
-
MotionMasterClient.prototype.requestStartSystemIdentification = function (deviceAddress, durationSeconds, torqueAmplitude, startFrequency, endFrequency, messageId) {
|
|
204
|
-
var startSystemIdentification = util_1.MotionMasterMessage.Request.StartSystemIdentification.create({
|
|
205
|
-
deviceAddress: deviceAddress,
|
|
206
|
-
durationSeconds: durationSeconds,
|
|
207
|
-
torqueAmplitude: torqueAmplitude,
|
|
208
|
-
startFrequency: startFrequency,
|
|
209
|
-
endFrequency: endFrequency,
|
|
210
|
-
});
|
|
211
|
-
var id = this.sendRequest({ startSystemIdentification: startSystemIdentification }, messageId);
|
|
212
|
-
return this.selectMessageStatus('systemIdentification', id);
|
|
213
|
-
};
|
|
214
|
-
MotionMasterClient.prototype.requestGetCirculoEncoderMagnetDistance = function (deviceAddress, encoderOrdinal, ringRevision, messageId) {
|
|
215
|
-
var getCirculoEncoderMagnetDistance = util_1.MotionMasterMessage.Request.GetCirculoEncoderMagnetDistance.create({
|
|
216
|
-
deviceAddress: deviceAddress,
|
|
217
|
-
encoderOrdinal: encoderOrdinal,
|
|
218
|
-
ringRevision: ringRevision,
|
|
219
|
-
});
|
|
220
|
-
var id = this.sendRequest({ getCirculoEncoderMagnetDistance: getCirculoEncoderMagnetDistance }, messageId);
|
|
221
|
-
return this.selectMessageStatus('circuloEncoderMagnetDistance', id);
|
|
222
|
-
};
|
|
223
|
-
MotionMasterClient.prototype.requestStartCirculoEncoderNarrowAngleCalibrationProcedure = function (deviceAddress, encoderOrdinal, messageId) {
|
|
224
|
-
var startCirculoEncoderNarrowAngleCalibrationProcedure = util_1.MotionMasterMessage.Request.StartCirculoEncoderNarrowAngleCalibrationProcedure.create({
|
|
225
|
-
deviceAddress: deviceAddress,
|
|
226
|
-
encoderOrdinal: encoderOrdinal,
|
|
227
|
-
});
|
|
228
|
-
var id = this.sendRequest({ startCirculoEncoderNarrowAngleCalibrationProcedure: startCirculoEncoderNarrowAngleCalibrationProcedure }, messageId);
|
|
229
|
-
return this.selectMessageStatus('circuloEncoderNarrowAngleCalibrationProcedure', id);
|
|
230
|
-
};
|
|
231
|
-
MotionMasterClient.prototype.requestGetDeviceCia402State = function (deviceAddress, messageId) {
|
|
232
|
-
var getDeviceCia402State = util_1.MotionMasterMessage.Request.GetDeviceCiA402State.create({ deviceAddress: deviceAddress });
|
|
233
|
-
var id = this.sendRequest({ getDeviceCia402State: getDeviceCia402State }, messageId);
|
|
234
|
-
return this.selectMessageStatus('deviceCia402State', id);
|
|
235
|
-
};
|
|
236
|
-
MotionMasterClient.prototype.requestSetDeviceCia402State = function (deviceAddress, state, messageId) {
|
|
237
|
-
var setDeviceCia402State = util_1.MotionMasterMessage.Request.SetDeviceCiA402State.create({ deviceAddress: deviceAddress, state: state });
|
|
238
|
-
var id = this.sendRequest({ setDeviceCia402State: setDeviceCia402State }, messageId);
|
|
239
|
-
return this.selectMessageStatus('deviceCia402State', id);
|
|
240
|
-
};
|
|
241
|
-
MotionMasterClient.prototype.requestGetSystemLog = function (messageId) {
|
|
242
|
-
var getSystemLog = util_1.MotionMasterMessage.Request.GetSystemLog.create({});
|
|
243
|
-
var id = this.sendRequest({ getSystemLog: getSystemLog }, messageId);
|
|
244
|
-
return this.selectMessageStatus('systemLog', id);
|
|
245
|
-
};
|
|
246
|
-
MotionMasterClient.prototype.requestStartDeviceSiiRestore = function (devicePosition, siiContent, messageId) {
|
|
247
|
-
var startDeviceSiiRestore = util_1.MotionMasterMessage.Request.StartDeviceSiiRestore.create({
|
|
248
|
-
devicePosition: devicePosition,
|
|
249
|
-
siiContent: siiContent,
|
|
250
|
-
});
|
|
251
|
-
var id = this.sendRequest({ startDeviceSiiRestore: startDeviceSiiRestore }, messageId);
|
|
252
|
-
return this.selectMessageStatus('deviceSiiRestore', id);
|
|
253
|
-
};
|
|
254
|
-
MotionMasterClient.prototype.requestStartOpenLoopFieldControl = function (properties, messageId) {
|
|
255
|
-
var startOpenLoopFieldControl = util_1.MotionMasterMessage.Request.StartOpenLoopFieldControl.create(properties);
|
|
256
|
-
var id = this.sendRequest({ startOpenLoopFieldControl: startOpenLoopFieldControl }, messageId);
|
|
257
|
-
return this.selectMessageStatus('openLoopFieldControl', id);
|
|
258
|
-
};
|
|
259
|
-
MotionMasterClient.prototype.requestStartFullAutoTuning = function (deviceAddress, type, controllerType, messageId) {
|
|
260
|
-
if (controllerType === void 0) { controllerType = util_1.MotionMasterMessage.Request.StartFullAutoTuning.ControllerType.UNSPECIFIED; }
|
|
261
|
-
var startFullAutoTuning = util_1.MotionMasterMessage.Request.StartFullAutoTuning.create({ deviceAddress: deviceAddress, type: type, controllerType: controllerType });
|
|
262
|
-
var id = this.sendRequest({ startFullAutoTuning: startFullAutoTuning }, messageId);
|
|
263
|
-
return this.selectMessageStatus('fullAutoTuning', id);
|
|
264
|
-
};
|
|
265
|
-
MotionMasterClient.prototype.requestStopFullAutoTuning = function (deviceAddress, messageId) {
|
|
266
|
-
var stopFullAutoTuning = util_1.MotionMasterMessage.Request.StopFullAutoTuning.create({ deviceAddress: deviceAddress });
|
|
267
|
-
var id = this.sendRequest({ stopFullAutoTuning: stopFullAutoTuning }, messageId);
|
|
268
|
-
return this.selectMessageStatus('fullAutoTuning', id);
|
|
269
|
-
};
|
|
270
|
-
MotionMasterClient.prototype.requestStartCirculoEncoderConfiguration = function (deviceAddress, encoderOrdinal, messageId) {
|
|
271
|
-
var startCirculoEncoderConfiguration = util_1.MotionMasterMessage.Request.StartCirculoEncoderConfiguration.create({ deviceAddress: deviceAddress, encoderOrdinal: encoderOrdinal });
|
|
272
|
-
var id = this.sendRequest({ startCirculoEncoderConfiguration: startCirculoEncoderConfiguration }, messageId);
|
|
273
|
-
return this.selectMessageStatus('circuloEncoderConfiguration', id);
|
|
274
|
-
};
|
|
275
|
-
MotionMasterClient.prototype.requestStopCirculoEncoderNarrowAngleCalibrationProcedure = function (deviceAddress, encoderOrdinal, messageId) {
|
|
276
|
-
var stopCirculoEncoderNarrowAngleCalibrationProcedure = util_1.MotionMasterMessage.Request.StopCirculoEncoderNarrowAngleCalibrationProcedure.create({ deviceAddress: deviceAddress, encoderOrdinal: encoderOrdinal });
|
|
277
|
-
var id = this.sendRequest({ stopCirculoEncoderNarrowAngleCalibrationProcedure: stopCirculoEncoderNarrowAngleCalibrationProcedure }, messageId);
|
|
278
|
-
return this.selectMessageStatus('circuloEncoderNarrowAngleCalibrationProcedure', id);
|
|
279
|
-
};
|
|
280
|
-
MotionMasterClient.prototype.requestStartOsCommand = function (deviceAddress, timeoutMs, command, messageId) {
|
|
281
|
-
var startOsCommand = util_1.MotionMasterMessage.Request.StartOsCommand.create({ command: command, deviceAddress: deviceAddress, timeoutMs: timeoutMs });
|
|
282
|
-
var id = this.sendRequest({ startOsCommand: startOsCommand }, messageId);
|
|
283
|
-
return this.selectMessageStatus('osCommand', id);
|
|
284
|
-
};
|
|
285
|
-
/**
|
|
286
|
-
* Select device at position in EtherCAT chain. This function makes an initial request to fetch a list of devices.
|
|
287
|
-
* @param position device position in EtherCAT chain
|
|
288
|
-
* @returns an observable of device messages
|
|
289
|
-
*/
|
|
290
|
-
MotionMasterClient.prototype.selectDeviceAtPosition = function (position) {
|
|
291
|
-
return this.requestGetDeviceInfo().pipe(operators_1.first(), operators_1.map(function (deviceInfo) {
|
|
292
|
-
if (deviceInfo.devices) {
|
|
293
|
-
return deviceInfo.devices.find(function (device) { return device.position === position; });
|
|
294
|
-
}
|
|
295
|
-
else {
|
|
296
|
-
return null;
|
|
297
|
-
}
|
|
298
|
-
}));
|
|
299
|
-
};
|
|
300
|
-
/**
|
|
301
|
-
* Select incoming messages by id.
|
|
302
|
-
*
|
|
303
|
-
* This function filters messages by id as there can be multiple messages coming in for a single request,
|
|
304
|
-
* e.g. startOffsetDetection → started → progress → done. Ensure that you unsubscribe or use `takeWhile` operator.
|
|
305
|
-
*
|
|
306
|
-
* @param messageId
|
|
307
|
-
* @returns an observable of motion master messages
|
|
308
|
-
*/
|
|
309
|
-
MotionMasterClient.prototype.selectMessage = function (messageId) {
|
|
310
|
-
return this.input$.pipe(operators_1.filter(function (message) { return message.id === messageId; }));
|
|
311
|
-
};
|
|
312
|
-
/**
|
|
313
|
-
* Select incoming messages by id (optionally) and get their status response.
|
|
314
|
-
*
|
|
315
|
-
* This function filters messages by id as there can be multiple messages coming in for a single request,
|
|
316
|
-
* e.g. startOffsetDetection → started → progress → done. Ensure that you unsubscribe or use `takeWhile` operator.
|
|
317
|
-
*
|
|
318
|
-
* @param messageId
|
|
319
|
-
* @param type of status message received as a response
|
|
320
|
-
*/
|
|
321
|
-
MotionMasterClient.prototype.selectMessageStatus = function (type, messageId) {
|
|
322
|
-
var message$ = messageId === undefined
|
|
323
|
-
? this.input$
|
|
324
|
-
: this.input$.pipe(operators_1.filter(function (message) { return message.id === messageId; }));
|
|
325
|
-
// we expect Status to be ALWAYS defined on input message
|
|
326
|
-
var status$ = message$.pipe(operators_1.map(function (message) { return message.status; }));
|
|
327
|
-
return status$.pipe(operators_1.map(function (status) { return status[type]; }));
|
|
328
|
-
};
|
|
329
|
-
/**
|
|
330
|
-
* Send Request message to output.
|
|
331
|
-
* @param request proto message
|
|
332
|
-
* @param [messageId] identifies request, if no messageId is provided one is generated with uuid v4 and returned
|
|
333
|
-
* @returns passed or generated messageId
|
|
334
|
-
*/
|
|
335
|
-
MotionMasterClient.prototype.sendRequest = function (request, messageId) {
|
|
336
|
-
var id = messageId || uuid_1.v4();
|
|
337
|
-
var message = util_1.MotionMasterMessage.create({ request: request, id: id });
|
|
338
|
-
this.output$.next(message);
|
|
339
|
-
return id;
|
|
340
|
-
};
|
|
341
|
-
MotionMasterClient.prototype.sendMessage = function (message) {
|
|
342
|
-
this.output$.next(message);
|
|
343
|
-
return message.id;
|
|
344
|
-
};
|
|
345
|
-
return MotionMasterClient;
|
|
346
|
-
}());
|
|
347
|
-
exports.MotionMasterClient = MotionMasterClient;
|
|
348
|
-
//# sourceMappingURL=motion-master-client.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"motion-master-client.js","sourceRoot":"","sources":["../src/motion-master-client.ts"],"names":[],"mappings":";;;AAAA,6BAA2C;AAC3C,4CAAoD;AACpD,6BAA0B;AAE1B,+BAAmE;AAkDnE;IAAA;QAEE;;;WAGG;QACM,WAAM,GAAG,IAAI,cAAO,EAAuB,CAAC;QAErD;;;WAGG;QACM,YAAO,GAAG,IAAI,cAAO,EAAwB,CAAC;IAiZzD,CAAC;IA/YC,8CAAiB,GAAjB,UAAkB,SAAkB;QAClC,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AAC,CAAC;QAC3B,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,wCAAW,GAAX,UAAY,OAA6B;QACvC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC3B,OAAO,OAAO,CAAC,EAAE,CAAC;IACpB,CAAC;IAEH,yBAAC;AAAD,CAAC,AA7ZD,IA6ZC;AA7ZY,gDAAkB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"motion-master-notification-subscribe-data.d.ts","sourceRoot":"","sources":["../src/motion-master-notification-subscribe-data.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,sCAAsC;IACrD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"motion-master-notification-subscribe-data.js","sourceRoot":"","sources":["../src/motion-master-notification-subscribe-data.ts"],"names":[],"mappings":""}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { BehaviorSubject, Observable, Subject, Subscription } from 'rxjs';
|
|
2
|
-
import { WebSocketSubject, WebSocketSubjectConfig } from 'rxjs/webSocket';
|
|
3
|
-
import { MotionMasterNotification } from './motion-master-notification';
|
|
4
|
-
import { IMotionMasterNotificationSubscribeData } from './motion-master-notification-subscribe-data';
|
|
5
|
-
import { MotionMasterMessage } from './util';
|
|
6
|
-
export declare class MotionMasterNotificationWebSocketConnection {
|
|
7
|
-
wssUrl: string;
|
|
8
|
-
notification: MotionMasterNotification;
|
|
9
|
-
readonly connected$: BehaviorSubject<boolean>;
|
|
10
|
-
readonly monitoringTimedout$: Subject<{
|
|
11
|
-
id: string;
|
|
12
|
-
topic: string;
|
|
13
|
-
}>;
|
|
14
|
-
private decoder;
|
|
15
|
-
private closeObserver;
|
|
16
|
-
private openObserver;
|
|
17
|
-
wssConfig: WebSocketSubjectConfig<ArrayBuffer>;
|
|
18
|
-
wss$: WebSocketSubject<any>;
|
|
19
|
-
/**
|
|
20
|
-
* Map the incoming array buffer to topic (string) and payload (encoded protobuf message).
|
|
21
|
-
*/
|
|
22
|
-
buffer$: Observable<[string, ArrayBuffer]>;
|
|
23
|
-
/**
|
|
24
|
-
* Map request message ids to subscriptions.
|
|
25
|
-
*/
|
|
26
|
-
subscriptions: {
|
|
27
|
-
[key: string]: Subscription;
|
|
28
|
-
};
|
|
29
|
-
constructor(wssUrl?: string);
|
|
30
|
-
/**
|
|
31
|
-
* Subscribe to a topic and optionally buffer messages.
|
|
32
|
-
* First subscription will open WebSocket connection.
|
|
33
|
-
* @param data subscribe data
|
|
34
|
-
* @returns subscription id
|
|
35
|
-
*/
|
|
36
|
-
subscribe(data: IMotionMasterNotificationSubscribeData): string;
|
|
37
|
-
/**
|
|
38
|
-
* Unsubscribe from a previous subscription.
|
|
39
|
-
* WebSocket connection will close on last unsubscribe.
|
|
40
|
-
* @todo find a way to emit all buffered messages before unsubscribe.
|
|
41
|
-
* @param id message id related to previous subscription
|
|
42
|
-
*/
|
|
43
|
-
unsubscribe(id: string): void;
|
|
44
|
-
/**
|
|
45
|
-
* Unsubscribe from all previously subscribed topics.
|
|
46
|
-
*/
|
|
47
|
-
unsubscribeAll(): void;
|
|
48
|
-
/**
|
|
49
|
-
* Select incoming buffer by topic and optionally decode it to MotionMasterMessage.
|
|
50
|
-
* @param topic to filter incoming messages by
|
|
51
|
-
* @param decode to MotionMasterMessage or leave the content as Uint8Array
|
|
52
|
-
* @returns an observable of topic and depending on the value of decode argument: MotionMasterMessage when true, Uint8Array otherwise
|
|
53
|
-
*/
|
|
54
|
-
selectBufferByTopic<T extends boolean>(topic: string, decode: T): T extends true ? Observable<MotionMasterMessage> : Observable<Uint8Array>;
|
|
55
|
-
}
|
|
56
|
-
//# sourceMappingURL=motion-master-notification-web-socket-connection.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"motion-master-notification-web-socket-connection.d.ts","sourceRoot":"","sources":["../src/motion-master-notification-web-socket-connection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAG1E,OAAO,EAAa,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAGrF,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,EAAE,sCAAsC,EAAE,MAAM,6CAA6C,CAAC;AACrG,OAAO,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAE7C,qBAAa,2CAA2C;IAgD7C,MAAM;IA9Cf,YAAY,2BAAkC;IAE9C,QAAQ,CAAC,UAAU,2BAAuC;IAC1D,QAAQ,CAAC,mBAAmB;YAAqB,MAAM;eAAS,MAAM;OAAM;IAE5E,OAAO,CAAC,OAAO,CAA4B;IAE3C,OAAO,CAAC,aAAa,CAInB;IAEF,OAAO,CAAC,YAAY,CAIlB;IAEF,SAAS,EAAE,sBAAsB,CAAC,WAAW,CAAC,CAM5C;IAEF,IAAI,EAAE,gBAAgB,CAAC,GAAG,CAAC,CAA6B;IAExD;;OAEG;IACH,OAAO,EAAE,UAAU,CAAC,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC,CAMxC;IAEF;;OAEG;IACH,aAAa,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,CAAA;KAAE,CAAuB;gBAG5D,MAAM,SAAoC;IAGnD;;;;;OAKG;IACH,SAAS,CAAC,IAAI,EAAE,sCAAsC;IAuCtD;;;;;OAKG;IACH,WAAW,CAAC,EAAE,EAAE,MAAM;IAOtB;;OAEG;IACH,cAAc;IAId;;;;;OAKG;IACH,mBAAmB,CAAC,CAAC,SAAS,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,M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