update launch file
This commit is contained in:
@@ -23,6 +23,7 @@ def _runtime_setup(context, *args, **kwargs):
|
|||||||
|
|
||||||
# Настройка параметров
|
# Настройка параметров
|
||||||
simulate = LaunchConfiguration("simulate").perform(context) in ("true", "1", "yes")
|
simulate = LaunchConfiguration("simulate").perform(context) in ("true", "1", "yes")
|
||||||
|
foxglove = LaunchConfiguration("foxglove").perform(context) in ("true", "1", "yes")
|
||||||
|
|
||||||
settings = setting_loader.build_settings(
|
settings = setting_loader.build_settings(
|
||||||
settings_path=LaunchConfiguration("setting").perform(context),
|
settings_path=LaunchConfiguration("setting").perform(context),
|
||||||
@@ -200,6 +201,20 @@ def _runtime_setup(context, *args, **kwargs):
|
|||||||
shutdown_on_rviz_exit
|
shutdown_on_rviz_exit
|
||||||
]
|
]
|
||||||
|
|
||||||
|
if foxglove:
|
||||||
|
pass
|
||||||
|
|
||||||
|
# PythonLaunchDescriptionSource(
|
||||||
|
# PathJoinSubstitution(
|
||||||
|
# [
|
||||||
|
# FindPackageShare("iiwa_bringup"),
|
||||||
|
# "launch",
|
||||||
|
# "supported",
|
||||||
|
# "controllers.launch.py",
|
||||||
|
# ]
|
||||||
|
# )
|
||||||
|
# ),
|
||||||
|
|
||||||
return setup
|
return setup
|
||||||
|
|
||||||
def generate_launch_description():
|
def generate_launch_description():
|
||||||
@@ -223,12 +238,19 @@ def generate_launch_description():
|
|||||||
description="Путь к файлу настроек",
|
description="Путь к файлу настроек",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
declare_foxglove = DeclareLaunchArgument(
|
||||||
|
name="foxglove",
|
||||||
|
default_value="false",
|
||||||
|
description="true = запустить foxglove стриминг"
|
||||||
|
)
|
||||||
|
|
||||||
runtime_setup = OpaqueFunction(function=_runtime_setup)
|
runtime_setup = OpaqueFunction(function=_runtime_setup)
|
||||||
|
|
||||||
return LaunchDescription([
|
return LaunchDescription([
|
||||||
declare_simulate,
|
declare_simulate,
|
||||||
declare_rviz,
|
declare_rviz,
|
||||||
declare_setting,
|
declare_setting,
|
||||||
|
declare_foxglove,
|
||||||
runtime_setup,
|
runtime_setup,
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user