-
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.
Update thruster_allocator_launch.py so that it takes in params from f…
…reya.yaml
- Loading branch information
Showing
1 changed file
with
9 additions
and
4 deletions.
There are no files selected for viewing
13 changes: 9 additions & 4 deletions
13
motion/thruster_allocator/launch/thruster_allocator_launch.py
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 |
---|---|---|
@@ -1,11 +1,16 @@ | ||
import os | ||
from ament_index_python.packages import get_package_share_directory | ||
from launch import LaunchDescription | ||
from launch_ros.actions import Node | ||
|
||
def generate_launch_description(): | ||
return LaunchDescription([ | ||
Node( | ||
trushter_allocator_node = Node( | ||
package='thruster_allocator', | ||
executable='thruster_allocator_node', | ||
name='thruster_allocator_node' | ||
name='thruster_allocator_node', | ||
parameters=[os.path.join(get_package_share_directory('asv_setup'),'config','robots','freya.yaml')], | ||
output='screen', | ||
) | ||
]) | ||
return LaunchDescription([ | ||
trushter_allocator_node | ||
]) |