Fixed upper limit on number of viewpoints.
Fix right gripper position not being detected.