Use dsv file templates for environment setup#99
Closed
jacobperron wants to merge 16 commits intomasterfrom
Closed
Conversation
* Update rosidl_generator_java for new IDL pipeline Supporting ROS Dashing or later. Signed-off-by: Jacob Perron <jacob@openrobotics.org> * Fix name JNI name mangling Accidentally broken during update. Signed-off-by: Jacob Perron <jacob@openrobotics.org> * Remove java compile flags This remove some compile warnings. Signed-off-by: Jacob Perron <jacob@openrobotics.org> * Refactor to support services Signed-off-by: Jacob Perron <jacob@openrobotics.org> * Wide string support Signed-off-by: Jacob Perron <jacob@openrobotics.org> * Avoid duplicate includes Signed-off-by: Jacob Perron <jacob@openrobotics.org> * Use test_interface_files Signed-off-by: Jacob Perron <jacob@openrobotics.org> * Support for actions Signed-off-by: Jacob Perron <jacob@openrobotics.org> * Add suffix for long literals Signed-off-by: Jacob Perron <jacob@openrobotics.org> * Handle unsigned literals Though Java supports unsigned values, it doesn't support unsigned literals (ie. literals that are larger than the max signed value). As a workaround, we can convert the literal to it's negative equivalent. Signed-off-by: Jacob Perron <jacob@openrobotics.org> * Fix escape string function Signed-off-by: Jacob Perron <jacob@openrobotics.org> * Use cast to workaround integer literals Otherwise the compiler complains about potential loss of data. Signed-off-by: Jacob Perron <jacob@openrobotics.org> * Minor refactor Signed-off-by: Jacob Perron <jacob@openrobotics.org> * Remove TODO Signed-off-by: Jacob Perron <jacob@openrobotics.org>
* Update API for getting rcl error string Signed-off-by: Jacob Perron <jacob@openrobotics.org> * 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 <jacob@openrobotics.org> * Add implementation for Clock Signed-off-by: Jacob Perron <jacob@openrobotics.org> * 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 <jacob@openrobotics.org> * Avoid hiding errors when cleaning up init options Signed-off-by: Jacob Perron <jacob@openrobotics.org> * Disable tests Signed-off-by: Jacob Perron <jacob@openrobotics.org> * Fix typos in JNI library files Signed-off-by: Jacob Perron <jacob@openrobotics.org> * Fix native node method signature Signed-off-by: Jacob Perron <jacob@openrobotics.org> * Populate missing QoS settings with defaults Otherwise we run into a runtime error about Fast-RTPS not supporting liveliness. Signed-off-by: Jacob Perron <jacob@openrobotics.org> * Fix issues with Clock class * Load with JNIUtils * Rename native create method for consistency * Fix bug in native implementation Signed-off-by: Jacob Perron <jacob@openrobotics.org> * Enable linter tests Signed-off-by: Jacob Perron <jacob@openrobotics.org> * Fix lint errors Signed-off-by: Jacob Perron <jacob@openrobotics.org> * 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 <jacob@openrobotics.org> * Fix NodeTest Signed-off-by: Jacob Perron <jacob@openrobotics.org> * 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 <jacob@openrobotics.org>
* Update rosidl_generator_java tests Now using messages from test_interface_files. Signed-off-by: Jacob Perron <jacob@openrobotics.org> * Remove old interface files Signed-off-by: Jacob Perron <jacob@openrobotics.org>
The package does not exist. Signed-off-by: Jacob Perron <jacob@openrobotics.org>
This fixes some fatal runtime errors during testing. Signed-off-by: Jacob Perron <jacob@openrobotics.org>
* Fix service and action interface generation Before, we were not generating code for the messages and services that make up service and action interfaces. Due to issues with duplicate definitions caused by instantiating the msg.cpp.em template multiple times, I've opted to generate separate files for each service, action, and the interfaces that they are made of. This is similar to what we are doing with the generated Java code. I've added a test confirming that generated service code can be used. Adding a test for actions is difficult at the moment due to a circular dependency with action_msgs. Signed-off-by: Jacob Perron <jacob@openrobotics.org> * Add missing header include Signed-off-by: Jacob Perron <jacob@openrobotics.org> * Rename top level generated cpp file This avoids name clashing with other generated files. Similar to what we do with generated Java files. Signed-off-by: Jacob Perron <jacob@openrobotics.org> * Fix JNI name mangling function so it works for service and action subtypes For example, 'example_interfaces/srv/AddTwoInts_Request' should be mangled to 'example_1interfaces_srv_AddTwoInts_1Request'. Signed-off-by: Jacob Perron <jacob@openrobotics.org> * Remove vestigal references to jni_package_name Signed-off-by: Jacob Perron <jacob@openrobotics.org> * Add comment about action and service headers Signed-off-by: Jacob Perron <jacob@openrobotics.org> * Simplify include logic Signed-off-by: Jacob Perron <jacob@openrobotics.org>
* Fix service and action interface generation Before, we were not generating code for the messages and services that make up service and action interfaces. Due to issues with duplicate definitions caused by instantiating the msg.cpp.em template multiple times, I've opted to generate separate files for each service, action, and the interfaces that they are made of. This is similar to what we are doing with the generated Java code. I've added a test confirming that generated service code can be used. Adding a test for actions is difficult at the moment due to a circular dependency with action_msgs. Signed-off-by: Jacob Perron <jacob@openrobotics.org> * Add missing header include Signed-off-by: Jacob Perron <jacob@openrobotics.org> * Rename top level generated cpp file This avoids name clashing with other generated files. Similar to what we do with generated Java files. Signed-off-by: Jacob Perron <jacob@openrobotics.org> * Fix JNI name mangling function so it works for service and action subtypes For example, 'example_interfaces/srv/AddTwoInts_Request' should be mangled to 'example_1interfaces_srv_AddTwoInts_1Request'. Signed-off-by: Jacob Perron <jacob@openrobotics.org> * Remove vestigal references to jni_package_name Signed-off-by: Jacob Perron <jacob@openrobotics.org> * Add comment about action and service headers Signed-off-by: Jacob Perron <jacob@openrobotics.org> * Simplify include logic Signed-off-by: Jacob Perron <jacob@openrobotics.org> * Rename cpp headers to have .hpp suffix Signed-off-by: Jacob Perron <jacob@openrobotics.org> * Update files to reflect new header suffix This resolves a cppcheck linter error complaining about "is invalid C code". Changing the suffix causes cppcheck to treat the files as C++ code. Signed-off-by: Jacob Perron <jacob@openrobotics.org> Co-authored-by: Esteve Fernandez <esteve@apache.org>
We don't need to build everything from source, only some of the ROS interface packages. Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
* Add dashing workflow Using the ros-tooling custom GitHub actions Signed-off-by: Jacob Perron <jacob@openrobotics.org> * Update repos file URL Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Contributor
Author
|
We should hold this PR as it is only compatible with Eloquent or later. |
* Add example_interfaces to desktop repos file This package is required by rcljava_examples. Signed-off-by: Jacob Perron <jacob@openrobotics.org> * Append .git to repository URLs for consistency Signed-off-by: Jacob Perron <jacob@openrobotics.org>
* Fix README with correct branch in the instructions. * Update README instructions repository links. Changed the repository links from a private github account to ROS2 Organisation repositories links. Co-authored-by: Niels Tiben <nielstiben@outlook.com>
…85) * Re-enable tests related to services Signed-off-by: Jacob Perron <jacob@openrobotics.org> * Add Client methods for checking and waiting for service availability These methods are very useful for allowing a client to wait for a service to be available before making requests. Signed-off-by: Jacob Perron <jacob@openrobotics.org> * Refactor ClientTest to avoid repeatedly sending requests Signed-off-by: Jacob Perron <jacob@openrobotics.org>
* Android part pul command use the wrong reops Signed-off-by: Jay Hou <hjjehovah@gmail.com>
Drop use of old sh/bat templates Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Contributor
Author
|
Superseded by #186 |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Take advantage of newer DSV file-based environment setup, as of ROS 2 Dashing.
Depends on ros2-java/ament_java#10