GrinningHermit / Vector-Explorer-Tool

Tool for watching the camera feed and test animations of Anki's robot Vector
67 stars 10 forks source link

can not open #4

Open leohu1 opened 5 years ago

leohu1 commented 5 years ago

Traceback (most recent call last): File "C:/Users/leo/Desktop/Vector-Explorer-Tool-master/vector_explorer_tool.py", line 143, in run() File "C:/Users/leo/Desktop/Vector-Explorer-Tool-master/vector_explorer_tool.py", line 128, in run with anki_vector.Robot(args.serial, enable_camera_feed=True, enable_custom_object_detection=True, enable_face_detection=True) as robot: TypeError: init() got an unexpected keyword argument 'enable_camera_feed'

Process finished with exit code 1

CozmoCyke commented 4 years ago

I had the same error :-) the 'enable_camera_feed' arg in Robot doesn't exist in the last SDK version (0.6.0) ! This parameter has been renamed into a function 'init_camera_feed()' and move in camera instead.

Try to change the code in 'vector_explorer_tool.py' by these lines

with anki_vector.Robot(args.serial, enable_custom_object_detection=True, enable_face_detection=True) as robot: global animation_list global active_viewer global os_info

    robot.camera.init_camera_feed()
GrinningHermit commented 4 years ago

Fix has been pushed to master. This problem should no longer occur.

adamjimenez commented 4 years ago

just tried for the first time from a fresh install and works great