2023-02-03 07:04:12 +00:00
|
|
|
from launch import LaunchDescription
|
2023-12-29 22:55:27 +03:00
|
|
|
from launch.actions import DeclareLaunchArgument
|
2023-02-03 07:04:12 +00:00
|
|
|
from launch_ros.actions import Node
|
2023-12-31 00:12:44 +03:00
|
|
|
from launch.substitutions import LaunchConfiguration, PathJoinSubstitution
|
2023-03-31 20:24:56 +00:00
|
|
|
from launch_ros.substitutions import FindPackageShare
|
2023-02-03 07:04:12 +00:00
|
|
|
|
2023-11-16 13:15:27 +03:00
|
|
|
def generate_launch_description():
|
2023-11-14 13:04:11 +03:00
|
|
|
|
2024-07-04 12:11:07 +00:00
|
|
|
executor_params = PathJoinSubstitution([FindPackageShare("rbs_bt_executor"), "config", "bt_executor.yaml"])
|
2023-12-29 22:55:27 +03:00
|
|
|
|
|
|
|
nodes_to_start = [
|
2023-02-03 07:04:12 +00:00
|
|
|
Node(
|
2024-07-04 12:11:07 +00:00
|
|
|
package='rbs_bt_executor',
|
|
|
|
executable='rbs_bt_executor',
|
2024-04-22 15:06:46 +03:00
|
|
|
# prefix=['gdbserver localhost:1234'],
|
2023-12-31 00:12:44 +03:00
|
|
|
parameters=[
|
2024-07-04 12:11:07 +00:00
|
|
|
executor_params,
|
2024-04-22 15:06:46 +03:00
|
|
|
{'use_sim_time': True}
|
|
|
|
],
|
2023-03-31 20:24:56 +00:00
|
|
|
)
|
2023-12-29 22:55:27 +03:00
|
|
|
]
|
|
|
|
|
2024-07-04 12:11:07 +00:00
|
|
|
return LaunchDescription(nodes_to_start)
|