Skip to content

Commit

Permalink
Feature/freya launch file (#120)
Browse files Browse the repository at this point in the history
* Made a launch file that includes thruster_interface and thruster_allocator

* cleanup

---------

Co-authored-by: Aldokan <[email protected]>
  • Loading branch information
Aldokan and Aldokan authored Jan 12, 2024
1 parent ad6e143 commit a8d74ca
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions asv_setup/launch/freya.launch.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import os
from launch import LaunchDescription
from launch.actions import IncludeLaunchDescription
from launch.actions import SetEnvironmentVariable, IncludeLaunchDescription
from launch.launch_description_sources import PythonLaunchDescriptionSource
from ament_index_python.packages import get_package_share_directory

def generate_launch_description():
# Set environment variable
set_env_var = SetEnvironmentVariable(
name='ROSCONSOLE_FORMAT',
value='[${severity}] [${time}] [${node}]: ${message}'
)


# Thruster Allocator launch
thruster_allocator_launch = IncludeLaunchDescription(
PythonLaunchDescriptionSource(
os.path.join(get_package_share_directory('thruster_allocator'), 'launch/thruster_allocator.launch.py')
)
)

#Thruster Interface launch
thruster_interface_launch = IncludeLaunchDescription(
PythonLaunchDescriptionSource(
os.path.join(get_package_share_directory('thruster_interface'), 'launch/thruster_interface.launch.py')
)
)

# Return launch description
return LaunchDescription([
set_env_var,
thruster_allocator_launch,
thruster_interface_launch
])

0 comments on commit a8d74ca

Please sign in to comment.