Skip to content

feat(urdf.py): show URDF object continuously#38

Open
lixinyao11 wants to merge 1 commit intommatl:masterfrom
lixinyao11:master
Open

feat(urdf.py): show URDF object continuously#38
lixinyao11 wants to merge 1 commit intommatl:masterfrom
lixinyao11:master

Conversation

@lixinyao11
Copy link
Copy Markdown

modified the show function in class URDF, enabling continuous calling robot.show()

Example:

>>> from urdfpy import URDF
>>> robot = URDF.load('tests/data/ur5/ur5.urdf')
>>> robot.show(cfg={
...  'shoulder_lift_joint': -2.0,
...     'elbow_joint': 2.0
... })
>>> robot.show(cfg={
...  'shoulder_lift_joint': 1.0,
...     'elbow_joint': 2.0
... })
>>> robot.show(cfg={
...     'elbow_joint': 2.0
... })

The visualization window will appear when show() is called for the first time. All the following calls will be showed in the same window, only updating the robot.

Signed-off-by: indigolxy <echo5548@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant