Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
robotran
mbsysc
Commits
4d90ca3f
Commit
4d90ca3f
authored
Dec 10, 2019
by
Olivier Lantsoght
Browse files
[Ctypes] Issue #177, (13) Lambda are retrieved
parent
1174e5d3
Changes
2
Hide whitespace changes
Inline
Side-by-side
MBsysC/mbs_interface/MBsysPy/mbsyspy/mbs_dirdyn.py
View file @
4d90ca3f
...
...
@@ -466,6 +466,10 @@ class MbsDirdyn(object):
if
self
.
mbs
.
nqc
:
size2
=
self
.
mbs_dirdyn_ptr
.
contents
.
buffers
[
buffer_id
].
contents
.
nx
+
1
self
.
results
.
Qc
=
np
.
copy
(
np
.
ctypeslib
.
as_array
(
self
.
mbs_dirdyn_ptr
.
contents
.
buffers
[
buffer_id
].
contents
.
tx
,(
size1
,
size2
)))
buffer_id
=
buffer_id
+
1
if
self
.
mbs
.
nhu
:
size2
=
self
.
mbs_dirdyn_ptr
.
contents
.
buffers
[
buffer_id
].
contents
.
nx
+
1
self
.
results
.
Lambda
=
np
.
copy
(
np
.
ctypeslib
.
as_array
(
self
.
mbs_dirdyn_ptr
.
contents
.
buffers
[
buffer_id
].
contents
.
tx
,(
size1
,
size2
)))
if
self
.
mbs_dirdyn_ptr
.
contents
.
user_buffer
.
contents
.
nx
:
size
=
self
.
mbs_dirdyn_ptr
.
contents
.
user_buffer
.
contents
.
index
...
...
MBsysC/mbs_interface/MBsysPy/mbsyspy/mbs_invdyn.py
View file @
4d90ca3f
...
...
@@ -415,6 +415,10 @@ class MbsInvdyn(object):
if
self
.
mbs
.
nqc
:
size2
=
self
.
mbs_invdyn_ptr
.
contents
.
buffers
[
buffer_id
].
contents
.
nx
+
1
self
.
results
.
Qc
=
np
.
copy
(
np
.
ctypeslib
.
as_array
(
self
.
mbs_invdyn_ptr
.
contents
.
buffers
[
buffer_id
].
contents
.
tx
,(
size1
,
size2
)))
buffer_id
=
buffer_id
+
1
if
self
.
mbs
.
nhu
:
size2
=
self
.
mbs_dirdyn_ptr
.
contents
.
buffers
[
buffer_id
].
contents
.
nx
+
1
self
.
results
.
Lambda
=
np
.
copy
(
np
.
ctypeslib
.
as_array
(
self
.
mbs_dirdyn_ptr
.
contents
.
buffers
[
buffer_id
].
contents
.
tx
,(
size1
,
size2
)))
if
self
.
mbs_invdyn_ptr
.
contents
.
user_buffer
.
contents
.
nx
:
size
=
self
.
mbs_invdyn_ptr
.
contents
.
user_buffer
.
contents
.
index
...
...
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