Repository navigation
Adding logic for actions - #186
Conversation
mlautman
left a comment
There was a problem hiding this comment.
+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') |
There was a problem hiding this comment.
why only filter prefixes for actions?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
There are no .idl files in the current master branch yet. They are still named .action.
There was a problem hiding this comment.
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
9f51155 to
3218a44
Compare
dirk-thomas
left a comment
There was a problem hiding this comment.
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.
3218a44 to
b063121
Compare
b063121 to
8aaf266
Compare
|
@dirk-thomas @mlautman This PR has been updated now that the rosidl_python PR has been merged. |
|
@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. |
* Adding logic for actions * Modifications for latest rosidl_interface action changes
This adds support for actions to rqt_py_common. This is necessary to port rqt_action
It depends on ros2/rosidl_python#21