C# Class SharpNeat.DomainsExtra.InvertedDoublePendulum.InvertedDoublePendulumWorld

Evaluator for the inverted double pendulum task.
Inheritance: SharpNeat.DomainsExtra.Box2D.SimulationWorld
Afficher le fichier Open project: colgreen/sharpneat Class Usage Examples

Méthodes publiques

Méthode Description
InitSimulationWorld ( ) : void

Inititialise world.

InvertedDoublePendulumWorld ( ) : Box2DX.Collision

Construct with default world settings.

InvertedDoublePendulumWorld ( float trackLength, float cartJointInitialAngle, float elbowJointInitialAngle ) : Box2DX.Collision

Construct with specified world settings.

SetCartForce ( float n ) : void

Set horizontal force in newtons to apply to cart.

Méthodes protégées

Méthode Description
PopulateWorld ( ) : void

Add objects to the Box2d world.

Private Methods

Méthode Description
CalcPoleEndPos ( Body poleBody ) : Vec2
CreatePole ( Vec2 basePos, float angle, float radius, float friction, float restitution, float density, ushort layers ) : Body

Method Details

InitSimulationWorld() public méthode

Inititialise world.
public InitSimulationWorld ( ) : void
Résultat void

InvertedDoublePendulumWorld() public méthode

Construct with default world settings.
public InvertedDoublePendulumWorld ( ) : Box2DX.Collision
Résultat Box2DX.Collision

InvertedDoublePendulumWorld() public méthode

Construct with specified world settings.
public InvertedDoublePendulumWorld ( float trackLength, float cartJointInitialAngle, float elbowJointInitialAngle ) : Box2DX.Collision
trackLength float
cartJointInitialAngle float
elbowJointInitialAngle float
Résultat Box2DX.Collision

PopulateWorld() protected méthode

Add objects to the Box2d world.
protected PopulateWorld ( ) : void
Résultat void

SetCartForce() public méthode

Set horizontal force in newtons to apply to cart.
public SetCartForce ( float n ) : void
n float
Résultat void