Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stack Of Tasks
pinocchio
Commits
10b693d3
Verified
Commit
10b693d3
authored
Aug 30, 2020
by
Justin Carpentier
Browse files
python: fix return type
parent
f2cf5aef
Pipeline
#10933
failed with stage
in 211 minutes and 8 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bindings/python/utils/std-aligned-vector.hpp
View file @
10b693d3
...
...
@@ -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
;
...
...
bindings/python/utils/std-vector.hpp
View file @
10b693d3
...
...
@@ -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."
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment