Removed unused modules, code cleanup
This commit is contained in:
@@ -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
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user