Skip to content

Conversation

@jacobperron
Copy link

Defining methods that should be provided by the code generator for actions, as they are needed for the action server implementation.

I'll follow-up an add more interfaces for the result and feedback as needed.

@jacobperron
Copy link
Author

See #53 for how these changes are used.

Implementing these interfaces in the code generation template makes it easier to pass around these types in a generic way.
Note, the 'final' modifier had to be removed from generated message types in order to extend goal, result, and feedback types in action definitions.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Also make inner classes static.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Partially revert commit dd04614.

I don't think we need to aliases for the message types, but I'll add them back if they turn out to be useful.
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
@jacobperron jacobperron force-pushed the jacob/more_action_interfaces branch from 4924965 to f7d7f55 Compare January 20, 2021 19:06
@jacobperron
Copy link
Author

Rebased to fix CI.

@ivanpauno Can you give this one an approval? Then I will merge this before #53.

@jacobperron
Copy link
Author

Note, I changed the return type of one of the interfaces following #55: 09f469c

It should return a List, since it is hashable.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
@jacobperron jacobperron force-pushed the jacob/more_action_interfaces branch from 09f469c to 7a6a47f Compare January 20, 2021 20:41
@jacobperron
Copy link
Author

Sorry, I had to revert 09f469c. We actually want a List type for it's hash method.. see 7a6a47f. 🙃

@ivanpauno
Copy link
Collaborator

Sorry, I had to revert 09f469c. We actually want a List type for it's hash method.. see 7a6a47f.

Sounds good to me

@jacobperron jacobperron merged commit a0f46a4 into galactic-devel Jan 20, 2021
@jacobperron jacobperron deleted the jacob/more_action_interfaces branch January 20, 2021 21:02
ivanpauno pushed a commit that referenced this pull request May 17, 2021
* Add interfaces for action goal, result, and feedback

Implementing these interfaces in the code generation template makes it easier to pass around these types in a generic way.
Note, the 'final' modifier had to be removed from generated message types in order to extend goal, result, and feedback types in action definitions.

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

* Add new definitions for action goal response and request

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

* Add getter for UUID to SendGoalRequest

Also make inner classes static.

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

* Add getStamp method to GoalResponseDefinition

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

* Partially revert "Add interfaces for action goal, result, and feedback"

Partially revert commit dd04614.

I don't think we need to aliases for the message types, but I'll add them back if they turn out to be useful.

* Parameterize goal request and response interfaces on action type

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

* Fix getGoalUuid implementation

It should return a List, since it is hashable.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
jacobperron added a commit to ros2-java/ros2_java that referenced this pull request May 17, 2022
* Add interfaces for action goal, result, and feedback

Implementing these interfaces in the code generation template makes it easier to pass around these types in a generic way.
Note, the 'final' modifier had to be removed from generated message types in order to extend goal, result, and feedback types in action definitions.

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

* Add new definitions for action goal response and request

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

* Add getter for UUID to SendGoalRequest

Also make inner classes static.

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

* Add getStamp method to GoalResponseDefinition

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

* Partially revert "Add interfaces for action goal, result, and feedback"

Partially revert commit dd04614.

I don't think we need to aliases for the message types, but I'll add them back if they turn out to be useful.

* Parameterize goal request and response interfaces on action type

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

* Fix getGoalUuid implementation

It should return a List, since it is hashable.

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