Skip to content

Commit

Permalink
Import URDF from littlebot_description package
Browse files Browse the repository at this point in the history
  • Loading branch information
NestorDP committed Jan 9, 2024
1 parent d38963e commit b9ea8f2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions launch/littlebot_gazebo_ignition.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,19 @@ 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'))

# 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)
Expand Down
2 changes: 1 addition & 1 deletion package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<!-- <exec_depend>gazebo_ros2_control</exec_depend> -->
<!-- <exec_depend>gazebo_ros_pkgs</exec_depend> -->
<!-- <exec_depend>littlebot_control</exec_depend> -->
<!-- <exec_depend>littlebot_description</exec_depend> -->
<exec_depend>littlebot_description</exec_depend>
<exec_depend>xacro</exec_depend>

<!-- ros ignition fortress dependencies -->
Expand Down

0 comments on commit b9ea8f2

Please sign in to comment.