HOG2
|
#include <RoboticArm.h>
Public Member Functions | |
ArmToArmHeuristic (RoboticArm *r, armAngles &initial, bool optimize=false) | |
virtual | ~ArmToArmHeuristic () |
double | HCost (const armAngles &node1, const armAngles &node2) const |
void | AddDiffTable () |
bool | IsLegalState (armAngles &arm) |
const std::vector< armAngles > & | GetTipPositions (double x, double y) |
Public Member Functions inherited from RoboticArmHeuristic | |
virtual | ~RoboticArmHeuristic () |
Private Member Functions | |
armAngles | SelectStartNode () |
int | TipPositionIndex (const double x, const double y, const double minX=-1.0, const double minY=-1.0, const double width=2.0) |
void | GenerateLegalStates (armAngles &init) |
Private Attributes | |
bool | optimizeLocations |
RoboticArm * | ra |
std::vector< std::vector< uint16_t > > | distances |
std::vector< armAngles > | canonicalStates |
std::vector< std::vector< armAngles > > | tipPositionTables |
std::vector< bool > | legalStates |
Definition at line 166 of file RoboticArm.h.
ArmToArmHeuristic::ArmToArmHeuristic | ( | RoboticArm * | r, |
armAngles & | initial, | ||
bool | optimize = false |
||
) |
Definition at line 1235 of file RoboticArm.cpp.
References GenerateLegalStates(), optimizeLocations, and ra.
|
inlinevirtual |
Definition at line 169 of file RoboticArm.h.
void ArmToArmHeuristic::AddDiffTable | ( | ) |
Definition at line 1277 of file RoboticArm.cpp.
References canonicalStates, distances, RoboticArm::GetStateHash(), RoboticArm::GetSuccessors(), ra, and SelectStartNode().
|
private |
Definition at line 1366 of file RoboticArm.cpp.
References RoboticArm::GetStateHash(), RoboticArm::GetSuccessors(), RoboticArm::GetTipPosition(), legalStates, ra, TipPositionIndex(), and tipPositionTables.
Referenced by ArmToArmHeuristic().
|
inline |
Definition at line 173 of file RoboticArm.h.
References TipPositionIndex(), and tipPositionTables.
Implements RoboticArmHeuristic.
Definition at line 1242 of file RoboticArm.cpp.
References distances, RoboticArm::GetStateHash(), armAngles::IsGoalState(), max, and ra.
bool ArmToArmHeuristic::IsLegalState | ( | armAngles & | arm | ) |
Definition at line 1361 of file RoboticArm.cpp.
References RoboticArm::GetStateHash(), legalStates, and ra.
Referenced by SelectStartNode().
|
private |
Definition at line 1318 of file RoboticArm.cpp.
References canonicalStates, distances, RoboticArm::GetRandomState(), RoboticArm::GetStateHash(), RoboticArm::GetSuccessors(), IsLegalState(), optimizeLocations, and ra.
Referenced by AddDiffTable().
|
private |
Definition at line 1262 of file RoboticArm.cpp.
References RoboticArm::GetTolerance(), ra, and width.
Referenced by GenerateLegalStates(), and GetTipPositions().
|
private |
Definition at line 184 of file RoboticArm.h.
Referenced by AddDiffTable(), and SelectStartNode().
|
private |
Definition at line 183 of file RoboticArm.h.
Referenced by AddDiffTable(), HCost(), and SelectStartNode().
|
private |
Definition at line 186 of file RoboticArm.h.
Referenced by GenerateLegalStates(), and IsLegalState().
|
private |
Definition at line 181 of file RoboticArm.h.
Referenced by ArmToArmHeuristic(), and SelectStartNode().
|
private |
Definition at line 182 of file RoboticArm.h.
Referenced by AddDiffTable(), ArmToArmHeuristic(), GenerateLegalStates(), HCost(), IsLegalState(), SelectStartNode(), and TipPositionIndex().
|
private |
Definition at line 185 of file RoboticArm.h.
Referenced by GenerateLegalStates(), and GetTipPositions().