ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

ROS2 runtime launch of nodes

asked 2019-12-08 13:56:25 -0600

georgy gravatar image

Hi! I have a need to run ROS nodes from other ROS nodes at runtime. Composition look like that I need. But it using C++ and rclcpp. My nodes are written in Python. Does ROS2 have ways to run nodes at runtime from other nodes for python? Thanks!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-12-08 14:06:23 -0600

gvdhoorn gravatar image

updated 2019-12-08 14:08:19 -0600

Managed and life-cycle nodes are currently not supported in Python, as far as I know. See also #q328772 -- I don't believe the situation has changed.

The Features Status page seems to confirm this:

Composition of node components at compile-, link- or dlopen-time: Currently only in C++.

It might be possible to load ROS 2 Python nodes at runtime using some Python 'tricks', but it would not seem to be officially supported at this point.

edit flag offensive delete link more


Thanks! I will look for other ways. I think your answer is a solution in my situation.

georgy gravatar image georgy  ( 2019-12-08 14:21:49 -0600 )edit

We could wait for other board members to respond.

They may know of a way I'm not aware of.

gvdhoorn gravatar image gvdhoorn  ( 2019-12-08 14:51:02 -0600 )edit

Question Tools

1 follower


Asked: 2019-12-08 13:56:25 -0600

Seen: 265 times

Last updated: Dec 08 '19