Commit 598f9e7
committed
Update rcljava for Dashing (#75)
* Update API for getting rcl error string
Signed-off-by: Jacob Perron <[email protected]>
* Add implementation for ROS Context
A context represents an init/shutdown cycle and is used in the creation of top level entities
like nodes and guard conditions.
For convenience, a default context is created when rcljava is initialized.
Signed-off-by: Jacob Perron <[email protected]>
* Add implementation for Clock
Signed-off-by: Jacob Perron <[email protected]>
* Update for Dashing support
* Update wait set API calls
* Update entity creation API calls
* Use Context objects to check 'ok()' status
* Add Clock and Context members to NodeImpl
* Fix static member reference: 'this.defaultContext' -> 'RCLJava.defaultContext'
Signed-off-by: Jacob Perron <[email protected]>
* Avoid hiding errors when cleaning up init options
Signed-off-by: Jacob Perron <[email protected]>
* Disable tests
Signed-off-by: Jacob Perron <[email protected]>
* Fix typos in JNI library files
Signed-off-by: Jacob Perron <[email protected]>
* Fix native node method signature
Signed-off-by: Jacob Perron <[email protected]>
* Populate missing QoS settings with defaults
Otherwise we run into a runtime error about Fast-RTPS not supporting liveliness.
Signed-off-by: Jacob Perron <[email protected]>
* Fix issues with Clock class
* Load with JNIUtils
* Rename native create method for consistency
* Fix bug in native implementation
Signed-off-by: Jacob Perron <[email protected]>
* Enable linter tests
Signed-off-by: Jacob Perron <[email protected]>
* Fix lint errors
Signed-off-by: Jacob Perron <[email protected]>
* Enable RCLJava test and fix bugs
* Use Context.ok() and deprecate RCLJava.isInitialized().
* Move implementation loading to static initialization code.
Otherwise, calls to getDefaultContext() fail if called before rclJavaInit().
It wasn't clear to me why the implementation should be loaded in a separate function call.
We can probably refactor the code to avoid the error if we want to move the loading back
into rclJavaInit().
* Refactor test into one init/shutdown test. Previously, not calling RCLJava.shutdown()
was leaving a context around between tests.
Signed-off-by: Jacob Perron <[email protected]>
* Fix NodeTest
Signed-off-by: Jacob Perron <[email protected]>
* Enable most tests
Tests that involve services are broken due to issues related to interface generation.
There's a separate PR for a fix: #76.
Signed-off-by: Jacob Perron <[email protected]>1 parent a5a112e commit 598f9e7
File tree
31 files changed
+860
-307
lines changed- rcljava
- include
- src
- main
- cpp
- java/org/ros2/rcljava
- contexts
- executors
- node
- time
- test/java/org/ros2/rcljava
- node
31 files changed
+860
-307
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| 66 | + | |
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
| |||
118 | 120 | | |
119 | 121 | | |
120 | 122 | | |
| 123 | + | |
| 124 | + | |
121 | 125 | | |
122 | 126 | | |
123 | 127 | | |
| |||
151 | 155 | | |
152 | 156 | | |
153 | 157 | | |
| 158 | + | |
154 | 159 | | |
155 | 160 | | |
156 | 161 | | |
| |||
194 | 199 | | |
195 | 200 | | |
196 | 201 | | |
| 202 | + | |
| 203 | + | |
197 | 204 | | |
198 | 205 | | |
199 | 206 | | |
200 | 207 | | |
201 | 208 | | |
202 | 209 | | |
| 210 | + | |
203 | 211 | | |
204 | 212 | | |
205 | 213 | | |
| |||
214 | 222 | | |
215 | 223 | | |
216 | 224 | | |
217 | | - | |
| 225 | + | |
218 | 226 | | |
219 | | - | |
220 | | - | |
| 227 | + | |
| 228 | + | |
221 | 229 | | |
222 | 230 | | |
223 | 231 | | |
| |||
226 | 234 | | |
227 | 235 | | |
228 | 236 | | |
229 | | - | |
| 237 | + | |
230 | 238 | | |
231 | | - | |
| 239 | + | |
232 | 240 | | |
233 | 241 | | |
234 | 242 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
| 25 | + | |
| 26 | + | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | | - | |
| 34 | + | |
34 | 35 | | |
35 | | - | |
36 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
| 45 | + | |
| 46 | + | |
58 | 47 | | |
59 | 48 | | |
60 | 49 | | |
61 | 50 | | |
62 | 51 | | |
63 | 52 | | |
64 | | - | |
| 53 | + | |
| 54 | + | |
65 | 55 | | |
66 | 56 | | |
67 | 57 | | |
68 | 58 | | |
69 | 59 | | |
70 | 60 | | |
71 | 61 | | |
72 | | - | |
73 | | - | |
| 62 | + | |
| 63 | + | |
74 | 64 | | |
75 | 65 | | |
76 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
35 | | - | |
| 36 | + | |
| 37 | + | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
36 | | - | |
37 | | - | |
| 37 | + | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
0 commit comments