HOG2
|
#include <RoboticArm.h>
Public Member Functions | |
ArmToArmCompressedHeuristic (RoboticArm *ra, const char *file) | |
ArmToArmCompressedHeuristic (RoboticArm *ra, std::vector< int > reductionPower, std::vector< int > offset) | |
ArmToArmCompressedHeuristic (RoboticArm *ra, int numArms, int reductionPower, int offset=0) | |
~ArmToArmCompressedHeuristic () | |
armAngles | BuildHeuristic (armAngles &config) |
armAngles | BuildHeuristic (std::vector< armAngles > &config) |
void | AddState (armAngles &a, int dist) |
uint64_t | GetIndex (const armAngles &a) const |
double | HCost (const armAngles &from, const armAngles &to) const |
void | SetupGoal (const armAngles &referenceState) const |
void | Save (const char *file) |
void | Load (const char *file) |
Public Member Functions inherited from RoboticArmHeuristic | |
virtual | ~RoboticArmHeuristic () |
Private Attributes | |
uint64_t | theSize |
std::vector< int > | reduction |
std::vector< int > | values |
std::vector< int > | errors |
armAngles | goal |
RoboticArm * | r |
uint16_t * | distances |
uint64_t | theMask |
uint64_t | theResult |
Definition at line 189 of file RoboticArm.h.
|
inline |
Definition at line 191 of file RoboticArm.h.
|
inline |
|
inline |
|
inline |
Definition at line 238 of file RoboticArm.h.
References distances.
|
inline |
Definition at line 311 of file RoboticArm.h.
References armAngles::angles, distances, GetIndex(), theMask, and theResult.
Referenced by BuildHeuristic().
Definition at line 243 of file RoboticArm.h.
References AddState(), distances, FrontierBFS< state, action >::DoOneIteration(), FrontierBFS< state, action >::GetCurrentClosedList(), RoboticArm::GetStateFromHash(), FrontierBFS< state, action >::InitializeSearch(), r, and theSize.
Definition at line 269 of file RoboticArm.h.
References AddState(), distances, FrontierBFS< state, action >::DoOneIteration(), FrontierBFS< state, action >::GetCurrentClosedList(), RoboticArm::GetStateFromHash(), FrontierBFS< state, action >::InitializeSearch(), r, and theSize.
|
inline |
Definition at line 321 of file RoboticArm.h.
References armAngles::GetAngle(), armAngles::GetNumArms(), reduction, and theSize.
Referenced by AddState(), HCost(), and SetupGoal().
|
inlinevirtual |
Implements RoboticArmHeuristic.
Definition at line 335 of file RoboticArm.h.
References armAngles::angles, distances, errors, GetIndex(), goal, max, SetupGoal(), theMask, theResult, and values.
|
inline |
Definition at line 388 of file RoboticArm.h.
References distances, reduction, theMask, theResult, and theSize.
Referenced by ArmToArmCompressedHeuristic().
|
inline |
|
inline |
Definition at line 351 of file RoboticArm.h.
References armAngles::angles, distances, FrontierBFS< state, action >::DoOneIteration(), errors, FrontierBFS< state, action >::GetCurrentClosedList(), GetIndex(), RoboticArm::GetStateFromHash(), goal, FrontierBFS< state, action >::InitializeSearch(), r, theMask, theResult, and values.
Referenced by HCost().
|
private |
Definition at line 409 of file RoboticArm.h.
Referenced by AddState(), ArmToArmCompressedHeuristic(), BuildHeuristic(), HCost(), Load(), Save(), SetupGoal(), and ~ArmToArmCompressedHeuristic().
|
mutableprivate |
Definition at line 406 of file RoboticArm.h.
Referenced by HCost(), and SetupGoal().
|
mutableprivate |
Definition at line 407 of file RoboticArm.h.
Referenced by HCost(), and SetupGoal().
|
private |
Definition at line 408 of file RoboticArm.h.
Referenced by ArmToArmCompressedHeuristic(), BuildHeuristic(), and SetupGoal().
|
private |
Definition at line 402 of file RoboticArm.h.
Referenced by ArmToArmCompressedHeuristic(), GetIndex(), Load(), and Save().
|
private |
Definition at line 410 of file RoboticArm.h.
Referenced by AddState(), ArmToArmCompressedHeuristic(), HCost(), Load(), Save(), and SetupGoal().
|
private |
Definition at line 411 of file RoboticArm.h.
Referenced by AddState(), ArmToArmCompressedHeuristic(), HCost(), Load(), Save(), and SetupGoal().
|
private |
Definition at line 401 of file RoboticArm.h.
Referenced by ArmToArmCompressedHeuristic(), BuildHeuristic(), GetIndex(), Load(), and Save().
|
mutableprivate |
Definition at line 405 of file RoboticArm.h.
Referenced by HCost(), and SetupGoal().