The colladadom reader that fills in the BodyInfoCollada_impl class. More...
Classes | |
class | ConstraintBinding |
class | JointAxisBinding |
class | KinematicsSceneBindings |
inter-collada bindings for a kinematics scene More... | |
class | LinkBinding |
Public Member Functions | |
bool | _ExtractActuator (boost::shared_ptr< LinkInfo > plink, daeElementRef instance_actuator) |
Extract an instance of a sensor. More... | |
template<typename T > | |
void | _ExtractFullTransform (DblArray12 &tres, const T pelt) |
Travel by the transformation array and calls the getTransform method. More... | |
template<typename T > | |
void | _ExtractFullTransformFromChildren (DblArray12 &tres, const T pelt) |
Travel by the transformation array and calls the getTransform method. More... | |
bool | _ExtractGeometry (BodyInfoCollada_impl *pkinbody, boost::shared_ptr< LinkInfo > plink, const domTrianglesRef triRef, const domVerticesRef vertsRef, const map< string, int > &mapmaterials, const map< string, int > &maptextures) |
bool | _ExtractGeometry (BodyInfoCollada_impl *pkinbody, boost::shared_ptr< LinkInfo > plink, const domTrifansRef triRef, const domVerticesRef vertsRef, const map< string, int > &mapmaterials, const map< string, int > &maptextures) |
bool | _ExtractGeometry (BodyInfoCollada_impl *pkinbody, boost::shared_ptr< LinkInfo > plink, const domTristripsRef triRef, const domVerticesRef vertsRef, const map< string, int > &mapmaterials, const map< string, int > &maptextures) |
bool | _ExtractGeometry (BodyInfoCollada_impl *pkinbody, boost::shared_ptr< LinkInfo > plink, const domPolylistRef triRef, const domVerticesRef vertsRef, const map< string, int > &mapmaterials, const map< string, int > &maptextures) |
bool | _ExtractSensor (SensorInfo &psensor, daeElementRef instance_sensor) |
Extract an instance of a sensor. More... | |
void | _FillMaterial (MaterialInfo &mat, const domMaterialRef pdommat) |
daeElementRef | _getElementFromUrl (const daeURI &uri) |
bool | _Init () |
void | _ResetRobotCache () |
ColladaReader () | |
bool | Extract (BodyInfoCollada_impl *probot) |
the first possible robot in the scene More... | |
bool | ExtractArticulatedSystem (BodyInfoCollada_impl *&probot, domInstance_articulated_systemRef ias, KinematicsSceneBindings &bindings) |
extracts an articulated system. Note that an articulated system can include other articulated systems More... | |
bool | ExtractGeometry (BodyInfoCollada_impl *pkinbody, boost::shared_ptr< LinkInfo > plink, const DblArray12 &tlink, const domNodeRef pdomnode, const std::list< JointAxisBinding > &listAxisBindings, const std::vector< std::string > &vprocessednodes) |
bool | ExtractGeometry (BodyInfoCollada_impl *pkinbody, boost::shared_ptr< LinkInfo > plink, const domGeometryRef geom, const map< string, int > &mapmaterials, const map< string, int > &maptextures) |
bool | ExtractKinematicsModel (BodyInfoCollada_impl *pkinbody, domInstance_kinematics_modelRef ikm, KinematicsSceneBindings &bindings) |
bool | ExtractKinematicsModel (BodyInfoCollada_impl *pkinbody, domNodeRef pdomnode, const KinematicsSceneBindings &bindings, const std::vector< std::string > &vprocessednodes) |
extract one rigid link composed of the node hierarchy More... | |
bool | ExtractKinematicsModel (BodyInfoCollada_impl *pkinbody, domKinematics_modelRef kmodel, domNodeRef pnode, domPhysics_modelRef pmodel, const KinematicsSceneBindings bindings) |
append the kinematics model to the kinbody More... | |
int | ExtractLink (BodyInfoCollada_impl *pkinbody, const domLinkRef pdomlink, const domNodeRef pdomnode, const DblArray12 &tParentWorldLink, const DblArray12 &tParentLink, const std::vector< domJointRef > &vdomjoints, const KinematicsSceneBindings bindings) |
Extract Link info and add it to an existing body. More... | |
void | ExtractRobotAttachedActuators (BodyInfoCollada_impl *probot, const domArticulated_systemRef as) |
Extract Sensors attached to a Robot. More... | |
void | ExtractRobotAttachedSensors (BodyInfoCollada_impl *probot, const domArticulated_systemRef as) |
Extract Sensors attached to a Robot. More... | |
void | ExtractRobotManipulators (BodyInfoCollada_impl *probot, const domArticulated_systemRef as) |
extract the robot manipulators More... | |
boost::shared_ptr< LinkInfo > | GetLink (const std::string &name) |
template<typename T > | |
void | getNodeParentTransform (DblArray12 &tres, const T pelt) |
void | getTransform (DblArray12 &tres, daeElementRef pelt) |
Gets all transformations applied to the node. More... | |
virtual void | handleError (daeString msg) |
virtual void | handleWarning (daeString msg) |
bool | InitFromData (const string &pdata) |
bool | InitFromURL (const string &url) |
void | PostProcess (BodyInfoCollada_impl *probot) |
virtual | ~ColladaReader () |
Static Public Member Functions | |
template<typename U > | |
static xsBoolean | resolveBool (domCommon_bool_or_paramRef paddr, const U &parent) |
static bool | resolveCommon_float_or_param (daeElementRef pcommon, daeElementRef parent, float &f) |
template<typename U > | |
static domFloat | resolveFloat (domCommon_float_or_paramRef paddr, const U &parent) |
static daeElement * | searchBinding (domCommon_sidref_or_paramRef paddr, daeElementRef parent) |
static daeElement * | searchBinding (daeString ref, daeElementRef parent) |
static daeElement * | searchBindingArray (daeString ref, const domInstance_articulated_system_Array ¶mArray) |
static daeElement * | searchBindingArray (daeString ref, const domInstance_kinematics_model_Array ¶mArray) |
Private Member Functions | |
bool | _checkMathML (daeElementRef pelt, const string &type) |
std::string | _ConvertToValidName (const std::string &name) |
boost::shared_ptr< std::string > | _ExtractInterfaceType (const daeElementRef pelt) |
returns an openrave interface type from the extra array More... | |
boost::shared_ptr< std::string > | _ExtractInterfaceType (const domExtra_Array &arr) |
returns an openrave interface type from the extra array More... | |
std::string | _ExtractLinkName (domLinkRef pdomlink) |
std::string | _ExtractMathML (daeElementRef proot, BodyInfoCollada_impl *pkinbody, daeElementRef pelt) |
Extracts MathML into fparser equation format. More... | |
domTechniqueRef | _ExtractOpenRAVEProfile (const domTechnique_Array &arr) |
daeElementRef | _ExtractOpenRAVEProfile (const daeElementRef pelt) |
std::string | _ExtractParentId (daeElementRef p) |
std::string | _getElementName (daeElementRef pelt) |
get the element name without the namespace More... | |
std::pair< boost::shared_ptr< LinkInfo >,domJointRef > | _getJointFromRef (xsToken targetref, daeElementRef peltref, BodyInfoCollada_impl *pkinbody) |
Static Private Member Functions | |
static void | _ExtractKinematicsVisualBindings (domInstance_with_extraRef viscene, domInstance_kinematics_sceneRef kiscene, KinematicsSceneBindings &bindings) |
go through all kinematics binds to get a kinematics/visual pair More... | |
static void | _ExtractPhysicsBindings (domCOLLADA::domSceneRef allscene, KinematicsSceneBindings &bindings) |
static dReal | _GetUnitScale (daeElementRef pelt, dReal startscale) |
static bool | _IsValidCharInName (char c) |
static bool | _IsValidName (const std::string &s) |
Private Attributes | |
bool | _bOpeningZAE |
boost::shared_ptr< DAE > | _dae |
domCOLLADA * | _dom |
dReal | _fGlobalScale |
std::string | _filename |
std::map< std::string, boost::shared_ptr< LinkInfo > > | _mapJointIds |
std::map< boost::shared_ptr< LinkInfo >, std::vector< dReal > > | _mapJointUnits |
std::map< std::string, boost::shared_ptr< LinkInfo > > | _mapLinkNames |
int | _nGlobalActuatorId |
int | _nGlobalIndex |
int | _nGlobalManipulatorId |
int | _nGlobalSensorId |
std::vector< std::string > | _veclinknames |
std::vector< boost::shared_ptr< LinkInfo > > | _veclinks |
DblArray12 | rootOrigin |
DblArray12 | visualRootOrigin |
The colladadom reader that fills in the BodyInfoCollada_impl class.
It is separate from BodyInfoCollada_impl so that the colladadom resources do not have to remain allocated.
Definition at line 58 of file BodyInfoCollada_impl.cpp.
|
inline |
Definition at line 147 of file BodyInfoCollada_impl.cpp.
|
inlinevirtual |
Definition at line 151 of file BodyInfoCollada_impl.cpp.
|
inlineprivate |
Definition at line 2792 of file BodyInfoCollada_impl.cpp.
|
inlineprivate |
Definition at line 3225 of file BodyInfoCollada_impl.cpp.
|
inline |
Extract an instance of a sensor.
Definition at line 2272 of file BodyInfoCollada_impl.cpp.
|
inline |
Travel by the transformation array and calls the getTransform method.
Definition at line 2583 of file BodyInfoCollada_impl.cpp.
|
inline |
Travel by the transformation array and calls the getTransform method.
Definition at line 2594 of file BodyInfoCollada_impl.cpp.
|
inline |
Extract the Geometry in TRIANGLES and adds it to OpenRave
triRef | Array of triangles of the COLLADA's model |
vertsRef | Array of vertices of the COLLADA's model |
mapmaterials | Materials applied to the geometry |
plink | Link of the kinematics model |
Definition at line 1242 of file BodyInfoCollada_impl.cpp.
|
inline |
Extract the Geometry in TRIGLE FANS and adds it to OpenRave
triRef | Array of triangle fans of the COLLADA's model |
vertsRef | Array of vertices of the COLLADA's model |
mapmaterials | Materials applied to the geometry |
plink | Link of the kinematics model |
Definition at line 1506 of file BodyInfoCollada_impl.cpp.
|
inline |
Extract the Geometry in TRIANGLE STRIPS and adds it to OpenRave
triRef | Array of Triangle Strips of the COLLADA's model |
vertsRef | Array of vertices of the COLLADA's model |
mapmaterials | Materials applied to the geometry |
plink | Link of the kinematics model |
Definition at line 1601 of file BodyInfoCollada_impl.cpp.
|
inline |
Extract the Geometry in TRIANGLE STRIPS and adds it to OpenRave
triRef | Array of Triangle Strips of the COLLADA's model |
vertsRef | Array of vertices of the COLLADA's model |
mapmaterials | Materials applied to the geometry |
plink | Link of the kinematics model |
Definition at line 1699 of file BodyInfoCollada_impl.cpp.
|
inlineprivate |
returns an openrave interface type from the extra array
Definition at line 2746 of file BodyInfoCollada_impl.cpp.
|
inlineprivate |
returns an openrave interface type from the extra array
Definition at line 2764 of file BodyInfoCollada_impl.cpp.
|
inlinestaticprivate |
go through all kinematics binds to get a kinematics/visual pair
kiscene | instance of one kinematics scene, binds the kinematic and visual models |
bindings | the extracted bindings |
Definition at line 2639 of file BodyInfoCollada_impl.cpp.
|
inlineprivate |
Definition at line 2779 of file BodyInfoCollada_impl.cpp.
|
inlineprivate |
Extracts MathML into fparser equation format.
Definition at line 2857 of file BodyInfoCollada_impl.cpp.
|
inlineprivate |
Definition at line 2723 of file BodyInfoCollada_impl.cpp.
|
inlineprivate |
Definition at line 2733 of file BodyInfoCollada_impl.cpp.
|
inlineprivate |
Definition at line 2846 of file BodyInfoCollada_impl.cpp.
|
inlinestaticprivate |
Definition at line 2692 of file BodyInfoCollada_impl.cpp.
|
inline |
Extract an instance of a sensor.
Definition at line 2088 of file BodyInfoCollada_impl.cpp.
Paint the Geometry with the color material
pmat | Material info of the COLLADA's model |
geom | Geometry properties in OpenRAVE |
Definition at line 1946 of file BodyInfoCollada_impl.cpp.
|
inline |
Definition at line 2322 of file BodyInfoCollada_impl.cpp.
|
inlineprivate |
get the element name without the namespace
Definition at line 2837 of file BodyInfoCollada_impl.cpp.
|
inlineprivate |
Definition at line 2806 of file BodyInfoCollada_impl.cpp.
|
inlinestaticprivate |
Definition at line 3242 of file BodyInfoCollada_impl.cpp.
|
inline |
Definition at line 194 of file BodyInfoCollada_impl.cpp.
|
inlinestaticprivate |
Definition at line 3217 of file BodyInfoCollada_impl.cpp.
|
inlinestaticprivate |
Definition at line 3218 of file BodyInfoCollada_impl.cpp.
|
inline |
Definition at line 205 of file BodyInfoCollada_impl.cpp.
|
inline |
the first possible robot in the scene
Definition at line 215 of file BodyInfoCollada_impl.cpp.
|
inline |
extracts an articulated system. Note that an articulated system can include other articulated systems
probot | the robot to be created from the system |
Definition at line 349 of file BodyInfoCollada_impl.cpp.
|
inline |
Extract Geometry and apply the transformations of the node
pdomnode | Node to extract the goemetry |
plink | Link of the kinematics model |
Definition at line 1104 of file BodyInfoCollada_impl.cpp.
|
inline |
Extract the Geometry and adds it to OpenRave
geom | Geometry to extract of the COLLADA's model |
mapmaterials | Materials applied to the geometry |
plink | Link of the kinematics model |
Definition at line 1789 of file BodyInfoCollada_impl.cpp.
|
inline |
Definition at line 440 of file BodyInfoCollada_impl.cpp.
|
inline |
extract one rigid link composed of the node hierarchy
Definition at line 495 of file BodyInfoCollada_impl.cpp.
|
inline |
append the kinematics model to the kinbody
Definition at line 527 of file BodyInfoCollada_impl.cpp.
|
inline |
Extract Link info and add it to an existing body.
Definition at line 725 of file BodyInfoCollada_impl.cpp.
|
inline |
Extract Sensors attached to a Robot.
Definition at line 2064 of file BodyInfoCollada_impl.cpp.
|
inline |
Extract Sensors attached to a Robot.
Definition at line 2009 of file BodyInfoCollada_impl.cpp.
|
inline |
extract the robot manipulators
Definition at line 1988 of file BodyInfoCollada_impl.cpp.
|
inline |
Definition at line 713 of file BodyInfoCollada_impl.cpp.
|
inline |
Travels recursively the node parents of the given one to extract the Transform arrays that affects the node given
Definition at line 2570 of file BodyInfoCollada_impl.cpp.
|
inline |
Gets all transformations applied to the node.
Definition at line 2515 of file BodyInfoCollada_impl.cpp.
|
inlinevirtual |
Definition at line 2620 of file BodyInfoCollada_impl.cpp.
|
inlinevirtual |
Definition at line 2628 of file BodyInfoCollada_impl.cpp.
|
inline |
Definition at line 183 of file BodyInfoCollada_impl.cpp.
|
inline |
Definition at line 156 of file BodyInfoCollada_impl.cpp.
|
inline |
Definition at line 275 of file BodyInfoCollada_impl.cpp.
|
inlinestatic |
Definition at line 2436 of file BodyInfoCollada_impl.cpp.
|
inlinestatic |
Definition at line 2491 of file BodyInfoCollada_impl.cpp.
|
inlinestatic |
Definition at line 2463 of file BodyInfoCollada_impl.cpp.
|
inlinestatic |
Definition at line 2327 of file BodyInfoCollada_impl.cpp.
|
inlinestatic |
Search a given parameter reference and stores the new reference to search.
ref | the reference name to search |
parent | The array of parameter where the method searchs. |
Definition at line 2341 of file BodyInfoCollada_impl.cpp.
|
inlinestatic |
Definition at line 2414 of file BodyInfoCollada_impl.cpp.
|
inlinestatic |
Definition at line 2425 of file BodyInfoCollada_impl.cpp.
|
private |
Definition at line 3256 of file BodyInfoCollada_impl.cpp.
|
private |
Definition at line 3255 of file BodyInfoCollada_impl.cpp.
|
private |
Definition at line 3257 of file BodyInfoCollada_impl.cpp.
|
private |
Definition at line 3258 of file BodyInfoCollada_impl.cpp.
|
private |
Definition at line 3265 of file BodyInfoCollada_impl.cpp.
|
private |
Definition at line 3260 of file BodyInfoCollada_impl.cpp.
|
private |
Definition at line 3259 of file BodyInfoCollada_impl.cpp.
|
private |
Definition at line 3261 of file BodyInfoCollada_impl.cpp.
|
private |
Definition at line 3264 of file BodyInfoCollada_impl.cpp.
|
private |
Definition at line 3264 of file BodyInfoCollada_impl.cpp.
|
private |
Definition at line 3264 of file BodyInfoCollada_impl.cpp.
|
private |
Definition at line 3264 of file BodyInfoCollada_impl.cpp.
|
private |
Definition at line 3263 of file BodyInfoCollada_impl.cpp.
|
private |
Definition at line 3262 of file BodyInfoCollada_impl.cpp.
|
private |
Definition at line 3266 of file BodyInfoCollada_impl.cpp.
|
private |
Definition at line 3267 of file BodyInfoCollada_impl.cpp.