Skip to content

Conversation

@ivanpauno
Copy link
Contributor

@ivanpauno ivanpauno commented Nov 11, 2021

Port osrf#1

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>
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>
It doesn't need to change, so it can just be a class variable.

Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
That way we have the information available when other methods
want to retrieve it.

Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
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>
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>
This one just takes a name and sets the type to NOT_SET.

Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
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>
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>
Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
@ivanpauno ivanpauno self-assigned this Nov 11, 2021
@ivanpauno ivanpauno changed the title Update the rcljava parameter APIs (port https://github.com/osrf/ros2_java/pull/1) Update the rcljava parameter APIs (port https://github.com/osrf/ros2_java/pull/1) Nov 11, 2021
@ivanpauno ivanpauno changed the title Update the rcljava parameter APIs (port https://github.com/osrf/ros2_java/pull/1) Update the rcljava parameter APIs (port https://github.com/osrf/ros2_java/pull/1_) Nov 11, 2021
@ivanpauno ivanpauno changed the title Update the rcljava parameter APIs (port https://github.com/osrf/ros2_java/pull/1_) Update the rcljava parameter APIs (port [osrf/ros2_java#1](https://github.com/osrf/ros2_java/pull/1)) Nov 11, 2021
@ivanpauno ivanpauno changed the title Update the rcljava parameter APIs (port [osrf/ros2_java#1](https://github.com/osrf/ros2_java/pull/1)) Update the rcljava parameter APIs (port [osrf/ros2_java#1]) Nov 11, 2021
@ivanpauno ivanpauno changed the title Update the rcljava parameter APIs (port [osrf/ros2_java#1]) Update the rcljava parameter APIs (port osrf/ros2_java#1) Nov 11, 2021
Copy link
Contributor

@jacobperron jacobperron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess we're missing some changes related to the SyncParametersClient (or it's tests) hence the test failures.

@ivanpauno ivanpauno force-pushed the ivanpauno/port-changes-from-fork branch from 7e60465 to f55626b Compare November 12, 2021 14:34
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
@ivanpauno ivanpauno force-pushed the ivanpauno/port-changes-from-fork branch from f55626b to 086e700 Compare November 12, 2021 17:02
@ivanpauno
Copy link
Contributor Author

Commented out some test files to match the state on osrf#1.

Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
@ivanpauno ivanpauno merged commit 5134c54 into main Nov 15, 2021
@ivanpauno ivanpauno deleted the ivanpauno/port-changes-from-fork branch November 15, 2021 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants