-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Made a launch file that includes thruster_interface and thruster_allocator * cleanup --------- Co-authored-by: Aldokan <[email protected]>
- Loading branch information
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
]) |