Ask Your Question

Revision history [back]

I encountered a similar behaviour, and to me the reason was that I had not loaded the ros environment parameters. That is what is loaded through "source ~/catkin_ws/devel/setup.bash".

You could add it to your command, for QProcess this become:

builder.start("gnome-terminal", QStringList() << "source ~/catkin_ws/devel/setup.bash; roslaunch my_package file.launch");

I hope you had already solved your problem, but the same solution could be helpful for others.