rofunc.utils.robolab.formatter.mjcf_parser.code_for_debugging_test#

Constructs models for debugging_test.py.

The purpose of this file is to provide “golden” source line numbers for test cases in debugging_test.py. When this module is loaded, it inspects its own source code to look for lines that begin with # !!LINE_REF, and stores the following line number in a dict. This allows test cases to look up the line number by name, rather than brittly hard-coding in the line number.

1.  Module Contents#

1.1.  Functions#

make_valid_model

make_broken_model

break_valid_model

1.2.  Data#

SourceLine

LINE_REF

1.3.  API#

rofunc.utils.robolab.formatter.mjcf_parser.code_for_debugging_test.SourceLine = None#
rofunc.utils.robolab.formatter.mjcf_parser.code_for_debugging_test.LINE_REF = None#
rofunc.utils.robolab.formatter.mjcf_parser.code_for_debugging_test.make_valid_model()[source]#
rofunc.utils.robolab.formatter.mjcf_parser.code_for_debugging_test.make_broken_model()[source]#
rofunc.utils.robolab.formatter.mjcf_parser.code_for_debugging_test.break_valid_model(mjcf_model)[source]#