From b9ea8f2a11cc1ca576208b19b31e1516378249cc Mon Sep 17 00:00:00 2001 From: NestorDP Date: Tue, 9 Jan 2024 17:21:53 -0300 Subject: [PATCH] Import URDF from littlebot_description package --- launch/littlebot_gazebo_ignition.launch.py | 7 +++++-- package.xml | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/launch/littlebot_gazebo_ignition.launch.py b/launch/littlebot_gazebo_ignition.launch.py index fc08685..2fccabe 100644 --- a/launch/littlebot_gazebo_ignition.launch.py +++ b/launch/littlebot_gazebo_ignition.launch.py @@ -15,6 +15,9 @@ def generate_launch_description(): littlebot_gazebo_path = os.path.join( get_package_share_directory('littlebot_gazebo')) + + littlebot_description_path = os.path.join( + get_package_share_directory('littlebot_description')) ros_gz_sim_path = os.path.join( get_package_share_directory('ros_gz_sim')) @@ -22,9 +25,9 @@ def generate_launch_description(): # World file name world_file = os.path.join(littlebot_gazebo_path, 'worlds', 'floor.sdf') - xacro_file = os.path.join(littlebot_gazebo_path, + xacro_file = os.path.join(littlebot_description_path, 'urdf', - 'littlebot.urdf.xacro') + 'littlebot_description.urdf.xacro') doc = xacro.parse(open(xacro_file)) xacro.process_doc(doc) diff --git a/package.xml b/package.xml index b3b349b..0ae6410 100644 --- a/package.xml +++ b/package.xml @@ -17,7 +17,7 @@ - + littlebot_description xacro