Robotics StackExchange | Archived questions

Running terminal commands of Ros from python script

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).

Asked by abheet on 2018-06-29 01:34:16 UTC

Comments

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

Asked by PDaelm on 2018-06-29 03:53:24 UTC

Answers