Implements writing urdf::Model objects to a COLLADA DOM.
More...
|
void | _buildAiMesh (const aiScene *scene, aiNode *node, domMeshRef pdommesh, domFloat_arrayRef parray, const string &geomid, const urdf::Vector3 &scale, urdf::Pose *org_trans=NULL) |
|
void | _CreateScene () |
|
void | _loadMesh (std::string const &filename, domGeometryRef pdomgeom, const urdf::Vector3 &scale, urdf::Pose *org_trans) |
|
void | _loadVertices (const shapes::Mesh *mesh, domGeometryRef pdomgeom) |
|
void | _WriteBindingsInstance_kinematics_scene () |
|
domEffectRef | _WriteEffect (std::string const &effect_id, urdf::Color const &color_ambient, urdf::Color const &color_diffuse) |
|
domGeometryRef | _WriteGeometry (urdf::GeometrySharedPtr geometry, const std::string &geometry_id, urdf::Pose *org_trans=NULL) |
|
virtual void | _WriteInstance_kinematics_model (daeElementRef parent, const string &sidscope, int id) |
| Write kinematic body in a given scene. More...
|
|
boost::shared_ptr< instance_physics_model_output > | _WriteInstance_physics_model (int id, daeElementRef parent, const string &sidscope, const MAPLINKPOSES &maplinkposes) |
|
virtual LINKOUTPUT | _WriteLink (urdf::LinkConstSharedPtr plink, daeElementRef pkinparent, domNodeRef pnodeparent, const string &strModelUri) |
| Write link of a kinematic body. More...
|
|
void | _WriteMaterial (const string &geometry_id, urdf::MaterialSharedPtr material) |
|
void | _WritePhysics () |
|
void | _WriteRobot (int id=0) |
| Write kinematic body in a given scene. More...
|
|
void | _WriteTransformation (daeElementRef pelt, const urdf::Pose &t) |
| Write transformation. More...
|
|
virtual void | handleError (daeString msg) |
|
virtual void | handleWarning (daeString msg) |
|
virtual boost::shared_ptr< kinematics_model_output > | WriteKinematics_model (int id) |
|
boost::shared_ptr< physics_model_output > | WritePhysics_model (int id, const MAPLINKPOSES &maplinkposes) |
|
|
typedef std::map< urdf::LinkConstSharedPtr, urdf::Pose > | MAPLINKPOSES |
|
|
static std::string | _ComputeId (const std::string &name) |
| computes a collada-compliant sid from the urdf name More...
|
|
static std::string | _ComputeKinematics_modelId (int id) |
|
static urdf::Pose | _poseInverse (const urdf::Pose &p) |
|
static urdf::Vector3 | _poseMult (const urdf::Pose &p, const urdf::Vector3 &v) |
|
static urdf::Pose | _poseMult (const urdf::Pose &p0, const urdf::Pose &p1) |
|
static urdf::Rotation | _quatFromMatrix (const boost::array< double, 12 > &mat) |
|
static urdf::Rotation | _quatMult (const urdf::Rotation &quat0, const urdf::Rotation &quat1) |
|
Implements writing urdf::Model objects to a COLLADA DOM.
Definition at line 537 of file collada_urdf.cpp.
◆ MAPLINKPOSES
◆ ColladaWriter()
collada_urdf::ColladaWriter::ColladaWriter |
( |
const urdf::Model & |
robot, |
|
|
int |
writeoptions |
|
) |
| |
|
inline |
◆ ~ColladaWriter()
virtual collada_urdf::ColladaWriter::~ColladaWriter |
( |
| ) |
|
|
inlinevirtual |
◆ _buildAiMesh()
void collada_urdf::ColladaWriter::_buildAiMesh |
( |
const aiScene * |
scene, |
|
|
aiNode * |
node, |
|
|
domMeshRef |
pdommesh, |
|
|
domFloat_arrayRef |
parray, |
|
|
const string & |
geomid, |
|
|
const urdf::Vector3 & |
scale, |
|
|
urdf::Pose * |
org_trans = NULL |
|
) |
| |
|
inlineprotected |
◆ _ComputeId()
static std::string collada_urdf::ColladaWriter::_ComputeId |
( |
const std::string & |
name | ) |
|
|
inlinestaticprivate |
computes a collada-compliant sid from the urdf name
Definition at line 1897 of file collada_urdf.cpp.
◆ _ComputeKinematics_modelId()
static std::string collada_urdf::ColladaWriter::_ComputeKinematics_modelId |
( |
int |
id | ) |
|
|
inlinestaticprivate |
◆ _CreateScene()
void collada_urdf::ColladaWriter::_CreateScene |
( |
| ) |
|
|
inlineprotected |
◆ _loadMesh()
void collada_urdf::ColladaWriter::_loadMesh |
( |
std::string const & |
filename, |
|
|
domGeometryRef |
pdomgeom, |
|
|
const urdf::Vector3 & |
scale, |
|
|
urdf::Pose * |
org_trans |
|
) |
| |
|
inlineprotected |
◆ _loadVertices()
void collada_urdf::ColladaWriter::_loadVertices |
( |
const shapes::Mesh * |
mesh, |
|
|
domGeometryRef |
pdomgeom |
|
) |
| |
|
inlineprotected |
◆ _poseInverse()
static urdf::Pose collada_urdf::ColladaWriter::_poseInverse |
( |
const urdf::Pose & |
p | ) |
|
|
inlinestaticprivate |
◆ _poseMult() [1/2]
static urdf::Vector3 collada_urdf::ColladaWriter::_poseMult |
( |
const urdf::Pose & |
p, |
|
|
const urdf::Vector3 & |
v |
|
) |
| |
|
inlinestaticprivate |
◆ _poseMult() [2/2]
static urdf::Pose collada_urdf::ColladaWriter::_poseMult |
( |
const urdf::Pose & |
p0, |
|
|
const urdf::Pose & |
p1 |
|
) |
| |
|
inlinestaticprivate |
◆ _quatFromMatrix()
static urdf::Rotation collada_urdf::ColladaWriter::_quatFromMatrix |
( |
const boost::array< double, 12 > & |
mat | ) |
|
|
inlinestaticprivate |
◆ _quatMult()
static urdf::Rotation collada_urdf::ColladaWriter::_quatMult |
( |
const urdf::Rotation & |
quat0, |
|
|
const urdf::Rotation & |
quat1 |
|
) |
| |
|
inlinestaticprivate |
◆ _WriteBindingsInstance_kinematics_scene()
void collada_urdf::ColladaWriter::_WriteBindingsInstance_kinematics_scene |
( |
| ) |
|
|
inlineprotected |
◆ _WriteEffect()
domEffectRef collada_urdf::ColladaWriter::_WriteEffect |
( |
std::string const & |
effect_id, |
|
|
urdf::Color const & |
color_ambient, |
|
|
urdf::Color const & |
color_diffuse |
|
) |
| |
|
inlineprotected |
◆ _WriteGeometry()
domGeometryRef collada_urdf::ColladaWriter::_WriteGeometry |
( |
urdf::GeometrySharedPtr |
geometry, |
|
|
const std::string & |
geometry_id, |
|
|
urdf::Pose * |
org_trans = NULL |
|
) |
| |
|
inlineprotected |
◆ _WriteInstance_kinematics_model()
virtual void collada_urdf::ColladaWriter::_WriteInstance_kinematics_model |
( |
daeElementRef |
parent, |
|
|
const string & |
sidscope, |
|
|
int |
id |
|
) |
| |
|
inlineprotectedvirtual |
◆ _WriteInstance_physics_model()
◆ _WriteLink()
virtual LINKOUTPUT collada_urdf::ColladaWriter::_WriteLink |
( |
urdf::LinkConstSharedPtr |
plink, |
|
|
daeElementRef |
pkinparent, |
|
|
domNodeRef |
pnodeparent, |
|
|
const string & |
strModelUri |
|
) |
| |
|
inlineprotectedvirtual |
Write link of a kinematic body.
- Parameters
-
link | Link to write |
pkinparent | Kinbody parent |
pnodeparent | Node parent |
strModelUri | |
Definition at line 1137 of file collada_urdf.cpp.
◆ _WriteMaterial()
void collada_urdf::ColladaWriter::_WriteMaterial |
( |
const string & |
geometry_id, |
|
|
urdf::MaterialSharedPtr |
material |
|
) |
| |
|
inlineprotected |
◆ _WritePhysics()
void collada_urdf::ColladaWriter::_WritePhysics |
( |
| ) |
|
|
inlineprotected |
◆ _WriteRobot()
void collada_urdf::ColladaWriter::_WriteRobot |
( |
int |
id = 0 | ) |
|
|
inlineprotected |
◆ _WriteTransformation()
void collada_urdf::ColladaWriter::_WriteTransformation |
( |
daeElementRef |
pelt, |
|
|
const urdf::Pose & |
t |
|
) |
| |
|
inlineprotected |
Write transformation.
- Parameters
-
pelt | Element to transform |
t | Transform to write |
Definition at line 1733 of file collada_urdf.cpp.
◆ convert()
bool collada_urdf::ColladaWriter::convert |
( |
| ) |
|
|
inline |
◆ doc()
daeDocument* collada_urdf::ColladaWriter::doc |
( |
| ) |
|
|
inline |
◆ handleError()
virtual void collada_urdf::ColladaWriter::handleError |
( |
daeString |
msg | ) |
|
|
inlineprotectedvirtual |
◆ handleWarning()
virtual void collada_urdf::ColladaWriter::handleWarning |
( |
daeString |
msg | ) |
|
|
inlineprotectedvirtual |
◆ WriteKinematics_model()
◆ WritePhysics_model()
◆ writeTo()
bool collada_urdf::ColladaWriter::writeTo |
( |
string const & |
file | ) |
|
|
inline |
◆ _articulatedSystemsLib
domLibrary_articulated_systemsRef collada_urdf::ColladaWriter::_articulatedSystemsLib |
|
private |
◆ _collada
DAE collada_urdf::ColladaWriter::_collada |
|
private |
◆ _doc
daeDocument* collada_urdf::ColladaWriter::_doc |
|
private |
◆ _dom
domCOLLADA* collada_urdf::ColladaWriter::_dom |
|
private |
◆ _effectsLib
domLibrary_effectsRef collada_urdf::ColladaWriter::_effectsLib |
|
private |
◆ _geometriesLib
domLibrary_geometriesRef collada_urdf::ColladaWriter::_geometriesLib |
|
private |
◆ _globalscene
domCOLLADA::domSceneRef collada_urdf::ColladaWriter::_globalscene |
|
private |
◆ _iasout
◆ _ikmout
◆ _importer
Assimp::Importer collada_urdf::ColladaWriter::_importer |
|
private |
◆ _kinematicsModelsLib
domLibrary_kinematics_modelsRef collada_urdf::ColladaWriter::_kinematicsModelsLib |
|
private |
◆ _kinematicsScenesLib
domLibrary_kinematics_scenesRef collada_urdf::ColladaWriter::_kinematicsScenesLib |
|
private |
◆ _mapjointindices
std::map< urdf::JointConstSharedPtr, int > collada_urdf::ColladaWriter::_mapjointindices |
|
private |
◆ _maplinkindices
std::map< urdf::LinkConstSharedPtr, int > collada_urdf::ColladaWriter::_maplinkindices |
|
private |
◆ _mapmaterialindices
std::map< urdf::MaterialConstSharedPtr, int > collada_urdf::ColladaWriter::_mapmaterialindices |
|
private |
◆ _materialsLib
domLibrary_materialsRef collada_urdf::ColladaWriter::_materialsLib |
|
private |
◆ _physicsModelsLib
domLibrary_physics_modelsRef collada_urdf::ColladaWriter::_physicsModelsLib |
|
private |
◆ _physicsScenesLib
domLibrary_physics_scenesRef collada_urdf::ColladaWriter::_physicsScenesLib |
|
private |
◆ _robot
◆ _scene
SCENE collada_urdf::ColladaWriter::_scene |
|
private |
◆ _sensorsLib
domTechniqueRef collada_urdf::ColladaWriter::_sensorsLib |
|
private |
◆ _visualScenesLib
domLibrary_visual_scenesRef collada_urdf::ColladaWriter::_visualScenesLib |
|
private |
◆ _writeoptions
int collada_urdf::ColladaWriter::_writeoptions |
|
private |
The documentation for this class was generated from the following file: