Исправлены баги, добавлен код Object.proto, в который будут подставлятяь 3д объекты для последующего спавна

This commit is contained in:
Даниил Грабарь
2025-12-23 21:48:18 +10:00
parent 37da67abe5
commit 6acbd7ca6f
8 changed files with 74 additions and 21 deletions
@@ -21,11 +21,7 @@ def _runtime_setup(context, *args, **kwatgs):
model_path = LaunchConfiguration("model").perform(context)
robot_name = LaunchConfiguration("robot_name").perform(context)
world_path = LaunchConfiguration("world").perform(context)
rviz_status = LaunchConfiguration("rviz").perform(context).lower() in [
"true",
"1",
"yes",
]
rviz_status = LaunchConfiguration("rviz").perform(context).lower() in ["true", "1", "yes",]
transform = LaunchConfiguration("transform").perform(context)
rotation = LaunchConfiguration("rotation").perform(context)
@@ -40,7 +36,7 @@ def _runtime_setup(context, *args, **kwatgs):
executable="robot_state_publisher",
name="robot_state_publisher",
output="screen",
parameters=[{"robot_description": robot_description, "use_sim_time": False}],
parameters=[{"robot_description": robot_description, "use_sim_time": True}],
)
webots_launch = IncludeLaunchDescription(
@@ -35,7 +35,7 @@ def _spawn_setup(context, *args, **kwargs):
},
LaunchConfiguration("controller").perform(context),
],
respawn=True,
respawn=False,
)
controllers_launch = IncludeLaunchDescription(