How to launch from a ros node?

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

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 imageIsha Dijcks ( 2019-04-29 03:13:57 -0600 )edit

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

lahiruherath gravatar imagelahiruherath ( 2019-04-29 03:29:20 -0600 )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 imagegvdhoorn ( 2019-04-29 13:57:19 -0600 )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 imagelahiruherath ( 2019-04-29 22:57:55 -0600 )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 imagegvdhoorn ( 2019-04-30 02:19:09 -0600 )edit

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

lahiruherath gravatar imagelahiruherath ( 2019-04-30 03:02:03 -0600 )edit