How to display text in real-time in MuJoCo

Discussion in 'Simulation' started by David Hollinger, Apr 27, 2018.

  1. Hello,

    I am trying to run a simulation where visual text appears (e.g. "correct", "incorrect") as the prosthetic hand makes contact with certain objects.

    Are there any functions in XML that can display text? I have used the MATLAB function imshow( ) but I would rather have text display be done in XML.
     
  2. Emo Todorov

    Emo Todorov Administrator Staff Member

    If you are using HAPTIX, there is a text message function in the MATLAB and C++ APIs that shows your message in large font.

    If you are using Pro, several of the mjr_XXX functions display text. See code sample simulate.cpp, it uses those functions to show text on the screen.

    It cannot be done in the XML.