Template Struct ModelPythonVisitor

Inheritance Relationships

Base Type

  • public boost::python::def_visitor< ModelPythonVisitor< Model > >

Struct Documentation

template<typename Model>
struct ModelPythonVisitor : public boost::python::def_visitor<ModelPythonVisitor<Model>>

Public Types

typedef Model::Scalar Scalar
typedef Model::Index Index
typedef Model::JointIndex JointIndex
typedef Model::FrameIndex FrameIndex
typedef Model::IndexVector IndexVector
typedef Model::SE3 SE3
typedef Model::Motion Motion
typedef Model::Force Force
typedef Model::Frame Frame
typedef Model::Inertia Inertia
typedef Model::Data Data
typedef Model::VectorXs VectorXs

Public Functions

template<class PyClass>
inline void visit(PyClass &cl) const

Public Static Functions

static inline JointIndex addJoint0(Model &model, JointIndex parent_id, const JointModel &jmodel, const SE3 &joint_placement, const std::string &joint_name)
static inline JointIndex addJoint1(Model &model, JointIndex parent_id, const JointModel &jmodel, const SE3 &joint_placement, const std::string &joint_name, const VectorXs &max_effort, const VectorXs &max_velocity, const VectorXs &min_config, const VectorXs &max_config)
static inline JointIndex addJoint2(Model &model, JointIndex parent_id, const JointModel &jmodel, const SE3 &joint_placement, const std::string &joint_name, const VectorXs &max_effort, const VectorXs &max_velocity, const VectorXs &min_config, const VectorXs &max_config, const VectorXs &friction, const VectorXs &damping)
static inline Data createData(const Model &model)
template<typename T>
static inline Index index(std::vector<T> const &x, typename std::vector<T>::value_type const &v)

Provide equivalent to python list index function for vectors.

Parameters:
  • x[in] The input vector.

  • v[in] The 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.

static inline void expose()