Calling bash scripts work with Python, not with launch file
Hi all.
I'm writing a robot controller in Python 2 using an online platform called The Construct Sim, which uses Gazebo for simulation. My robot controller uses a call to a bash script to generate the model in Gazebo. When I run the robot controller with python robot_controller.py
, it works as expected. When I run the robot controller with the launch file roslaunch demo_2 run_all.launch
, it causes an error which reads: sh: ./robot.sh: No such file or directory
(There is a second bash script that generates the same error: sh: ./del_robot.sh: No such file or directory
). The launch file, python file, and bash scripts are all in one package. The launch file in in demo_2/launch
, the bash and python files are in demo_2/src
.
The online platform I'm using uses Ubuntu 16.04 LTS, Python 2.7.12, ROS kinetic.
Launch file: https://github.com/cstainer/ECE-370/b...
Python file: https://github.com/cstainer/ECE-370/b...
robot.sh: https://github.com/cstainer/ECE-370/b...
del_robot.sh: https://github.com/cstainer/ECE-370/b...
Thanks for any and all help.