14 #ifndef OPENHRP_COLLISION_DETECTOR_COLDET_BODY_H_INCLUDED 15 #define OPENHRP_COLLISION_DETECTOR_COLDET_BODY_H_INCLUDED 22 #include <hrpCorba/ModelLoader.hh> 26 using namespace boost;
42 const char*
name() {
return name_.c_str(); }
45 return linkColdetModels.size();
48 return linkColdetModels[linkIndex];
52 map<string, ColdetModelPtr>::iterator p = linkNameToColdetModelMap.find(linkName);
53 return (p == linkNameToColdetModelMap.end()) ?
ColdetModelPtr() : p->second;
56 void setLinkPositions(
const LinkPositionSequence& linkPositions);
60 const double *R,
const double *p,
61 const ShapeInfo& shapeInfo);
62 void addLinkVerticesAndTriangles
63 (
ColdetModelPtr& coldetModel, LinkInfo& linkInfo, ShapeInfoSequence_var& shapes);
64 void addLinkVerticesAndTriangles
65 (
ColdetModelPtr& coldetModel,
const TransformedShapeIndex& tsi,
const Matrix44& Tparent, ShapeInfoSequence_var& shapes,
int& vertexIndex,
int& triangleIndex);
boost::intrusive_ptr< ColdetBody > ColdetBodyPtr
Modifications controlling boost library behavior.
vector< ColdetModelPtr > linkColdetModels
png_infop png_charpp name
ColdetModelPtr linkColdetModel(const string &linkName)
unsigned int numLinks() const
void setName(const char *name)
boost::intrusive_ptr< ColdetModel > ColdetModelPtr
ColdetModelPtr linkColdetModel(int linkIndex)
map< string, ColdetModelPtr > linkNameToColdetModelMap