Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 2203

In a Python script, what is the right way to run roscore in background?

$
0
0
I tried this: import subprocess subprocess.Popen(['roscore']) time.sleep(1) subprocess.run(['ls','-l']) But the "ls -l" part is not run because of "roscore". How could I run roscore in background, and continue with other instructions in the python file.

Viewing all articles
Browse latest Browse all 2203

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>