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

ROS2 runtime launch of nodes

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

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
1

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

gvdhoorn gravatar image

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

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

Comments

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 -0500 )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 -0500 )edit

Question Tools

1 follower

Stats

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

Seen: 316 times

Last updated: Dec 08 '19