HOG2
|
#include <RoboticArm.h>
Public Member Functions | |
armAngles () | |
int | GetAngle (int which) const |
void | SetAngle (int which, int value) |
int | GetNumArms () const |
void | SetNumArms (int count) |
void | SetGoal (double x, double y) |
void | GetGoal (double &x, double &y) const |
bool | IsGoalState () const |
Public Attributes | |
uint64_t | angles |
Definition at line 29 of file RoboticArm.h.
|
inline |
Definition at line 31 of file RoboticArm.h.
References angles.
int armAngles::GetAngle | ( | int | which | ) | const |
Definition at line 38 of file RoboticArm.cpp.
References angles.
Referenced by RoboticArm::ApplyAction(), ArmToTipHeuristic::ArmAnglesIndex(), ArmToTipHeuristic::GenerateHeuristicSub(), RoboticArm::GenerateLineSegments(), ArmToTipHeuristic::GenerateTipPositionTables(), RoboticArm::GetAction(), ArmToArmCompressedHeuristic::GetIndex(), RoboticArm::HCost(), RoboticArm::LegalArmConfig(), RoboticArm::LegalState(), and ArmToTipHeuristic::WriteArmAngles().
void armAngles::GetGoal | ( | double & | x, |
double & | y | ||
) | const |
Definition at line 79 of file RoboticArm.cpp.
References angles, and IsGoalState().
Referenced by RoboticArm::GoalTest(), RoboticArm::HCost(), ArmToTipHeuristic::HCost(), and RoboticArm::OpenGLDraw().
int armAngles::GetNumArms | ( | ) | const |
Definition at line 52 of file RoboticArm.cpp.
References angles.
Referenced by RoboticArm::ApplyAction(), ArmToTipHeuristic::ArmAnglesIndex(), ArmToTipHeuristic::GenerateHeuristic(), ArmToTipHeuristic::GenerateHeuristicSub(), RoboticArm::GenerateLineSegments(), ArmToTipHeuristic::GenerateMaxDistHeuristics(), ArmToTipHeuristic::GenerateRandomHeuristic(), ArmToTipHeuristic::GenerateTipPositionTables(), RoboticArm::GetAction(), RoboticArm::GetActions(), ArmToArmCompressedHeuristic::GetIndex(), RoboticArm::GetStateFromHash(), RoboticArm::GetSuccessors(), RoboticArm::HCost(), ArmToTipHeuristic::HCost(), ArmToTipHeuristic::NumArmAnglesIndices(), ArmToTipHeuristic::ReadArmAngles(), and ArmToTipHeuristic::WriteArmAngles().
bool armAngles::IsGoalState | ( | ) | const |
Definition at line 90 of file RoboticArm.cpp.
References angles.
Referenced by GetGoal(), RoboticArm::GoalTest(), RoboticArm::HCost(), ArmToArmHeuristic::HCost(), and RoboticArm::OpenGLDraw().
void armAngles::SetAngle | ( | int | which, |
int | value | ||
) |
Definition at line 43 of file RoboticArm.cpp.
References angles.
Referenced by RoboticArm::ApplyAction(), ArmToTipHeuristic::GenerateCPDB(), ArmToTipHeuristic::GenerateHeuristicSub(), ArmToTipHeuristic::GenerateTipPositionTables(), RoboticArm::GetRandomState(), RoboticArm::GetStateFromHash(), and ArmToTipHeuristic::ReadArmAngles().
void armAngles::SetGoal | ( | double | x, |
double | y | ||
) |
Definition at line 66 of file RoboticArm.cpp.
References angles.
Referenced by ArmToTipHeuristic::GenerateMaxDistHeuristics(), and ArmToTipHeuristic::GenerateRandomHeuristic().
void armAngles::SetNumArms | ( | int | count | ) |
Definition at line 57 of file RoboticArm.cpp.
References angles.
Referenced by ArmToTipHeuristic::GenerateCPDB(), ArmToTipHeuristic::GenerateHeuristicSub(), ArmToTipHeuristic::GenerateTipPositionTables(), RoboticArm::GetRandomState(), and ArmToTipHeuristic::ReadArmAngles().
uint64_t armAngles::angles |
Definition at line 39 of file RoboticArm.h.
Referenced by ArmToArmCompressedHeuristic::AddState(), armAngles(), GetAngle(), GetGoal(), GetNumArms(), ArmToArmCompressedHeuristic::HCost(), IsGoalState(), operator==(), SetAngle(), SetGoal(), SetNumArms(), and ArmToArmCompressedHeuristic::SetupGoal().