Go to the documentation of this file.
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")
64 .def_property_readonly(
"nearest_points",
74 py::class_<CollisionRequest>(m,
"CollisionRequest")
87 py::class_<CollisionResult>(m,
"CollisionResult")
97 py::class_<AllowedCollisionMatrix>(m,
"AllowedCollisionMatrix")
103 py::class_<World, WorldPtr>(m,
"World").def(py::init<>());
bool cost
If true, a collision cost is computed.
@ WORLD_OBJECT
A body in the environment.
boost::function< bool(const CollisionResult &)> is_done
Function call that decides whether collision detection should stop.
bool distance
If true, compute proximity distance.
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)
@ ROBOT_ATTACHED
A body attached to a robot link.
@ ROBOT_LINK
A link on the robot.
ContactMap contacts
A map returning the pairs of body ids in contact, plus their contact details.
void def_collision_detection_bindings(py::module &m)
bool contacts
If true, compute contacts. Otherwise only a binary collision yes/no is reported.
std::size_t max_cost_sources
When costs are computed, this value defines how many of the top cost sources should be 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.
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...
EIGEN_MAKE_ALIGNED_OPERATOR_NEW void clear()
Clear a previously stored result.
std::size_t contact_count
Number of contacts returned.
double distance
Closest distance between two bodies.
void setEntry(const std::string &name1, const std::string &name2, bool allowed)
Set an entry corresponding to a pair of elements.
moveit_core
Author(s): Ioan Sucan
, Sachin Chitta , Acorn Pooley
autogenerated on Thu Nov 21 2024 03:23:41