How to increase S2 robot's movement buffer
william chan
Posts: 1,326
I noticed that I can only call about 3 s2.go_forward(Dist) commands before the function blocks and does not return until the first movement is completed.
I need the call to be returned quickly so that the supervisor cog can perform other functions.
Is there a buffer somewhere where I can increase its size so that I can call more move commands consecutively without it blocking? (not returning quickly)
Thanks.
I need the call to be returned quickly so that the supervisor cog can perform other functions.
Is there a buffer somewhere where I can increase its size so that I can call more move commands consecutively without it blocking? (not returning quickly)
Thanks.
Comments
Only one command can be buffered while another is executing, and this is done only to provide smooth continuity between drawing commands in a path. Rather than trying to modify the buffering, it would be much easier to use the move_ready method to see if a new command can be issued without blocking.
-Phil