rofunc.utils.robolab.formatter.mjcf_parser.util#

Various helper functions and classes.

1.  Module Contents#

1.1.  Functions#

to_binary_string

Convert text string to binary.

to_native_string

Convert a text or binary string to the native string format.

get_mjlib

ndptr

Wraps np.ctypeslib.ndpointer to allow passing None for NULL pointers.

1.2.  Data#

ENV_MJLIB_PATH

DEFAULT_ENCODING

1.3.  API#

rofunc.utils.robolab.formatter.mjcf_parser.util.ENV_MJLIB_PATH = 'MJLIB_PATH'#
rofunc.utils.robolab.formatter.mjcf_parser.util.DEFAULT_ENCODING = None#
rofunc.utils.robolab.formatter.mjcf_parser.util.to_binary_string(s)[source]#

Convert text string to binary.

rofunc.utils.robolab.formatter.mjcf_parser.util.to_native_string(s)[source]#

Convert a text or binary string to the native string format.

rofunc.utils.robolab.formatter.mjcf_parser.util.get_mjlib()[source]#
rofunc.utils.robolab.formatter.mjcf_parser.util.ndptr(*args, **kwargs)#

Wraps np.ctypeslib.ndpointer to allow passing None for NULL pointers.