Common Issues (And how to Fix Them)
General Tips and Debugging
Below we highlight a few issues that often crop up and can present problems when they are not otherwise apparent:
Visualization
When debugging, it can help to watch Monty run step-by-step. See Live Visualization with tbp.teleop for a tool that visualizes the simulator, Monty's graphs and hypotheses, and lets you interactively control the agent's actions.
Quaternions
Be aware that in Numpy, and in the saved CSV result files, quaternions follow the wxyz format, where "w" is the real component. Thus the identity rotation would be [1, 0, 0, 0]. In contrast however, Scipy.Rotation expects them to be in xyzw format. When operating with quaternions, it is therefore important to be aware of what format you should be using for the particular setting.
XYZ Conventions
Note that in MuJoCo (and therefore the Monty code-base), the "z" direction is positive in the direction coming out of the screen, while "y" is the "up" direction. "x" is positive pointing to the right, again if you are facing the screen. See our conventions page for further explanation.
Environment vs. Monty's Internal Rotation
Note that the rotation that learning modules store in their Most-Likely Hypothesis (MLH) is the rotation required to transform a feature (such as a surface normal) to match the feature on the object in the environment. As such, it is the inverse of the actual orientation of the object in the environment.
For more details, see our documentation on reference frame transformations in Monty.
Help Us Make This Page Better
All our docs are open-source. If something is wrong or unclear, submit a PR to fix it!
Updated 25 days ago

