See bullet3/examples/Importers/ImportURDFDemo/DefaultVisualShapeConverter.h Give the kuka_iiwa/model.urdf some blue color, not just orange, to mimick the original a bit better Preparation for the CMD_CAMERA_IMAGE_COMPLETED command, to expose a virtual camera to the robotics API
26 lines
664 B
C
26 lines
664 B
C
#ifndef DEFAULT_VISUAL_SHAPE_CONVERTER_H
|
|
#define DEFAULT_VISUAL_SHAPE_CONVERTER_H
|
|
|
|
|
|
#include "LinkVisualShapesConverter.h"
|
|
|
|
struct DefaultVisualShapeConverter : public LinkVisualShapesConverter
|
|
{
|
|
|
|
struct DefaultVisualShapeConverterInternalData* m_data;
|
|
|
|
DefaultVisualShapeConverter(struct GUIHelperInterface* guiHelper);
|
|
|
|
virtual ~DefaultVisualShapeConverter();
|
|
|
|
virtual int convertVisualShapes(int linkIndex, const char* pathPrefix, const btTransform& localInertiaFrame, const UrdfModel& model, class btCollisionShape* colShape);
|
|
|
|
virtual bool getLinkColor(int linkIndex, btVector4& colorRGBA) const;
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif //DEFAULT_VISUAL_SHAPE_CONVERTER_H
|