Skip to content
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

Use array instead of List for ROS message types #55

Merged
merged 8 commits into from
Jan 7, 2021

Conversation

jacobperron
Copy link

Copy of ros2-java#165.

pluris and others added 8 commits January 6, 2021 13:52
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
* Avoid nullptr access when converting from Java arrays to C arrays
* Make sure Java arrays are initialized

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
@jacobperron jacobperron requested a review from ivanpauno January 6, 2021 22:17
@jacobperron jacobperron self-assigned this Jan 6, 2021
@jacobperron
Copy link
Author

cc/ @mallanmba

@jacobperron jacobperron merged commit c012ba8 into galactic-devel Jan 7, 2021
@jacobperron jacobperron deleted the jacob/list_to_array branch January 7, 2021 18:33
ivanpauno pushed a commit that referenced this pull request May 17, 2021
* change logic(list -> array) in msg.java.em

* change logic(list -> array) in msg.cpp.em

* Support getting and setting as Lists in addition to arrays

Signed-off-by: Jacob Perron <jacob@openrobotics.org>

* Update rcljava to work with new methods for list types

Signed-off-by: Jacob Perron <jacob@openrobotics.org>

* Update tests to work with new methods for list types

Signed-off-by: Jacob Perron <jacob@openrobotics.org>

* Fixes to template files

* Avoid nullptr access when converting from Java arrays to C arrays
* Make sure Java arrays are initialized

Signed-off-by: Jacob Perron <jacob@openrobotics.org>

* Minor refactor

Signed-off-by: Jacob Perron <jacob@openrobotics.org>

* A note about performance to *AsList docblocks

Signed-off-by: Jacob Perron <jacob@openrobotics.org>

Co-authored-by: pluris <zighart8456@naver.com>
jacobperron added a commit to ros2-java/ros2_java that referenced this pull request May 17, 2022
* change logic(list -> array) in msg.java.em

* change logic(list -> array) in msg.cpp.em

* Support getting and setting as Lists in addition to arrays

Signed-off-by: Jacob Perron <jacob@openrobotics.org>

* Update rcljava to work with new methods for list types

Signed-off-by: Jacob Perron <jacob@openrobotics.org>

* Update tests to work with new methods for list types

Signed-off-by: Jacob Perron <jacob@openrobotics.org>

* Fixes to template files

* Avoid nullptr access when converting from Java arrays to C arrays
* Make sure Java arrays are initialized

Signed-off-by: Jacob Perron <jacob@openrobotics.org>

* Minor refactor

Signed-off-by: Jacob Perron <jacob@openrobotics.org>

* A note about performance to *AsList docblocks

Signed-off-by: Jacob Perron <jacob@openrobotics.org>

Co-authored-by: pluris <zighart8456@naver.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants