Try to fix cannot_capture by reducing fps
This commit is contained in:
@@ -24,6 +24,7 @@ class NaoImageReader(object):
|
|||||||
self.fps = fps
|
self.fps = fps
|
||||||
self.vd = ALProxy('ALVideoDevice', ip, port)
|
self.vd = ALProxy('ALVideoDevice', ip, port)
|
||||||
streamer_name = '_'.join(['lower' if cam_id else 'upper', str(res)])
|
streamer_name = '_'.join(['lower' if cam_id else 'upper', str(res)])
|
||||||
|
print(streamer_name)
|
||||||
self.sub = self.vd.subscribeCamera(
|
self.sub = self.vd.subscribeCamera(
|
||||||
streamer_name, cam_id, res, 13, fps
|
streamer_name, cam_id, res, 13, fps
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ class NaoMover(object):
|
|||||||
# lift the foot using the knee joint and the ankle joint
|
# lift the foot using the knee joint and the ankle joint
|
||||||
[[(1, 0, 'KneePitch', 90),
|
[[(1, 0, 'KneePitch', 90),
|
||||||
(1, 0, 'AnklePitch', -40)],
|
(1, 0, 'AnklePitch', -40)],
|
||||||
0.7,],
|
0.7],
|
||||||
|
|
||||||
# kick-it!
|
# kick-it!
|
||||||
[[(1, 0, 'HipPitch', -45),
|
[[(1, 0, 'HipPitch', -45),
|
||||||
@@ -48,7 +48,7 @@ class NaoMover(object):
|
|||||||
# prepare to return into standing position
|
# prepare to return into standing position
|
||||||
[[(1, 0, 'KneePitch', 40),
|
[[(1, 0, 'KneePitch', 40),
|
||||||
(1, 0, 'AnklePitch', 10)],
|
(1, 0, 'AnklePitch', 10)],
|
||||||
0.5,],
|
0.5],
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
255
|
255
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"fps": 30,
|
"fps": 10,
|
||||||
"res": 2,
|
"res": 2,
|
||||||
"ball_min_radius": 0.01,
|
"ball_min_radius": 0.01,
|
||||||
"field": [
|
"field": [
|
||||||
|
|||||||
Reference in New Issue
Block a user