@zaber/motion 7.7.0 → 7.8.0
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 +126 -4
- package/dist/binding/wasm/zaber-motion-core.wasm +0 -0
- package/dist/lib/ascii/can_set_state_axis_response.d.ts +1 -1
- package/dist/lib/ascii/can_set_state_axis_response.js.map +1 -1
- package/dist/lib/ascii/can_set_state_device_response.d.ts +3 -2
- package/dist/lib/ascii/can_set_state_device_response.d.ts.map +1 -1
- package/dist/lib/ascii/can_set_state_device_response.js.map +1 -1
- package/dist/lib/ascii/index.d.ts +1 -0
- package/dist/lib/ascii/index.d.ts.map +1 -1
- package/dist/lib/ascii/index.js +1 -0
- package/dist/lib/ascii/index.js.map +1 -1
- package/dist/lib/ascii/optional_measurement_sequence.d.ts +23 -0
- package/dist/lib/ascii/optional_measurement_sequence.d.ts.map +1 -0
- package/dist/lib/ascii/optional_measurement_sequence.js +31 -0
- package/dist/lib/ascii/optional_measurement_sequence.js.map +1 -0
- package/dist/lib/ascii/pvt_sequence.d.ts +41 -1
- package/dist/lib/ascii/pvt_sequence.d.ts.map +1 -1
- package/dist/lib/ascii/pvt_sequence.js +65 -0
- package/dist/lib/ascii/pvt_sequence.js.map +1 -1
- package/dist/lib/ascii/set_state_device_response.d.ts +2 -1
- package/dist/lib/ascii/set_state_device_response.d.ts.map +1 -1
- package/dist/lib/ascii/set_state_device_response.js.map +1 -1
- package/dist/lib/exceptions/index.d.ts +1 -0
- package/dist/lib/exceptions/index.d.ts.map +1 -1
- package/dist/lib/exceptions/index.js +1 -0
- package/dist/lib/exceptions/index.js.map +1 -1
- package/dist/lib/exceptions/pvt_sequence_generation_failed_exception.d.ts +8 -0
- package/dist/lib/exceptions/pvt_sequence_generation_failed_exception.d.ts.map +1 -0
- package/dist/lib/exceptions/pvt_sequence_generation_failed_exception.js +17 -0
- package/dist/lib/exceptions/pvt_sequence_generation_failed_exception.js.map +1 -0
- package/dist/lib/gateway/convert_exceptions.d.ts.map +1 -1
- package/dist/lib/gateway/convert_exceptions.js +1 -0
- package/dist/lib/gateway/convert_exceptions.js.map +1 -1
- package/dist/lib/library.d.ts +10 -0
- package/dist/lib/library.d.ts.map +1 -1
- package/dist/lib/library.js +28 -1
- package/dist/lib/library.js.map +1 -1
- package/dist/lib/requests/errors.d.ts +18 -16
- package/dist/lib/requests/errors.d.ts.map +1 -1
- package/dist/lib/requests/errors.js +18 -16
- package/dist/lib/requests/errors.js.map +1 -1
- package/dist/lib/requests/index.d.ts +3 -0
- package/dist/lib/requests/index.d.ts.map +1 -1
- package/dist/lib/requests/index.js +3 -0
- package/dist/lib/requests/index.js.map +1 -1
- package/dist/lib/requests/pvt_generate_positions_request.d.ts +15 -0
- package/dist/lib/requests/pvt_generate_positions_request.d.ts.map +1 -0
- package/dist/lib/requests/pvt_generate_positions_request.js +35 -0
- package/dist/lib/requests/pvt_generate_positions_request.js.map +1 -0
- package/dist/lib/requests/pvt_generate_velocities_request.d.ts +17 -0
- package/dist/lib/requests/pvt_generate_velocities_request.d.ts.map +1 -0
- package/dist/lib/requests/pvt_generate_velocities_request.js +39 -0
- package/dist/lib/requests/pvt_generate_velocities_request.js.map +1 -0
- package/dist/lib/requests/unit_convert_unit_request.d.ts +15 -0
- package/dist/lib/requests/unit_convert_unit_request.d.ts.map +1 -0
- package/dist/lib/requests/unit_convert_unit_request.js +35 -0
- package/dist/lib/requests/unit_convert_unit_request.js.map +1 -0
- package/dist/lib/unit_table.d.ts +9 -0
- package/dist/lib/unit_table.d.ts.map +1 -1
- package/dist/lib/unit_table.js +21 -0
- package/dist/lib/unit_table.js.map +1 -1
- package/package.json +1 -1
package/LICENSE
CHANGED
|
@@ -209,7 +209,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
209
209
|
SOFTWARE.
|
|
210
210
|
|
|
211
211
|
------------------
|
|
212
|
-
github.com/google/go-cmp v0.
|
|
212
|
+
github.com/google/go-cmp v0.6.0
|
|
213
213
|
------------------
|
|
214
214
|
Copyright (c) 2017 The Go Authors. All rights reserved.
|
|
215
215
|
|
|
@@ -421,6 +421,31 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
421
421
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
422
422
|
THE SOFTWARE.
|
|
423
423
|
|
|
424
|
+
------------------
|
|
425
|
+
github.com/stretchr/testify v1.8.1
|
|
426
|
+
------------------
|
|
427
|
+
MIT License
|
|
428
|
+
|
|
429
|
+
Copyright (c) 2012-2020 Mat Ryer, Tyler Bunnell and contributors.
|
|
430
|
+
|
|
431
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
432
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
433
|
+
in the Software without restriction, including without limitation the rights
|
|
434
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
435
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
436
|
+
furnished to do so, subject to the following conditions:
|
|
437
|
+
|
|
438
|
+
The above copyright notice and this permission notice shall be included in all
|
|
439
|
+
copies or substantial portions of the Software.
|
|
440
|
+
|
|
441
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
442
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
443
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
444
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
445
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
446
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
447
|
+
SOFTWARE.
|
|
448
|
+
|
|
424
449
|
------------------
|
|
425
450
|
github.com/zabertech/go-ethereum v1.10.4-rpc-1 (fork github.com/ethereum/go-ethereum)
|
|
426
451
|
------------------
|
|
@@ -1426,9 +1451,9 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
1426
1451
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1427
1452
|
|
|
1428
1453
|
------------------
|
|
1429
|
-
golang.org/x/image v0.
|
|
1454
|
+
golang.org/x/image v0.25.0
|
|
1430
1455
|
------------------
|
|
1431
|
-
Copyright
|
|
1456
|
+
Copyright 2009 The Go Authors.
|
|
1432
1457
|
|
|
1433
1458
|
Redistribution and use in source and binary forms, with or without
|
|
1434
1459
|
modification, are permitted provided that the following conditions are
|
|
@@ -1440,7 +1465,7 @@ notice, this list of conditions and the following disclaimer.
|
|
|
1440
1465
|
copyright notice, this list of conditions and the following disclaimer
|
|
1441
1466
|
in the documentation and/or other materials provided with the
|
|
1442
1467
|
distribution.
|
|
1443
|
-
* Neither the name of Google
|
|
1468
|
+
* Neither the name of Google LLC nor the names of its
|
|
1444
1469
|
contributors may be used to endorse or promote products derived from
|
|
1445
1470
|
this software without specific prior written permission.
|
|
1446
1471
|
|
|
@@ -1518,6 +1543,86 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
1518
1543
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
1519
1544
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1520
1545
|
|
|
1546
|
+
------------------
|
|
1547
|
+
gonum.org/v1/gonum v0.16.0
|
|
1548
|
+
------------------
|
|
1549
|
+
Copyright ©2013 The Gonum Authors. All rights reserved.
|
|
1550
|
+
|
|
1551
|
+
Redistribution and use in source and binary forms, with or without
|
|
1552
|
+
modification, are permitted provided that the following conditions are met:
|
|
1553
|
+
* Redistributions of source code must retain the above copyright
|
|
1554
|
+
notice, this list of conditions and the following disclaimer.
|
|
1555
|
+
* Redistributions in binary form must reproduce the above copyright
|
|
1556
|
+
notice, this list of conditions and the following disclaimer in the
|
|
1557
|
+
documentation and/or other materials provided with the distribution.
|
|
1558
|
+
* Neither the name of the Gonum project nor the names of its authors and
|
|
1559
|
+
contributors may be used to endorse or promote products derived from this
|
|
1560
|
+
software without specific prior written permission.
|
|
1561
|
+
|
|
1562
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
1563
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
1564
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
1565
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
1566
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
1567
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
1568
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
1569
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
1570
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
1571
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1572
|
+
------------------
|
|
1573
|
+
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c
|
|
1574
|
+
------------------
|
|
1575
|
+
|
|
1576
|
+
This project is covered by two different licenses: MIT and Apache.
|
|
1577
|
+
|
|
1578
|
+
#### MIT License ####
|
|
1579
|
+
|
|
1580
|
+
The following files were ported to Go from C files of libyaml, and thus
|
|
1581
|
+
are still covered by their original MIT license, with the additional
|
|
1582
|
+
copyright staring in 2011 when the project was ported over:
|
|
1583
|
+
|
|
1584
|
+
apic.go emitterc.go parserc.go readerc.go scannerc.go
|
|
1585
|
+
writerc.go yamlh.go yamlprivateh.go
|
|
1586
|
+
|
|
1587
|
+
Copyright (c) 2006-2010 Kirill Simonov
|
|
1588
|
+
Copyright (c) 2006-2011 Kirill Simonov
|
|
1589
|
+
|
|
1590
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
1591
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
1592
|
+
the Software without restriction, including without limitation the rights to
|
|
1593
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
1594
|
+
of the Software, and to permit persons to whom the Software is furnished to do
|
|
1595
|
+
so, subject to the following conditions:
|
|
1596
|
+
|
|
1597
|
+
The above copyright notice and this permission notice shall be included in all
|
|
1598
|
+
copies or substantial portions of the Software.
|
|
1599
|
+
|
|
1600
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
1601
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
1602
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
1603
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
1604
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
1605
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
1606
|
+
SOFTWARE.
|
|
1607
|
+
|
|
1608
|
+
### Apache License ###
|
|
1609
|
+
|
|
1610
|
+
All the remaining project files are covered by the Apache license:
|
|
1611
|
+
|
|
1612
|
+
Copyright (c) 2011-2019 Canonical Ltd
|
|
1613
|
+
|
|
1614
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
1615
|
+
you may not use this file except in compliance with the License.
|
|
1616
|
+
You may obtain a copy of the License at
|
|
1617
|
+
|
|
1618
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
1619
|
+
|
|
1620
|
+
Unless required by applicable law or agreed to in writing, software
|
|
1621
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
1622
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1623
|
+
See the License for the specific language governing permissions and
|
|
1624
|
+
limitations under the License.
|
|
1625
|
+
|
|
1521
1626
|
------------------
|
|
1522
1627
|
gotest.tools v2.2.0+incompatible
|
|
1523
1628
|
------------------
|
|
@@ -1534,3 +1639,20 @@ distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
1534
1639
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1535
1640
|
See the License for the specific language governing permissions and
|
|
1536
1641
|
limitations under the License.
|
|
1642
|
+
|
|
1643
|
+
------------------
|
|
1644
|
+
gotest.tools/v3 v3.0.2
|
|
1645
|
+
------------------
|
|
1646
|
+
Copyright 2018 gotest.tools authors
|
|
1647
|
+
|
|
1648
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
1649
|
+
you may not use this file except in compliance with the License.
|
|
1650
|
+
You may obtain a copy of the License at
|
|
1651
|
+
|
|
1652
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
1653
|
+
|
|
1654
|
+
Unless required by applicable law or agreed to in writing, software
|
|
1655
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
1656
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1657
|
+
See the License for the specific language governing permissions and
|
|
1658
|
+
limitations under the License.
|
|
Binary file
|
|
@@ -4,7 +4,7 @@ import { BSON } from 'bson';
|
|
|
4
4
|
*/
|
|
5
5
|
export interface CanSetStateAxisResponse {
|
|
6
6
|
/**
|
|
7
|
-
* The error blocking applying this state to the given axis.
|
|
7
|
+
* The error blocking applying this state to the given axis, or null if there is no error.
|
|
8
8
|
*/
|
|
9
9
|
error?: (string | null);
|
|
10
10
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"can_set_state_axis_response.js","sourceRoot":"","sources":["../../../src/ascii/can_set_state_axis_response.ts"],"names":[],"mappings":";;;AAAA,oDAAoD;AACpD,+BAA4B;AAC5B,oDAAiD;AAkBpC,QAAA,uBAAuB,GAAG;IACrC,UAAU,EAAE,CAAC,MAAkB,EAA2B,EAAE,CAAC,+BAAuB,CAAC,OAAO,CAAC,WAAI,CAAC,WAAW,CAAC,MAAM,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC;IAC7I,QAAQ,EAAE,CAAC,KAA8B,EAAc,EAAE,CAAC,WAAI,CAAC,SAAS,CAAC,+BAAuB,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACjH,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;QACrB,KAAK,EAAE,IAAI;QACX,UAAU,EAAE,CAAC;KACd,CAAsC;IACvC,QAAQ,EAAE,CAAC,KAA8B,EAA2B,EAAE;QACpE,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;YAAC,MAAM,IAAI,SAAS,CAAC,oEAAoE,CAAC,CAAA;QAAC,CAAC;QAChH,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YAAC,MAAM,IAAI,SAAS,CAAC,mDAAmD,OAAO,KAAK,GAAG,CAAC,CAAA;QAAC,CAAC;QAC1H,OAAO;YACL,KAAK,EAAE,KAAK,CAAC,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC,qBAAS,CAAC,cAAc,CAAC,KAAK,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI;YAClF,UAAU,EAAE,qBAAS,CAAC,WAAW,CAAC,KAAK,CAAC,UAAU,EAAE,YAAY,CAAC;SAClE,CAAC;IACJ,CAAC;IACD,OAAO,EAAE,CAAC,KAAoB,EAA2B,EAAE,CAAC,CAAC;QAC3D,KAAK,EAAE,KAAK,CAAC,KAAK;QAClB,UAAU,EAAE,KAAK,CAAC,UAAU;KAC7B,CAAC;CACH,CAAC","sourcesContent":["/* This file is generated. Do not modify by hand. */\nimport { BSON } from 'bson';\nimport { sanitizer } from '../gateway/sanitizer';\n\n/**\n * An object containing any setup issues that will prevent setting a state to a given axis.\n */\nexport interface CanSetStateAxisResponse {\n /**\n * The error blocking applying this state to the given axis.\n */\n error?: (string | null);\n\n /**\n * The number of the axis that cannot be set.\n */\n axisNumber: number;\n\n}\n\nexport const CanSetStateAxisResponse = {\n fromBinary: (buffer: Uint8Array): CanSetStateAxisResponse => CanSetStateAxisResponse.convert(BSON.deserialize(buffer, { useBigInt64: true })),\n toBinary: (value: CanSetStateAxisResponse): Uint8Array => BSON.serialize(CanSetStateAxisResponse.sanitize(value)),\n DEFAULT: Object.freeze({\n error: null,\n axisNumber: 0,\n }) as Readonly<CanSetStateAxisResponse>,\n sanitize: (value: CanSetStateAxisResponse): CanSetStateAxisResponse => {\n if (value == null) { throw new TypeError('Expected CanSetStateAxisResponse object but got null or undefined.') }\n if (typeof value !== 'object') { throw new TypeError(`Expected CanSetStateAxisResponse object but got ${typeof value}.`) }\n return {\n error: value.error != null ? sanitizer.sanitizeString(value.error, 'error') : null,\n axisNumber: sanitizer.sanitizeInt(value.axisNumber, 'axisNumber'),\n };\n },\n convert: (value: BSON.Document): CanSetStateAxisResponse => ({\n error: value.error,\n axisNumber: value.axisNumber,\n })\n};\n"]}
|
|
1
|
+
{"version":3,"file":"can_set_state_axis_response.js","sourceRoot":"","sources":["../../../src/ascii/can_set_state_axis_response.ts"],"names":[],"mappings":";;;AAAA,oDAAoD;AACpD,+BAA4B;AAC5B,oDAAiD;AAkBpC,QAAA,uBAAuB,GAAG;IACrC,UAAU,EAAE,CAAC,MAAkB,EAA2B,EAAE,CAAC,+BAAuB,CAAC,OAAO,CAAC,WAAI,CAAC,WAAW,CAAC,MAAM,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC;IAC7I,QAAQ,EAAE,CAAC,KAA8B,EAAc,EAAE,CAAC,WAAI,CAAC,SAAS,CAAC,+BAAuB,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACjH,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;QACrB,KAAK,EAAE,IAAI;QACX,UAAU,EAAE,CAAC;KACd,CAAsC;IACvC,QAAQ,EAAE,CAAC,KAA8B,EAA2B,EAAE;QACpE,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;YAAC,MAAM,IAAI,SAAS,CAAC,oEAAoE,CAAC,CAAA;QAAC,CAAC;QAChH,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YAAC,MAAM,IAAI,SAAS,CAAC,mDAAmD,OAAO,KAAK,GAAG,CAAC,CAAA;QAAC,CAAC;QAC1H,OAAO;YACL,KAAK,EAAE,KAAK,CAAC,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC,qBAAS,CAAC,cAAc,CAAC,KAAK,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI;YAClF,UAAU,EAAE,qBAAS,CAAC,WAAW,CAAC,KAAK,CAAC,UAAU,EAAE,YAAY,CAAC;SAClE,CAAC;IACJ,CAAC;IACD,OAAO,EAAE,CAAC,KAAoB,EAA2B,EAAE,CAAC,CAAC;QAC3D,KAAK,EAAE,KAAK,CAAC,KAAK;QAClB,UAAU,EAAE,KAAK,CAAC,UAAU;KAC7B,CAAC;CACH,CAAC","sourcesContent":["/* This file is generated. Do not modify by hand. */\nimport { BSON } from 'bson';\nimport { sanitizer } from '../gateway/sanitizer';\n\n/**\n * An object containing any setup issues that will prevent setting a state to a given axis.\n */\nexport interface CanSetStateAxisResponse {\n /**\n * The error blocking applying this state to the given axis, or null if there is no error.\n */\n error?: (string | null);\n\n /**\n * The number of the axis that cannot be set.\n */\n axisNumber: number;\n\n}\n\nexport const CanSetStateAxisResponse = {\n fromBinary: (buffer: Uint8Array): CanSetStateAxisResponse => CanSetStateAxisResponse.convert(BSON.deserialize(buffer, { useBigInt64: true })),\n toBinary: (value: CanSetStateAxisResponse): Uint8Array => BSON.serialize(CanSetStateAxisResponse.sanitize(value)),\n DEFAULT: Object.freeze({\n error: null,\n axisNumber: 0,\n }) as Readonly<CanSetStateAxisResponse>,\n sanitize: (value: CanSetStateAxisResponse): CanSetStateAxisResponse => {\n if (value == null) { throw new TypeError('Expected CanSetStateAxisResponse object but got null or undefined.') }\n if (typeof value !== 'object') { throw new TypeError(`Expected CanSetStateAxisResponse object but got ${typeof value}.`) }\n return {\n error: value.error != null ? sanitizer.sanitizeString(value.error, 'error') : null,\n axisNumber: sanitizer.sanitizeInt(value.axisNumber, 'axisNumber'),\n };\n },\n convert: (value: BSON.Document): CanSetStateAxisResponse => ({\n error: value.error,\n axisNumber: value.axisNumber,\n })\n};\n"]}
|
|
@@ -5,11 +5,12 @@ import { CanSetStateAxisResponse } from '../ascii/can_set_state_axis_response';
|
|
|
5
5
|
*/
|
|
6
6
|
export interface CanSetStateDeviceResponse {
|
|
7
7
|
/**
|
|
8
|
-
* The error blocking applying this state to the given device.
|
|
8
|
+
* The error blocking applying this state to the given device, or null if there is no error.
|
|
9
9
|
*/
|
|
10
10
|
error?: (string | null);
|
|
11
11
|
/**
|
|
12
|
-
* A list of
|
|
12
|
+
* A list of axis responses, potentially with messages for errors
|
|
13
|
+
* which would block setting the state of the device's axes.
|
|
13
14
|
*/
|
|
14
15
|
axisErrors: CanSetStateAxisResponse[];
|
|
15
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"can_set_state_device_response.d.ts","sourceRoot":"","sources":["../../../src/ascii/can_set_state_device_response.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAE5B,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAE/E;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,KAAK,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAExB
|
|
1
|
+
{"version":3,"file":"can_set_state_device_response.d.ts","sourceRoot":"","sources":["../../../src/ascii/can_set_state_device_response.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAE5B,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAE/E;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,KAAK,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAExB;;;OAGG;IACH,UAAU,EAAE,uBAAuB,EAAE,CAAC;CAEvC;AAED,eAAO,MAAM,yBAAyB;yBACf,UAAU,KAAG,yBAAyB;sBACzC,yBAAyB,KAAG,UAAU;;sBAKtC,yBAAyB,KAAG,yBAAyB;qBAQtD,KAAK,QAAQ,KAAG,yBAAyB;CAI3D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"can_set_state_device_response.js","sourceRoot":"","sources":["../../../src/ascii/can_set_state_device_response.ts"],"names":[],"mappings":";;;AAAA,oDAAoD;AACpD,+BAA4B;AAC5B,oDAAiD;AACjD,sFAA+E;
|
|
1
|
+
{"version":3,"file":"can_set_state_device_response.js","sourceRoot":"","sources":["../../../src/ascii/can_set_state_device_response.ts"],"names":[],"mappings":";;;AAAA,oDAAoD;AACpD,+BAA4B;AAC5B,oDAAiD;AACjD,sFAA+E;AAmBlE,QAAA,yBAAyB,GAAG;IACvC,UAAU,EAAE,CAAC,MAAkB,EAA6B,EAAE,CAAC,iCAAyB,CAAC,OAAO,CAAC,WAAI,CAAC,WAAW,CAAC,MAAM,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC;IACjJ,QAAQ,EAAE,CAAC,KAAgC,EAAc,EAAE,CAAC,WAAI,CAAC,SAAS,CAAC,iCAAyB,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACrH,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;QACrB,KAAK,EAAE,IAAI;QACX,UAAU,EAAE,EAAE;KACf,CAAwC;IACzC,QAAQ,EAAE,CAAC,KAAgC,EAA6B,EAAE;QACxE,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;YAAC,MAAM,IAAI,SAAS,CAAC,sEAAsE,CAAC,CAAA;QAAC,CAAC;QAClH,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YAAC,MAAM,IAAI,SAAS,CAAC,qDAAqD,OAAO,KAAK,GAAG,CAAC,CAAA;QAAC,CAAC;QAC5H,OAAO;YACL,KAAK,EAAE,KAAK,CAAC,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC,qBAAS,CAAC,cAAc,CAAC,KAAK,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI;YAClF,UAAU,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,IAAI,EAAE,EAAE,IAAI,CAAC,EAAE,CAAC,qDAAuB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;SAC/F,CAAC;IACJ,CAAC;IACD,OAAO,EAAE,CAAC,KAAoB,EAA6B,EAAE,CAAC,CAAC;QAC7D,KAAK,EAAE,KAAK,CAAC,KAAK;QAClB,UAAU,EAAE,KAAK,CAAC,UAAU;KAC7B,CAAC;CACH,CAAC","sourcesContent":["/* This file is generated. Do not modify by hand. */\nimport { BSON } from 'bson';\nimport { sanitizer } from '../gateway/sanitizer';\nimport { CanSetStateAxisResponse } from '../ascii/can_set_state_axis_response';\n\n/**\n * An object containing any setup issues that will prevent setting a state to a given device.\n */\nexport interface CanSetStateDeviceResponse {\n /**\n * The error blocking applying this state to the given device, or null if there is no error.\n */\n error?: (string | null);\n\n /**\n * A list of axis responses, potentially with messages for errors\n * which would block setting the state of the device's axes.\n */\n axisErrors: CanSetStateAxisResponse[];\n\n}\n\nexport const CanSetStateDeviceResponse = {\n fromBinary: (buffer: Uint8Array): CanSetStateDeviceResponse => CanSetStateDeviceResponse.convert(BSON.deserialize(buffer, { useBigInt64: true })),\n toBinary: (value: CanSetStateDeviceResponse): Uint8Array => BSON.serialize(CanSetStateDeviceResponse.sanitize(value)),\n DEFAULT: Object.freeze({\n error: null,\n axisErrors: [],\n }) as Readonly<CanSetStateDeviceResponse>,\n sanitize: (value: CanSetStateDeviceResponse): CanSetStateDeviceResponse => {\n if (value == null) { throw new TypeError('Expected CanSetStateDeviceResponse object but got null or undefined.') }\n if (typeof value !== 'object') { throw new TypeError(`Expected CanSetStateDeviceResponse object but got ${typeof value}.`) }\n return {\n error: value.error != null ? sanitizer.sanitizeString(value.error, 'error') : null,\n axisErrors: Array.from(value.axisErrors ?? [], item => CanSetStateAxisResponse.sanitize(item)),\n };\n },\n convert: (value: BSON.Document): CanSetStateDeviceResponse => ({\n error: value.error,\n axisErrors: value.axisErrors,\n })\n};\n"]}
|
|
@@ -25,6 +25,7 @@ export * from './lockstep';
|
|
|
25
25
|
export * from './lockstep_axes';
|
|
26
26
|
export * from './measurement_sequence';
|
|
27
27
|
export * from './message_type';
|
|
28
|
+
export * from './optional_measurement_sequence';
|
|
28
29
|
export * from './oscilloscope';
|
|
29
30
|
export * from './oscilloscope_capture_properties';
|
|
30
31
|
export * from './oscilloscope_data';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ascii/index.ts"],"names":[],"mappings":"AACA,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,iBA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@ __exportStar(require("./lockstep"), exports);
|
|
|
42
42
|
__exportStar(require("./lockstep_axes"), exports);
|
|
43
43
|
__exportStar(require("./measurement_sequence"), exports);
|
|
44
44
|
__exportStar(require("./message_type"), exports);
|
|
45
|
+
__exportStar(require("./optional_measurement_sequence"), exports);
|
|
45
46
|
__exportStar(require("./oscilloscope"), exports);
|
|
46
47
|
__exportStar(require("./oscilloscope_capture_properties"), exports);
|
|
47
48
|
__exportStar(require("./oscilloscope_data"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ascii/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAoD;AACpD,gDAA8B;AAC9B,6CAA2B;AAC3B,yCAAuB;AACvB,+CAA6B;AAC7B,kDAAgC;AAChC,kDAAgC;AAChC,8CAA4B;AAC5B,gEAA8C;AAC9C,kEAAgD;AAChD,+CAA6B;AAC7B,sDAAoC;AACpC,2CAAyB;AACzB,oDAAkC;AAClC,8CAA4B;AAC5B,mDAAiC;AACjC,oDAAkC;AAClC,0DAAwC;AACxC,qDAAmC;AACnC,4DAA0C;AAC1C,gDAA8B;AAC9B,uDAAqC;AACrC,kDAAgC;AAChC,iDAA+B;AAC/B,6CAA2B;AAC3B,kDAAgC;AAChC,yDAAuC;AACvC,iDAA+B;AAC/B,iDAA+B;AAC/B,oEAAkD;AAClD,sDAAoC;AACpC,6DAA2C;AAC3C,kDAAgC;AAChC,+CAA6B;AAC7B,wCAAsB;AACtB,wDAAsC;AACtC,kDAAgC;AAChC,+CAA6B;AAC7B,iDAA+B;AAC/B,2CAAyB;AACzB,6CAA2B;AAC3B,iDAA+B;AAC/B,sDAAoC;AACpC,6CAA2B;AAC3B,gDAA8B;AAC9B,uDAAqC;AACrC,0DAAwC;AACxC,4DAA0C;AAC1C,8DAA4C;AAC5C,sDAAoC;AACpC,kDAAgC;AAChC,mEAAiD;AACjD,4CAA0B;AAC1B,2CAAyB;AACzB,2DAAyC;AACzC,qDAAmC;AACnC,kDAAgC;AAChC,8CAA4B;AAC5B,gDAA8B;AAC9B,4CAA0B;AAC1B,8CAA4B;AAC5B,4CAA0B;AAC1B,mDAAiC;AACjC,sDAAoC;AACpC,0DAAwC;AACxC,sDAAoC;AACpC,kDAAgC;AAChC,6CAA2B;AAC3B,2DAAyC;AACzC,kDAAgC;AAChC,6CAA2B","sourcesContent":["/* This file is generated. Do not modify by hand. */\nexport * from './alert_event';\nexport * from './all_axes';\nexport * from './axis';\nexport * from './axis_group';\nexport * from './axis_identity';\nexport * from './axis_settings';\nexport * from './axis_type';\nexport * from './can_set_state_axis_response';\nexport * from './can_set_state_device_response';\nexport * from './connection';\nexport * from './conversion_factor';\nexport * from './device';\nexport * from './device_identity';\nexport * from './device_io';\nexport * from './device_io_info';\nexport * from './device_settings';\nexport * from './digital_output_action';\nexport * from './get_axis_setting';\nexport * from './get_axis_setting_result';\nexport * from './get_setting';\nexport * from './get_setting_result';\nexport * from './io_port_label';\nexport * from './io_port_type';\nexport * from './lockstep';\nexport * from './lockstep_axes';\nexport * from './measurement_sequence';\nexport * from './message_type';\nexport * from './oscilloscope';\nexport * from './oscilloscope_capture_properties';\nexport * from './oscilloscope_data';\nexport * from './oscilloscope_data_source';\nexport * from './paramset_info';\nexport * from './pid_tuning';\nexport * from './pvt';\nexport * from './pvt_axis_definition';\nexport * from './pvt_axis_type';\nexport * from './pvt_buffer';\nexport * from './pvt_csv_data';\nexport * from './pvt_io';\nexport * from './pvt_mode';\nexport * from './pvt_sequence';\nexport * from './pvt_sequence_data';\nexport * from './response';\nexport * from './servo_tuner';\nexport * from './servo_tuning_param';\nexport * from './servo_tuning_paramset';\nexport * from './set_state_axis_response';\nexport * from './set_state_device_response';\nexport * from './setting_constants';\nexport * from './simple_tuning';\nexport * from './simple_tuning_param_definition';\nexport * from './storage';\nexport * from './stream';\nexport * from './stream_axis_definition';\nexport * from './stream_axis_type';\nexport * from './stream_buffer';\nexport * from './stream_io';\nexport * from './stream_mode';\nexport * from './streams';\nexport * from './transport';\nexport * from './trigger';\nexport * from './trigger_action';\nexport * from './trigger_condition';\nexport * from './trigger_enabled_state';\nexport * from './trigger_operation';\nexport * from './trigger_state';\nexport * from './triggers';\nexport * from './unknown_response_event';\nexport * from './warning_flags';\nexport * from './warnings';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ascii/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAoD;AACpD,gDAA8B;AAC9B,6CAA2B;AAC3B,yCAAuB;AACvB,+CAA6B;AAC7B,kDAAgC;AAChC,kDAAgC;AAChC,8CAA4B;AAC5B,gEAA8C;AAC9C,kEAAgD;AAChD,+CAA6B;AAC7B,sDAAoC;AACpC,2CAAyB;AACzB,oDAAkC;AAClC,8CAA4B;AAC5B,mDAAiC;AACjC,oDAAkC;AAClC,0DAAwC;AACxC,qDAAmC;AACnC,4DAA0C;AAC1C,gDAA8B;AAC9B,uDAAqC;AACrC,kDAAgC;AAChC,iDAA+B;AAC/B,6CAA2B;AAC3B,kDAAgC;AAChC,yDAAuC;AACvC,iDAA+B;AAC/B,kEAAgD;AAChD,iDAA+B;AAC/B,oEAAkD;AAClD,sDAAoC;AACpC,6DAA2C;AAC3C,kDAAgC;AAChC,+CAA6B;AAC7B,wCAAsB;AACtB,wDAAsC;AACtC,kDAAgC;AAChC,+CAA6B;AAC7B,iDAA+B;AAC/B,2CAAyB;AACzB,6CAA2B;AAC3B,iDAA+B;AAC/B,sDAAoC;AACpC,6CAA2B;AAC3B,gDAA8B;AAC9B,uDAAqC;AACrC,0DAAwC;AACxC,4DAA0C;AAC1C,8DAA4C;AAC5C,sDAAoC;AACpC,kDAAgC;AAChC,mEAAiD;AACjD,4CAA0B;AAC1B,2CAAyB;AACzB,2DAAyC;AACzC,qDAAmC;AACnC,kDAAgC;AAChC,8CAA4B;AAC5B,gDAA8B;AAC9B,4CAA0B;AAC1B,8CAA4B;AAC5B,4CAA0B;AAC1B,mDAAiC;AACjC,sDAAoC;AACpC,0DAAwC;AACxC,sDAAoC;AACpC,kDAAgC;AAChC,6CAA2B;AAC3B,2DAAyC;AACzC,kDAAgC;AAChC,6CAA2B","sourcesContent":["/* This file is generated. Do not modify by hand. */\nexport * from './alert_event';\nexport * from './all_axes';\nexport * from './axis';\nexport * from './axis_group';\nexport * from './axis_identity';\nexport * from './axis_settings';\nexport * from './axis_type';\nexport * from './can_set_state_axis_response';\nexport * from './can_set_state_device_response';\nexport * from './connection';\nexport * from './conversion_factor';\nexport * from './device';\nexport * from './device_identity';\nexport * from './device_io';\nexport * from './device_io_info';\nexport * from './device_settings';\nexport * from './digital_output_action';\nexport * from './get_axis_setting';\nexport * from './get_axis_setting_result';\nexport * from './get_setting';\nexport * from './get_setting_result';\nexport * from './io_port_label';\nexport * from './io_port_type';\nexport * from './lockstep';\nexport * from './lockstep_axes';\nexport * from './measurement_sequence';\nexport * from './message_type';\nexport * from './optional_measurement_sequence';\nexport * from './oscilloscope';\nexport * from './oscilloscope_capture_properties';\nexport * from './oscilloscope_data';\nexport * from './oscilloscope_data_source';\nexport * from './paramset_info';\nexport * from './pid_tuning';\nexport * from './pvt';\nexport * from './pvt_axis_definition';\nexport * from './pvt_axis_type';\nexport * from './pvt_buffer';\nexport * from './pvt_csv_data';\nexport * from './pvt_io';\nexport * from './pvt_mode';\nexport * from './pvt_sequence';\nexport * from './pvt_sequence_data';\nexport * from './response';\nexport * from './servo_tuner';\nexport * from './servo_tuning_param';\nexport * from './servo_tuning_paramset';\nexport * from './set_state_axis_response';\nexport * from './set_state_device_response';\nexport * from './setting_constants';\nexport * from './simple_tuning';\nexport * from './simple_tuning_param_definition';\nexport * from './storage';\nexport * from './stream';\nexport * from './stream_axis_definition';\nexport * from './stream_axis_type';\nexport * from './stream_buffer';\nexport * from './stream_io';\nexport * from './stream_mode';\nexport * from './streams';\nexport * from './transport';\nexport * from './trigger';\nexport * from './trigger_action';\nexport * from './trigger_condition';\nexport * from './trigger_enabled_state';\nexport * from './trigger_operation';\nexport * from './trigger_state';\nexport * from './triggers';\nexport * from './unknown_response_event';\nexport * from './warning_flags';\nexport * from './warnings';\n"]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { BSON } from 'bson';
|
|
2
|
+
import { Units } from '../units';
|
|
3
|
+
/**
|
|
4
|
+
* Represents a sequence of optional numerical values with optional units specified.
|
|
5
|
+
*/
|
|
6
|
+
export interface OptionalMeasurementSequence {
|
|
7
|
+
/**
|
|
8
|
+
* Sequence of values.
|
|
9
|
+
*/
|
|
10
|
+
values: (number | null)[];
|
|
11
|
+
/**
|
|
12
|
+
* Optional units of the sequence.
|
|
13
|
+
*/
|
|
14
|
+
unit?: (Units | null);
|
|
15
|
+
}
|
|
16
|
+
export declare const OptionalMeasurementSequence: {
|
|
17
|
+
fromBinary: (buffer: Uint8Array) => OptionalMeasurementSequence;
|
|
18
|
+
toBinary: (value: OptionalMeasurementSequence) => Uint8Array;
|
|
19
|
+
DEFAULT: Readonly<OptionalMeasurementSequence>;
|
|
20
|
+
sanitize: (value: OptionalMeasurementSequence) => OptionalMeasurementSequence;
|
|
21
|
+
convert: (value: BSON.Document) => OptionalMeasurementSequence;
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=optional_measurement_sequence.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"optional_measurement_sequence.d.ts","sourceRoot":"","sources":["../../../src/ascii/optional_measurement_sequence.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAE5B,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,MAAM,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,CAAC;IAE1B;;OAEG;IACH,IAAI,CAAC,EAAE,CAAC,KAAK,GAAG,IAAI,CAAC,CAAC;CAEvB;AAED,eAAO,MAAM,2BAA2B;yBACjB,UAAU,KAAG,2BAA2B;sBAC3C,2BAA2B,KAAG,UAAU;;sBAKxC,2BAA2B,KAAG,2BAA2B;qBAQ1D,KAAK,QAAQ,KAAG,2BAA2B;CAI7D,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OptionalMeasurementSequence = void 0;
|
|
4
|
+
/* This file is generated. Do not modify by hand. */
|
|
5
|
+
const bson_1 = require("bson");
|
|
6
|
+
const sanitizer_1 = require("../gateway/sanitizer");
|
|
7
|
+
exports.OptionalMeasurementSequence = {
|
|
8
|
+
fromBinary: (buffer) => exports.OptionalMeasurementSequence.convert(bson_1.BSON.deserialize(buffer, { useBigInt64: true })),
|
|
9
|
+
toBinary: (value) => bson_1.BSON.serialize(exports.OptionalMeasurementSequence.sanitize(value)),
|
|
10
|
+
DEFAULT: Object.freeze({
|
|
11
|
+
values: [],
|
|
12
|
+
unit: null,
|
|
13
|
+
}),
|
|
14
|
+
sanitize: (value) => {
|
|
15
|
+
if (value == null) {
|
|
16
|
+
throw new TypeError('Expected OptionalMeasurementSequence object but got null or undefined.');
|
|
17
|
+
}
|
|
18
|
+
if (typeof value !== 'object') {
|
|
19
|
+
throw new TypeError(`Expected OptionalMeasurementSequence object but got ${typeof value}.`);
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
values: Array.from(value.values ?? [], item => item != null ? sanitizer_1.sanitizer.sanitizeNumber(item, 'items of values') : null),
|
|
23
|
+
unit: value.unit != null ? sanitizer_1.sanitizer.sanitizeUnits(value.unit, 'unit') : null,
|
|
24
|
+
};
|
|
25
|
+
},
|
|
26
|
+
convert: (value) => ({
|
|
27
|
+
values: value.values,
|
|
28
|
+
unit: value.unit,
|
|
29
|
+
})
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=optional_measurement_sequence.js.map
|
|
@@ -0,0 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E,CAAC;IACJ,CAAC;IACD,OAAO,EAAE,CAAC,KAAoB,EAA+B,EAAE,CAAC,CAAC;QAC/D,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,IAAI,EAAE,KAAK,CAAC,IAAI;KACjB,CAAC;CACH,CAAC","sourcesContent":["/* This file is generated. Do not modify by hand. */\nimport { BSON } from 'bson';\nimport { sanitizer } from '../gateway/sanitizer';\nimport { Units } from '../units';\n\n/**\n * Represents a sequence of optional numerical values with optional units specified.\n */\nexport interface OptionalMeasurementSequence {\n /**\n * Sequence of values.\n */\n values: (number | null)[];\n\n /**\n * Optional units of the sequence.\n */\n unit?: (Units | null);\n\n}\n\nexport const OptionalMeasurementSequence = {\n fromBinary: (buffer: Uint8Array): OptionalMeasurementSequence => OptionalMeasurementSequence.convert(BSON.deserialize(buffer, { useBigInt64: true })),\n toBinary: (value: OptionalMeasurementSequence): Uint8Array => BSON.serialize(OptionalMeasurementSequence.sanitize(value)),\n DEFAULT: Object.freeze({\n values: [],\n unit: null,\n }) as Readonly<OptionalMeasurementSequence>,\n sanitize: (value: OptionalMeasurementSequence): OptionalMeasurementSequence => {\n if (value == null) { throw new TypeError('Expected OptionalMeasurementSequence object but got null or undefined.') }\n if (typeof value !== 'object') { throw new TypeError(`Expected OptionalMeasurementSequence object but got ${typeof value}.`) }\n return {\n values: Array.from(value.values ?? [], item => item != null ? sanitizer.sanitizeNumber(item, 'items of values') : null),\n unit: value.unit != null ? sanitizer.sanitizeUnits(value.unit, 'unit') : null,\n };\n },\n convert: (value: BSON.Document): OptionalMeasurementSequence => ({\n values: value.values,\n unit: value.unit,\n })\n};\n"]}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Device } from './device';
|
|
2
|
-
import { MeasurementSequence } from './measurement_sequence';
|
|
3
2
|
import { Measurement } from '../measurement';
|
|
4
3
|
import { PvtBuffer } from './pvt_buffer';
|
|
5
4
|
import { PvtMode } from './pvt_mode';
|
|
6
5
|
import { PvtAxisDefinition } from './pvt_axis_definition';
|
|
6
|
+
import { MeasurementSequence } from './measurement_sequence';
|
|
7
|
+
import { OptionalMeasurementSequence } from './optional_measurement_sequence';
|
|
7
8
|
import { PvtSequenceData } from './pvt_sequence_data';
|
|
8
9
|
import { PvtCsvData } from './pvt_csv_data';
|
|
9
10
|
import { PvtIo } from './pvt_io';
|
|
@@ -109,6 +110,45 @@ export declare class PvtSequence {
|
|
|
109
110
|
* For times [t0, t1, ...] and positions [p0, p1, ...], t1 is the time it takes to move from p0 to p1.
|
|
110
111
|
*/
|
|
111
112
|
pointsRelative(positions: MeasurementSequence[], velocities: MeasurementSequence[], times: MeasurementSequence): Promise<void>;
|
|
113
|
+
/**
|
|
114
|
+
* Generates velocities for a sequence of positions and times, and (optionally) a partially defined sequence
|
|
115
|
+
* of velocities. Note that if some velocities are defined, the solver will NOT modify them in any way.
|
|
116
|
+
* If all velocities are defined, the solver will simply return the same velocities.
|
|
117
|
+
* This function calculates velocities by enforcing that acceleration be continuous at each segment transition.
|
|
118
|
+
*
|
|
119
|
+
* Also note that if generating a path for multiple axes, the user must provide a position measurement sequence
|
|
120
|
+
* per axis, And the values arrays for each sequence must be equal in length to each other and also to the
|
|
121
|
+
* times sequence.
|
|
122
|
+
* @param positions Positions for the axes to move through, relative to their home positions.
|
|
123
|
+
* Each MeasurementSequence represents a sequence of positions along a particular dimension.
|
|
124
|
+
* For example, a 2D path sequence would contain two MeasurementSequence objects,
|
|
125
|
+
* one representing positions along X and one for those along Y.
|
|
126
|
+
* @param times The relative or absolute time of each position in the PVT sequence.
|
|
127
|
+
* @param velocities Optional velocities corresponding to each point in the position sequences.
|
|
128
|
+
* @param [timesRelative=true] If true, the times sequence values are interpreted as relative. Otherwise,
|
|
129
|
+
* they are interpreted as absolute. Note that the values of the returned time
|
|
130
|
+
* sequence are ALWAYS relative. This is because the PVT sequence API expects
|
|
131
|
+
* points to have relative times.
|
|
132
|
+
* @returns Object containing the generated PVT sequence. Note that returned time sequence is always relative.
|
|
133
|
+
*/
|
|
134
|
+
static generateVelocities(positions: MeasurementSequence[], times: MeasurementSequence, velocities?: OptionalMeasurementSequence[], timesRelative?: boolean): Promise<PvtSequenceData>;
|
|
135
|
+
/**
|
|
136
|
+
* Generates positions for a sequence of velocities and times. This function calculates
|
|
137
|
+
* positions by enforcing that acceleration be continuous at each segment transition.
|
|
138
|
+
*
|
|
139
|
+
* Note that if generating a path for multiple axes, the user must provide a
|
|
140
|
+
* velocity measurement sequence per axis, and the values arrays for each sequence
|
|
141
|
+
* must be equal in length to each other and also to the times sequence.
|
|
142
|
+
* @param velocities The sequence of velocities for each axis.
|
|
143
|
+
* Each MeasurementSequence represents a sequence of velocities along particular dimension.
|
|
144
|
+
* @param times The relative or absolute time of each position in the PVT sequence.
|
|
145
|
+
* @param [timesRelative=true] If true, the times sequence values are interpreted as relative. Otherwise,
|
|
146
|
+
* they are interpreted as absolute. Note that the values of the returned time
|
|
147
|
+
* sequence are ALWAYS relative. This is because the PVT sequence API expects
|
|
148
|
+
* points to have relative times.
|
|
149
|
+
* @returns Object containing the generated PVT sequence. Note that returned time sequence is always relative.
|
|
150
|
+
*/
|
|
151
|
+
static generatePositions(velocities: MeasurementSequence[], times: MeasurementSequence, timesRelative?: boolean): Promise<PvtSequenceData>;
|
|
112
152
|
/**
|
|
113
153
|
* Waits until the live PVT sequence executes all queued actions.
|
|
114
154
|
* @param [options.throwErrorOnFault=true] Determines whether to throw error when fault is observed.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pvt_sequence.d.ts","sourceRoot":"","sources":["../../../src/ascii/pvt_sequence.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"pvt_sequence.d.ts","sourceRoot":"","sources":["../../../src/ascii/pvt_sequence.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,OAAO,EAAE,WAAW,EAAE,MAAM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;OAMG;IACU,eAAe,CAC1B,aAAa,EAAE,MAAM,EACrB,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,IAAI,CAAC;IAiBhB;;;;;OAKG;IACU,mBAAmB,CAC9B,MAAM,EAAE,MAAM,EAAE,GACf,OAAO,CAAC,IAAI,CAAC;CAejB;AAED,kBAAU,WAAW,CAAC;IACpB,UAAiB,oBAAoB;QACjC;;WAEG;QACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;KAC/B;CACF"}
|
|
@@ -28,6 +28,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
28
28
|
exports.PvtSequence = void 0;
|
|
29
29
|
const gateway = __importStar(require("../gateway"));
|
|
30
30
|
const requests = __importStar(require("../requests"));
|
|
31
|
+
const pvt_sequence_data_1 = require("./pvt_sequence_data");
|
|
31
32
|
const pvt_csv_data_1 = require("./pvt_csv_data");
|
|
32
33
|
const pvt_io_1 = require("./pvt_io");
|
|
33
34
|
/**
|
|
@@ -273,6 +274,70 @@ class PvtSequence {
|
|
|
273
274
|
};
|
|
274
275
|
await gateway.callAsync('device/stream_points', request);
|
|
275
276
|
}
|
|
277
|
+
/**
|
|
278
|
+
* Generates velocities for a sequence of positions and times, and (optionally) a partially defined sequence
|
|
279
|
+
* of velocities. Note that if some velocities are defined, the solver will NOT modify them in any way.
|
|
280
|
+
* If all velocities are defined, the solver will simply return the same velocities.
|
|
281
|
+
* This function calculates velocities by enforcing that acceleration be continuous at each segment transition.
|
|
282
|
+
*
|
|
283
|
+
* Also note that if generating a path for multiple axes, the user must provide a position measurement sequence
|
|
284
|
+
* per axis, And the values arrays for each sequence must be equal in length to each other and also to the
|
|
285
|
+
* times sequence.
|
|
286
|
+
* @param positions Positions for the axes to move through, relative to their home positions.
|
|
287
|
+
* Each MeasurementSequence represents a sequence of positions along a particular dimension.
|
|
288
|
+
* For example, a 2D path sequence would contain two MeasurementSequence objects,
|
|
289
|
+
* one representing positions along X and one for those along Y.
|
|
290
|
+
* @param times The relative or absolute time of each position in the PVT sequence.
|
|
291
|
+
* @param velocities Optional velocities corresponding to each point in the position sequences.
|
|
292
|
+
* @param [timesRelative=true] If true, the times sequence values are interpreted as relative. Otherwise,
|
|
293
|
+
* they are interpreted as absolute. Note that the values of the returned time
|
|
294
|
+
* sequence are ALWAYS relative. This is because the PVT sequence API expects
|
|
295
|
+
* points to have relative times.
|
|
296
|
+
* @returns Object containing the generated PVT sequence. Note that returned time sequence is always relative.
|
|
297
|
+
*/
|
|
298
|
+
static async generateVelocities(positions, times, velocities, timesRelative = true) {
|
|
299
|
+
const request = {
|
|
300
|
+
...requests.PvtGenerateVelocitiesRequest.DEFAULT,
|
|
301
|
+
positions: positions,
|
|
302
|
+
times: times,
|
|
303
|
+
velocities: velocities,
|
|
304
|
+
timesRelative: timesRelative,
|
|
305
|
+
toBinary() {
|
|
306
|
+
return requests.PvtGenerateVelocitiesRequest.toBinary(this);
|
|
307
|
+
},
|
|
308
|
+
};
|
|
309
|
+
const response = await gateway.callAsync('device/pvt_generate_velocities', request, pvt_sequence_data_1.PvtSequenceData.fromBinary);
|
|
310
|
+
return response;
|
|
311
|
+
}
|
|
312
|
+
/**
|
|
313
|
+
* Generates positions for a sequence of velocities and times. This function calculates
|
|
314
|
+
* positions by enforcing that acceleration be continuous at each segment transition.
|
|
315
|
+
*
|
|
316
|
+
* Note that if generating a path for multiple axes, the user must provide a
|
|
317
|
+
* velocity measurement sequence per axis, and the values arrays for each sequence
|
|
318
|
+
* must be equal in length to each other and also to the times sequence.
|
|
319
|
+
* @param velocities The sequence of velocities for each axis.
|
|
320
|
+
* Each MeasurementSequence represents a sequence of velocities along particular dimension.
|
|
321
|
+
* @param times The relative or absolute time of each position in the PVT sequence.
|
|
322
|
+
* @param [timesRelative=true] If true, the times sequence values are interpreted as relative. Otherwise,
|
|
323
|
+
* they are interpreted as absolute. Note that the values of the returned time
|
|
324
|
+
* sequence are ALWAYS relative. This is because the PVT sequence API expects
|
|
325
|
+
* points to have relative times.
|
|
326
|
+
* @returns Object containing the generated PVT sequence. Note that returned time sequence is always relative.
|
|
327
|
+
*/
|
|
328
|
+
static async generatePositions(velocities, times, timesRelative = true) {
|
|
329
|
+
const request = {
|
|
330
|
+
...requests.PvtGeneratePositionsRequest.DEFAULT,
|
|
331
|
+
velocities: velocities,
|
|
332
|
+
times: times,
|
|
333
|
+
timesRelative: timesRelative,
|
|
334
|
+
toBinary() {
|
|
335
|
+
return requests.PvtGeneratePositionsRequest.toBinary(this);
|
|
336
|
+
},
|
|
337
|
+
};
|
|
338
|
+
const response = await gateway.callAsync('device/pvt_generate_positions', request, pvt_sequence_data_1.PvtSequenceData.fromBinary);
|
|
339
|
+
return response;
|
|
340
|
+
}
|
|
276
341
|
/**
|
|
277
342
|
* Waits until the live PVT sequence executes all queued actions.
|
|
278
343
|
* @param [options.throwErrorOnFault=true] Determines whether to throw error when fault is observed.
|