比如
gnome-terminal -x bash -c "roscore" gnome-terminal -x bash -c "rviz
因为roscore启动需要一定的时间,所以需要在确定启动之后再启动rviz,否则就会报错,这种应该怎么去解决呢?
ps:除了使用sleep来等待固定时间的方法之外
command 1output=command 2command 3
望采纳!谢谢