Go to the documentation of this file.
7 #ifndef CNOID_BODY_BODY_CUSTOMIZER_INTERFACE_H
8 #define CNOID_BODY_BODY_CUSTOMIZER_INTERFACE_H
11 #include <cnoid/EigenTypes>
12 #include <cnoid/Config>
13 #include "exportdecl.h"
21 typedef const char* (*BodyGetLinkNameFunc) (
BodyHandle bodyHandle,
int linkIndex);
22 typedef double* (*BodyGetLinkDoubleValuePtrFunc)(
BodyHandle bodyHandle,
int linkIndex);
24 static const int BODY_INTERFACE_VERSION = 1;
37 typedef const char** (*BodyCustomizerGetTargetModelNamesFunc)();
52 static const int BODY_CUSTOMIZER_INTERFACE_VERSION = 2;
86 #if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__)
87 #define CNOID_BODY_CUSTOMIZER_EXPORT extern "C" __declspec(dllexport)
89 #define CNOID_BODY_CUSTOMIZER_EXPORT extern "C"
BodyCustomizerDestroyFunc destroy
Definition: BodyCustomizerInterface.h:60
void * BodyHandle
Definition: BodyCustomizerInterface.h:17
void(* BodyCustomizerSetVirtualJointForces2Func)(BodyCustomizerHandle customizerHandle, double timeStep)
Definition: BodyCustomizerInterface.h:49
bool(* BodyCustomizerCalcAnalyticIkFunc)(BodyCustomizerHandle customizerHandle, int ikPathId, const Vector3 &p, const Matrix3 &R)
Definition: BodyCustomizerInterface.h:46
Eigen::Vector3d Vector3
Definition: EigenTypes.h:57
BodyGetLinkDoubleValuePtrFunc getJointValuePtr
Definition: BodyCustomizerInterface.h:32
CNOID_EXPORT BodyCustomizerInterface * findBodyCustomizer(std::string modelName)
Definition: BodyCustomizerInterface.cpp:205
int(* BodyCustomizerInitializeAnalyticIkFunc)(BodyCustomizerHandle customizerHandle, int baseLinkIndex, int targetLinkIndex)
Definition: BodyCustomizerInterface.h:41
Eigen::Matrix3d Matrix3
Definition: EigenTypes.h:56
BodyCustomizerInterface()
Definition: BodyCustomizerInterface.h:66
int version
Definition: BodyCustomizerInterface.h:28
CNOID_EXPORT int loadBodyCustomizers(const std::string pathString, std::ostream &os)
Definition: BodyCustomizerInterface.cpp:158
const typedef char **(* BodyCustomizerGetTargetModelNamesFunc)()
Definition: BodyCustomizerInterface.h:37
BodyCustomizerInitializeAnalyticIkFunc initializeAnalyticIk
Definition: BodyCustomizerInterface.h:61
BodyCustomizerHandle(* BodyCustomizerCreateFunc)(BodyHandle bodyHandle, const char *modelName)
Definition: BodyCustomizerInterface.h:38
Definition: BodyCustomizerInterface.h:54
Definition: BodyCustomizerInterface.h:26
Definition: AbstractSceneLoader.h:11
int(* BodyGetLinkIndexFromNameFunc)(BodyHandle bodyHandle, const char *linkName)
Definition: BodyCustomizerInterface.h:20
BodyGetLinkIndexFromNameFunc getLinkIndexFromName
Definition: BodyCustomizerInterface.h:30
BodyCustomizerGetTargetModelNamesFunc getTargetModelNames
Definition: BodyCustomizerInterface.h:58
BodyGetLinkDoubleValuePtrFunc getJointForcePtr
Definition: BodyCustomizerInterface.h:34
CNOID_EXPORT int loadDefaultBodyCustomizers(std::ostream &os)
Definition: BodyCustomizerInterface.cpp:193
double *(* BodyGetLinkDoubleValuePtrFunc)(BodyHandle bodyHandle, int linkIndex)
Definition: BodyCustomizerInterface.h:22
BodyCustomizerCalcAnalyticIkFunc calcAnalyticIk
Definition: BodyCustomizerInterface.h:62
void * BodyCustomizerHandle
Definition: Body.h:23
BodyCustomizerCreateFunc create
Definition: BodyCustomizerInterface.h:59
int version
Definition: BodyCustomizerInterface.h:56
BodyCustomizerSetVirtualJointForcesFunc setVirtualJointForces
Definition: BodyCustomizerInterface.h:63
void(* BodyCustomizerSetVirtualJointForcesFunc)(BodyCustomizerHandle customizerHandle)
Definition: BodyCustomizerInterface.h:48
void(* BodyCustomizerDestroyFunc)(BodyCustomizerHandle customizerHandle)
Definition: BodyCustomizerInterface.h:40
BodyCustomizerSetVirtualJointForces2Func setVirtualJointForces2
Definition: BodyCustomizerInterface.h:64
BodyGetLinkNameFunc getLinkName
Definition: BodyCustomizerInterface.h:31
BodyGetLinkDoubleValuePtrFunc getJointVelocityPtr
Definition: BodyCustomizerInterface.h:33
const typedef char *(* BodyGetLinkNameFunc)(BodyHandle bodyHandle, int linkIndex)
Definition: BodyCustomizerInterface.h:21