Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.41 KB | None | 0 0
  1. def isTooClose(inp):
  2.     for x in range(0,8):
  3.         if inp.sonars[x]<=.3:
  4.             return True;
  5.     return False;
  6.  
  7. GoalGenerator = ffSkeleton.FollowFigure(squarePoints);
  8. DynamicMoveToPoint = dynamicMoveToPointSkeleton.DynamicMoveToPoint()
  9. mySM = sm.Cascade(sm.Parallel(GoalGenerator,sm.Wire())
  10.                               ,DynamicMoveToPoint)
  11.  
  12. mySM = sm.Switch(isTooClose, sm.Constant(io.Action()), mySM)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement