rticonnextdds-connector 1.2.2 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE.pdf +0 -0
- package/README.md +5 -5
- package/README.rst +5 -6
- package/examples/nodejs/simple/writer.js +2 -2
- package/examples/nodejs/web_socket/indexMaps.html +1 -1
- package/package.json +7 -16
- package/rticonnextdds-connector/lib/linux-arm/libnddsc.so +0 -0
- package/rticonnextdds-connector/lib/linux-arm/libnddscore.so +0 -0
- package/rticonnextdds-connector/lib/linux-arm/librtiddsconnector.so +0 -0
- package/rticonnextdds-connector/lib/linux-arm64/libnddsc.so +0 -0
- package/rticonnextdds-connector/lib/linux-arm64/libnddscore.so +0 -0
- package/rticonnextdds-connector/lib/linux-arm64/librtiddsconnector.so +0 -0
- package/rticonnextdds-connector/lib/linux-x64/libnddsc.so +0 -0
- package/rticonnextdds-connector/lib/linux-x64/libnddscore.so +0 -0
- package/rticonnextdds-connector/lib/linux-x64/librtiddsconnector.so +0 -0
- package/rticonnextdds-connector/lib/osx-x64/libnddsc.dylib +0 -0
- package/rticonnextdds-connector/lib/osx-x64/libnddscore.dylib +0 -0
- package/rticonnextdds-connector/lib/osx-x64/librtiddsconnector.dylib +0 -0
- package/rticonnextdds-connector/lib/win-x64/nddsc.dll +0 -0
- package/rticonnextdds-connector/lib/win-x64/nddscore.dll +0 -0
- package/rticonnextdds-connector/lib/win-x64/rtiddsconnector.dll +0 -0
- package/rticonnextdds-connector/lib/win-x64/vcruntime140.dll +0 -0
- package/rticonnextdds-connector.js +8 -19
- package/rticonnextdds-connector/LICENSE.pdf +0 -0
- package/rticonnextdds-connector/README.md +0 -43
package/LICENSE.pdf
CHANGED
Binary file
|
package/README.md
CHANGED
@@ -48,9 +48,9 @@ The dependency [ref](https://www.npmjs.com/package/ref) is shipped as source cod
|
|
48
48
|
|
49
49
|
## License
|
50
50
|
|
51
|
-
RTI Connector for JavaScript
|
52
|
-
|
53
|
-
Professional Package, such license shall govern your use of
|
54
|
-
|
51
|
+
RTI Connector for JavaScript is part of the Connext
|
52
|
+
Professional Package. If you have a valid license for the RTI Connext
|
53
|
+
Professional Package, such license shall govern your use of
|
54
|
+
RTI Connector for JavaScript. All other use of this software shall
|
55
55
|
be governed solely by the terms of RTI’s Software License for Non-Commercial
|
56
|
-
Use #4040
|
56
|
+
Use #4040.
|
package/README.rst
CHANGED
@@ -70,10 +70,9 @@ source code and requires a C++11 compiler.
|
|
70
70
|
License
|
71
71
|
-------
|
72
72
|
|
73
|
-
RTI Connector for JavaScript
|
74
|
-
the Connext
|
75
|
-
the RTI Connext
|
76
|
-
use of RTI Connector for
|
73
|
+
RTI Connector for JavaScript is part of
|
74
|
+
the Connext Professional Package. If you have a valid license for
|
75
|
+
the RTI Connext Professional Package, such license shall govern your
|
76
|
+
use of RTI Connector for JavaScript. All
|
77
77
|
other use of this software shall be governed solely by the terms of
|
78
|
-
RTI’s Software License for Non-Commercial Use #4040
|
79
|
-
level of the \`Connector for Python repository
|
78
|
+
RTI’s Software License for Non-Commercial Use #4040.
|
@@ -6,7 +6,7 @@
|
|
6
6
|
* This code contains trade secrets of Real-Time Innovations, Inc. *
|
7
7
|
******************************************************************************/
|
8
8
|
|
9
|
-
const
|
9
|
+
const msleep = require('util').promisify(setTimeout)
|
10
10
|
const path = require('path')
|
11
11
|
const rti = require('rticonnextdds-connector')
|
12
12
|
const configFile = path.join(__dirname, '/../ShapeExample.xml')
|
@@ -26,7 +26,7 @@ const run = async () => {
|
|
26
26
|
output.instance.setString('color', 'BLUE')
|
27
27
|
output.write()
|
28
28
|
|
29
|
-
|
29
|
+
await msleep(500)
|
30
30
|
}
|
31
31
|
|
32
32
|
console.log('Exiting...')
|
@@ -13,7 +13,7 @@
|
|
13
13
|
<!-- The line below is only needed for old environments like Internet Explorer and Android 4.x -->
|
14
14
|
<script src="/socket.io/socket.io.js"></script>
|
15
15
|
<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=requestAnimationFrame,Element.prototype.classList,URL"></script>
|
16
|
-
<script src="https://cdn.rawgit.com/openlayers/openlayers.github.io/
|
16
|
+
<script src="https://cdn.rawgit.com/openlayers/openlayers.github.io/main/dist/en/v6.0.1/build/ol.js"></script>
|
17
17
|
<style>
|
18
18
|
.map {
|
19
19
|
width: 100%;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "rticonnextdds-connector",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.3.0",
|
4
4
|
"description": "RTI Connector for JavaScript",
|
5
5
|
"main": "rticonnextdds-connector.js",
|
6
6
|
"files": [
|
@@ -14,18 +14,14 @@
|
|
14
14
|
},
|
15
15
|
"dependencies": {
|
16
16
|
"events": "^3.2.0",
|
17
|
-
"ref-napi": "^3.0.1",
|
18
|
-
"ref-struct-napi": "^1.1.1",
|
19
17
|
"ffi-napi": "^3.1.0",
|
20
|
-
"
|
18
|
+
"ref-napi": "^3.0.1",
|
19
|
+
"ref-struct-di": "^1.1.1"
|
21
20
|
},
|
22
21
|
"scripts": {
|
23
22
|
"test": "mocha ./test/nodejs/",
|
24
|
-
"test-
|
25
|
-
"
|
26
|
-
"coverage-ci": "nyc --reporter=clover --reporter=lcov --reporter=text-summary --check-coverage npm run test-ci",
|
27
|
-
"lint": "eslint rticonnextdds-connector.js test/nodejs/ --ext .js",
|
28
|
-
"lint-fix": "eslint --fix rticonnextdds-connector.js test/nodejs/ --ext .js"
|
23
|
+
"test-junit": "mocha ./test/nodejs/ --reporter mocha-junit-reporter",
|
24
|
+
"test-json": "mocha ./test/nodejs/ --reporter json --reporter-option output=test-results.json"
|
29
25
|
},
|
30
26
|
"keywords": [
|
31
27
|
"rti",
|
@@ -43,15 +39,10 @@
|
|
43
39
|
},
|
44
40
|
"homepage": "https://github.com/rticommunity/rticonnextdds-connector-js",
|
45
41
|
"devDependencies": {
|
46
|
-
"babel-eslint": "^10.1.0",
|
47
42
|
"chai": "^4.3.4",
|
48
43
|
"chai-as-promised": "^7.1.1",
|
49
|
-
"
|
50
|
-
"
|
51
|
-
"eslint-plugin-import": "^2.23.4",
|
52
|
-
"eslint-plugin-node": "^11.1.0",
|
53
|
-
"eslint-plugin-promise": "^5.1.0",
|
54
|
-
"nyc": "^15.1.0",
|
44
|
+
"mocha": "^10.2.0",
|
45
|
+
"mocha-junit-reporter": "^2.2.0",
|
55
46
|
"sinon": "^10.0.0"
|
56
47
|
}
|
57
48
|
}
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -10,7 +10,7 @@ const os = require('os')
|
|
10
10
|
const ref = require('ref-napi')
|
11
11
|
const ffi = require('ffi-napi')
|
12
12
|
const path = require('path')
|
13
|
-
const StructType = require('ref-struct-
|
13
|
+
const StructType = require('ref-struct-di')(ref)
|
14
14
|
const EventEmitter = require('events').EventEmitter
|
15
15
|
|
16
16
|
/**
|
@@ -138,8 +138,7 @@ class _ConnectorBinding {
|
|
138
138
|
RTI_Connector_get_last_error_message: ['char *', []],
|
139
139
|
RTI_Connector_get_native_instance: ['int', ['pointer', 'string', ref.refType('pointer')]],
|
140
140
|
RTI_Connector_free_string: ['void', ['char *']],
|
141
|
-
|
142
|
-
RTIDDSConnector_getJSONInstance:['char *', ['pointer', 'string']],
|
141
|
+
RTIDDSConnector_getJSONInstance: ['char *', ['pointer', 'string']],
|
143
142
|
// This API is only used in the unit tests
|
144
143
|
RTI_Connector_create_test_scenario: ['int', ['pointer', 'int', 'pointer']],
|
145
144
|
RTI_Connector_get_build_versions: ['int', [ref.refType('char *'), ref.refType('char *')]]
|
@@ -1487,6 +1486,7 @@ class Instance {
|
|
1487
1486
|
class Output {
|
1488
1487
|
/**
|
1489
1488
|
* This class is used to publish data for a DDS Topic.
|
1489
|
+
*
|
1490
1490
|
* To get an Output object, use :meth:`Connector.getOutput`.
|
1491
1491
|
*
|
1492
1492
|
* Attributes:
|
@@ -2074,26 +2074,15 @@ class Connector extends EventEmitter {
|
|
2074
2074
|
}
|
2075
2075
|
|
2076
2076
|
/**
|
2077
|
-
*
|
2078
|
-
*
|
2079
|
-
*
|
2080
|
-
* The default value is 2048 (which allows for approximately 15 instances
|
2081
|
-
* of :class:`Connector` to be created in a single application). If you need
|
2082
|
-
* to create more than 8 instances of :class:`Connector`, you can increase
|
2083
|
-
* the value from the default.
|
2084
|
-
*
|
2085
|
-
* .. note::
|
2086
|
-
* This is a static method. It can only be called before creating a
|
2087
|
-
* :class:`Connector` instance.
|
2077
|
+
* This method is deprecated since the max_objects_per_thread now grows
|
2078
|
+
* dynamically.
|
2088
2079
|
*
|
2089
|
-
*
|
2090
|
-
*
|
2091
|
-
* in the *RTI Connext DDS Core Libraries User's Manual* for more information.
|
2080
|
+
* Note this method is deprecated in the Ironside release. This static method
|
2081
|
+
* only exists to not break user's applications which are already using it.
|
2092
2082
|
*
|
2093
|
-
* @
|
2083
|
+
* @private
|
2094
2084
|
*/
|
2095
2085
|
static setMaxObjectsPerThread (value) {
|
2096
|
-
_checkRetcode(connectorBinding.api.RTI_Connector_set_max_objects_per_thread(value))
|
2097
2086
|
}
|
2098
2087
|
|
2099
2088
|
/**
|
Binary file
|
@@ -1,43 +0,0 @@
|
|
1
|
-
rticonnextdds-connector
|
2
|
-
=======
|
3
|
-
|
4
|
-
*(This repository hosts the common Connector native library and shouldn't be cloned.
|
5
|
-
See the **[Python](https://github.com/rticommunity/rticonnextdds-connector-py)** or
|
6
|
-
**[JavaScript](https://github.com/rticommunity/rticonnextdds-connector-js)** bindings.)*
|
7
|
-
|
8
|
-
### RTI Connector for Connext DDS 6.1.0 - Getting Started
|
9
|
-
RTI Connext DDS is a software connectivity framework for real-time distributed applications.
|
10
|
-
It uses the publish-subscribe communications model to make data distribution efficient and robust.
|
11
|
-
At its core is the world’s leading ultra-high performance, distributed networking databus.
|
12
|
-
|
13
|
-
RTI Connector is a family of simplified APIs for publishing and subscribing to
|
14
|
-
the Connext DDS Databus in programming languages such as Python and JavaScript.
|
15
|
-
|
16
|
-
*Connector* was created to quickly and easily develop demos
|
17
|
-
and proofs of concept. It can be useful for anybody who needs
|
18
|
-
a quick way to script tests and interact with Connext DDS using different scripting languages.
|
19
|
-
|
20
|
-
*Connector* can be used to quickly create tests for your distributed system and, thanks
|
21
|
-
to the binding with scripting languages and the use of XML, to easily integrate
|
22
|
-
with many other available technologies.
|
23
|
-
|
24
|
-
The *Connector* library is provided in binary form for selected architectures.
|
25
|
-
Scripting language bindings and examples are provided in source format.
|
26
|
-
|
27
|
-
### Language Support
|
28
|
-
|
29
|
-
* **[Python](https://github.com/rticommunity/rticonnextdds-connector-py)** (Fully supported)
|
30
|
-
* **[JavaScript](https://github.com/rticommunity/rticonnextdds-connector-js)** (Fully supported)
|
31
|
-
* **[C#](https://github.com/rticommunity/rticonnextdds-connector-cs)** (Experimental support only)
|
32
|
-
* **[Go](https://github.com/rticommunity/rticonnextdds-connector-go)** (Experimental support only)
|
33
|
-
* **[Lua (through RTI Prototyper)](https://community.rti.com/downloads/experimental/rti-prototyper-with-lua)** (Experimental support only)
|
34
|
-
* **[C](https://github.com/rticommunity/rticonnextdds-connector/tree/master/examples/lua_c_integration)** (Experimental support only)
|
35
|
-
|
36
|
-
### Support
|
37
|
-
If you have questions, use the [RTI Community Forum](https://community.rti.com/forums/technical-questions).
|
38
|
-
|
39
|
-
### License
|
40
|
-
|
41
|
-
(For Python and JavaScript, a different license in their respective repositories applies.)
|
42
|
-
|
43
|
-
This software is an experimental ("pre-production") product. The Software is provided "as is," with no warranty of any type, including any warranty for fitness for any purpose. RTI is under no obligation to maintain or support the software. RTI shall not be liable for any incidental or consequential damages arising out of the use or inability to use the software.
|