convnetjs icon indicating copy to clipboard operation
convnetjs copied to clipboard

what are the actions in agent in rldemo ?

Open Pascal66 opened this issue 9 years ago • 1 comments
trafficstars

this.actions = []; this.actions.push([1,1]); this.actions.push([0.8,1]); this.actions.push([1,0.8]); this.actions.push([0.5,0]); this.actions.push([0,0.5]);

Pascal66 avatar Sep 26 '16 09:09 Pascal66

I am slowly working through the rldemo and this is what I have:

this.actions.push([1,1]);  //straight ahead, ahead big
this.actions.push([0.8,1]); //loop counterclockwise, turn .2 (where 6.28 is a full circle), ahead medium
this.actions.push([1,0.8]); //loop clockwise, turn .2 (where 6.28 is a full circle), ahead medium
this.actions.push([0.5,0]); //clockwise, turn .5 (where 6.28 is a full circle), ahead small
this.actions.push([0,0.5]); //counterclockwise turn .5 (where 6.28 is a full circle), ahead small

This should help a bit. Sorry that the distance ahead is vague. I am not familiar with the calculations used for moving (two inputs that combine rotation and distance).

rajshah4 avatar Dec 31 '16 05:12 rajshah4