db_planner::Model Class Reference
An object representing a model from the grasp database.
More...
#include <model.h>
List of all members.
Public Member Functions |
const string & | GeometryPath () const |
const std::vector< int > & | GetTriangles () const |
const std::vector< double > & | GetVertices () const |
int | ModelId () const |
const string & | ModelName () const |
| Getter and Setters.
|
double | RescaleFactor () const |
double | Scale () const |
void | SetGeometry (const std::vector< double > &vertices, const std::vector< int > &triangles) |
void | SetGeometryPath (const string &geometry_path) |
void | SetModelId (int id) |
void | SetModelName (const string &model_name) |
void | SetRescaleFactor (const double rescale_factor) |
void | SetScale (const double scale) |
template<class Iterator > |
void | SetTags (const Iterator &start, const Iterator &end) |
void | SetThumbnailPath (const string &thumbnail_path) |
const set< string > & | Tags () |
const string & | ThumbnailPath () const |
virtual | ~Model () |
Private Attributes |
string | geometry_path_ |
int | model_id_ |
| The id of the model in the database.
|
string | model_name_ |
| The name of the model and absolute paths to its geometry and to a thumbnail.
|
double | rescale_factor_ |
double | scale_ |
| The approximate radius of a ball that statistically contains the model.
|
set< string > | tags_ |
| A set of descriptive tags associated with the model.
|
string | thumbnail_path_ |
std::vector< int > | triangles_ |
| The triangles of the model's mesh, if loaded directly from the database.
|
std::vector< double > | vertices_ |
| The vertices of the model's mesh, if loaded directly from the database.
|
Detailed Description
An object representing a model from the grasp database.
A Model represents a 3D model in the database along with some associated information that is stored when the model is created rather than repeatedly querying the database.
Definition at line 45 of file model.h.
Constructor & Destructor Documentation
virtual db_planner::Model::~Model |
( |
|
) |
[inline, virtual] |
Member Function Documentation
const string& db_planner::Model::GeometryPath |
( |
|
) |
const [inline] |
const std::vector<int>& db_planner::Model::GetTriangles |
( |
|
) |
const [inline] |
const std::vector<double>& db_planner::Model::GetVertices |
( |
|
) |
const [inline] |
int db_planner::Model::ModelId |
( |
|
) |
const [inline] |
const string& db_planner::Model::ModelName |
( |
|
) |
const [inline] |
Getter and Setters.
Definition at line 62 of file model.h.
double db_planner::Model::RescaleFactor |
( |
|
) |
const [inline] |
double db_planner::Model::Scale |
( |
|
) |
const [inline] |
void db_planner::Model::SetGeometry |
( |
const std::vector< double > & |
vertices, |
|
|
const std::vector< int > & |
triangles | |
|
) |
| | [inline] |
void db_planner::Model::SetGeometryPath |
( |
const string & |
geometry_path |
) |
[inline] |
void db_planner::Model::SetModelId |
( |
int |
id |
) |
[inline] |
void db_planner::Model::SetModelName |
( |
const string & |
model_name |
) |
[inline] |
void db_planner::Model::SetRescaleFactor |
( |
const double |
rescale_factor |
) |
[inline] |
void db_planner::Model::SetScale |
( |
const double |
scale |
) |
[inline] |
template<class Iterator >
void db_planner::Model::SetTags |
( |
const Iterator & |
start, |
|
|
const Iterator & |
end | |
|
) |
| | [inline] |
void db_planner::Model::SetThumbnailPath |
( |
const string & |
thumbnail_path |
) |
[inline] |
const set<string>& db_planner::Model::Tags |
( |
|
) |
[inline] |
const string& db_planner::Model::ThumbnailPath |
( |
|
) |
const [inline] |
Member Data Documentation
The id of the model in the database.
Definition at line 48 of file model.h.
The name of the model and absolute paths to its geometry and to a thumbnail.
Definition at line 50 of file model.h.
The approximate radius of a ball that statistically contains the model.
Definition at line 52 of file model.h.
A set of descriptive tags associated with the model.
Definition at line 54 of file model.h.
The triangles of the model's mesh, if loaded directly from the database.
Definition at line 58 of file model.h.
The vertices of the model's mesh, if loaded directly from the database.
Definition at line 56 of file model.h.
The documentation for this class was generated from the following file:
- /opt/ros/diamondback/stacks/graspit_simulator/graspit/graspit_source/src/DBase/DBPlanner/model.h