Skip to content

Commit

Permalink
Changed path to use the package's share directory
Browse files Browse the repository at this point in the history
Signed-off-by: JesusSilvaUtrera <[email protected]>
  • Loading branch information
JesusSilvaUtrera committed May 14, 2024
1 parent 9e1ca17 commit 7aa3d65
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion andino_description/test/test_xacro_processing.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import os
import pytest
import xacro
from ament_index_python.packages import get_package_share_directory

andino_description_pkg = get_package_share_directory("andino_description")

def test_xacro_processing():
# Get the file path
xacro_file_path = os.path.join(os.path.dirname(__file__), '..', 'urdf', 'andino.urdf.xacro')
xacro_file_path = os.path.join(andino_description_pkg, 'urdf', 'andino.urdf.xacro')

# Test xacro processing
try:
Expand Down

0 comments on commit 7aa3d65

Please sign in to comment.