bash script output to param
Is there a way to take the output of a bash script and use it as a param in a ros launch file. The script should also run in the same launch file
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
Is there a way to take the output of a bash script and use it as a param in a ros launch file. The script should also run in the same launch file
I think roslaunch/XML/param's command
attribute should do what you want:
command="$(find pkg-name)/exe '$(find pkg-name)/arg.txt'"
(optional)The output of the command will be read and stored as a string. It is strongly recommended that you use the package-relative
$(find)/file.txt
syntax to specify file arguments. You should also quote file arguments using single quotes due to XML escaping requirements.
I'm not sure what you mean with:
The script should also run in the same launch file
Asked: 2016-09-06 05:41:14 -0500
Seen: 759 times
Last updated: Sep 06 '16
Use ros launch to create a directory and then pass it's path to different nodes
ERROR: cannot launch node of type : can't locate node in package
ROS TCP Connector C# Lost Publishers & Freezing
Launch files not copied into share folder by catkin_make
launching ros launch file from program
Systemd+roslaunch fails with Turtlebot
nodelet name appended to topic
Event handling on ROS2 Nodes across Launch files
Automatically set the ROS MASTER ip within another machine belonging to the same network
roslaunch ignoring set parameters for sicktoolbox_wrapper package