All Packages Class Hierarchy This Package Previous Next Index
Class EDU.gatech.cc.is.clay.v_Swirl_vv
java.lang.Object
|
+----EDU.gatech.cc.is.clay.Node
|
+----EDU.gatech.cc.is.clay.NodeVec2
|
+----EDU.gatech.cc.is.clay.v_Swirl_vv
- public class v_Swirl_vv
- extends NodeVec2
Generate a vector that swirls to one side or the other of a detected hazard.
One embedded node provides a hazard to avoid, the other points
in the reference direction (typically a goal location).
The "swirl" behavior was originally developed by
Andy Henshaw and Tom Collins at the Georgia Tech Research Institute.
It is also similar to Marc Slack's NATs.
For detailed information on how to configure behaviors, see the
Clay page.
Copyright
(c)1997, 1998 Tucker Balch
- Version:
- $Revision: 1.2 $
- Author:
- Tucker Balch
-
DEBUG
- Turn debug printing on or off.
-
v_Swirl_vv(double, double, NodeVec2, NodeVec2)
- Instantiate a v_Swirl_vv schema.
-
Value(long)
- Return a Vec2 representing the direction to go.
DEBUG
public static final boolean DEBUG
- Turn debug printing on or off.
v_Swirl_vv
public v_Swirl_vv(double soe,
double s,
NodeVec2 im1,
NodeVec2 im2)
- Instantiate a v_Swirl_vv 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 an
item to avoid.
- im2 - double, the embedded perceptual schema that generates a pointer
to the goal (must be egocentric).
Value
public Vec2 Value(long timestamp)
- Return a Vec2 representing the direction to go.
- Parameters:
- timestamp - long, only get new information if timestamp > than last call
or timestamp == -1.
- Returns:
- the movement vector.
- Overrides:
- Value in class NodeVec2
All Packages Class Hierarchy This Package Previous Next Index