2015-04-16 16:55:32 +00:00
|
|
|
#ifndef _URDF2BULLET_H
|
|
|
|
#define _URDF2BULLET_H
|
|
|
|
#include "LinearMath/btAlignedObjectArray.h"
|
|
|
|
#include "LinearMath/btTransform.h"
|
|
|
|
#include <string>
|
|
|
|
class btVector3;
|
|
|
|
class btTransform;
|
|
|
|
class btMultiBodyDynamicsWorld;
|
|
|
|
class btTransform;
|
|
|
|
|
|
|
|
|
2015-04-22 23:35:27 +00:00
|
|
|
class URDFImporterInterface;
|
|
|
|
class MultiBodyCreationInterface;
|
2015-04-16 16:55:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2016-08-29 22:09:18 +00:00
|
|
|
enum ConvertURDFFlags {
|
|
|
|
CUF_USE_SDF = 1,
|
|
|
|
// Use inertia values in URDF instead of recomputing them from collision shape.
|
2016-12-31 02:32:57 +00:00
|
|
|
CUF_USE_URDF_INERTIA = 2,
|
|
|
|
CUF_USE_MJCF = 4,
|
2017-05-10 22:01:25 +00:00
|
|
|
CUF_USE_SELF_COLLISION=8,
|
|
|
|
CUF_USE_SELF_COLLISION_EXCLUDE_PARENT=16,
|
|
|
|
CUF_USE_SELF_COLLISION_EXCLUDE_ALL_PARENTS=32,
|
2016-08-29 22:09:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
void ConvertURDF2Bullet(const URDFImporterInterface& u2b,
|
|
|
|
MultiBodyCreationInterface& creationCallback,
|
|
|
|
const btTransform& rootTransformInWorldSpace,
|
2015-04-23 22:41:17 +00:00
|
|
|
btMultiBodyDynamicsWorld* world,
|
2016-08-29 22:09:18 +00:00
|
|
|
bool createMultiBody,
|
2016-05-11 22:52:50 +00:00
|
|
|
const char* pathPrefix,
|
2016-08-29 22:09:18 +00:00
|
|
|
int flags = 0);
|
2015-04-23 22:41:17 +00:00
|
|
|
|
2015-04-16 16:55:32 +00:00
|
|
|
|
|
|
|
#endif //_URDF2BULLET_H
|
|
|
|
|