feat: add ros2 interface CLI command support #628
Conversation
Add Bazel macro and Python wrapper to enable ros2 interface command functionality within Bazel-built ROS 2 projects. Changes: - Add interface.bzl macro for creating ros2_interface binary targets - Add ros2_interface.py Python wrapper exposing interface CLI verbs - Register new files in ros2/BUILD.bazel exports_files
mvukov
left a comment
There was a problem hiding this comment.
A general question: why/how is this utility useful in Bazel context? -- I am just curious.
Naming is going to be tricky here. We already have interfaces.bzl -- without proper docs (new) folks might be puzzled with interface.bzl and interfaces.bzl. WDYT?
| @@ -0,0 +1,33 @@ | |||
| # Licensed under the Apache License, Version 2.0 (the "License"); | |||
There was a problem hiding this comment.
Add yourself as a copyright holder in relevant files.
In my Bazel workspace, ROS2 interface definitions are converted from other sources and are not in workspace as files, so it's worth porting
Currently, we have at least file level docstring both on |
I don't get this. IIUC, this tool can be used to list interfaces used for a specific target. Is this correct? Also, what kind of conversion you have in mind? |
Add Bazel macro and Python wrapper to enable ros2 interface command
functionality within Bazel-built ROS 2 projects.
Changes:
//chatter:interfaceas an example usage