Skip to content

How to add Triad/Axes to the MeshcatVisualizer #2010

Discussion options

You must be logged in to vote

But if I do it with meshcat, I will need to update the triad pose everytime "manullay".

That's how it's done indeed, for instance in these IK examples:

    viewer = viz.viewer
    meshcat_shapes.frame(viewer["base"], opacity=1.0)
    meshcat_shapes.frame(viewer["base_target"], opacity=0.5)

    while True:
        [...]
        # Update visualization frames
        viewer["base_target"].set_transform(base_target.np)
        viewer["base"].set_transform(
            configuration.get_transform_frame_to_world(base_task.body).np
        )
        [...]
        viz.display(q)
        t += dt

The frame() function reduces a tad the boilerplate for adding the triad, but I also feel this can be…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by joao-pm-santos96
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants