rclnodejs 0.21.3 → 0.21.4
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/.github/workflows/linux-build-and-test-compatibility.yml +5 -3
- package/.github/workflows/linux-build-and-test.yml +2 -2
- package/.github/workflows/windows-build-and-test-compatibility.yml +5 -5
- package/.github/workflows/windows-build-and-test.yml +2 -2
- package/README.md +1 -1
- package/binding.gyp +3 -3
- package/lib/node.js +1 -1
- package/package.json +2 -2
- package/scripts/npmjs-readme.md +1 -1
- package/types/interfaces.d.ts +103 -0
- package/types/node.d.ts +29 -0
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
name: rclnodejs - Linux Build & Compatibility Test
|
|
2
|
+
|
|
1
3
|
on:
|
|
2
4
|
workflow_dispatch:
|
|
3
5
|
|
|
@@ -14,7 +16,7 @@ jobs:
|
|
|
14
16
|
|
|
15
17
|
steps:
|
|
16
18
|
- name: Setup ROS2
|
|
17
|
-
uses: ros-tooling/setup-ros@v0.
|
|
19
|
+
uses: ros-tooling/setup-ros@v0.4
|
|
18
20
|
with:
|
|
19
21
|
required-ros-distributions: ${{ matrix.ros_distribution }}
|
|
20
22
|
|
|
@@ -39,14 +41,14 @@ jobs:
|
|
|
39
41
|
strategy:
|
|
40
42
|
fail-fast: false
|
|
41
43
|
matrix:
|
|
42
|
-
node-version: [10.X, 12.x, 14.X, 16.X, 17.X]
|
|
44
|
+
node-version: [10.X, 12.x, 14.X, 16.X, 17.X, 18.X, 19.X]
|
|
43
45
|
ros_distribution:
|
|
44
46
|
- foxy
|
|
45
47
|
- galactic
|
|
46
48
|
|
|
47
49
|
steps:
|
|
48
50
|
- name: Setup ROS2
|
|
49
|
-
uses: ros-tooling/setup-ros@v0.
|
|
51
|
+
uses: ros-tooling/setup-ros@v0.4
|
|
50
52
|
with:
|
|
51
53
|
required-ros-distributions: ${{ matrix.ros_distribution }}
|
|
52
54
|
|
|
@@ -26,7 +26,7 @@ jobs:
|
|
|
26
26
|
strategy:
|
|
27
27
|
fail-fast: false
|
|
28
28
|
matrix:
|
|
29
|
-
node-version: [10.X, 12.X, 14.X, 16.11.X, 17.X]
|
|
29
|
+
node-version: [10.X, 12.X, 14.X, 16.11.X, 17.X, 18.X, 19.X]
|
|
30
30
|
steps:
|
|
31
31
|
- name: Setup Node.js ${{ matrix.node-version }}
|
|
32
32
|
uses: actions/setup-node@v2
|
|
@@ -34,7 +34,7 @@ jobs:
|
|
|
34
34
|
node-version: ${{ matrix.node-version }}
|
|
35
35
|
|
|
36
36
|
- name: Setup ROS2
|
|
37
|
-
uses: ros-tooling/setup-ros@v0.
|
|
37
|
+
uses: ros-tooling/setup-ros@v0.4
|
|
38
38
|
with:
|
|
39
39
|
required-ros-distributions: ${{ needs.identify-ros-distro.outputs.distro }}
|
|
40
40
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
name: rclnodejs - Windows Build & Test
|
|
2
|
+
name: rclnodejs - Windows Build & Compatibility Test
|
|
3
3
|
|
|
4
4
|
on:
|
|
5
5
|
workflow_dispatch:
|
|
@@ -10,9 +10,9 @@ jobs:
|
|
|
10
10
|
strategy:
|
|
11
11
|
fail-fast: false
|
|
12
12
|
matrix:
|
|
13
|
-
node-version: [10.X, 12.X, 14.X, 16.11.X, 17.X]
|
|
13
|
+
node-version: [10.X, 12.X, 14.X, 16.11.X, 17.X, 18.X, 19.X]
|
|
14
14
|
ros_distribution:
|
|
15
|
-
- foxy
|
|
15
|
+
# - foxy
|
|
16
16
|
- galactic
|
|
17
17
|
- humble
|
|
18
18
|
- rolling
|
|
@@ -23,7 +23,7 @@ jobs:
|
|
|
23
23
|
node-version: ${{ matrix.node-version }}
|
|
24
24
|
|
|
25
25
|
- name: Setup ROS2
|
|
26
|
-
uses: ros-tooling/setup-ros@v0.
|
|
26
|
+
uses: ros-tooling/setup-ros@v0.4
|
|
27
27
|
with:
|
|
28
28
|
required-ros-distributions: ${{ matrix.ros_distribution }}
|
|
29
29
|
|
|
@@ -48,5 +48,5 @@ jobs:
|
|
|
48
48
|
- name: Test rclnodejs
|
|
49
49
|
shell: cmd
|
|
50
50
|
run: |
|
|
51
|
-
call "c:\dev\${{
|
|
51
|
+
call "c:\dev\${{ matrix.ros_distribution }}\ros2-windows\setup.bat"
|
|
52
52
|
npm test
|
|
@@ -26,7 +26,7 @@ jobs:
|
|
|
26
26
|
strategy:
|
|
27
27
|
fail-fast: false
|
|
28
28
|
matrix:
|
|
29
|
-
node-version: [10.X, 12.X, 14.X, 16.11.X, 17.X]
|
|
29
|
+
node-version: [10.X, 12.X, 14.X, 16.11.X, 17.X, 18.X, 19.X]
|
|
30
30
|
steps:
|
|
31
31
|
- name: Setup Node.js ${{ matrix.node-version }}
|
|
32
32
|
uses: actions/setup-node@v2
|
|
@@ -34,7 +34,7 @@ jobs:
|
|
|
34
34
|
node-version: ${{ matrix.node-version }}
|
|
35
35
|
|
|
36
36
|
- name: Setup ROS2
|
|
37
|
-
uses: ros-tooling/setup-ros@v0.
|
|
37
|
+
uses: ros-tooling/setup-ros@v0.4
|
|
38
38
|
with:
|
|
39
39
|
required-ros-distributions: ${{ needs.identify-ros-distro.outputs.distro }}
|
|
40
40
|
|
package/README.md
CHANGED
|
@@ -45,7 +45,7 @@ npm i rclnodejs@x.y.z
|
|
|
45
45
|
|
|
46
46
|
| RCLNODEJS Version | Compatible ROS 2 Release |
|
|
47
47
|
| :-------------------------------------------------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
|
|
48
|
-
| [0.21.
|
|
48
|
+
| [0.21.4 (current)](https://www.npmjs.com/package/rclnodejs/v/0.21.4) ([API](http://robotwebtools.org/rclnodejs/docs/0.21.3/index.html)) | [Humble Hawksbill](https://github.com/ros2/ros2/releases/tag/release-humble-20220523)<br>[Galactic Geochelone](https://github.com/ros2/ros2/releases/tag/release-galactic-20210716)<br>[Foxy Fitzroy](https://github.com/ros2/ros2/releases/tag/release-foxy-20201211)<br>[Eloquent Elusor](https://github.com/ros2/ros2/releases/tag/release-eloquent-20200124) |
|
|
49
49
|
| [0.10.3](https://github.com/RobotWebTools/rclnodejs/releases/tag/0.10.3) | [Dashing Diademata - Patch 4](https://github.com/ros2/ros2/releases/tag/release-dashing-20191018) |
|
|
50
50
|
|
|
51
51
|
## Documentation
|
package/binding.gyp
CHANGED
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
'OS_LINUX'
|
|
60
60
|
],
|
|
61
61
|
'cflags_cc': [
|
|
62
|
-
'-std=c++
|
|
62
|
+
'-std=c++17'
|
|
63
63
|
],
|
|
64
64
|
'include_dirs':
|
|
65
65
|
[
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
'OS_WINDOWS'
|
|
101
101
|
],
|
|
102
102
|
'cflags_cc': [
|
|
103
|
-
'-std=c++
|
|
103
|
+
'-std=c++17'
|
|
104
104
|
],
|
|
105
105
|
'include_dirs': [
|
|
106
106
|
'./src/third_party/dlfcn-win32/',
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
|
|
157
157
|
'CLANG_CXX_LIBRARY': 'libc++',
|
|
158
158
|
'MACOS_DEPLOYMENT_TARGET': '10.12',
|
|
159
|
-
'CLANG_CXX_LANGUAGE_STANDARD': 'c++
|
|
159
|
+
'CLANG_CXX_LANGUAGE_STANDARD': 'c++17'
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
],
|
package/lib/node.js
CHANGED
|
@@ -1293,7 +1293,7 @@ class Node extends rclnodejs.ShadowNode {
|
|
|
1293
1293
|
* @return {ParameterDescriptor[]} - The parameter descriptors.
|
|
1294
1294
|
*/
|
|
1295
1295
|
getParameterDescriptors(names = []) {
|
|
1296
|
-
|
|
1296
|
+
let descriptors = [];
|
|
1297
1297
|
|
|
1298
1298
|
if (names.length == 0) {
|
|
1299
1299
|
// get all parameters
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rclnodejs",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.4",
|
|
4
4
|
"description": "ROS2.0 JavaScript client with Node.js",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "types/index.d.ts",
|
|
@@ -89,6 +89,6 @@
|
|
|
89
89
|
]
|
|
90
90
|
},
|
|
91
91
|
"engines": {
|
|
92
|
-
"node": ">= 10.23.1 <
|
|
92
|
+
"node": ">= 10.23.1 <20.0.0"
|
|
93
93
|
}
|
|
94
94
|
}
|
package/scripts/npmjs-readme.md
CHANGED
|
@@ -45,7 +45,7 @@ npm i rclnodejs@x.y.z
|
|
|
45
45
|
|
|
46
46
|
| RCLNODEJS Version | Compatible ROS 2 Release |
|
|
47
47
|
| :-------------------------------------------------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
|
|
48
|
-
| [0.21.
|
|
48
|
+
| [0.21.4 (current)](https://www.npmjs.com/package/rclnodejs/v/0.21.4) ([API](http://robotwebtools.org/rclnodejs/docs/0.21.3/index.html)) | [Humble Hawksbill](https://github.com/ros2/ros2/releases/tag/release-humble-20220523)<br>[Galactic Geochelone](https://github.com/ros2/ros2/releases/tag/release-galactic-20210716)<br>[Foxy Fitzroy](https://github.com/ros2/ros2/releases/tag/release-foxy-20201211)<br>[Eloquent Elusor](https://github.com/ros2/ros2/releases/tag/release-eloquent-20200124) |
|
|
49
49
|
| [0.10.3](https://github.com/RobotWebTools/rclnodejs/releases/tag/0.10.3) | [Dashing Diademata - Patch 4](https://github.com/ros2/ros2/releases/tag/release-dashing-20191018) |
|
|
50
50
|
|
|
51
51
|
## Documentation
|
package/types/interfaces.d.ts
CHANGED
|
@@ -1752,6 +1752,22 @@ declare module 'rclnodejs' {
|
|
|
1752
1752
|
|
|
1753
1753
|
namespace rosbag2_interfaces {
|
|
1754
1754
|
namespace srv {
|
|
1755
|
+
export interface BurstConstructor extends ROSService {
|
|
1756
|
+
readonly Request: Burst_RequestConstructor;
|
|
1757
|
+
readonly Response: Burst_ResponseConstructor;
|
|
1758
|
+
}
|
|
1759
|
+
export interface Burst_Request {
|
|
1760
|
+
num_messages: number;
|
|
1761
|
+
}
|
|
1762
|
+
export interface Burst_RequestConstructor {
|
|
1763
|
+
new(other?: Burst_Request): Burst_Request;
|
|
1764
|
+
}
|
|
1765
|
+
export interface Burst_Response {
|
|
1766
|
+
actually_burst: number;
|
|
1767
|
+
}
|
|
1768
|
+
export interface Burst_ResponseConstructor {
|
|
1769
|
+
new(other?: Burst_Response): Burst_Response;
|
|
1770
|
+
}
|
|
1755
1771
|
export interface GetRateConstructor extends ROSService {
|
|
1756
1772
|
readonly Request: GetRate_RequestConstructor;
|
|
1757
1773
|
readonly Response: GetRate_ResponseConstructor;
|
|
@@ -1857,6 +1873,21 @@ declare module 'rclnodejs' {
|
|
|
1857
1873
|
export interface SetRate_ResponseConstructor {
|
|
1858
1874
|
new(other?: SetRate_Response): SetRate_Response;
|
|
1859
1875
|
}
|
|
1876
|
+
export interface SnapshotConstructor extends ROSService {
|
|
1877
|
+
readonly Request: Snapshot_RequestConstructor;
|
|
1878
|
+
readonly Response: Snapshot_ResponseConstructor;
|
|
1879
|
+
}
|
|
1880
|
+
export interface Snapshot_Request {
|
|
1881
|
+
}
|
|
1882
|
+
export interface Snapshot_RequestConstructor {
|
|
1883
|
+
new(other?: Snapshot_Request): Snapshot_Request;
|
|
1884
|
+
}
|
|
1885
|
+
export interface Snapshot_Response {
|
|
1886
|
+
success: boolean;
|
|
1887
|
+
}
|
|
1888
|
+
export interface Snapshot_ResponseConstructor {
|
|
1889
|
+
new(other?: Snapshot_Response): Snapshot_Response;
|
|
1890
|
+
}
|
|
1860
1891
|
export interface TogglePausedConstructor extends ROSService {
|
|
1861
1892
|
readonly Request: TogglePaused_RequestConstructor;
|
|
1862
1893
|
readonly Response: TogglePaused_ResponseConstructor;
|
|
@@ -2252,12 +2283,14 @@ declare module 'rclnodejs' {
|
|
|
2252
2283
|
export interface SolidPrimitive {
|
|
2253
2284
|
type: number;
|
|
2254
2285
|
dimensions: number[] | Float64Array;
|
|
2286
|
+
polygon: geometry_msgs.msg.Polygon;
|
|
2255
2287
|
}
|
|
2256
2288
|
export interface SolidPrimitiveConstructor {
|
|
2257
2289
|
readonly BOX: number;
|
|
2258
2290
|
readonly SPHERE: number;
|
|
2259
2291
|
readonly CYLINDER: number;
|
|
2260
2292
|
readonly CONE: number;
|
|
2293
|
+
readonly PRISM: number;
|
|
2261
2294
|
readonly BOX_X: number;
|
|
2262
2295
|
readonly BOX_Y: number;
|
|
2263
2296
|
readonly BOX_Z: number;
|
|
@@ -2266,6 +2299,7 @@ declare module 'rclnodejs' {
|
|
|
2266
2299
|
readonly CYLINDER_RADIUS: number;
|
|
2267
2300
|
readonly CONE_HEIGHT: number;
|
|
2268
2301
|
readonly CONE_RADIUS: number;
|
|
2302
|
+
readonly PRISM_HEIGHT: number;
|
|
2269
2303
|
new(other?: SolidPrimitive): SolidPrimitive;
|
|
2270
2304
|
}
|
|
2271
2305
|
}
|
|
@@ -2772,6 +2806,41 @@ declare module 'rclnodejs' {
|
|
|
2772
2806
|
export interface BasicTypesConstructor {
|
|
2773
2807
|
new(other?: BasicTypes): BasicTypes;
|
|
2774
2808
|
}
|
|
2809
|
+
export interface BoundedPlainSequences {
|
|
2810
|
+
bool_values: boolean[];
|
|
2811
|
+
byte_values: number[] | Uint8Array;
|
|
2812
|
+
char_values: number[] | Int8Array;
|
|
2813
|
+
float32_values: number[] | Float32Array;
|
|
2814
|
+
float64_values: number[] | Float64Array;
|
|
2815
|
+
int8_values: number[] | Int8Array;
|
|
2816
|
+
uint8_values: number[] | Uint8Array;
|
|
2817
|
+
int16_values: number[] | Int16Array;
|
|
2818
|
+
uint16_values: number[] | Uint16Array;
|
|
2819
|
+
int32_values: number[] | Int32Array;
|
|
2820
|
+
uint32_values: number[] | Uint32Array;
|
|
2821
|
+
int64_values: number[];
|
|
2822
|
+
uint64_values: number[];
|
|
2823
|
+
basic_types_values: test_msgs.msg.BasicTypes[];
|
|
2824
|
+
constants_values: test_msgs.msg.Constants[];
|
|
2825
|
+
defaults_values: test_msgs.msg.Defaults[];
|
|
2826
|
+
bool_values_default: boolean[];
|
|
2827
|
+
byte_values_default: number[] | Uint8Array;
|
|
2828
|
+
char_values_default: number[] | Int8Array;
|
|
2829
|
+
float32_values_default: number[] | Float32Array;
|
|
2830
|
+
float64_values_default: number[] | Float64Array;
|
|
2831
|
+
int8_values_default: number[] | Int8Array;
|
|
2832
|
+
uint8_values_default: number[] | Uint8Array;
|
|
2833
|
+
int16_values_default: number[] | Int16Array;
|
|
2834
|
+
uint16_values_default: number[] | Uint16Array;
|
|
2835
|
+
int32_values_default: number[] | Int32Array;
|
|
2836
|
+
uint32_values_default: number[] | Uint32Array;
|
|
2837
|
+
int64_values_default: number[];
|
|
2838
|
+
uint64_values_default: number[];
|
|
2839
|
+
alignment_check: number;
|
|
2840
|
+
}
|
|
2841
|
+
export interface BoundedPlainSequencesConstructor {
|
|
2842
|
+
new(other?: BoundedPlainSequences): BoundedPlainSequences;
|
|
2843
|
+
}
|
|
2775
2844
|
export interface BoundedSequences {
|
|
2776
2845
|
bool_values: boolean[];
|
|
2777
2846
|
byte_values: number[] | Uint8Array;
|
|
@@ -3552,8 +3621,12 @@ declare module 'rclnodejs' {
|
|
|
3552
3621
|
frame_locked: boolean;
|
|
3553
3622
|
points: geometry_msgs.msg.Point[];
|
|
3554
3623
|
colors: std_msgs.msg.ColorRGBA[];
|
|
3624
|
+
texture_resource: string;
|
|
3625
|
+
texture: sensor_msgs.msg.CompressedImage;
|
|
3626
|
+
uv_coordinates: visualization_msgs.msg.UVCoordinate[];
|
|
3555
3627
|
text: string;
|
|
3556
3628
|
mesh_resource: string;
|
|
3629
|
+
mesh_file: visualization_msgs.msg.MeshFile;
|
|
3557
3630
|
mesh_use_embedded_materials: boolean;
|
|
3558
3631
|
}
|
|
3559
3632
|
export interface MarkerConstructor {
|
|
@@ -3594,6 +3667,20 @@ declare module 'rclnodejs' {
|
|
|
3594
3667
|
readonly ROSLAUNCH: number;
|
|
3595
3668
|
new(other?: MenuEntry): MenuEntry;
|
|
3596
3669
|
}
|
|
3670
|
+
export interface MeshFile {
|
|
3671
|
+
filename: string;
|
|
3672
|
+
data: number[] | Uint8Array;
|
|
3673
|
+
}
|
|
3674
|
+
export interface MeshFileConstructor {
|
|
3675
|
+
new(other?: MeshFile): MeshFile;
|
|
3676
|
+
}
|
|
3677
|
+
export interface UVCoordinate {
|
|
3678
|
+
u: number;
|
|
3679
|
+
v: number;
|
|
3680
|
+
}
|
|
3681
|
+
export interface UVCoordinateConstructor {
|
|
3682
|
+
new(other?: UVCoordinate): UVCoordinate;
|
|
3683
|
+
}
|
|
3597
3684
|
}
|
|
3598
3685
|
namespace srv {
|
|
3599
3686
|
export interface GetInteractiveMarkersConstructor extends ROSService {
|
|
@@ -3814,6 +3901,8 @@ declare module 'rclnodejs' {
|
|
|
3814
3901
|
'ros2cli_test_interfaces/msg/ShortVariedNested': ros2cli_test_interfaces.msg.ShortVariedNested,
|
|
3815
3902
|
'ros2cli_test_interfaces/srv/ShortVariedMultiNested_Request': ros2cli_test_interfaces.srv.ShortVariedMultiNested_Request,
|
|
3816
3903
|
'ros2cli_test_interfaces/srv/ShortVariedMultiNested_Response': ros2cli_test_interfaces.srv.ShortVariedMultiNested_Response,
|
|
3904
|
+
'rosbag2_interfaces/srv/Burst_Request': rosbag2_interfaces.srv.Burst_Request,
|
|
3905
|
+
'rosbag2_interfaces/srv/Burst_Response': rosbag2_interfaces.srv.Burst_Response,
|
|
3817
3906
|
'rosbag2_interfaces/srv/GetRate_Request': rosbag2_interfaces.srv.GetRate_Request,
|
|
3818
3907
|
'rosbag2_interfaces/srv/GetRate_Response': rosbag2_interfaces.srv.GetRate_Response,
|
|
3819
3908
|
'rosbag2_interfaces/srv/IsPaused_Request': rosbag2_interfaces.srv.IsPaused_Request,
|
|
@@ -3828,6 +3917,8 @@ declare module 'rclnodejs' {
|
|
|
3828
3917
|
'rosbag2_interfaces/srv/Seek_Response': rosbag2_interfaces.srv.Seek_Response,
|
|
3829
3918
|
'rosbag2_interfaces/srv/SetRate_Request': rosbag2_interfaces.srv.SetRate_Request,
|
|
3830
3919
|
'rosbag2_interfaces/srv/SetRate_Response': rosbag2_interfaces.srv.SetRate_Response,
|
|
3920
|
+
'rosbag2_interfaces/srv/Snapshot_Request': rosbag2_interfaces.srv.Snapshot_Request,
|
|
3921
|
+
'rosbag2_interfaces/srv/Snapshot_Response': rosbag2_interfaces.srv.Snapshot_Response,
|
|
3831
3922
|
'rosbag2_interfaces/srv/TogglePaused_Request': rosbag2_interfaces.srv.TogglePaused_Request,
|
|
3832
3923
|
'rosbag2_interfaces/srv/TogglePaused_Response': rosbag2_interfaces.srv.TogglePaused_Response,
|
|
3833
3924
|
'rosgraph_msgs/msg/Clock': rosgraph_msgs.msg.Clock,
|
|
@@ -3922,6 +4013,7 @@ declare module 'rclnodejs' {
|
|
|
3922
4013
|
'test_msgs/action/NestedMessage_SendGoal_Response': test_msgs.action.NestedMessage_SendGoal_Response,
|
|
3923
4014
|
'test_msgs/msg/Arrays': test_msgs.msg.Arrays,
|
|
3924
4015
|
'test_msgs/msg/BasicTypes': test_msgs.msg.BasicTypes,
|
|
4016
|
+
'test_msgs/msg/BoundedPlainSequences': test_msgs.msg.BoundedPlainSequences,
|
|
3925
4017
|
'test_msgs/msg/BoundedSequences': test_msgs.msg.BoundedSequences,
|
|
3926
4018
|
'test_msgs/msg/Builtins': test_msgs.msg.Builtins,
|
|
3927
4019
|
'test_msgs/msg/Constants': test_msgs.msg.Constants,
|
|
@@ -3985,6 +4077,8 @@ declare module 'rclnodejs' {
|
|
|
3985
4077
|
'visualization_msgs/msg/Marker': visualization_msgs.msg.Marker,
|
|
3986
4078
|
'visualization_msgs/msg/MarkerArray': visualization_msgs.msg.MarkerArray,
|
|
3987
4079
|
'visualization_msgs/msg/MenuEntry': visualization_msgs.msg.MenuEntry,
|
|
4080
|
+
'visualization_msgs/msg/MeshFile': visualization_msgs.msg.MeshFile,
|
|
4081
|
+
'visualization_msgs/msg/UVCoordinate': visualization_msgs.msg.UVCoordinate,
|
|
3988
4082
|
'visualization_msgs/srv/GetInteractiveMarkers_Request': visualization_msgs.srv.GetInteractiveMarkers_Request,
|
|
3989
4083
|
'visualization_msgs/srv/GetInteractiveMarkers_Response': visualization_msgs.srv.GetInteractiveMarkers_Response,
|
|
3990
4084
|
};
|
|
@@ -4191,6 +4285,8 @@ declare module 'rclnodejs' {
|
|
|
4191
4285
|
'ros2cli_test_interfaces/msg/ShortVariedNested': ros2cli_test_interfaces.msg.ShortVariedNestedConstructor,
|
|
4192
4286
|
'ros2cli_test_interfaces/srv/ShortVariedMultiNested_Request': ros2cli_test_interfaces.srv.ShortVariedMultiNested_RequestConstructor,
|
|
4193
4287
|
'ros2cli_test_interfaces/srv/ShortVariedMultiNested_Response': ros2cli_test_interfaces.srv.ShortVariedMultiNested_ResponseConstructor,
|
|
4288
|
+
'rosbag2_interfaces/srv/Burst_Request': rosbag2_interfaces.srv.Burst_RequestConstructor,
|
|
4289
|
+
'rosbag2_interfaces/srv/Burst_Response': rosbag2_interfaces.srv.Burst_ResponseConstructor,
|
|
4194
4290
|
'rosbag2_interfaces/srv/GetRate_Request': rosbag2_interfaces.srv.GetRate_RequestConstructor,
|
|
4195
4291
|
'rosbag2_interfaces/srv/GetRate_Response': rosbag2_interfaces.srv.GetRate_ResponseConstructor,
|
|
4196
4292
|
'rosbag2_interfaces/srv/IsPaused_Request': rosbag2_interfaces.srv.IsPaused_RequestConstructor,
|
|
@@ -4205,6 +4301,8 @@ declare module 'rclnodejs' {
|
|
|
4205
4301
|
'rosbag2_interfaces/srv/Seek_Response': rosbag2_interfaces.srv.Seek_ResponseConstructor,
|
|
4206
4302
|
'rosbag2_interfaces/srv/SetRate_Request': rosbag2_interfaces.srv.SetRate_RequestConstructor,
|
|
4207
4303
|
'rosbag2_interfaces/srv/SetRate_Response': rosbag2_interfaces.srv.SetRate_ResponseConstructor,
|
|
4304
|
+
'rosbag2_interfaces/srv/Snapshot_Request': rosbag2_interfaces.srv.Snapshot_RequestConstructor,
|
|
4305
|
+
'rosbag2_interfaces/srv/Snapshot_Response': rosbag2_interfaces.srv.Snapshot_ResponseConstructor,
|
|
4208
4306
|
'rosbag2_interfaces/srv/TogglePaused_Request': rosbag2_interfaces.srv.TogglePaused_RequestConstructor,
|
|
4209
4307
|
'rosbag2_interfaces/srv/TogglePaused_Response': rosbag2_interfaces.srv.TogglePaused_ResponseConstructor,
|
|
4210
4308
|
'rosgraph_msgs/msg/Clock': rosgraph_msgs.msg.ClockConstructor,
|
|
@@ -4299,6 +4397,7 @@ declare module 'rclnodejs' {
|
|
|
4299
4397
|
'test_msgs/action/NestedMessage_SendGoal_Response': test_msgs.action.NestedMessage_SendGoal_ResponseConstructor,
|
|
4300
4398
|
'test_msgs/msg/Arrays': test_msgs.msg.ArraysConstructor,
|
|
4301
4399
|
'test_msgs/msg/BasicTypes': test_msgs.msg.BasicTypesConstructor,
|
|
4400
|
+
'test_msgs/msg/BoundedPlainSequences': test_msgs.msg.BoundedPlainSequencesConstructor,
|
|
4302
4401
|
'test_msgs/msg/BoundedSequences': test_msgs.msg.BoundedSequencesConstructor,
|
|
4303
4402
|
'test_msgs/msg/Builtins': test_msgs.msg.BuiltinsConstructor,
|
|
4304
4403
|
'test_msgs/msg/Constants': test_msgs.msg.ConstantsConstructor,
|
|
@@ -4362,6 +4461,8 @@ declare module 'rclnodejs' {
|
|
|
4362
4461
|
'visualization_msgs/msg/Marker': visualization_msgs.msg.MarkerConstructor,
|
|
4363
4462
|
'visualization_msgs/msg/MarkerArray': visualization_msgs.msg.MarkerArrayConstructor,
|
|
4364
4463
|
'visualization_msgs/msg/MenuEntry': visualization_msgs.msg.MenuEntryConstructor,
|
|
4464
|
+
'visualization_msgs/msg/MeshFile': visualization_msgs.msg.MeshFileConstructor,
|
|
4465
|
+
'visualization_msgs/msg/UVCoordinate': visualization_msgs.msg.UVCoordinateConstructor,
|
|
4365
4466
|
'visualization_msgs/srv/GetInteractiveMarkers_Request': visualization_msgs.srv.GetInteractiveMarkers_RequestConstructor,
|
|
4366
4467
|
'visualization_msgs/srv/GetInteractiveMarkers_Response': visualization_msgs.srv.GetInteractiveMarkers_ResponseConstructor,
|
|
4367
4468
|
};
|
|
@@ -4399,6 +4500,7 @@ declare module 'rclnodejs' {
|
|
|
4399
4500
|
'rcl_interfaces/srv/SetParameters': rcl_interfaces.srv.SetParametersConstructor,
|
|
4400
4501
|
'rcl_interfaces/srv/SetParametersAtomically': rcl_interfaces.srv.SetParametersAtomicallyConstructor,
|
|
4401
4502
|
'ros2cli_test_interfaces/srv/ShortVariedMultiNested': ros2cli_test_interfaces.srv.ShortVariedMultiNestedConstructor,
|
|
4503
|
+
'rosbag2_interfaces/srv/Burst': rosbag2_interfaces.srv.BurstConstructor,
|
|
4402
4504
|
'rosbag2_interfaces/srv/GetRate': rosbag2_interfaces.srv.GetRateConstructor,
|
|
4403
4505
|
'rosbag2_interfaces/srv/IsPaused': rosbag2_interfaces.srv.IsPausedConstructor,
|
|
4404
4506
|
'rosbag2_interfaces/srv/Pause': rosbag2_interfaces.srv.PauseConstructor,
|
|
@@ -4406,6 +4508,7 @@ declare module 'rclnodejs' {
|
|
|
4406
4508
|
'rosbag2_interfaces/srv/Resume': rosbag2_interfaces.srv.ResumeConstructor,
|
|
4407
4509
|
'rosbag2_interfaces/srv/Seek': rosbag2_interfaces.srv.SeekConstructor,
|
|
4408
4510
|
'rosbag2_interfaces/srv/SetRate': rosbag2_interfaces.srv.SetRateConstructor,
|
|
4511
|
+
'rosbag2_interfaces/srv/Snapshot': rosbag2_interfaces.srv.SnapshotConstructor,
|
|
4409
4512
|
'rosbag2_interfaces/srv/TogglePaused': rosbag2_interfaces.srv.TogglePausedConstructor,
|
|
4410
4513
|
'sensor_msgs/srv/SetCameraInfo': sensor_msgs.srv.SetCameraInfoConstructor,
|
|
4411
4514
|
'std_srvs/srv/Empty': std_srvs.srv.EmptyConstructor,
|
package/types/node.d.ts
CHANGED
|
@@ -248,6 +248,21 @@ declare module 'rclnodejs' {
|
|
|
248
248
|
options?: Options
|
|
249
249
|
): Publisher<T>;
|
|
250
250
|
|
|
251
|
+
/**
|
|
252
|
+
* Create a Subscription.
|
|
253
|
+
*
|
|
254
|
+
* @param typeClass - Type of ROS messages the subscription will subscribe to
|
|
255
|
+
* @param topic - Name of the topic the subcription will subscribe to.
|
|
256
|
+
* @param callback - Called when a new message is received.
|
|
257
|
+
* The serialized message will be null-terminated.
|
|
258
|
+
* @returns New instance of Subscription.
|
|
259
|
+
*/
|
|
260
|
+
createSubscription<T extends TypeClass<MessageTypeClassName>>(
|
|
261
|
+
typeClass: T,
|
|
262
|
+
topic: string,
|
|
263
|
+
callback: SubscriptionCallback<T>
|
|
264
|
+
): Subscription;
|
|
265
|
+
|
|
251
266
|
/**
|
|
252
267
|
* Create a Subscription.
|
|
253
268
|
*
|
|
@@ -278,6 +293,20 @@ declare module 'rclnodejs' {
|
|
|
278
293
|
options?: Options
|
|
279
294
|
): Client<T>;
|
|
280
295
|
|
|
296
|
+
/**
|
|
297
|
+
* Create a Service.
|
|
298
|
+
*
|
|
299
|
+
* @param typeClass - Service type
|
|
300
|
+
* @param serviceName - Name of the service.
|
|
301
|
+
* @param callback - Callback function for notification of incoming requests.
|
|
302
|
+
* @returns An instance of Service.
|
|
303
|
+
*/
|
|
304
|
+
createService<T extends TypeClass<ServiceTypeClassName>>(
|
|
305
|
+
typeClass: T,
|
|
306
|
+
serviceName: string,
|
|
307
|
+
callback: ServiceRequestHandler<T>
|
|
308
|
+
): ServiceType<T>;
|
|
309
|
+
|
|
281
310
|
/**
|
|
282
311
|
* Create a Service.
|
|
283
312
|
*
|