EDU.gatech.cc.is.clay
Class v_SwirlLeft_va

java.lang.Object
  |
  +--EDU.gatech.cc.is.clay.Node
        |
        +--EDU.gatech.cc.is.clay.NodeVec2
              |
              +--EDU.gatech.cc.is.clay.v_SwirlLeft_va

public class v_SwirlLeft_va
extends NodeVec2

Generate a vector that aways swirls to the left of detected hazards. The embedded perceptual schema provides a list of hazards This is useful for "always turn left" type behaviors. The "swirl" behavior was originally developed by Andy Henshaw and Tom Collins.

For detailed information on how to configure behaviors, see the Clay page.

Copyright (c)1998, 1998 Tucker Balch


Field Summary
static boolean DEBUG
          Turn debug printing on or off.
 
Fields inherited from class EDU.gatech.cc.is.clay.Node
DEBUG, embedded_nodes
 
Constructor Summary
v_SwirlLeft_va(double soe, double s, NodeVec2Array im1)
          Instantiate a v_SwirlLeft_va schema.
 
Method Summary
 Vec2 Value(long timestamp)
          Return a Vec2 representing the direction to go.
 
Methods inherited from class EDU.gatech.cc.is.clay.Node
initTrial
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG

public static final boolean DEBUG
Turn debug printing on or off.
Constructor Detail

v_SwirlLeft_va

public v_SwirlLeft_va(double soe,
                      double s,
                      NodeVec2Array im1)
Instantiate a v_SwirlLeft_va schema.
Parameters:
soe - double, the sphere of influence beyond which the hazards are not considered.
s - double, the safety zone, inside of which a maximum repulsion from the object is generated.
im1 - double, the embedded perceptual schema that generates a list of items to avoid.
Method Detail

Value

public Vec2 Value(long timestamp)
Return a Vec2 representing the direction to go.
Overrides:
Value in class NodeVec2
Parameters:
timestamp - long, only get new information if timestamp > than last call or timestamp == -1.
Returns:
the movement vector.