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

ImportError: No module named roslaunch

asked 2015-06-04 05:34:18 -0500

DarkPatate gravatar image

I'm trying to launch the roslaunch kobuki_node minimal.launch command in my software (a Qt app, more precisely). Firstly, I was forced to use /opt/ros/indigo/bin/roslaunch command instead of roslaunch to have a result.

Unfortunatly, the complete command doesn't work. With a QProcess, I have no result. When I use the standard C execv command, I have the below result:

Traceback (most recent call last): File "/opt/ros/indigo/bin/roslaunch", line 34, in <module> import roslaunch ImportError: No module named roslaunch

Do you have an idea to solve the problem?
Thanks in advance!

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2015-06-04 05:50:44 -0500

gvdhoorn gravatar image

See How to run ROS commands from C++ application? for (what seems to be) an identical issue.

In short: you're probably starting roslaunch from an environment that has not been setup for use with ROS (ie: ROS_PACKAGE_PATH, PYTHONPATH, etc have not been set properly).

Other related questions:

edit flag offensive delete link more


Thanksfor your answer. I saw your last link before. I tried to call the export ROS_PACKAGE_PATH=/home/maneesh/ros_stacks:$ROS_PACKAGE_PATH command, without succes.

According your first link, I tried the bash -i -c \"roslaunch kobuki_node minimal.launch\" command. (1/3)

DarkPatate gravatar image DarkPatate  ( 2015-06-04 06:16:23 -0500 )edit

The previous error disapear instead of a new one:
bash: impossible de régler le groupe de processus du terminlal (1718): Ioctl() inappropré pour un périphérique
bash: pas de contrôle de tâche dans ce shell
In english (handmade translation): (2/3)

DarkPatate gravatar image DarkPatate  ( 2015-06-04 06:19:24 -0500 )edit

bash: impossible to adjust the terminal process group (1718): Ioctl() innappropriate for a device
bash: no task control in this shell (3/3)

DarkPatate gravatar image DarkPatate  ( 2015-06-04 06:21:16 -0500 )edit

Have you resolved this?

Abdul Mannan gravatar image Abdul Mannan  ( 2016-11-14 06:05:04 -0500 )edit

I have the same problem and don't know how to solve it. Need some advice.

billgaspeed gravatar image billgaspeed  ( 2018-10-02 21:47:27 -0500 )edit

Question Tools

1 follower


Asked: 2015-06-04 05:30:08 -0500

Seen: 6,567 times

Last updated: Jun 04 '15