# Path: robot_designer_plugin/core/logfile.py
# def LogFunction(func):
#     def func_logger(self, context):
# def log_callstack(back_trace=False):
# def log_callstack_last(back_trace=False):


import os
import shutil
import numpy as np
import glob
import math
import bpy
from mathutils import Vector
from ..core.logfile import operator_logger
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program; if not, write to the Free Software Foundation,
#  Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
# ##### END GPL LICENSE BLOCK #####

# #!/usr/bin/python


# System imports

# Blender imports

# Robot Designer imports

output_folder = "output_sdf_models"
mesh_folder = "/home/hbp/Downloads/models/COLLADA"  # todo adapt paths


def create_sdf_folder(output_dir, sdf_name):
    """
    Create the folder structure which satisfied SDF specification.

    @param sdf_name : the name of the sdf package
    @param output_dir : the model output directory
    """

# Path: robot_designer_plugin/core/logfile.py
# def LogFunction(func):
#     def func_logger(self, context):
# def log_callstack(back_trace=False):
# def log_callstack_last(back_trace=False):


# Path: robot_designer_plugin/operators/dae_sdf_converter.py
import os
import shutil
import numpy as np
import glob
import math
import bpy
from mathutils import Vector
from ..core.logfile import operator_logger

#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program; if not, write to the Free Software Foundation,
#  Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
# ##### END GPL LICENSE BLOCK #####

# #!/usr/bin/python


# System imports

# Blender imports

# Robot Designer imports

output_folder = "output_sdf_models"
mesh_folder = "/home/hbp/Downloads/models/COLLADA"  # todo adapt paths


def create_sdf_folder(output_dir, sdf_name):
    """
    Create the folder structure which satisfied SDF specification.

    @param sdf_name : the name of the sdf package
    @param output_dir : the model output directory
    """

    operator_logger.info("Creating sdf folder in output dir: {}, sdf_name: {}".format(output_dir, sdf_name))