Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

As stated before, the issue is with the environment variables not being set properly. Your errors show that the 'sh' shell is being used, but you're likely setting up ROS using 'bash' shell.

If you follow this link, you can create a 'mainexecut.desktop' and modify the 'Exec=...' with 'Exec=bash -i -c /path/to/mainexecut'. This is how IDEs are suggested to be configured, as documented here. This solution works for me.

If you're not using Unity, there must be something along those lines for Gnome (or KDE).

Mind you, the user's workspace and '/opt/ros/hydro/setup.bash' must be sourced upon loading your .bashrc.

I hope it helps!