#include <python/model.hpp>
Classes | |
struct | add_body_visitor |
Public Types | |
typedef Model::Index | Index |
typedef eigenpy::UnalignedEquivalent < Motion >::type | Motion_fx |
typedef eigenpy::UnalignedEquivalent < SE3 >::type | SE3_fx |
typedef eigenpy::UnalignedEquivalent < Inertia >::type | Inertia_fx |
Public Member Functions | |
template<class PyClass > | |
void | visit (PyClass &cl) const |
Static Public Member Functions | |
static PyObject * | convert (ModelHandler::SmartPtr_t const &ptr) |
static Model::Index | getBodyId (const ModelHandler &modelPtr, const std::string &name) |
static boost::shared_ptr< Data > | createData (const ModelHandler &m) |
static int | nq (ModelHandler &m) |
static int | nv (ModelHandler &m) |
static int | nbody (ModelHandler &m) |
static std::vector< Inertia > & | inertias (ModelHandler &m) |
static std::vector< SE3 > & | jointPlacements (ModelHandler &m) |
static JointModelVector & | joints (ModelHandler &m) |
static std::vector < Model::Index > & | parents (ModelHandler &m) |
static std::vector< std::string > & | names (ModelHandler &m) |
static std::vector< std::string > & | bodyNames (ModelHandler &m) |
static std::vector< bool > & | hasVisual (ModelHandler &m) |
static Model::Index | addJointToModel (ModelHandler &modelPtr, Model::Index idx, bp::object joint, const SE3_fx &placement, const Inertia_fx &Y, const std::string &jointName, const std::string &bodyName, bool visual=false) |
static int | nFixBody (ModelHandler &m) |
static std::vector< SE3 > & | fix_lmpMi (ModelHandler &m) |
static std::vector < Model::Index > & | fix_lastMovingParent (ModelHandler &m) |
static std::vector< bool > & | fix_hasVisual (ModelHandler &m) |
static std::vector< std::string > & | fix_bodyNames (ModelHandler &m) |
static Motion | gravity (ModelHandler &m) |
static void | setGravity (ModelHandler &m, const Motion_fx &g) |
static ModelHandler | maker_empty () |
static ModelHandler | maker_humanoidSimple () |
static std::string | toString (const ModelHandler &m) |
template<typename T > | |
static Model::Index | index (std::vector< T > const &x, typename std::vector< T >::value_type const &v) |
Provide equivalent to python list index function for vectors. | |
static void | expose () |
typedef eigenpy::UnalignedEquivalent<Inertia>::type se3::python::ModelPythonVisitor::Inertia_fx |
typedef eigenpy::UnalignedEquivalent<Motion>::type se3::python::ModelPythonVisitor::Motion_fx |
typedef eigenpy::UnalignedEquivalent<SE3>::type se3::python::ModelPythonVisitor::SE3_fx |
static Model::Index se3::python::ModelPythonVisitor::addJointToModel | ( | ModelHandler & | modelPtr, |
Model::Index | idx, | ||
bp::object | joint, | ||
const SE3_fx & | placement, | ||
const Inertia_fx & | Y, | ||
const std::string & | jointName, | ||
const std::string & | bodyName, | ||
bool | visual = false |
||
) | [inline, static] |
Referenced by visit().
static std::vector<std::string>& se3::python::ModelPythonVisitor::bodyNames | ( | ModelHandler & | m | ) | [inline, static] |
Referenced by visit().
static PyObject* se3::python::ModelPythonVisitor::convert | ( | ModelHandler::SmartPtr_t const & | ptr | ) | [inline, static] |
static boost::shared_ptr<Data> se3::python::ModelPythonVisitor::createData | ( | const ModelHandler & | m | ) | [inline, static] |
Referenced by visit().
static void se3::python::ModelPythonVisitor::expose | ( | ) | [inline, static] |
Referenced by se3::python::exposeModel().
static std::vector<std::string>& se3::python::ModelPythonVisitor::fix_bodyNames | ( | ModelHandler & | m | ) | [inline, static] |
Referenced by visit().
static std::vector<bool>& se3::python::ModelPythonVisitor::fix_hasVisual | ( | ModelHandler & | m | ) | [inline, static] |
Referenced by visit().
static std::vector<Model::Index>& se3::python::ModelPythonVisitor::fix_lastMovingParent | ( | ModelHandler & | m | ) | [inline, static] |
Referenced by visit().
static std::vector<SE3>& se3::python::ModelPythonVisitor::fix_lmpMi | ( | ModelHandler & | m | ) | [inline, static] |
Referenced by visit().
static Model::Index se3::python::ModelPythonVisitor::getBodyId | ( | const ModelHandler & | modelPtr, |
const std::string & | name | ||
) | [inline, static] |
Referenced by visit().
static Motion se3::python::ModelPythonVisitor::gravity | ( | ModelHandler & | m | ) | [inline, static] |
Referenced by visit().
static std::vector<bool>& se3::python::ModelPythonVisitor::hasVisual | ( | ModelHandler & | m | ) | [inline, static] |
Referenced by visit().
static Model::Index se3::python::ModelPythonVisitor::index | ( | std::vector< T > const & | x, |
typename std::vector< T >::value_type const & | v | ||
) | [inline, static] |
Provide equivalent to python list index function for vectors.
[in] | x | The input vector. |
[in] | v | The value of to look for in the vector. |
static std::vector<Inertia>& se3::python::ModelPythonVisitor::inertias | ( | ModelHandler & | m | ) | [inline, static] |
Referenced by visit().
static std::vector<SE3>& se3::python::ModelPythonVisitor::jointPlacements | ( | ModelHandler & | m | ) | [inline, static] |
Referenced by visit().
static JointModelVector& se3::python::ModelPythonVisitor::joints | ( | ModelHandler & | m | ) | [inline, static] |
Referenced by visit().
static ModelHandler se3::python::ModelPythonVisitor::maker_empty | ( | ) | [inline, static] |
Referenced by visit().
static ModelHandler se3::python::ModelPythonVisitor::maker_humanoidSimple | ( | ) | [inline, static] |
References se3::buildModels::humanoidSimple().
Referenced by visit().
static std::vector<std::string>& se3::python::ModelPythonVisitor::names | ( | ModelHandler & | m | ) | [inline, static] |
Referenced by visit().
static int se3::python::ModelPythonVisitor::nbody | ( | ModelHandler & | m | ) | [inline, static] |
Referenced by visit().
static int se3::python::ModelPythonVisitor::nFixBody | ( | ModelHandler & | m | ) | [inline, static] |
Referenced by visit().
static int se3::python::ModelPythonVisitor::nq | ( | ModelHandler & | m | ) | [inline, static] |
Referenced by visit().
static int se3::python::ModelPythonVisitor::nv | ( | ModelHandler & | m | ) | [inline, static] |
Referenced by visit().
static std::vector<Model::Index>& se3::python::ModelPythonVisitor::parents | ( | ModelHandler & | m | ) | [inline, static] |
Referenced by visit().
static void se3::python::ModelPythonVisitor::setGravity | ( | ModelHandler & | m, |
const Motion_fx & | g | ||
) | [inline, static] |
Referenced by visit().
static std::string se3::python::ModelPythonVisitor::toString | ( | const ModelHandler & | m | ) | [inline, static] |
Referenced by visit().
void se3::python::ModelPythonVisitor::visit | ( | PyClass & | cl | ) | const [inline] |
References addJointToModel(), bodyNames(), createData(), fix_bodyNames(), fix_hasVisual(), fix_lastMovingParent(), fix_lmpMi(), getBodyId(), gravity(), hasVisual(), inertias(), jointPlacements(), joints(), maker_empty(), maker_humanoidSimple(), names(), nbody(), nFixBody(), nq(), nv(), parents(), setGravity(), and toString().