

def get_message_instance(typestring):
    ' If not loaded, loads the specified type.\n    Then returns an instance of it, or None. '
    cls = get_message_class(typestring)
    return cls()

dataset/ETHPy150Open RobotWebTools/rosbridge_suite/rosbridge_library/src/rosbridge_library/internal/ros_loader.py get_message_instance/original