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

How can I use nao_camera from nao_driver [closed]

asked 2014-05-26 21:02:54 -0500

JonathanAI gravatar image

Hi all,

When I run nao_driver, either in a simulator or on a nao robot (from my remote PC), I get this error:

Traceback (most recent call last): File "/home/jonfeme/nao_ws/src/nao_robot/nao_driver/nodes/", line 156, in <module> naocam = NaoCam() File "/home/jonfeme/nao_ws/src/nao_robot/nao_driver/nodes/", line 84, in __init__ if not self.cim.setURL( calibration_file ): File "/opt/ros/hydro/lib/python2.7/dist-packages/camera_info_manager/", line 376, in setURL if parseURL(resolveURL(url, self.cname)) >= URL_invalid: File "/opt/ros/hydro/lib/python2.7/dist-packages/camera_info_manager/", line 514, in resolveURL dollar = url.find('$', rest) AttributeError: 'NoneType' object has no attribute 'find' [nao_camera-8] process has died [pid 4000, exit code 1, cmd /home/jonfeme/nao_ws/src/nao_robot/nao_driver/nodes/ --pip= --pport=9559 __name:=nao_camera __log:=/home/jonfeme/.ros/log/cf9cdbf2-e55e-11e3-a9ca-000c29578851/nao_camera-8.log]. log file: /home/jonfeme/.ros/log/cf9cdbf2-e55e-11e3-a9ca-000c29578851/nao_camera-8*.log

I cannot use nao_camera. I installed ros-hydro-info-manager-py, but I have still the same problem. The same happens with

I have Naoqi version 1.14.5, the other nodes work fine, but camera and speech not.

I will be grateful for any help.

Thank you very much

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by Vincent Rabaud
close date 2015-05-09 07:36:35.739917


what do you launch from the command line ? Do you set NAO_IP and roslaunch the nao_camera.launch ?

Vincent Rabaud gravatar image Vincent Rabaud  ( 2014-05-27 06:59:17 -0500 )edit

Yes. I launch NAO_IP=<my ip=""> roslaunch nao_driver nao_driver.launch force_python:=true I also included the nao_camera node in the nao_driver.launch All nodes are available, excepting nao_camera, nao_speech and nao_tactile. Thank you

JonathanAI gravatar image JonathanAI  ( 2014-05-27 14:48:47 -0500 )edit

Please update to the latest code that should have handled those issues.

Vincent Rabaud gravatar image Vincent Rabaud  ( 2015-05-09 07:36:55 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2014-06-04 12:16:12 -0500

asiron gravatar image

updated 2014-06-04 12:23:49 -0500

I have the same problem on Hydro and NaoQI 1.12.5 , nao_tactile is dying when launching nao_driver with this error

Exception TypeError: "in method 'module_getName', argument 1 of type 'AL::module *'" in <bound method NaoTactile.__del__ of <__main__.NaoTactile;  >> ignored

nao_speech is available though, and I can publish to /speech topic. However, nao_camera is not working, I can't launch the process, because it's dying after throwing exception

Traceback (most recent call last):
File "/opt/ros/hydro/lib/nao_driver/", line 162, in <module>
    rospy.logerr('Something went wrong: %s' % (e.strerrror) )

I have managed to find the place, and it's throwing it on:

    self.nameId = self.camProxy.subscribe("rospy_gvm", self.resolution, self.colorSpace, self.fps)

Any ideas why that could happen, I am launching it with

edit flag offensive delete link more



Problem solved itself too, I don't know why but launch script was not reading properly ip address from NAO_IP env variable, and was crashing for this, now everything works

asiron gravatar image asiron  ( 2014-06-04 16:38:05 -0500 )edit

Question Tools


Asked: 2014-05-26 21:02:54 -0500

Seen: 375 times

Last updated: Jun 04 '14