roslaunch to launch python SimpleHTTPServer
Is there a way to add following to roslaunch?
roscd <package>
python -m SimpleHTTPServer 8000
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
Is there a way to add following to roslaunch?
roscd <package>
python -m SimpleHTTPServer 8000
Yes: create a small wrapper bash script that does roscd <package>
first, then runs python -m SimpleHTTPServer 8000
.
Easiest is to add this to a package, then use regular node type=".." pkg=".." name=".."
syntax to start it.
Personally I try to keep any ROS-isms out of such files, by passing the output of $(find package)
(an absolute path) as the first argument to the script (and then do a cd $x
(where x
is the correct argument nr) in the script, but make sure to take ROS args into account).
Asked: 2017-05-22 15:31:14 -0500
Seen: 290 times
Last updated: May 23 '17
gazebo is not starting and i have no errors
rosbuild_add_roslaunch_check fails for included files using launch file arguments
launching ros launch file from program
Conditionally set an arg in launch if directory exists
Cannot launch node of type [teleop_twist_keyboard/teleop_twist_keyboard.py]: teleop_twist_keyboard
How to launch from a ros node?
Cannot find custom Launch file
Set node parameter in launch file