rclnodejs 0.22.2 → 0.23.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.
@@ -76,5 +76,17 @@ declare module 'rclnodejs' {
76
76
  * Name of the service.
77
77
  */
78
78
  readonly serviceName: string;
79
+
80
+ /**
81
+ * Configure introspection.
82
+ * @param clock - Clock to use for service event timestamps
83
+ * @param QoSProfile - QOS profile for the service event publisher
84
+ * @param introspectionState - The state to set introspection to
85
+ */
86
+ configureIntrospection(
87
+ clock: Clock,
88
+ serviceEventPubQOS: QoS,
89
+ introspectionState: ServiceIntrospectionStates
90
+ ): void;
79
91
  }
80
92
  }
@@ -0,0 +1,10 @@
1
+ declare module 'rclnodejs' {
2
+ /**
3
+ * State identifiers for service introspection support.
4
+ */
5
+ export const enum ServiceIntrospectionStates {
6
+ OFF = 0,
7
+ METADATA = 1,
8
+ CONTENTS = 2,
9
+ }
10
+ }
@@ -1,45 +0,0 @@
1
- name: Identify ROS Distro from GITHUB_REF_NAME
2
-
3
- on:
4
- workflow_call:
5
- outputs:
6
- distro:
7
- description: "The ROS distribution short name"
8
- value: ${{ jobs.identify-ros-distro.outputs.distro }}
9
- linuxos:
10
- description: "The ROS compatible Linux version"
11
- value: ${{ jobs.identify-ros-distro.outputs.linuxos }}
12
- env:
13
- ROLLING_VAR: ${{ contains(github.ref, 'develop') }}
14
- HUMBLE_VAR: ${{ contains(github.ref, 'humble') }}
15
- GALACTIC_VAR: ${{ contains(github.ref, 'galactic') }}
16
- FOXY_VAR: ${{ contains(github.ref, 'foxy') }}
17
-
18
- jobs:
19
- identify-ros-distro:
20
- runs-on: ubuntu-latest
21
- outputs:
22
- distro: ${{ steps.identify.outputs.distro }}
23
- linuxos: ${{ steps.identify.outputs.linuxos }}
24
- steps:
25
- - name: Identify distro
26
- id: identify
27
- run: |
28
- if ${ROLLING_VAR} == true; then
29
- # echo "::set-output name=distro::rolling"
30
- echo "::set-output name=distro::rolling"
31
- echo "::set-output name=linuxos::ubuntu-22.04"
32
- elif ${HUMBLE_VAR} == true; then
33
- echo "::set-output name=distro::humble"
34
- echo "::set-output name=linuxos::ubuntu-22.04"
35
- elif ${GALACTIC_VAR} == true; then
36
- echo "::set-output name=distro::galactic"
37
- echo "::set-output name=linuxos::ubuntu-20.04"
38
- elif ${FOXY_VAR} == true; then
39
- echo "::set-output name=distro::foxy"
40
- echo "::set-output name=linuxos::ubuntu-20.04"
41
- else
42
- echo "Unable to map branch name to ROS distro, using ROLLING as default"
43
- echo "::set-output name=distro::rolling"
44
- echo "::set-output name=linuxos::ubuntu-22.04"
45
- fi
@@ -1,68 +0,0 @@
1
- name: rclnodejs - Linux Build & Compatibility Test
2
-
3
- on:
4
- workflow_dispatch:
5
-
6
- jobs:
7
- build-humble-and-rolling: # humble and rolling distros
8
- runs-on: ubuntu-22.04
9
- strategy:
10
- fail-fast: false
11
- matrix:
12
- node-version: [14.X, 16.X, 18.X, 19.X]
13
- ros_distribution:
14
- - humble
15
- - rolling
16
-
17
- steps:
18
- - name: Setup ROS2
19
- uses: ros-tooling/setup-ros@v0.6
20
- with:
21
- required-ros-distributions: ${{ matrix.ros_distribution }}
22
-
23
- - name: Install test-msgs on Linux
24
- run: |
25
- sudo apt install ros-${{ matrix.ros_distribution }}-test-msgs
26
- - uses: actions/checkout@v3
27
-
28
- - name: Setup Node.js ${{ matrix.node-version }}
29
- uses: actions/setup-node@v3
30
- with:
31
- node-version: ${{ matrix.node-version }}
32
-
33
- - name: Build and test rclnodejs
34
- run: |
35
- source /opt/ros/${{ matrix.ros_distribution }}/setup.bash
36
- npm i
37
- npm test
38
-
39
- build-foxy: # foxy distros
40
- runs-on: ubuntu-20.04
41
- strategy:
42
- fail-fast: false
43
- matrix:
44
- node-version: [14.X, 16.11.X, 18.X, 19.X]
45
- ros_distribution:
46
- - foxy
47
-
48
- steps:
49
- - name: Setup ROS2
50
- uses: ros-tooling/setup-ros@v0.6
51
- with:
52
- required-ros-distributions: ${{ matrix.ros_distribution }}
53
-
54
- - name: Install test-msgs on Linux
55
- run: |
56
- sudo apt install ros-${{ matrix.ros_distribution }}-test-msgs
57
- - uses: actions/checkout@v3
58
-
59
- - name: Setup Node.js ${{ matrix.node-version }}
60
- uses: actions/setup-node@v3
61
- with:
62
- node-version: ${{ matrix.node-version }}
63
-
64
- - name: Build and test rclnodejs
65
- run: |
66
- source /opt/ros/${{ matrix.ros_distribution }}/setup.bash
67
- npm i
68
- npm test
@@ -1,51 +0,0 @@
1
-
2
- name: rclnodejs - Linux Build and Test
3
-
4
- on:
5
- push:
6
- branches:
7
- - develop
8
- - humble-hawksbill
9
- - galactic-geochelone
10
- - foxy-fitzroy
11
- pull_request:
12
- branches:
13
- - develop
14
- - humble-hawksbill
15
- - galactic-geochelone
16
- - foxy-fitzroy
17
- workflow_dispatch:
18
-
19
- jobs:
20
- identify-ros-distro:
21
- uses: ./.github/workflows/identify-ros-distro.yml
22
-
23
- build:
24
- needs: identify-ros-distro
25
- runs-on: ${{ needs.identify-ros-distro.outputs.linuxos }}
26
- strategy:
27
- fail-fast: false
28
- matrix:
29
- node-version: [14.X, 16.X, 18.X, 19.X]
30
- steps:
31
- - name: Setup Node.js ${{ matrix.node-version }}
32
- uses: actions/setup-node@v3
33
- with:
34
- node-version: ${{ matrix.node-version }}
35
-
36
- - name: Setup ROS2
37
- uses: ros-tooling/setup-ros@v0.6
38
- with:
39
- required-ros-distributions: ${{ needs.identify-ros-distro.outputs.distro }}
40
-
41
- - name: Install test-msgs on Linux
42
- run: |
43
- sudo apt install ros-${{ needs.identify-ros-distro.outputs.distro }}-test-msgs
44
-
45
- - uses: actions/checkout@v3
46
-
47
- - name: Build and test rclnodejs
48
- run: |
49
- source /opt/ros/${{ needs.identify-ros-distro.outputs.distro }}/setup.bash
50
- npm i
51
- npm test
@@ -1,54 +0,0 @@
1
-
2
- name: rclnodejs - Windows Build & Compatibility Test
3
-
4
- on:
5
- workflow_dispatch:
6
-
7
- jobs:
8
- build:
9
- runs-on: windows-2019
10
- strategy:
11
- fail-fast: false
12
- matrix:
13
- node-version: [14.21.2, 16.19.0, 18.14.1, 19.X]
14
- ros_distribution:
15
- - foxy
16
- - humble
17
- - rolling
18
- steps:
19
- - name: Setup Node.js ${{ matrix.node-version }}
20
- uses: actions/setup-node@v3
21
- with:
22
- node-version: ${{ matrix.node-version }}
23
-
24
- - name: Setup ROS2
25
- uses: ros-tooling/setup-ros@v0.6
26
- with:
27
- required-ros-distributions: ${{ matrix.ros_distribution }}
28
-
29
- - name: Install ROS2 Rolling (Conditional)
30
- if: ${{ matrix.ros_distribution == 'rolling' }}
31
- shell: bash
32
- run: |
33
- wget --quiet https://ci.ros2.org/view/packaging/job/packaging_windows/lastSuccessfulBuild/artifact/ws/ros2-package-windows-AMD64.zip -O rolling.zip
34
- 7z x rolling.zip -y -o/c/dev/rolling
35
-
36
- - name: Prebuild - Setup VS Dev Environment
37
- uses: seanmiddleditch/gha-setup-vsdevenv@v4
38
-
39
- - uses: actions/checkout@v3
40
-
41
- - name: Build rclnodejs
42
- shell: cmd
43
- run: |
44
- call "c:\dev\${{ matrix.ros_distribution }}\ros2-windows\setup.bat"
45
- npm i
46
-
47
- # On the windows/foxy combination the Eclipse CycloneDDS RMW implementation is used to workaround
48
- # an error when loading the default fastrtps ddl
49
- - name: Test rclnodejs
50
- shell: cmd
51
- run: |
52
- call "c:\dev\${{ matrix.ros_distribution }}\ros2-windows\setup.bat"
53
- cmd /c "if ${{ matrix.ros_distribution }}==foxy (set RMW_IMPLEMENTATION=rmw_cyclonedds_cpp&&npm test)"
54
- cmd /c "if NOT ${{ matrix.ros_distribution }}==foxy (npm test)"
@@ -1,68 +0,0 @@
1
-
2
- name: rclnodejs - Windows Build & Test
3
-
4
- on:
5
- push:
6
- branches:
7
- - develop
8
- - humble-hawksbill
9
- - galactic-geochelone
10
- - foxy-fitzroy
11
- pull_request:
12
- branches:
13
- - develop
14
- - humble-hawksbill
15
- - galactic-geochelone
16
- - foxy-fitzroy
17
- workflow_dispatch:
18
-
19
- jobs:
20
- identify-ros-distro:
21
- uses: ./.github/workflows/identify-ros-distro.yml
22
-
23
- build:
24
- needs: identify-ros-distro
25
- runs-on: windows-2019
26
- strategy:
27
- fail-fast: false
28
- matrix:
29
- # Explicit node versions are used to workaround an error
30
- # where node-gyp fails due to some silly cacheing
31
- node-version: [14.21.2, 16.19.0, 18.14.1, 19.X]
32
- steps:
33
- - name: Setup Node.js ${{ matrix.node-version }}
34
- uses: actions/setup-node@v3
35
- with:
36
- node-version: ${{ matrix.node-version }}
37
-
38
- - name: Setup ROS2
39
- uses: ros-tooling/setup-ros@v0.6
40
- with:
41
- required-ros-distributions: ${{ needs.identify-ros-distro.outputs.distro }}
42
-
43
- - name: Install ROS2 Rolling (Conditional)
44
- if: ${{ needs.identify-ros-distro.outputs.distro == 'rolling' }}
45
- shell: bash
46
- run: |
47
- wget --quiet https://ci.ros2.org/view/packaging/job/packaging_windows/lastSuccessfulBuild/artifact/ws/ros2-package-windows-AMD64.zip -O rolling.zip
48
- 7z x rolling.zip -y -o/c/dev/rolling
49
-
50
- - name: Prebuild - Setup VS Dev Environment
51
- uses: seanmiddleditch/gha-setup-vsdevenv@v4
52
-
53
- - uses: actions/checkout@v3
54
-
55
- - name: Build rclnodejs
56
- shell: cmd
57
- run: |
58
- call "c:\dev\${{ needs.identify-ros-distro.outputs.distro }}\ros2-windows\setup.bat"
59
- npm i
60
-
61
- # On the windows/foxy combination the Eclipse CycloneDDS RMW implementation is used to workaround
62
- # an error when loading the default fastrtps ddl
63
- - name: Test rclnodejs
64
- shell: cmd
65
- run: |
66
- call "c:\dev\${{ needs.identify-ros-distro.outputs.distro }}\ros2-windows\setup.bat"
67
- cmd /c "if ${{ needs.identify-ros-distro.outputs.distro }}==foxy (set RMW_IMPLEMENTATION=rmw_cyclonedds_cpp&&npm test)"
68
- cmd /c "if NOT ${{ needs.identify-ros-distro.outputs.distro }}==foxy (npm test)"
package/.prettierrc.yml DELETED
@@ -1,4 +0,0 @@
1
- {
2
- singleQuote: true,
3
- trailingComma: es5,
4
- }
@@ -1,79 +0,0 @@
1
- {
2
- "files.associations": {
3
- "*.ipp": "cpp",
4
- "string_view": "cpp",
5
- "array": "cpp",
6
- "string": "cpp",
7
- "sstream": "cpp",
8
- "cctype": "cpp",
9
- "clocale": "cpp",
10
- "cmath": "cpp",
11
- "csignal": "cpp",
12
- "cstdarg": "cpp",
13
- "cstddef": "cpp",
14
- "cstdio": "cpp",
15
- "cstdlib": "cpp",
16
- "cstring": "cpp",
17
- "ctime": "cpp",
18
- "cwchar": "cpp",
19
- "cwctype": "cpp",
20
- "any": "cpp",
21
- "atomic": "cpp",
22
- "strstream": "cpp",
23
- "bit": "cpp",
24
- "*.tcc": "cpp",
25
- "bitset": "cpp",
26
- "chrono": "cpp",
27
- "codecvt": "cpp",
28
- "compare": "cpp",
29
- "complex": "cpp",
30
- "concepts": "cpp",
31
- "condition_variable": "cpp",
32
- "cstdint": "cpp",
33
- "deque": "cpp",
34
- "forward_list": "cpp",
35
- "list": "cpp",
36
- "map": "cpp",
37
- "set": "cpp",
38
- "unordered_map": "cpp",
39
- "unordered_set": "cpp",
40
- "vector": "cpp",
41
- "exception": "cpp",
42
- "algorithm": "cpp",
43
- "functional": "cpp",
44
- "iterator": "cpp",
45
- "memory": "cpp",
46
- "memory_resource": "cpp",
47
- "numeric": "cpp",
48
- "optional": "cpp",
49
- "random": "cpp",
50
- "ratio": "cpp",
51
- "system_error": "cpp",
52
- "tuple": "cpp",
53
- "type_traits": "cpp",
54
- "utility": "cpp",
55
- "fstream": "cpp",
56
- "future": "cpp",
57
- "initializer_list": "cpp",
58
- "iomanip": "cpp",
59
- "iosfwd": "cpp",
60
- "iostream": "cpp",
61
- "istream": "cpp",
62
- "limits": "cpp",
63
- "mutex": "cpp",
64
- "new": "cpp",
65
- "numbers": "cpp",
66
- "ostream": "cpp",
67
- "semaphore": "cpp",
68
- "shared_mutex": "cpp",
69
- "stdexcept": "cpp",
70
- "stop_token": "cpp",
71
- "streambuf": "cpp",
72
- "thread": "cpp",
73
- "cfenv": "cpp",
74
- "cinttypes": "cpp",
75
- "typeindex": "cpp",
76
- "typeinfo": "cpp",
77
- "variant": "cpp"
78
- }
79
- }
Binary file