ROS Resources: Documentation | Support | Discussion Forum | Service Status | Q&A answers.ros.org
Ask Your Question
0

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
1

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: http://wiki.ros.org/roslaunch/XML/node and http://answers.ros.org/question/54640...

edit flag offensive delete link more
1

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

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

Seen: 1,069 times

Last updated: Dec 07 '15