class for contact kinematics between convex frustum and an plate
More...
#include <plate_polynomialfrustum.h>
|
|
static std::vector< double > | searchPossibleContactPoints (Function< double(double)> *func, double eta, const std::vector< double > &nodes, double tol) |
| |
|
static std::vector< double > | searchPossibleContactPoints (Function< fmatvec::Vec(fmatvec::Vec)> *func, int i, fmatvec::Vec &zeta, const std::vector< double > &nodes, double tol) |
| |
class for contact kinematics between convex frustum and an plate
- Author
- Kilian Grundl, Tingting Sun
- Date
- 09.10.2012
| void MBSim::ContactKinematicsPlatePolynomialFrustum::assignContours |
( |
const std::vector< Contour * > & |
contour_ | ) |
|
|
overridevirtual |
| int MBSim::ContactKinematicsPlatePolynomialFrustum::checkPossibleContactPoint |
( |
const double & |
x, |
|
|
const fmatvec::Vec3 & |
n |
|
) |
| |
|
protected |
check if frustum point identified by coordinate x is possible contact point
- Parameters
-
| x | height-coordinate of possible contact point |
| n | normal vector of the plate |
| Vec3 MBSim::ContactKinematicsPlatePolynomialFrustum::computeContourPoint |
( |
const double & |
x, |
|
|
const fmatvec::Vec3 & |
n |
|
) |
| |
|
protected |
computes the point on the contour of the frustum due to the height-coordinate x and the normal in world coordinates
- Parameters
-
| x | height coordinate |
| n | normal of the frustum |
- Returns
- contour point in world coordinates of the contour point on the frustum
| Vec3 MBSim::ContactKinematicsPlatePolynomialFrustum::computeContourPointFrustum |
( |
const double & |
x, |
|
|
const fmatvec::Vec3 & |
n |
|
) |
| |
|
protected |
computes the point on the contour of the frustum due to the height-coordinate x and the normal in world coordinates
- Parameters
-
| x | height coordinate |
| n | normal of the frustum |
- Returns
- contour point in frustum coordinates of the contour point on the frustum
| bool MBSim::ContactKinematicsPlatePolynomialFrustum::cornerContact |
( |
SingleContact & |
contact | ) |
|
|
protected |
checks if there is a contact point at one of the corner points
- Returns
- true (if) or false (if there is no contact at one of the corner points)
| bool MBSim::ContactKinematicsPlatePolynomialFrustum::cpLocationInPlate |
( |
SingleContact & |
contact | ) |
|
|
protected |
check if there is a contact point within the plate between the frustum and the plate
- Returns
- true (if) or false (if there is no contact within the plate)
If there is contact the position and the cpData information is setted right away
| double MBSim::ContactKinematicsPlatePolynomialFrustum::distance2Plate |
( |
const fmatvec::Vec3 & |
point | ) |
|
|
protected |
compute distance between given point and plate
- Parameters
-
| point | Given point in world coordinates |
| bool MBSim::ContactKinematicsPlatePolynomialFrustum::edgeContact |
( |
SingleContact & |
contact | ) |
|
|
protected |
checks if there is a contact on one edge of the plate
- Returns
- true (if) or false (if there is no contact at one of the corner points)
- Todo:
- : unefficient and only finding (one) intersection point –> There should always be two intersection points and then using the middle or something
| bool MBSim::ContactKinematicsPlatePolynomialFrustum::gridContact |
( |
SingleContact & |
contact | ) |
|
|
protected |
if the unique contact point cannot be found a grid is walked through and a weighted sum results in the contact point
- Returns
- true (if) or false (if there is no contact at one of the corner points)
| void MBSim::ContactKinematicsPlatePolynomialFrustum::updateg |
( |
SingleContact & |
contact, |
|
|
int |
i = 0 |
|
) |
| |
|
overridevirtual |
compute contact kinematics for a single contact
- Parameters
-
| conctact | single contact |
| i | index of the contact that should be updated |
Reimplemented from MBSim::ContactKinematics.
The documentation for this class was generated from the following files:
- /mbsim-env/mbsim/kernel/mbsim/contact_kinematics/plate_polynomialfrustum.h
- /mbsim-env/mbsim/kernel/mbsim/contact_kinematics/plate_polynomialfrustum.cc