how to launch program out-side ros package from launch file
Are there any way to start a program in /usr/local/bin from launch file?
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
Are there any way to start a program in /usr/local/bin from launch file?
I don't think there is a direct way to achieve this. But you could easily write a wrapper script and put it into a ros package. The script could look like this:
#!/bin/bash
exec $1 ${@:2}
A corresponding launch entry, assuming that the script is called launch_system_cmd.sh
and lies in package mypackage
, would look like this:
<node name="shell_cmd" type="launch_system_cmd.sh" pkg="mypackage"
args="/bin/echo foo" />
Please note that roslaunch will pass an additional parameter that sets the name for nodes and if necessary topic remappings. The output of the above command should be something like
foo __name:=shell_cmd
You might need to extend the wrapper script to get rid of those additional parameters.
Hi, you can make sure an executable is found via the ros package mechanism by creating links to the programs you need in a ros package.
Maybe you can also use ROS_LOCATIONS
Asked: 2011-06-09 16:26:43 -0500
Seen: 435 times
Last updated: Jun 10 '11
Get timestamp during roslaunch
roslaunch openni_launch openni.launch no devices connected [closed]
[roslaunch] Load parameters in node namespace from outside the node
"roslaunch gazebo_ros willowgarage_world.launch" with dying gazebo-gui
roslaunch multiple node arguments
How to correctly respawn a nodelet manager
How can get the type of a node? [closed]
Invalid <param> tag: Cannot load command parameter : command returned with code [1] [closed]