How to launch from a ros node?

asked 2019-04-29 01:45:31 -0500

lahiruherath gravatar image

What is the most efficient procedure to launch a ros launch from inside a node. I want the substitute to roslaunch which only supports python not C++

edit retag flag offensive close merge delete

Comments

Do you mean you want to use roslaunch with C++ instead of Python?

Isha Dijcks gravatar image Isha Dijcks  ( 2019-04-29 03:13:57 -0500 )edit

Yes exactly this is what i need, I want to do the same thins as roslaunch python using C++

lahiruherath gravatar image lahiruherath  ( 2019-04-29 03:29:20 -0500 )edit

That would probably require reimplementing quite a bit of code.

Perhaps if you can tell us what your use-case is we can suggest (an) alternative(s).

gvdhoorn gravatar image gvdhoorn  ( 2019-04-29 13:57:19 -0500 )edit

The use-case is i have multiple i have move_base running with multiple other ros nodes which are not connected to navigation. The use-case is i need to initiate and close the move_base node depending on some conditions from a another node (for example from a master controller node)

lahiruherath gravatar image lahiruherath  ( 2019-04-29 22:57:55 -0500 )edit

Do you just want to prevent a running move_base node from controlling your robot, or are things like resource usage also an issue?

gvdhoorn gravatar image gvdhoorn  ( 2019-04-30 02:19:09 -0500 )edit

resource usage is a concern as well. Simply i want to kill or bring-up move_base from inside another node.

lahiruherath gravatar image lahiruherath  ( 2019-04-30 03:02:03 -0500 )edit