Skip to content
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

refactor: sparate ros2 dependency in aimrt_py #117

Merged
Merged
Prev Previous commit
Next Next commit
feat: add support for additional ROS2 example script
- Introduced a new subprocess call in `run_all_example.py` to execute the `build_examples_py_ros2_rpc.sh` script, enhancing the example runner's capabilities for ROS2 RPC interactions.
- This addition allows for better demonstration and testing of ROS2 functionalities within the example framework.
  • Loading branch information
zhangyi1357 committed Dec 3, 2024
commit 7e3b45db06b8ebb9894e4debb33cf111328e7ebc
4 changes: 4 additions & 0 deletions src/examples/utils/run_all_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ def __init__(self):
["bash", os.path.join("build_examples_py_pb_chn.sh")],
cwd=os.path.join(py_cwd, "pb_chn"),
)
subprocess.run(
["bash", os.path.join("build_examples_py_ros2_rpc.sh")],
cwd=os.path.join(py_cwd, "ros2_rpc"),
)

def check_and_create_directory(self, test_log_save_path: str) -> None:
if test_log_save_path and not os.path.exists(test_log_save_path):
Expand Down