6 boost::python::list retval;
8 return boost::python::incref(retval.ptr());
13 if (PySequence_Size(v) != 3)
return;
21 boost::python::list retval;
24 return boost::python::incref(retval.ptr());
29 int n = PySequence_Size(v);
35 for (
int i=0;
i<3;
i++) {
36 axis(
i) = boost::python::extract<double>(PySequence_GetItem(v,
i));
38 double angle = boost::python::extract<double>(PySequence_GetItem(v, 3));
52 boost::python::list retval;
54 return boost::python::incref(retval.ptr());
59 if (PySequence_Size(v) != 4)
return;
61 for (
int i=0;
i<PySequence_Size(v);
i++) {
62 m_diffuse[
i] = boost::python::extract<double>(PySequence_GetItem(v,
i));
static void Matrix33ToPyList(const hrp::Matrix33 &M, boost::python::list &l)
void setRelPosition(PyObject *v)
void setRelRotation(PyObject *v)
HRP_UTIL_EXPORT void calcRotFromRpy(Matrix33 &out_R, double r, double p, double y)
GLshape * createPyShape()
hrp::Matrix33 getRotation()
void setRotation(double r, double p, double y)
hrp::Vector3 getPosition()
PyObject * getRelRotation()
static void PyListToMatrix33(PyObject *pyo, hrp::Matrix33 &M)
void setPosition(double x, double y, double z)
PyObject * getRelPosition()
HRP_UTIL_EXPORT void calcRodrigues(Matrix44 &out_R, const Vector3 &axis, double q)
void VectorToPyList(const T &v, boost::python::list &l)
void setDiffuseColor(PyObject *v)
PyObject * getDiffuseColor()
void PyListToVector(PyObject *pyo, T &v)