Skip to content

Commit

Permalink
more launch configs
Browse files Browse the repository at this point in the history
  • Loading branch information
WouterJansen committed Jul 8, 2024
1 parent 6321a34 commit 1a28512
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions ros2/src/airsim_ros_pkgs/launch/airsim_node.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def generate_launch_description():

output = DeclareLaunchArgument(
"output",
default_value='log')
default_value='screen')

publish_clock = DeclareLaunchArgument(
"publish_clock",
Expand All @@ -30,21 +30,25 @@ def generate_launch_description():
host_port = DeclareLaunchArgument(
"host_port",
default_value='41451')

enable_api_control = DeclareLaunchArgument(
"enable_api_control",
default_value='False')

airsim_node = Node(
package='airsim_ros_pkgs',
executable='airsim_node',
name='airsim_node',
output='screen',
output=LaunchConfiguration('output'),
parameters=[{
'is_vulkan': True,
'is_vulkan': LaunchConfiguration('is_vulkan'),
'update_airsim_img_response_every_n_sec': 0.05,
'update_airsim_control_every_n_sec': 0.01,
'update_lidar_every_n_sec': 0.01,
'publish_clock': LaunchConfiguration('publish_clock'),
'host_ip': LaunchConfiguration('host_ip'),
'host_port': LaunchConfiguration('host_port'),
'enable_api_control': False
'enable_api_control': LaunchConfiguration('enable_api_control')
}])

# Create the launch description and populate
Expand All @@ -56,6 +60,7 @@ def generate_launch_description():
ld.add_action(is_vulkan)
ld.add_action(host_ip)
ld.add_action(host_port)
ld.add_action(enable_api_control)
ld.add_action(airsim_node)

return ld

0 comments on commit 1a28512

Please sign in to comment.