I am developing a robotics application on Ubuntu 12.04 (Precise) and ROS fuerte. I have about 10 different nodes (processes) that need to be run and to switch between the different operation modes of the robot, I would also have to kill and spawn these nodes dynamically. The usual way is, of course, launching them from terminal, however I want to provide an easy-to-use GUI interface.
Is there any way I can start terminal applications from C++ code in Ubuntu while getting all their output? I want to collect all output from all the running apps and display it in a single view. It should also be possible to spawn and kill these apps on the go.
Or perhaps there's an ROS-way of doing this that I am not aware of?
Thanks!
QProcess类正是您正在寻找的。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.