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

roslaunch as executable

asked 2015-10-21 07:28:25 -0600

bluefish gravatar image

Hi!

Maybe this is more of an Linux-question instead of ROS. But anyway, maybe someone could help:

I would like to know how I can build a single file which runs a roslaunch by double click on it.

The goal is that someone could run my ros-project who is not familiar to any shell commands or anything regarding Linux. He would just click on one file and the whole thing just starts running.

Is that possible?

Edit: I already tried a bash file (test.sh) and in it is

#!/bin/bash
xterm -e "roslaunch test test.launch"

and gave the file the permission to execute ("Allow executing file as program" in file properties). But when I run it, nothing happens. Anybody knows what I'm doing wrong?

edit retag flag offensive close merge delete

Comments

2

Have you made sure to make the script first source the correct ROS environment setup file (ie: setup.bash)?

gvdhoorn gravatar image gvdhoorn  ( 2015-10-21 10:08:17 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-10-21 10:29:53 -0600

bluefish gravatar image

Thanks to @gvdhoorn ! The following bash-file does the trick. :)

#!/bin/bash
source /opt/ros/indigo/setup.bash
source ~/catkin_ws/devel/setup.bash

xterm -e "roslaunch test test.launch"
edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2015-10-21 07:28:25 -0600

Seen: 1,330 times

Last updated: Oct 21 '15