Skip to content
Discussion options

You must be logged in to vote
  1. You are correct, we can visualise the perturbation forces. If you edit your code as follows, you can see the d.xfrc_applied forces:
        with mujoco.viewer.launch_passive(self.model, self.data) as viewer:
            with viewer.lock():
                viewer.opt.flags[mujoco.mjtVisFlag.mjVIS_TRANSPARENT] = True
                viewer.opt.flags[mujoco.mjtVisFlag.mjVIS_PERTFORCE] = True

I think this is not the way to go while using the passive viewer:

mujoco.mjv_defaultOption(self.options)
        self.options.flags[mujoco.mjtVisFlag.mjVIS_CONTACTPOINT] = True
        self.options.flags[mujoco.mjtVisFlag.mjVIS_CONTACTFORCE] = True
        self.options.flags[mujoco.mjtVisFlag.mjVIS_TR…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@Kelly-234
Comment options

Comment options

You must be logged in to vote
1 reply
@Kelly-234
Comment options

Answer selected by Kelly-234
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants