C# Class PathPlanningKart, cs-mini-modbot-simulation

The PathPlanningKart class contains the state and operations necessary for the kart to perform path planning and related decision making.
Inheritance: MonoBehaviour
Show file Open project: intel-cornellcup/mini-modbot-simulation Class Usage Examples

Public Properties

Property Type Description
canUseItem bool
closedNodes HashSet
currentPosition Vector3
currentThreadJob DynamicPathThreadJob,
currentWayPoints List
current_waypoint int
dynamicReplan bool
dynamicWayPoints List
isStuck bool
isStuckOffset int
iterationOffset int
jobInProgress bool
nextWayPoints List
nodeInProgress Vector3
startNode Node,
stopWatch Stopwatch
usesWaypoints bool[]

Public Methods

Method Description
PathPlanInitialSegment ( ) : void

Performs path planning for the first path segment by utilizing a DynamicPathThreadJob and waiting for it to complete

PathPlanNextSegment ( ) : void

Performs path planning for the next path segment by utilizing a DynamicPathThreadJob that calculates the path in the background

UseItem ( ) : void

Implements logic for the AI kart to an item if it currently has one

Method Details

PathPlanInitialSegment() public method

Performs path planning for the first path segment by utilizing a DynamicPathThreadJob and waiting for it to complete
public PathPlanInitialSegment ( ) : void
return void

PathPlanNextSegment() public method

Performs path planning for the next path segment by utilizing a DynamicPathThreadJob that calculates the path in the background
public PathPlanNextSegment ( ) : void
return void

UseItem() public method

Implements logic for the AI kart to an item if it currently has one
public UseItem ( ) : void
return void

Property Details

canUseItem public property

public bool canUseItem
return bool

closedNodes public property

public HashSet closedNodes
return HashSet

currentPosition public property

public Vector3 currentPosition
return Vector3

currentThreadJob public property

public DynamicPathThreadJob, currentThreadJob
return DynamicPathThreadJob,

currentWayPoints public property

public List currentWayPoints
return List

current_waypoint public property

public int current_waypoint
return int

dynamicReplan public property

public bool dynamicReplan
return bool

dynamicWayPoints public property

public List dynamicWayPoints
return List

isStuck public property

public bool isStuck
return bool

isStuckOffset public property

public int isStuckOffset
return int

iterationOffset public property

public int iterationOffset
return int

jobInProgress public property

public bool jobInProgress
return bool

nextWayPoints public property

public List nextWayPoints
return List

nodeInProgress public property

public Vector3 nodeInProgress
return Vector3

startNode public property

public Node, startNode
return Node,

stopWatch public property

public Stopwatch stopWatch
return Stopwatch

usesWaypoints public property

public bool[] usesWaypoints
return bool[]