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

Is it possible to call ./executable from a launch file?

asked 2015-12-07 05:15:55 -0500

sergiosrl gravatar image

I'm using arduino-serial to send a string to arduino through serial port. I'm able to do this on the console:

./arduino-serial -b 9600 -p /dev/tty.usbserial -s 6

Is it possible to call this on a launch file?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2015-12-07 18:09:20 -0500

130s gravatar image

Adding to @Mehdi.'s answer, you can specify arguments.

<node pkg="my_package" type="arduino-serial" name="foo" args="-b 9600 -p /dev/tty.usbserial -s 6" />

Anyways these require that your executable files are located in a ROS package in order to utilize node tag.

Also see: and

edit flag offensive delete link more

answered 2015-12-07 08:11:40 -0500

Mehdi. gravatar image

updated 2015-12-07 08:13:58 -0500

You could create a python (.py) or a bash (.sh) script that runs this command and start it as if it was a node in roslaunch.

<node name="foo" pkg="my_package" type="my_script" />
edit flag offensive delete link more

Question Tools

1 follower


Asked: 2015-12-07 05:15:55 -0500

Seen: 2,839 times

Last updated: Dec 07 '15