ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Executable programm using ros (double click) [closed]

asked 2017-06-08 14:54:04 -0500

JulianR gravatar image

Hello,

I have a c++ programm that starts a launchfile with exec (same result if i start it with system). It does work fine when starting from the terminal.

However, I would like to have it execute on double click. I created a .desktop file:

[Desktop Entry]
Version=1.0
Name=filename
Comment=File to make filename executable
Exec=/path/to/file
Icon=/path/to/icon.png
Terminal=true
Type=Application
Categories=Applications

But when I start the programm I only get:

Traceback (most recent call last):
  File "/opt/ros/kinetic/bin/roslaunch", line 34, in <module>
    import roslaunch
ImportError: No module named roslaunch
edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by tfoote
close date 2017-06-08 16:25:17.176493

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-06-08 15:11:59 -0500

gvdhoorn gravatar image

Please see #q226588 and #q135021.

edit flag offensive delete link more

Comments

Also: could I please ask you to use the search first? We already have over 35000 questions here on ROS Answers and we'd like to keep the nr of duplicates to a minimum.

Thanks

gvdhoorn gravatar image gvdhoorn  ( 2017-06-08 15:12:48 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2017-06-08 14:54:04 -0500

Seen: 398 times

Last updated: Jun 08 '17