roslaunch to launch python SimpleHTTPServer
Is there a way to add following to roslaunch?
roscd <package>
python -m SimpleHTTPServer 8000
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).
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2017-05-22 15:31:14 -0600
Seen: 135 times
Last updated: May 23 '17
Introduction to tf tutorial: Second turtle does not follow the first one. (No errors)
ROS (1 & 2) and systemd, current status for Kinetic/Noetic and the future
Unable to Contact my Own Server
roslaunch_add_file_check(..) and build dependencies
roslaunch SSH known_host errors - cannot launch remote nodes
ERROR: Cannot locate node of type [ydlidar_ros_driver_node]
launch file to run multiple nodes in two machines: problem with environment file
Service Server and Client not working when launch by launch file