Skip to content

Conversation

@lixinyao11
Copy link

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