C# Class SharpNeat.DomainsExtra.InvertedDoublePendulum.InvertedDoublePendulumWorld

Evaluator for the inverted double pendulum task.
Inheritance: SharpNeat.DomainsExtra.Box2D.SimulationWorld
显示文件 Open project: colgreen/sharpneat Class Usage Examples

Public Methods

Method 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.

Protected Methods

Method Description
PopulateWorld ( ) : void

Add objects to the Box2d world.

Private Methods

Method 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 method

Inititialise world.
public InitSimulationWorld ( ) : void
return void

InvertedDoublePendulumWorld() public method

Construct with default world settings.
public InvertedDoublePendulumWorld ( ) : Box2DX.Collision
return Box2DX.Collision

InvertedDoublePendulumWorld() public method

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

PopulateWorld() protected method

Add objects to the Box2d world.
protected PopulateWorld ( ) : void
return void

SetCartForce() public method

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