From 91ff3265d24ddf0835e87f3f7d12f06ffdfc6f39 Mon Sep 17 00:00:00 2001 From: YuxuanLiuTier4Desktop <619684051@qq.com> Date: Fri, 27 Dec 2024 08:55:58 +0900 Subject: [PATCH] unify the name in aip_urdf_compiler to be URDF compile Signed-off-by: YuxuanLiuTier4Desktop <619684051@qq.com> --- aip_urdf_compiler/cmake/aip_cmake_urdf_compile.cmake | 2 +- aip_urdf_compiler/readme.md | 4 ++-- .../scripts/{compile_xacro.py => compile_urdf.py} | 0 aip_urdf_compiler/tests/{xacro_diff.py => urdf_diff.py} | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename aip_urdf_compiler/scripts/{compile_xacro.py => compile_urdf.py} (100%) rename aip_urdf_compiler/tests/{xacro_diff.py => urdf_diff.py} (99%) diff --git a/aip_urdf_compiler/cmake/aip_cmake_urdf_compile.cmake b/aip_urdf_compiler/cmake/aip_cmake_urdf_compile.cmake index 70c13c47..aed90ac8 100644 --- a/aip_urdf_compiler/cmake/aip_cmake_urdf_compile.cmake +++ b/aip_urdf_compiler/cmake/aip_cmake_urdf_compile.cmake @@ -5,7 +5,7 @@ macro(aip_cmake_urdf_compile) # Set the correct paths find_package(PythonInterp REQUIRED) # cspell: ignore Interp set(aip_urdf_compiler_BASE_DIR "${aip_urdf_compiler_DIR}/../") - set(PYTHON_SCRIPT "${aip_urdf_compiler_BASE_DIR}/scripts/compile_xacro.py") + set(PYTHON_SCRIPT "${aip_urdf_compiler_BASE_DIR}/scripts/compile_urdf.py") set(PYTHON_TEMPLATE_DIRECTORY "${aip_urdf_compiler_BASE_DIR}/templates") set(PYTHON_CALIBRATION_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/config") set(PYTHON_XACRO_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/urdf") diff --git a/aip_urdf_compiler/readme.md b/aip_urdf_compiler/readme.md index 02278575..71b0a887 100644 --- a/aip_urdf_compiler/readme.md +++ b/aip_urdf_compiler/readme.md @@ -78,7 +78,7 @@ class LinkType(enum.Enum): - Creates build targets - Ensures URDF regeneration on each build -3. **compile_xacro.py** +3. **compile_urdf.py** - Configuration parser - Transform processor - URDF generator @@ -105,7 +105,7 @@ class LinkType(enum.Enum): ## Adding New Sensors -1. Add sensor descriptions (xacro files) in either: +1. Add sensor descriptions (xacro module files) in either: - Your target package - `common_sensor_description` package diff --git a/aip_urdf_compiler/scripts/compile_xacro.py b/aip_urdf_compiler/scripts/compile_urdf.py similarity index 100% rename from aip_urdf_compiler/scripts/compile_xacro.py rename to aip_urdf_compiler/scripts/compile_urdf.py diff --git a/aip_urdf_compiler/tests/xacro_diff.py b/aip_urdf_compiler/tests/urdf_diff.py similarity index 99% rename from aip_urdf_compiler/tests/xacro_diff.py rename to aip_urdf_compiler/tests/urdf_diff.py index 8dd92a34..ead01163 100644 --- a/aip_urdf_compiler/tests/xacro_diff.py +++ b/aip_urdf_compiler/tests/urdf_diff.py @@ -1,6 +1,6 @@ #!/usr/bin/python3 """ -XML/Xacro Difference Analyzer. +URDF Model Difference Analyzer. This script analyzes and compares two XML/Xacro files, specifically designed for ROS URDF/Xacro files containing sensor configurations. It identifies and reports differences in included files, sensor configurations,