Skip to content

Add action interfaces for goal request and goal response #52

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

Merged
merged 7 commits into from
Jan 20, 2021

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 <[email protected]>
Also make inner classes static.

Signed-off-by: Jacob Perron <[email protected]>
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.
@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 <[email protected]>
@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 <[email protected]>

* Add new definitions for action goal response and request

Signed-off-by: Jacob Perron <[email protected]>

* Add getter for UUID to SendGoalRequest

Also make inner classes static.

Signed-off-by: Jacob Perron <[email protected]>

* Add getStamp method to GoalResponseDefinition

Signed-off-by: Jacob Perron <[email protected]>

* 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 <[email protected]>

* Fix getGoalUuid implementation

It should return a List, since it is hashable.

Signed-off-by: Jacob Perron <[email protected]>
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 <[email protected]>

* Add new definitions for action goal response and request

Signed-off-by: Jacob Perron <[email protected]>

* Add getter for UUID to SendGoalRequest

Also make inner classes static.

Signed-off-by: Jacob Perron <[email protected]>

* Add getStamp method to GoalResponseDefinition

Signed-off-by: Jacob Perron <[email protected]>

* 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 <[email protected]>

* Fix getGoalUuid implementation

It should return a List, since it is hashable.

Signed-off-by: Jacob Perron <[email protected]>
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