Nao_Camera TypeError: 'NoneType' object has no attribute '__getitem__'
I'm currently trying to simulate receiving images from the Nao camera, I've launched the naodrivers with "roslaunch naodriver naodriver.launch" but on the node list naocamera is missing. When I try to launch the node separately with "rosrun naodriver naocamera.py" I get the following:
using camera: 0
Traceback (most recent call last):
File "/home/joel/Ros/nao/stacks/nao_robot/nao_driver/scripts/nao_camera.py", line120, in <module>
naocam.main_loop()
File "/home/joel/Ros/nao/stacks/nao_robot/nao_driver/scripts/nao_camera.py", line 91, in main_loop
img.height = image[1]
TypeError: 'NoneType' object has no attribute '__getitem__'
[INFO ] Stopping ALNetwork
Any help greatly appreciated
Asked by Joel on 2012-10-14 02:47:08 UTC
Answers
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?
Asked by Loy on 2012-10-14 04:48:19 UTC
Comments