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

Nao_Camera TypeError: 'NoneType' object has no attribute '__getitem__' [closed]

asked 2012-10-14 02:47:08 -0600

Joel gravatar image

I'm currently trying to simulate receiving images from the Nao camera, I've launched the nao_drivers with "roslaunch nao_driver nao_driver.launch" but on the node list nao_camera is missing. When I try to launch the node separately with "rosrun nao_driver" I get the following:

using camera:  0
Traceback (most recent call last):
File "/home/joel/Ros/nao/stacks/nao_robot/nao_driver/scripts/", line120, in <module>
File "/home/joel/Ros/nao/stacks/nao_robot/nao_driver/scripts/", line 91, in main_loop
img.height = image[1]
TypeError: 'NoneType' object has no attribute '__getitem__'
[INFO ] Stopping ALNetwork

Any help greatly appreciated

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2015-08-31 20:54:40.348213

1 Answer

Sort by ยป oldest newest most voted

answered 2012-10-14 04:48:19 -0600

Loy gravatar image

Well, somehow, the the object image, is a Python None-object. How is it created? At least the object is created, there would be an other error if is was not created at all. You can debug python code with import pdb; pdb.set_trace().

What method/functiuon is supposed to set image to some value?

edit flag offensive delete link more

Question Tools


Asked: 2012-10-14 02:47:08 -0600

Seen: 569 times

Last updated: Oct 14 '12