00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef CIRCLE_FRUSTUM_H_
00022 #define CIRCLE_FRUSTUM_H_
00023
00024 #include "mbsim/contact_kinematics/contact_kinematics.h"
00025
00026 namespace MBSim {
00027
00028 class Circle;
00029 class Frustum;
00030
00040 class ContactKinematicsCircleFrustum : public ContactKinematics {
00041 public:
00048 ContactKinematicsCircleFrustum();
00049
00053 virtual ~ContactKinematicsCircleFrustum();
00054
00055
00056 void assignContours(const std::vector<Contour*> &contour);
00057 virtual void updateg(fmatvec::Vec& g, ContourPointData *cpData, int index = 0);
00058 virtual void updatewb(fmatvec::Vec& wb, const fmatvec::Vec &g,ContourPointData *cpData) { throw MBSimError("ERROR (ContactKinematicsCircleFrustum::updatewb): not implemented!"); }
00059
00060
00061
00062 void setDebug(bool DEBUG_);
00063 void setWarnLevel(int warnLevel_);
00064 void setLocalSearch(bool LOCALSEARCH_);
00065
00066
00067 protected:
00071 int icircle, ifrustum;
00072
00076 Frustum *frustum;
00077 Circle *circle;
00078
00082 bool DEBUG;
00083
00087 int warnLevel;
00088
00092 bool LOCALSEARCH;
00093 };
00094
00095 inline void ContactKinematicsCircleFrustum::setDebug(bool DEBUG_) { DEBUG=DEBUG_; }
00096 inline void ContactKinematicsCircleFrustum::setWarnLevel(int warnLevel_) { warnLevel=warnLevel_; }
00097 inline void ContactKinematicsCircleFrustum::setLocalSearch(bool LOCALSEARCH_) { LOCALSEARCH=LOCALSEARCH_; }
00098
00099 }
00100
00101 #endif
00102