rai icon indicating copy to clipboard operation
rai copied to clipboard

rai-run an agent launcher

Open Juliaj opened this issue 5 months ago • 1 comments

Originally posted by @maciejmajek in https://github.com/RobotecAI/rai/pull/694#discussion_r2371694778

When designing RAI 2.0, we decided to move a bit further away from ROS 2 because of its limitations with Python usage. However, ROS 2 had a very convenient launch system. I would love to have something similar in RAI, so scripts like this would no longer be necessary: e.g., rai-run rai_openset openset_agents

Juliaj avatar Sep 24 '25 00:09 Juliaj

An idea discussed during 2025-10-01 dev meeting was to hijack the ros2 launch package: https://github.com/ros2/launch

Note: This package would need to be somehow included in the build system/published on PyPI, to maintain ability to use RAI without ROS2. However that should be possible.

Then it would require to create an entrypoint for the RAI runner: https://github.com/RobotecAI/rai/blob/4e42986290e920ee078efc66274917cbd764fa69/src/rai_core/rai/agents/runner.py#L70 and make the runner use LaunchDescription objects as basis for creating the agents.

Then that entrypoint could be included in pyproject.toml to use it as an exectuable and we will have a launch system very similar to the ROS2 system, however not dependant on ROS2.

rachwalk avatar Oct 01 '25 16:10 rachwalk