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
1bc52ffc
Commit
1bc52ffc
authored
Jun 11, 2020
by
Julian Eßer
Browse files
[examples][reduced-model] Switch to numpy array
parent
13384976
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/build-reduced-model.py
View file @
1bc52ffc
...
...
@@ -29,8 +29,8 @@ for jn in jointsToLock:
print
(
'Warning: joint '
+
str
(
jn
)
+
' does not belong to the model!'
)
# Set initial position of both fixed and revoulte joints
initialJointConfig
=
np
.
matrix
([
0
,
0
,
0
,
# shoulder and elbow
1
,
1
,
1
])
.
T
# gripper)
initialJointConfig
=
np
.
array
([
0
,
0
,
0
,
# shoulder and elbow
1
,
1
,
1
])
# gripper)
# Option 1: Build the reduced model including the geometric model for proper displaying of the robot
robot
.
model
,
robot
.
visual_model
=
pin
.
buildReducedModel
(
robot
.
model
,
robot
.
visual_model
,
jointsToLockIDs
,
initialJointConfig
)
...
...
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