Unverified Commit f7f0dda2 authored by Fernbach Pierre's avatar Fernbach Pierre Committed by GitHub
Browse files

Merge pull request #11 from pFernbach/topic/contact_model

Improve ContactModel
parents 73409534 aa9ad648
......@@ -2,12 +2,12 @@
// Authors: Justin Carpentier <jcarpent@laas.fr>
#include "multicontact-api/bindings/python/scenario/expose-scenario.hpp"
#include "multicontact-api/bindings/python/scenario/contact-model-planar.hpp"
#include "multicontact-api/bindings/python/scenario/contact-model.hpp"
namespace multicontact_api {
namespace python {
void exposeContactModels() {
ContactModelPlanarPythonVisitor<multicontact_api::scenario::ContactModelPlanar>::expose("ContactModelPlanar");
ContactModelPythonVisitor<multicontact_api::scenario::ContactModel>::expose("ContactModel");
}
} // namespace python
} // namespace multicontact_api
......@@ -19,6 +19,16 @@ void exposeEnumConicType() {
.value("CONIC_UNDEFINED", CONIC_UNDEFINED);
}
void exposeScenarioEnums() { exposeEnumConicType(); }
void exposeEnumContactType() {
bp::enum_<ContactType>("ContactType")
.value("CONTACT_UNDEFINED", CONTACT_UNDEFINED)
.value("CONTACT_PLANAR", CONTACT_PLANAR)
.value("CONTACT_POINT", CONTACT_POINT);
}
void exposeScenarioEnums() {
exposeEnumConicType();
exposeEnumContactType();
}
} // namespace python
} // namespace multicontact_api
No preview for this file type
No preview for this file type
No preview for this file type
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment