Skip to content

Commit

Permalink
fixed parameters for thruster interface
Browse files Browse the repository at this point in the history
  • Loading branch information
alekskl01 committed Mar 22, 2024
1 parent dc6efcb commit 7451c30
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import os
from os import path
from ament_index_python.packages import get_package_share_directory
from launch import LaunchDescription
from launch_ros.actions import Node
Expand All @@ -10,7 +10,7 @@ def generate_launch_description():
executable='thruster_allocator_auv_node',
name='thruster_allocator_auv_node',
parameters=[
os.path.join(get_package_share_directory('auv_setup'), 'config',
path.join(get_package_share_directory('auv_setup'), 'config',
'robots', 'orca.yaml')
],
output='screen',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
from ament_index_python.packages import get_package_share_directory
from os import path


def generate_launch_description():
# TODO: read parameters from yaml file
return LaunchDescription([
Node(package='thruster_interface_auv',
executable='thruster_interface_auv_node.py',
name='thruster_interface_auv_node',
output='screen',
emulate_tty=True)
])
thruster_interface_auv_node = Node(
package='thruster_interface_auv',
executable='thruster_interface_auv_node.py',
name='thruster_interface_auv_node',
output='screen',
emulate_tty=True,
parameters=[path.join(get_package_share_directory('auv_setup'), 'config',
'robots', 'orca.yaml')]
)
return LaunchDescription([thruster_interface_auv_node])
Empty file.

0 comments on commit 7451c30

Please sign in to comment.