Public Member Functions | Protected Attributes | List of all members
hrp::ColdetLinkPair Class Reference

#include <ColdetLinkPair.h>

Inheritance diagram for hrp::ColdetLinkPair:
Inheritance graph
[legend]

Public Member Functions

 ColdetLinkPair (Link *link1, Link *link2, double tolerance=0)
 
 ColdetLinkPair (const ColdetLinkPair &org)
 
hrp::Linklink (int index)
 
void updatePositions ()
 
virtual ~ColdetLinkPair ()
 
- Public Member Functions inherited from hrp::ColdetModelPair
int calculateCentroidIntersection (float &cx, float &cy, float &A, float radius, std::vector< float > vx, std::vector< float > vy)
 
int calculateIntersection (std::vector< float > &x, std::vector< float > &y, float radius, float x1, float y1, float x2, float y2)
 
float calculatePolygonArea (const std::vector< float > &vx, const std::vector< float > &vy)
 
void calculateSectorCentroid (float &cx, float &cy, float radius, float th1, float th2)
 
bool checkCollision ()
 
void clearCollisions ()
 
 ColdetModelPair ()
 
 ColdetModelPair (ColdetModelPtr model0, ColdetModelPtr model1, double tolerance=0)
 
 ColdetModelPair (const ColdetModelPair &org)
 
std::vector< collision_data > & collisions ()
 
double computeDistance (double *point0, double *point1)
 
double computeDistance (int &out_triangle0, double *out_point0, int &out_triangle1, double *out_point1)
 
std::vector< collision_data > & detectCollisions ()
 
bool detectIntersection ()
 
void enableNormalVectorCorrection (bool flag)
 
bool isInsideCircle (float r, float x, float y)
 
bool isInsideTriangle (float x, float y, const std::vector< float > &vx, const std::vector< float > &vy)
 
int makeCCW (std::vector< float > &vx, std::vector< float > &vy)
 
ColdetModelmodel (int index)
 
ColdetModelPairoperator= (const ColdetModelPair &cmp)
 
void set (ColdetModelPtr model0, ColdetModelPtr model1)
 
void setCollisionPairInserter (CollisionPairInserterBase *inserter)
 
double tolerance () const
 
IceMaths::Matrix4x4transform (int index)
 
virtual ~ColdetModelPair ()
 
- Public Member Functions inherited from hrp::Referenced
 Referenced ()
 
virtual ~Referenced ()
 

Protected Attributes

hrp::Linklinks [2]
 

Additional Inherited Members

- Protected Member Functions inherited from hrp::Referenced
int refCounter ()
 

Detailed Description

Definition at line 16 of file ColdetLinkPair.h.

Constructor & Destructor Documentation

◆ ColdetLinkPair() [1/2]

hrp::ColdetLinkPair::ColdetLinkPair ( Link link1,
Link link2,
double  tolerance = 0 
)

Definition at line 16 of file ColdetLinkPair.cpp.

◆ ColdetLinkPair() [2/2]

hrp::ColdetLinkPair::ColdetLinkPair ( const ColdetLinkPair org)

Definition at line 22 of file ColdetLinkPair.cpp.

◆ ~ColdetLinkPair()

hrp::ColdetLinkPair::~ColdetLinkPair ( )
virtual

Definition at line 28 of file ColdetLinkPair.cpp.

Member Function Documentation

◆ link()

hrp::Link * hrp::ColdetLinkPair::link ( int  index)

Definition at line 35 of file ColdetLinkPair.cpp.

◆ updatePositions()

void hrp::ColdetLinkPair::updatePositions ( )

Definition at line 30 of file ColdetLinkPair.cpp.

Member Data Documentation

◆ links

hrp::Link* hrp::ColdetLinkPair::links[2]
protected

Definition at line 30 of file ColdetLinkPair.h.


The documentation for this class was generated from the following files:


openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Thu Sep 8 2022 02:24:08