Add URDF model for table and SDF world configuration

- Created a new URDF file for the table model, including links for the table frame, wood palette, robot palette, cabinet frame, and cabinet, along with their respective visual and collision properties.
- Defined joints to connect the various components of the table model.
- Added a new SDF file for the simulation world, setting up the environment with physics properties, a ground plane, and lighting.
This commit is contained in:
Даниил Грабарь
2026-04-08 16:38:59 +10:00
parent 45e134e116
commit f474d330ad
9 changed files with 4402 additions and 21 deletions
+1 -1
View File
@@ -93,7 +93,7 @@ def _runtime_setup(context, *args, **kwargs):
# TODO: добавить аргументы для transform и rotation и передать их из setting.yaml а также мир
launch_arguments={
"robot_name": settings.robot.name,
"world": "empty.sdf",
"world": str(get_package_share_directory("iiwa_description") + "/worlds/iiwa_world.sdf"),
"gazebo_config": str(get_package_share_directory("iiwa_config") + "/config/gazebo/gz_bridge.yaml"),
"simulate": "true",
}.items(),
@@ -1,3 +1,4 @@
from ament_index_python import get_package_share_directory
from launch import LaunchDescription
from launch.actions import (
IncludeLaunchDescription,
@@ -32,6 +33,25 @@ def _spawn_setup(context, *args, **kwargs):
}.items(),
)
# Table Spawner
spawn_table = Node(
package="ros_gz_sim",
executable="create",
name="spawn_table",
output="screen",
arguments=[
"-file", str(
get_package_share_directory("iiwa_description")
+ "/urdf/table/table.urdf"
),
"-name", "iiwa_table",
"-x", "0.0",
"-y", "0.0",
"-z", "0.0",
],
)
# Robot Spawner
# TODO: добавить аргументы для transform и rotation
spawn_robot = Node(
package="ros_gz_sim",
@@ -41,7 +61,9 @@ def _spawn_setup(context, *args, **kwargs):
arguments=[
"-topic", "/robot_description",
"-name", robot_name,
"-z", "0.0"
"-x", "-0.25",
"-y", "0.0",
"-z", "0.81"
],
)
@@ -56,8 +78,13 @@ def _spawn_setup(context, *args, **kwargs):
}],
)
return [gazebo, spawn_robot, gz_bridge]
return [
gazebo,
spawn_table,
spawn_robot,
gz_bridge
]
def generate_launch_description():
return LaunchDescription([OpaqueFunction(function=_spawn_setup)])
return LaunchDescription([OpaqueFunction(function=_spawn_setup)])