rtc
CollisionDetector
VclipLinkPair.h
Go to the documentation of this file.
1
#include <
hrpModel/Link.h
>
2
#include "
vclip_1.0/include/vclip.h
"
3
4
class
VclipLinkPair
:
public
hrp::Referenced
{
5
public
:
6
VclipLinkPair
(
hrp::Link
* link0,
Vclip::Polyhedron
* pqp_model0,
hrp::Link
* link1,
Vclip::Polyhedron
* pqp_model1,
double
tolerance=0);
7
~VclipLinkPair
();
8
bool
checkCollision
();
9
double
computeDistance
(
double
*q1,
double
*q2);
10
hrp::Link
*
link
(
int
index) {
return
links_
[index]; }
11
double
getTolerance
() {
return
tolerance_
; }
12
void
setTolerance
(
double
t) {
tolerance_
= t; }
13
14
private
:
15
hrp::Link
*
links_
[2];
16
Vclip::Polyhedron
*
Vclip_Model1
, *
Vclip_Model2
;
17
Vclip::FeaturePair
Feature_Pair
;
18
double
tolerance_
;
19
};
20
21
typedef
boost::intrusive_ptr<VclipLinkPair>
VclipLinkPairPtr
;
22
VclipLinkPairPtr
boost::intrusive_ptr< VclipLinkPair > VclipLinkPairPtr
Definition:
VclipLinkPair.h:21
VclipLinkPair::links_
hrp::Link * links_[2]
Definition:
VclipLinkPair.h:15
VclipLinkPair
Definition:
VclipLinkPair.h:4
vclip.h
VclipLinkPair::Vclip_Model2
Vclip::Polyhedron * Vclip_Model2
Definition:
VclipLinkPair.h:16
VclipLinkPair::computeDistance
double computeDistance(double *q1, double *q2)
Definition:
VclipLinkPair.cpp:27
VclipLinkPair::setTolerance
void setTolerance(double t)
Definition:
VclipLinkPair.h:12
VclipLinkPair::VclipLinkPair
VclipLinkPair(hrp::Link *link0, Vclip::Polyhedron *pqp_model0, hrp::Link *link1, Vclip::Polyhedron *pqp_model1, double tolerance=0)
Definition:
VclipLinkPair.cpp:3
hrp::Link
VclipLinkPair::link
hrp::Link * link(int index)
Definition:
VclipLinkPair.h:10
VclipLinkPair::getTolerance
double getTolerance()
Definition:
VclipLinkPair.h:11
Vclip::FeaturePair
Definition:
vclip.h:259
VclipLinkPair::~VclipLinkPair
~VclipLinkPair()
Definition:
VclipLinkPair.cpp:13
VclipLinkPair::Feature_Pair
Vclip::FeaturePair Feature_Pair
Definition:
VclipLinkPair.h:17
hrp::Referenced
VclipLinkPair::Vclip_Model1
Vclip::Polyhedron * Vclip_Model1
Definition:
VclipLinkPair.h:16
VclipLinkPair::tolerance_
double tolerance_
Definition:
VclipLinkPair.h:18
Vclip::Polyhedron
Definition:
vclip.h:355
Link.h
VclipLinkPair::checkCollision
bool checkCollision()
Definition:
VclipLinkPair.cpp:17
hrpsys
Author(s): AIST, Fumio Kanehiro
autogenerated on Sat Dec 17 2022 03:52:21