Skip to content
GitLab
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
205abaf4
Verified
Commit
205abaf4
authored
Apr 29, 2021
by
Justin Carpentier
Browse files
python/joints: small fix
parent
0a515d49
Changes
1
Hide whitespace changes
Inline
Side-by-side
bindings/python/multibody/joint/joint-derived.hpp
View file @
205abaf4
...
...
@@ -28,19 +28,19 @@ namespace pinocchio
cl
.
def
(
bp
::
init
<>
(
bp
::
arg
(
"self"
)))
// All are add_properties cause ReadOnly
.
add_property
(
"id"
,
&
get
I
d
)
.
add_property
(
"idx_q"
,
&
get
I
dx_q
)
.
add_property
(
"idx_v"
,
&
get
I
dx_v
)
.
add_property
(
"nq"
,
&
get
N
q
)
.
add_property
(
"nv"
,
&
get
N
v
)
.
add_property
(
"id"
,
&
get
_i
d
)
.
add_property
(
"idx_q"
,
&
get
_i
dx_q
)
.
add_property
(
"idx_v"
,
&
get
_i
dx_v
)
.
add_property
(
"nq"
,
&
get
_n
q
)
.
add_property
(
"nv"
,
&
get
_n
v
)
.
def
(
"setIndexes"
,
&
JointModel
::
setIndexes
,
&
JointModel
Derived
::
setIndexes
,
bp
::
args
(
"self"
,
"id"
,
"idx_q"
,
"idx_v"
))
.
def
(
"hasSameIndexes"
,
&
JointModel
::
hasSameIndexes
,
&
JointModel
Derived
::
hasSameIndexes
,
bp
::
args
(
"self"
,
"other"
),
"Check if this has same indexes than other."
)
.
def
(
"shortname"
,
&
JointModel
::
shortname
,
bp
::
arg
(
"self"
))
.
def
(
"shortname"
,
&
JointModel
Derived
::
shortname
,
bp
::
arg
(
"self"
))
.
def
(
bp
::
self
==
bp
::
self
)
.
def
(
bp
::
self
!=
bp
::
self
)
...
...
@@ -58,9 +58,6 @@ namespace pinocchio
static
int
get_nv
(
const
JointModelDerived
&
self
)
{
return
self
.
nv
();
}
static
void
expose
()
{}
};
template
<
class
JointDataDerived
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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