Verified Commit 10b693d3 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

python: fix return type

parent f2cf5aef
Pipeline #10933 failed with stage
in 211 minutes and 8 seconds
......@@ -35,8 +35,8 @@ namespace pinocchio
typedef container::aligned_vector<T> vector_type;
typedef StdContainerFromPythonList<vector_type> FromPythonListConverter;
static bp::class_<vector_type> expose(const std::string & class_name,
const std::string & doc_string = "")
static ::boost::python::class_<vector_type> expose(const std::string & class_name,
const std::string & doc_string = "")
{
namespace bp = boost::python;
......
......@@ -174,13 +174,13 @@ namespace pinocchio
typedef std::vector<T,Allocator> vector_type;
typedef StdContainerFromPythonList<vector_type> FromPythonListConverter;
static bp::class_<vector_type> expose(const std::string & class_name,
const std::string & doc_string = "")
static ::boost::python::class_<vector_type> expose(const std::string & class_name,
const std::string & doc_string = "")
{
namespace bp = boost::python;
bp::class_<vector_type> cl(class_name.c_str(),doc_string.c_str());
cl.
cl
.def(StdVectorPythonVisitor())
.def("tolist",&FromPythonListConverter::tolist,bp::arg("self"),
"Returns the std::vector as a Python list.")
......
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