Skip to content

Animate URDF Robot with trajectory of end effector #153

Answered by AlexanderFabisch
Shaamsi asked this question in Q&A
Discussion options

You must be logged in to vote

If your question is about how to animate multiple "artists" in general and not about robots and lines specifically, here is an example that I am currently working with:

class AnimationCallback:  # animation callback as callable object (defines __call__ method)
    def __init__(self, fig, pipeline, show_object, show_robot):
        self.fig = fig
        self.show_object = show_object
        self.show_robot = show_robot

        ...

        if self.show_object:
            self.object_frame = pv.Frame(np.eye(4), s=0.1)
            self.object_frame.add_artist(self.fig)

        if self.show_robot:
            self.robot = pipeline.make_robot_artist()
            self.robot.add_artist(self.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@AlexanderFabisch
Comment options

@Shaamsi
Comment options

@AlexanderFabisch
Comment options

@Shaamsi
Comment options

@AlexanderFabisch
Comment options

Answer selected by AlexanderFabisch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #152 on August 05, 2021 13:56.