Commit 5134c54
* Implement all parameter types.
This implementation was missing BoolArray, IntegerArray,
DoubleArray, and StringArray. Doing this required a change
to the constructor for ParameterVariant, since List is a
Generic and we can't have multiple constructors with the
same signature.
Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
* Add log4j initialization to all tests.
It gets rid of a warning when starting the tests that looks like:
log4j:WARN No appenders could be found for logger (org.ros2.rcljava.common.JNIUtils).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
* Make the parameter separator a class variable.
It doesn't need to change, so it can just be a class variable.
Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
* Store the parameter and the descriptor.
That way we have the information available when other methods
want to retrieve it.
Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
* Switch parameters to using map lookups.
The parameters are stored in a HashMap of name -> parameter,
but we were unnecessarily iterating over the HashMap to find
things. Instead, look up the items directly in the map which
should be much faster.
Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
* Plumb undeclaredParameters through the Node constructor.
Whether to allow undeclared parameters is a decision that is
made during Node creation. Plumb through the necessary option
so that the user can choose to allow undeclared parameters when
they create the node.
Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
* Add in another ParameterVariant.
This one just takes a name and sets the type to NOT_SET.
Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
* Add in a ParameterCallback interface.
This interface is what users will have to implement in order
to have their callback called when parameters are set.
Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
* Update the Node parameter methods to Dashing/Foxy equivalents.
The parameter API was significantly updated during the Dashing
release cycle. Update the API in rcljava to provide similar
functionality and make the API look a lot more like rclcpp
and rclpy.
Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
* Add tests for Node parameters.
Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
* Add node parameters test with undeclared parameters.
Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
* Fix rebasing error
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
* configure logger in an android compatible way
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
* configure logger in an android compatible way
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
Co-authored-by: Chris Lalancette <clalancette@openrobotics.org>
1 parent 46b6bfa commit 5134c54
File tree
17 files changed
+1397
-77
lines changed- rcljava
- src
- main/java/org/ros2/rcljava
- node
- parameters
- test/java/org/ros2/rcljava
- node
- publisher
- subscription
- timer
17 files changed
+1397
-77
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| 141 | + | |
141 | 142 | | |
142 | 143 | | |
143 | 144 | | |
| |||
224 | 225 | | |
225 | 226 | | |
226 | 227 | | |
| 228 | + | |
| 229 | + | |
227 | 230 | | |
228 | | - | |
229 | | - | |
| 231 | + | |
| 232 | + | |
230 | 233 | | |
231 | 234 | | |
232 | 235 | | |
| |||
237 | 240 | | |
238 | 241 | | |
239 | 242 | | |
| 243 | + | |
| 244 | + | |
240 | 245 | | |
241 | | - | |
| 246 | + | |
242 | 247 | | |
243 | 248 | | |
244 | 249 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
220 | | - | |
| 220 | + | |
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
232 | 236 | | |
233 | | - | |
| 237 | + | |
234 | 238 | | |
235 | 239 | | |
236 | 240 | | |
| |||
0 commit comments