book/index.html: hello.xml is missing joint name

Discussion in 'Bug Reports' started by tor, Apr 6, 2018.

  1. tor

    tor

    hello.xml is missing joint name;
    (in http://www.mujoco.org/book/index.html accessed Apr 6, 2018)

    With mjpro150 linux, it gives:
    terminate called after throwing an instance of 'std::logic_error'
    what(): basic_string::_M_construct null not valid
    Aborted (core dumped)

    Below fixed the problem:
    <joint name="jointname" type="free"/>
     
  2. Emo Todorov

    Emo Todorov Administrator Staff Member

    Strange, I just tested it on both Ubuntu 17l.10 and Windows 10 and did not get any such error. Element names in MuJoCo are required only when the element is referenced by name from elsewhere in the XML.

    I wonder if you are somehow using an incompatible C++ shared library... presumably it will not load if that was the case, but I cannot think of any other reason.