解决方法 在launch文件中, <node name="sin_test" pkg="main_gui" type="sin_test"/> 启动node文件这里后面加上output <node name="sin_test" pkg="main_gui" type="sin_test" output="screen"/>