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

Cannot launch nao_driver

asked 2014-01-22 03:55:10 -0600

TopSecret gravatar image

updated 2014-01-24 07:36:19 -0600

[Go to Edit2 for the current error]

Hello, I am trying to launch nao_driver with the command:

NAO_IP=10.51.81.15 roslaunch nao_driver nao_driver.launch

or

NAO_IP=10.51.81.15 FORCE_PYTHON=true roslaunch nao_driver nao_driver.launch

but i get the following errors.

MyName@Wael:~$ NAO_IP=10.51.81.15 roslaunch nao_driver nao_driver.launch
... logging to /home/MyName/.ros/log/79d95dc2-8379-11e3-8cbe-90b11c6e6bd9/roslaunch-Wael-19571.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server Wael:38416/

SUMMARY
========

PARAMETERS
 * /rosdistro
 * /rosversion

NODES
  /
    nao_behaviors (nao_driver/nao_behaviors.py)
    nao_controller (nao_driver/nao_controller.py)
    nao_leds (nao_driver/nao_leds.py)
    nao_sensors (nao_driver/nao_sensors_cpp)
    nao_speech (nao_driver/nao_speech.py)
    nao_tactile (nao_driver/nao_tactile.py)
    nao_walker (nao_driver/nao_walker.py)

auto-starting new master
process[master]: started with pid [19585]
ROS_MASTER_URI=localhost:11311

setting /run_id to 79d95dc2-8379-11e3-8cbe-90b11c6e6bd9
process[rosout-1]: started with pid [19598]
started core service [/rosout]
ERROR: cannot launch node of type [nao_driver/nao_sensors_cpp]: cant locate node [nao_sensors_cpp] in package [nao_driver]
process[nao_walker-3]: started with pid [19610]
process[nao_controller-4]: started with pid [19611]
process[nao_behaviors-5]: started with pid [19612]
process[nao_leds-6]: started with pid [19615]
process[nao_speech-7]: started with pid [19618]
process[nao_tactile-8]: started with pid [19623]
failed to load symbols, rosdep will not function properly
/opt/ros/hydro/lib/rosout/rosout: symbol lookup error: /opt/ros/hydro/lib/libroscpp.so: undefined symbol: _ZN3ros6HeaderC1Ev
[WARN] [WallTime: 1390404352.268687] Inbound TCP/IP connection failed: connection from sender terminated before handshake header received. 0 bytes were received. Please check sender for additional details.
[rosout-1] process has died [pid 19598, exit code 127, cmd /opt/ros/hydro/lib/rosout/rosout __name:=rosout __log:=/home/MyName/.ros/log/79d95dc2-8379-11e3-8cbe-90b11c6e6bd9/rosout-1.log].
log file: /home/MyName/.ros/log/79d95dc2-8379-11e3-8cbe-90b11c6e6bd9/rosout-1*.log
respawning...
[rosout-1] restarting process
process[rosout-1]: started with pid [19751]
/opt/ros/hydro/lib/rosout/rosout: symbol lookup error: /opt/ros/hydro/lib/libroscpp.so: undefined symbol: _ZN3ros6HeaderC1Ev
[WARN] [WallTime: 1390404352.577597] Inbound TCP/IP connection failed: connection from sender terminated before handshake header received. 0 bytes were received. Please check sender for additional details.
[rosout-1] process has died [pid 19751, exit code 127, cmd /opt/ros/hydro/lib/rosout/rosout __name:=rosout __log:=/home/MyName/.ros/log/79d95dc2-8379-11e3-8cbe-90b11c6e6bd9/rosout-1.log].
log file: /home/MyName/.ros/log/79d95dc2-8379-11e3-8cbe-90b11c6e6bd9/rosout-1*.log
respawning...
[rosout-1] restarting process

Any help would be greatly appreciated.

Edit: Thank you AHornung, that seems to help a little. The errors has changed, but are still similar to what they were.

setting /run_id to f2362376-837f-11e3-b5cf-90b11c6e6bd9
process[rosout-1]: started with pid [20614]
started core service [/rosout]/
process[nao_sensors-2]: started with pid [20626]
process[nao_walker-3]: started with pid [20627]
process[nao_controller-4]: started with pid [20628]
process[nao_behaviors-5]: started with pid [20629]
process[nao_leds-6]: started with pid [20634]
Traceback (most recent call last):
  File "/opt/ros/hydro/lib/nao_driver/nao_sensors.py", line 44, in <module>
    from tf import transformations
  File "/opt/ros/hydro/lib/python2.7/dist-packages/tf/__init__.py", line 28, in <module>
    from _tf import *
ImportError: /opt/ros/hydro/lib ...
(more)
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-01-22 04:07:43 -0600

AHornung gravatar image

updated 2014-01-22 04:39:42 -0600

You need to run roslaunch nao_driver.launch force_python:=true

(with the optional NAO_IP in front). NAO_IP is an environment variable that you can globally set or directly set before launching, whereas force_python is a launch file argument (you can also set nao_ip=... as a launch file argument as alternative but vice-versa there is no environment variable called FORCE_PYTHON used).

That import error looks like a general problem with ROS:

ImportError: /opt/ros/hydro/lib/libroscpp.so: undefined symbol: _ZN3ros6HeaderD1Ev

Are other nodes in ROS (specifically Python nodes) working fine, did you manually change things in /opt/ros/hydro/...?

edit flag offensive delete link more

Comments

Since I just started with ROS + Nao + Ubuntu, I wouldn't really know what other nodes to try for verification. I am mostly following tutorials at the moment. I don't remember changing anything in this directory.

TopSecret gravatar image TopSecret  ( 2014-01-22 04:46:35 -0600 )edit

On what operating system is that happening? Did you freshly install ROS from the repositories?

AHornung gravatar image AHornung  ( 2014-01-22 05:08:21 -0600 )edit

Also, did you source /opt/ros/hydro/setup.bash

AHornung gravatar image AHornung  ( 2014-01-22 05:10:35 -0600 )edit
TopSecret gravatar image TopSecret  ( 2014-01-22 05:11:46 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2014-01-22 03:55:10 -0600

Seen: 1,826 times

Last updated: Jan 24 '14