2015-04-16 16:55:32 +00:00
|
|
|
#ifndef _URDF2BULLET_H
|
|
|
|
#define _URDF2BULLET_H
|
|
|
|
#include "LinearMath/btAlignedObjectArray.h"
|
|
|
|
#include "LinearMath/btTransform.h"
|
|
|
|
#include <string>
|
2018-09-23 21:17:31 +00:00
|
|
|
#include "URDFJointTypes.h" //for UrdfMaterialColor cache
|
2018-05-23 03:26:00 +00:00
|
|
|
|
2015-04-16 16:55:32 +00:00
|
|
|
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
|
|
|
|
2019-01-23 05:08:37 +00:00
|
|
|
|
2018-05-23 03:26:00 +00:00
|
|
|
|
|
|
|
struct UrdfVisualShapeCache
|
|
|
|
{
|
|
|
|
btAlignedObjectArray<UrdfMaterialColor> m_cachedUrdfLinkColors;
|
|
|
|
btAlignedObjectArray<int> m_cachedUrdfLinkVisualShapeIndices;
|
2016-08-29 22:09:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
void ConvertURDF2Bullet(const URDFImporterInterface& u2b,
|
2018-09-23 21:17:31 +00:00
|
|
|
MultiBodyCreationInterface& creationCallback,
|
|
|
|
const btTransform& rootTransformInWorldSpace,
|
|
|
|
btMultiBodyDynamicsWorld* world,
|
|
|
|
bool createMultiBody,
|
|
|
|
const char* pathPrefix,
|
|
|
|
int flags = 0,
|
|
|
|
UrdfVisualShapeCache* cachedLinkGraphicsShapes = 0);
|
|
|
|
|
|
|
|
#endif //_URDF2BULLET_H
|