Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 111
Use array instead of List for ROS message types#165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
jacobperron
wants to merge
8
commits into
dashingChoose a base branch
from
jacob/redo_151
base:dashing
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Uh oh!
There was an error while loading. Please reload this page.
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
3a068ef
change logic(list -> array) in msg.java.em
9a65235
change logic(list -> array) in msg.cpp.em
df08714
Support getting and setting as Lists in addition to arrays
jacobperron 954fbea
Update rcljava to work with new methods for list types
jacobperron 228ea96
Update tests to work with new methods for list types
jacobperron 0dac87f
Fixes to template files
jacobperron 2167017
Minor refactor
jacobperron 0729503
A note about performance to *AsList docblocks
jacobperron File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6 rcljava/src/main/java/org/ros2/rcljava/parameters/ParameterVariant.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -94,7 +94,7 @@ public ParameterVariant(final String name, final String stringValue) { | ||
| this.value.setType(ParameterType.PARAMETER_STRING.getValue()); | ||
| } | ||
| public ParameterVariant(final String name, final List<Byte> byteArrayValue) { | ||
| public ParameterVariant(final String name, final byte[] byteArrayValue) { | ||
ivanpauno marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| this.name = name; | ||
| this.value = new rcl_interfaces.msg.ParameterValue(); | ||
| this.value.setByteArrayValue(byteArrayValue); | ||
| @@ -161,7 +161,7 @@ public final boolean asBool() { | ||
| return this.value.getBoolValue(); | ||
| } | ||
| public final List<Byte> asByteArray() { | ||
| public final byte[] asByteArray() { | ||
ivanpauno marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| if (getType() != ParameterType.PARAMETER_BYTE_ARRAY) { | ||
| throw new IllegalArgumentException("Invalid type"); | ||
| } | ||
| @@ -194,4 +194,4 @@ public static ParameterVariant fromParameter(final rcl_interfaces.msg.Parameter | ||
| "Unexpected type from ParameterVariant: " + parameter.getValue().getType()); | ||
| } | ||
| } | ||
| } | ||
| } | ||
16 changes: 8 additions & 8 deletions
16 rcljava/src/main/java/org/ros2/rcljava/parameters/client/AsyncParametersClientImpl.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8 rcljava/src/main/java/org/ros2/rcljava/parameters/service/ParameterServiceImpl.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
102 changes: 51 additions & 51 deletions
102 rcljava/src/test/java/org/ros2/rcljava/node/NodeTest.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5 rcljava/src/test/java/org/ros2/rcljava/parameters/AsyncParametersClientTest.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletions
7 rcljava/src/test/java/org/ros2/rcljava/parameters/SyncParametersClientTest.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.