Classes | |
class | Aligner |
Align a Model with some data. More... | |
class | CachingAligner |
A CachingAligner wraps another Aligner and checks for precomputed alignments. More... | |
class | CachingFeaturesExtractor |
class | CachingNeighborFinder |
A CachingNeighborFinder wraps another NeighborFinder and checks for precomputed neighbors. More... | |
class | DatabaseConnection |
class | DatabaseManager |
Pure virtual base class for interfacing GraspIt with an unspecified Grasp Database. More... | |
class | FeaturesExtractor |
class | FilterList |
class | Grasp |
class | GraspAllocator |
A class to allocate a new Grasp object, which may be a derived type. More... | |
class | GraspRanker |
A GraspRanker takes a list of Grasp objects and sorts them from best to worst. More... | |
class | LoadModelFunctor |
Load a Model from the database and populate its fields. More... | |
class | Model |
An object representing a model from the grasp database. More... | |
class | ModelAllocator |
Base class to allocate Model objects. More... | |
class | NeighborFinder |
A class to find Models that are neighbors of some input. More... | |
struct | OptimizationTaskRecord |
class | Planner |
struct | PlanningTaskRecord |
class | RosDatabaseManager |
Pure virtual base class for interfacing GraspIt with an unspecified Grasp Database. More... | |
class | SqlDatabaseManager |
SqlDatabaseManager implements DatabaseManager for using the Postgresql version of the CGDB. More... | |
class | Table |
A class to contain the results of a database query. More... | |
struct | TaskRecord |
For now, a task does something of a type with a hand to a model. More... | |
class | TrainingPlanner |
A TrainingPlanner is used to generate grasps that can be added to the database. More... | |
Functions | |
static bool | NameList (const string &name_type, const DatabaseConnection &database, vector< string > *list) |
Return a list of some name_type, such as "distance_function" or "alignment_method". | |
template<class FieldType > | |
static bool | QVariantConvert (const QVariant &var, vector< FieldType > *result) |
A QVariantConvert function for arrays written into a string. | |
template<class FieldType > | |
static bool | QVariantConvert (const QVariant &var, FieldType *result) |
Convert QVariant data into a static type. |
static bool db_planner::NameList | ( | const string & | name_type, | |
const DatabaseConnection & | database, | |||
vector< string > * | list | |||
) | [static] |
Return a list of some name_type, such as "distance_function" or "alignment_method".
This is a helper to filter out duplicate code from the GetXXXList functions. The name_type is assumed to be the name of the table, and the column in the table is assumed to be "<name_type>_name".
Definition at line 184 of file sql_database_manager.cpp.
static bool db_planner::QVariantConvert | ( | const QVariant & | var, | |
vector< FieldType > * | result | |||
) | [inline, static] |
A QVariantConvert function for arrays written into a string.
Input is a QVariant that is expected to be a string of values separated by spaces, as would be returned from a Postgresql query on an array field. The values are separated and then converted to the static templated type. WARNING: This may fail for arrays of strings with embedded commas.
Definition at line 58 of file qvariant_convert.h.
static bool db_planner::QVariantConvert | ( | const QVariant & | var, | |
FieldType * | result | |||
) | [inline, static] |
Convert QVariant data into a static type.
This will work for anything that QVariant can write as a string and that std::stringstream can read back in.
Definition at line 46 of file qvariant_convert.h.