Removed unused modules, code cleanup

This commit is contained in:
Bastian Hofmann
2022-03-19 18:26:59 +01:00
parent 0403aba97b
commit 71e384c8d7
14 changed files with 30 additions and 329 deletions

View File

@@ -7,16 +7,6 @@ from launch.launch_description_sources import PythonLaunchDescriptionSource
def generate_launch_description():
# Launch arguments
launch_args = []
launch_args.append(DeclareLaunchArgument(
name="robot_name",
default_value="iisy",
description="Set robot name."
))
# Launch Gazebo
gazebo = IncludeLaunchDescription(
PythonLaunchDescriptionSource(
@@ -37,13 +27,12 @@ def generate_launch_description():
executable="spawn_entity.py",
arguments=[
"-topic", "robot_description",
"-entity", LaunchConfiguration("robot_name")
"-entity", "iisy"
],
output="screen"
)
return LaunchDescription(
launch_args + [
gazebo,
spawn_entity
return LaunchDescription([
gazebo,
spawn_entity
])