se3::python::ModelPythonVisitor Struct Reference

#include <python/model.hpp>

List of all members.

Classes

struct  add_body_visitor

Public Types

typedef Model::Index Index
typedef Model::JointIndex JointIndex
typedef Model::FrameIndex FrameIndex
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 Model::Index getJointId (const ModelHandler &modelPtr, const std::string &name)
static boost::shared_ptr< DatacreateData (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 JointModelVectorjoints (ModelHandler &m)
static std::vector
< Model::JointIndex > & 
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::JointIndex 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::JointIndex > & 
fix_lastMovingParent (ModelHandler &m)
static std::vector< bool > & fix_hasVisual (ModelHandler &m)
static std::vector< std::string > & fix_bodyNames (ModelHandler &m)
static Eigen::VectorXd effortLimit (ModelHandler &m)
static Eigen::VectorXd velocityLimit (ModelHandler &m)
static Eigen::VectorXd lowerPositionLimit (ModelHandler &m)
static Eigen::VectorXd upperPositionLimit (ModelHandler &m)
static Model::JointIndex getFrameParent (ModelHandler &m, const std::string &name)
static SE3 getFramePlacement (ModelHandler &m, const std::string &name)
static void addFrame (ModelHandler &m, const std::string &frameName, const JointIndex parent, const SE3_fx &placementWrtParent)
static std::vector< Frame > & operationalFrames (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 ()

Member Typedef Documentation

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

Member Function Documentation

static void se3::python::ModelPythonVisitor::addFrame ( ModelHandler m,
const std::string &  frameName,
const JointIndex  parent,
const SE3_fx placementWrtParent 
) [inline, static]

Referenced by visit().

static Model::Index se3::python::ModelPythonVisitor::addJointToModel ( ModelHandler modelPtr,
Model::JointIndex  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 Eigen::VectorXd se3::python::ModelPythonVisitor::effortLimit ( ModelHandler m) [inline, static]

Referenced by visit().

static void se3::python::ModelPythonVisitor::expose ( ) [inline, static]
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::JointIndex>& 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 Model::JointIndex se3::python::ModelPythonVisitor::getFrameParent ( ModelHandler m,
const std::string &  name 
) [inline, static]

Referenced by visit().

static SE3 se3::python::ModelPythonVisitor::getFramePlacement ( ModelHandler m,
const std::string &  name 
) [inline, static]

Referenced by visit().

static Model::Index se3::python::ModelPythonVisitor::getJointId ( 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().

template<typename T >
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.

Parameters:
[in]xThe input vector.
[in]vThe value of to look for in the vector.
Returns:
The index of the matching element of the vector. If no element is found, return the size of the vector.

References se3::Model::Index.

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 Eigen::VectorXd se3::python::ModelPythonVisitor::lowerPositionLimit ( 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<Frame>& se3::python::ModelPythonVisitor::operationalFrames ( ModelHandler m) [inline, static]

Referenced by visit().

static std::vector<Model::JointIndex>& 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().

static Eigen::VectorXd se3::python::ModelPythonVisitor::upperPositionLimit ( ModelHandler m) [inline, static]

Referenced by visit().

static Eigen::VectorXd se3::python::ModelPythonVisitor::velocityLimit ( ModelHandler m) [inline, static]

Referenced by visit().