rclnodejs 0.22.2 → 0.22.3
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/identify-ros-distro.yml +4 -1
- package/.github/workflows/linux-build-and-test-compatibility.yml +3 -33
- package/.github/workflows/linux-build-and-test.yml +3 -1
- package/.github/workflows/windows-build-and-test-compatibility.yml +3 -3
- package/.github/workflows/windows-build-and-test.yml +3 -1
- package/lib/time_source.js +2 -2
- package/package.json +2 -2
- package/bin/linux-x64-116/rclnodejs.node +0 -0
|
@@ -11,6 +11,7 @@ on:
|
|
|
11
11
|
value: ${{ jobs.identify-ros-distro.outputs.linuxos }}
|
|
12
12
|
env:
|
|
13
13
|
ROLLING_VAR: ${{ contains(github.ref, 'develop') }}
|
|
14
|
+
IRON_VAR: ${{ contains(github.ref, 'iron') }}
|
|
14
15
|
HUMBLE_VAR: ${{ contains(github.ref, 'humble') }}
|
|
15
16
|
GALACTIC_VAR: ${{ contains(github.ref, 'galactic') }}
|
|
16
17
|
FOXY_VAR: ${{ contains(github.ref, 'foxy') }}
|
|
@@ -26,9 +27,11 @@ jobs:
|
|
|
26
27
|
id: identify
|
|
27
28
|
run: |
|
|
28
29
|
if ${ROLLING_VAR} == true; then
|
|
29
|
-
# echo "::set-output name=distro::rolling"
|
|
30
30
|
echo "::set-output name=distro::rolling"
|
|
31
31
|
echo "::set-output name=linuxos::ubuntu-22.04"
|
|
32
|
+
elif ${IRON_VAR} == true; then
|
|
33
|
+
echo "::set-output name=distro::iron"
|
|
34
|
+
echo "::set-output name=linuxos::ubuntu-22.04"
|
|
32
35
|
elif ${HUMBLE_VAR} == true; then
|
|
33
36
|
echo "::set-output name=distro::humble"
|
|
34
37
|
echo "::set-output name=linuxos::ubuntu-22.04"
|
|
@@ -4,13 +4,14 @@ on:
|
|
|
4
4
|
workflow_dispatch:
|
|
5
5
|
|
|
6
6
|
jobs:
|
|
7
|
-
build-humble-and-rolling: # humble and rolling distros
|
|
7
|
+
build-humble-and-rolling: # iron, humble and rolling distros
|
|
8
8
|
runs-on: ubuntu-22.04
|
|
9
9
|
strategy:
|
|
10
10
|
fail-fast: false
|
|
11
11
|
matrix:
|
|
12
|
-
node-version: [
|
|
12
|
+
node-version: [16.X, 18.X, 20.X]
|
|
13
13
|
ros_distribution:
|
|
14
|
+
- iron
|
|
14
15
|
- humble
|
|
15
16
|
- rolling
|
|
16
17
|
|
|
@@ -35,34 +36,3 @@ jobs:
|
|
|
35
36
|
source /opt/ros/${{ matrix.ros_distribution }}/setup.bash
|
|
36
37
|
npm i
|
|
37
38
|
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
|
|
@@ -5,12 +5,14 @@ on:
|
|
|
5
5
|
push:
|
|
6
6
|
branches:
|
|
7
7
|
- develop
|
|
8
|
+
- iron-irwini
|
|
8
9
|
- humble-hawksbill
|
|
9
10
|
- galactic-geochelone
|
|
10
11
|
- foxy-fitzroy
|
|
11
12
|
pull_request:
|
|
12
13
|
branches:
|
|
13
14
|
- develop
|
|
15
|
+
- iron-irwini
|
|
14
16
|
- humble-hawksbill
|
|
15
17
|
- galactic-geochelone
|
|
16
18
|
- foxy-fitzroy
|
|
@@ -26,7 +28,7 @@ jobs:
|
|
|
26
28
|
strategy:
|
|
27
29
|
fail-fast: false
|
|
28
30
|
matrix:
|
|
29
|
-
node-version: [
|
|
31
|
+
node-version: [16.X, 18.X, 20.X]
|
|
30
32
|
steps:
|
|
31
33
|
- name: Setup Node.js ${{ matrix.node-version }}
|
|
32
34
|
uses: actions/setup-node@v3
|
|
@@ -10,9 +10,9 @@ jobs:
|
|
|
10
10
|
strategy:
|
|
11
11
|
fail-fast: false
|
|
12
12
|
matrix:
|
|
13
|
-
node-version: [
|
|
13
|
+
node-version: [16.20.0, 18.16.0, 20.X]
|
|
14
14
|
ros_distribution:
|
|
15
|
-
-
|
|
15
|
+
- iron
|
|
16
16
|
- humble
|
|
17
17
|
- rolling
|
|
18
18
|
steps:
|
|
@@ -51,4 +51,4 @@ jobs:
|
|
|
51
51
|
run: |
|
|
52
52
|
call "c:\dev\${{ matrix.ros_distribution }}\ros2-windows\setup.bat"
|
|
53
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)"
|
|
54
|
+
cmd /c "if NOT ${{ matrix.ros_distribution }}==foxy (npm test)"
|
|
@@ -5,12 +5,14 @@ on:
|
|
|
5
5
|
push:
|
|
6
6
|
branches:
|
|
7
7
|
- develop
|
|
8
|
+
- iron-irwini
|
|
8
9
|
- humble-hawksbill
|
|
9
10
|
- galactic-geochelone
|
|
10
11
|
- foxy-fitzroy
|
|
11
12
|
pull_request:
|
|
12
13
|
branches:
|
|
13
14
|
- develop
|
|
15
|
+
- iron-irwini
|
|
14
16
|
- humble-hawksbill
|
|
15
17
|
- galactic-geochelone
|
|
16
18
|
- foxy-fitzroy
|
|
@@ -28,7 +30,7 @@ jobs:
|
|
|
28
30
|
matrix:
|
|
29
31
|
# Explicit node versions are used to workaround an error
|
|
30
32
|
# where node-gyp fails due to some silly cacheing
|
|
31
|
-
node-version: [
|
|
33
|
+
node-version: [16.20.0, 18.16.0, 20.X]
|
|
32
34
|
steps:
|
|
33
35
|
- name: Setup Node.js ${{ matrix.node-version }}
|
|
34
36
|
uses: actions/setup-node@v3
|
package/lib/time_source.js
CHANGED
|
@@ -176,7 +176,7 @@ class TimeSource {
|
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
_clockCallback(msg) {
|
|
179
|
-
this._lastTimeSet = Time.fromMsg(msg);
|
|
179
|
+
this._lastTimeSet = Time.fromMsg(msg.clock);
|
|
180
180
|
this._associatedClocks.forEach((clock) => {
|
|
181
181
|
clock.rosTimeOverride = this._lastTimeSet;
|
|
182
182
|
});
|
|
@@ -185,7 +185,7 @@ class TimeSource {
|
|
|
185
185
|
_subscribeToClockTopic() {
|
|
186
186
|
if (!this._clockSubscription && this._node) {
|
|
187
187
|
this._clockSubscription = this._node.createSubscription(
|
|
188
|
-
'
|
|
188
|
+
'rosgraph_msgs/msg/Clock',
|
|
189
189
|
CLOCK_TOPIC,
|
|
190
190
|
this._clockCallback.bind(this)
|
|
191
191
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rclnodejs",
|
|
3
|
-
"version": "0.22.
|
|
3
|
+
"version": "0.22.3",
|
|
4
4
|
"description": "ROS2.0 JavaScript client with Node.js",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "types/index.d.ts",
|
|
@@ -95,6 +95,6 @@
|
|
|
95
95
|
]
|
|
96
96
|
},
|
|
97
97
|
"engines": {
|
|
98
|
-
"node": ">=
|
|
98
|
+
"node": ">= 16.13.0"
|
|
99
99
|
}
|
|
100
100
|
}
|
|
Binary file
|