Skip to content

Conversation

@jacobperron
Copy link
Contributor

Though service generation was fixed in #76, the new files were not added to the CMakeLists.txt for compilation. This PR contains the following:

  • Clean up some redundant code generation (7da1faf)
  • Fix compilation errors (50d2789)
  • Generate Java equivalent code for service definitions (e1a70cf)
  • Add generated code to the CMakeLists.txt for compilation (86b4240)

The request and response messages are already generated as part of the
srv template.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
The generated C headers for actions are included in a single header named after the action.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Though not strictly necessary, it is nice to have definitions for these action-specific services for the purpose of writing unit tests.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Previously, though we were generated service definitions for actions we were not compiling them.

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

@ivanpauno ivanpauno left a comment

Choose a reason for hiding this comment

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

I haven't really tested this, but the changes look good to me!

@jacobperron jacobperron merged commit 66d622c into dashing Nov 9, 2020
@jacobperron jacobperron deleted the jacob/fix_action_generation branch November 9, 2020 22:30
jacobperron added a commit to osrf/ros2_java that referenced this pull request Nov 9, 2020
* Remove redundant code generation

The request and response messages are already generated as part of the
srv template.

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

* Strip action service suffixes from C include prefix

The generated C headers for actions are included in a single header named after the action.

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

* Generate Java code for SendGoal and GetResult service definitions

Though not strictly necessary, it is nice to have definitions for these action-specific services for the purpose of writing unit tests.

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

* Compile generated service definitions for actions

Previously, though we were generated service definitions for actions we were not compiling them.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
jacobperron added a commit to osrf/ros2_java that referenced this pull request Nov 10, 2020
* Remove redundant code generation

The request and response messages are already generated as part of the
srv template.

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

* Strip action service suffixes from C include prefix

The generated C headers for actions are included in a single header named after the action.

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

* Generate Java code for SendGoal and GetResult service definitions

Though not strictly necessary, it is nice to have definitions for these action-specific services for the purpose of writing unit tests.

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

* Compile generated service definitions for actions

Previously, though we were generated service definitions for actions we were not compiling them.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
jacobperron added a commit to osrf/ros2_java that referenced this pull request Nov 10, 2020
* Remove redundant code generation

The request and response messages are already generated as part of the
srv template.

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

* Strip action service suffixes from C include prefix

The generated C headers for actions are included in a single header named after the action.

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

* Generate Java code for SendGoal and GetResult service definitions

Though not strictly necessary, it is nice to have definitions for these action-specific services for the purpose of writing unit tests.

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

* Compile generated service definitions for actions

Previously, though we were generated service definitions for actions we were not compiling them.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
jacobperron added a commit to osrf/ros2_java that referenced this pull request Nov 10, 2020
* Remove redundant code generation

The request and response messages are already generated as part of the
srv template.

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

* Strip action service suffixes from C include prefix

The generated C headers for actions are included in a single header named after the action.

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

* Generate Java code for SendGoal and GetResult service definitions

Though not strictly necessary, it is nice to have definitions for these action-specific services for the purpose of writing unit tests.

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

* Compile generated service definitions for actions

Previously, though we were generated service definitions for actions we were not compiling them.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
jacobperron added a commit to osrf/ros2_java that referenced this pull request Nov 10, 2020
* Remove redundant code generation

The request and response messages are already generated as part of the
srv template.

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

* Strip action service suffixes from C include prefix

The generated C headers for actions are included in a single header named after the action.

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

* Generate Java code for SendGoal and GetResult service definitions

Though not strictly necessary, it is nice to have definitions for these action-specific services for the purpose of writing unit tests.

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

* Compile generated service definitions for actions

Previously, though we were generated service definitions for actions we were not compiling them.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
jacobperron added a commit to osrf/ros2_java that referenced this pull request Nov 10, 2020
* Remove redundant code generation

The request and response messages are already generated as part of the
srv template.

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

* Strip action service suffixes from C include prefix

The generated C headers for actions are included in a single header named after the action.

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

* Generate Java code for SendGoal and GetResult service definitions

Though not strictly necessary, it is nice to have definitions for these action-specific services for the purpose of writing unit tests.

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

* Compile generated service definitions for actions

Previously, though we were generated service definitions for actions we were not compiling them.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
jacobperron added a commit that referenced this pull request May 17, 2021
* Remove redundant code generation

The request and response messages are already generated as part of the
srv template.

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

* Strip action service suffixes from C include prefix

The generated C headers for actions are included in a single header named after the action.

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

* Generate Java code for SendGoal and GetResult service definitions

Though not strictly necessary, it is nice to have definitions for these action-specific services for the purpose of writing unit tests.

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

* Compile generated service definitions for actions

Previously, though we were generated service definitions for actions we were not compiling them.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
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.

3 participants