Running terminal commands of Ros from python script

asked 2018-06-29 01:34:16 -0500

abheet gravatar image

How do I use rosrun mavros mavsafety from inside another python script? I tried using os module in python but the response was “FileNotFoundError: [Errno 2] No such file or directory: ‘rosrun’”

I am using ros kinetic on emlid's raspbian image(Rpi3).

edit retag flag offensive close merge delete


Could it be that your not sourcing your ros environement in the shell used by python?

try to add a source command in your .bashrc file

PDaelm gravatar image PDaelm  ( 2018-06-29 03:53:24 -0500 )edit