Robotics StackExchange | Archived questions

ImportError: No module named roslaunch

Hello,
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!
DarkPatate.

Asked by DarkPatate on 2015-06-04 05:30:08 UTC

Comments

Answers

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:

Asked by gvdhoorn on 2015-06-04 05:50:44 UTC

Comments

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)

Asked by DarkPatate on 2015-06-04 06:16:23 UTC

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)

Asked by DarkPatate on 2015-06-04 06:19:24 UTC

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

Asked by DarkPatate on 2015-06-04 06:21:16 UTC

Have you resolved this?

Asked by Abdul Mannan on 2016-11-14 07:05:04 UTC

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

Asked by billgaspeed on 2018-10-02 21:47:27 UTC