37 #include <pybind11/pybind11.h> 38 #include <pybind11/stl.h> 39 #include <pybind11/eigen.h> 51 m.doc() =
"contains collision detection, the world, and allowed collision matrices";
52 py::enum_<BodyType>(m,
"BodyType")
57 py::class_<Contact>(m,
"Contact")
68 py::class_<CollisionRequest>(m,
"CollisionRequest")
81 py::class_<CollisionResult>(m,
"CollisionResult")
91 py::class_<AllowedCollisionMatrix>(m,
"AllowedCollisionMatrix")
97 py::class_<World, WorldPtr>(m,
"World").def(py::init<>());
void def_collision_detection_bindings(py::module &m)
A body attached to a robot link.
ContactMap contacts
A map returning the pairs of body ids in contact, plus their contact details.
bool distance
If true, compute proximity distance.
Generic interface to collision detection.
EIGEN_MAKE_ALIGNED_OPERATOR_NEW void clear()
Clear a previously stored result.
std::size_t contact_count
Number of contacts returned.
bool collision
True if collision was found, false otherwise.
std::set< CostSource > cost_sources
These are the individual cost sources when costs are computed.
double distance
Closest distance between two bodies.
boost::function< bool(const CollisionResult &)> is_done
Function call that decides whether collision detection should stop.
std::size_t max_contacts
Overall maximum number of contacts to compute.
bool verbose
Flag indicating whether information about detected collisions should be reported. ...
std::string group_name
The group name to check collisions for (optional; if empty, assume the complete robot) ...
bool contacts
If true, compute contacts. Otherwise only a binary collision yes/no is reported.
std::size_t max_contacts_per_pair
Maximum number of contacts to compute per pair of bodies (multiple bodies may be in contact at differ...
A body in the environment.
void setEntry(const std::string &name1, const std::string &name2, bool allowed)
Set an entry corresponding to a pair of elements.
std::size_t max_cost_sources
When costs are computed, this value defines how many of the top cost sources should be returned...
bool cost
If true, a collision cost is computed.