FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
robotics-toolbox-python/examples/plot.py at patch-1 · fabaff/robotics-toolbox-python · GitHub
fabaff
/
robotics-toolbox-python
Public
forked from
petercorke/robotics-toolbox-python
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
robotics-toolbox-python
/
examples
/
plot.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
20 lines (15 loc) · 502 Bytes
Breadcrumbs
robotics-toolbox-python
/
examples
/
plot.py
Copy path
File metadata and controls
20 lines (15 loc) · 502 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env python
"""
@author Jesse Haviland
"""
import
roboticstoolbox
as
rp
import
numpy
as
np
# Make a panda robot
panda
=
rp
.
models
.
DH
.
Panda
()
# Init joint to the 'ready' joint angles
panda
.
q
=
panda
.
qr
# Make 100 random sets of joint angles
q
=
np
.
random
.
rand
(
100
,
7
)
# Plot the joint trajectory with a 50ms delay between configurations
panda
.
plot
(
q
=
q
,
backend
=
"pyplot"
,
dt
=
0.050
,
vellipse
=
True
,
fellipse
=
True
)
# panda.plot(q=q, backend='swift', dt=0.050, vellipse=False, fellipse=False)
Back
|
FazBrowse Home
|
New Git URL