flatland_launch.py
Go to the documentation of this file.
1 # Copyright 2023 Ekumen, Inc.
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14 
15 from pathlib import Path
16 
17 from ament_index_python.packages import get_package_share_directory
18 
19 from launch import LaunchDescription
20 from launch.actions import GroupAction
21 from launch_ros.actions import Node
22 
23 
25  example_dir = Path(get_package_share_directory('beluga_example'))
26 
27  load_nodes = GroupAction(
28  actions=[
29  Node(
30  package='flatland_server',
31  executable='flatland_server',
32  output='screen',
33  parameters=[
34  {
35  'world_path': str(
36  example_dir / 'worlds' / 'turtlebot3_world.yaml'
37  )
38  },
39  {'update_rate': 200.0},
40  {'step_size': 0.005},
41  {'show_viz': False},
42  {'viz_pub_rate': 30.0},
43  {'use_sim_time': True},
44  ],
45  remappings=[('/turtlebot/scan', '/scan')],
46  ),
47  ]
48  )
49 
50  return LaunchDescription([load_nodes])
flatland_launch.generate_launch_description
def generate_launch_description()
Definition: flatland_launch.py:24


beluga_example
Author(s):
autogenerated on Tue Jul 16 2024 03:00:09