Skip to content

Adding logic for actions - #186

Merged
mlautman merged 2 commits into
crystal-develfrom
ros2_actions
Jan 31, 2019
Merged

mlautman merged 2 commits into
crystal-develfrom
ros2_actions

Conversation

@brawner

@brawner brawner commented Dec 28, 2018

Copy link
Copy Markdown
Contributor

This adds support for actions to rqt_py_common. This is necessary to port rqt_action

It depends on ros2/rosidl_python#21

@mlautman mlautman left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

+1 after addressing feedback

ROSIDL_FILTERS = {
MSG_MODE: lambda n: n.endswith('.msg'),
SRV_MODE: lambda n: n.endswith('.srv'),
ACTION_MODE: lambda n: n.startswith('action/') and n.endswith('.idl')

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

why only filter prefixes for actions?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Because the previous logic would collect both .msg files that were srv/*.msg and msg/*.msg. Unfortunately there is no rosidl_interface yet that includes an .action suffix and .idl is not specific to actions.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

There are no .idl files in the current master branch yet. They are still named .action.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

When I generate the rosidl_interfaces for test_msgs, this is the list that's created and added to the rosidl_interfaces resource_index. I haven't noticed an action/Fibonacci.action being added to this list. Do you know where this happens so I can pull the correct branch and test this out with .action? I've done a basic vcs pull from master, but maybe I'm missing something.

action/Fibonacci.idl
action/Fibonacci_Feedback.msg
action/Fibonacci_Goal.srv
action/Fibonacci_Goal_Request.msg
action/Fibonacci_Goal_Response.msg
action/Fibonacci_Result.srv
action/Fibonacci_Result_Request.msg
action/Fibonacci_Result_Response.msg
msg/BoundedArrayNested.idl
msg/BoundedArrayNested.msg
msg/BoundedArrayPrimitives.idl
msg/BoundedArrayPrimitives.msg
msg/BoundedArrayPrimitivesNested.idl
msg/BoundedArrayPrimitivesNested.msg
msg/Builtins.idl
msg/Builtins.msg
msg/DynamicArrayNested.idl
msg/DynamicArrayNested.msg
msg/DynamicArrayPrimitives.idl
msg/DynamicArrayPrimitives.msg
msg/DynamicArrayPrimitivesNested.idl
msg/DynamicArrayPrimitivesNested.msg
msg/DynamicArrayStaticArrayPrimitivesNested.idl
msg/DynamicArrayStaticArrayPrimitivesNested.msg
msg/Empty.idl
msg/Empty.msg
msg/Nested.idl
msg/Nested.msg
msg/Primitives.idl
msg/Primitives.msg
msg/StaticArrayNested.idl
msg/StaticArrayNested.msg
msg/StaticArrayPrimitives.idl
msg/StaticArrayPrimitives.msg
msg/StaticArrayPrimitivesNested.idl
msg/StaticArrayPrimitivesNested.msg
srv/Empty.idl
srv/Empty.srv
srv/Empty_Request.msg
srv/Empty_Response.msg
srv/Primitives.idl
srv/Primitives.srv
srv/Primitives_Request.msg
srv/Primitives_Response.msg

@dirk-thomas dirk-thomas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Beside the comment I think this needs to wait until the generated Python API for actions has been reviewed and merged, e.g. if there is an action class being generated or not.

@brawner

brawner commented Jan 15, 2019

Copy link
Copy Markdown
Contributor Author

@dirk-thomas @mlautman This PR has been updated now that the rosidl_python PR has been merged.

@mlautman
mlautman merged commit cdf48af into crystal-devel Jan 31, 2019
@mlautman
mlautman deleted the ros2_actions branch January 31, 2019 17:53
@ghost ghost removed the in progress label Jan 31, 2019
@dirk-thomas

Copy link
Copy Markdown
Contributor

@mlautman The consensus we have is that PRs on this repo are waiting for an approval from the maintainer (in contrast to plugin repos). Please do so on future PRs. If there is no response feel free to comment requesting for feedback but don't merge them without.

mlautman pushed a commit that referenced this pull request Feb 4, 2019
* Adding logic for actions

* Modifications for latest rosidl_interface action changes
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