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

C++ and Python nodes in the same launch file?

asked 2021-12-02 16:37:37 -0500

cjm3334 gravatar image

Is this possible as long as I use proper syntax? Or will I have to separate into one launch file per language?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-12-03 02:47:03 -0500

gvdhoorn gravatar image

updated 2021-12-03 02:47:31 -0500

C++ and Python nodes in the same launch file? Is this possible as long as I use proper syntax?

yes.

Or will I have to separate into one launch file per language?

no.

In fact, there is no assumption about any language or binary format. As long as what you try to start is:

  1. located in a ROS package (it is possible to work around this, but in general this is going to be the easiest to get working)
  2. is executable by the platform/OS you're running roslaunch on

It isn't even required for executables to be ROS nodes (non-ROS programs will receive a couple of extra command line arguments, but if they can deal with those, they can be started. Otherwise, see: #q272267).

edit flag offensive delete link more

Question Tools

Stats

Asked: 2021-12-02 16:37:37 -0500

Seen: 259 times

Last updated: Dec 03 '21