Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add namespace support to hls launch file #46

Open
wants to merge 1 commit into
base: ros2
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions launch/hlds_laser.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def generate_launch_description():
port = LaunchConfiguration('port', default='/dev/ttyUSB0')

frame_id = LaunchConfiguration('frame_id', default='laser')
namespace = LaunchConfiguration('namespace')

return LaunchDescription([

Expand All @@ -38,6 +39,10 @@ def generate_launch_description():
default_value=port,
description='Specifying usb port to connected lidar'),

DeclareLaunchArgument(
'namespace', default_value='',
description='Top-level namespace'),

DeclareLaunchArgument(
'frame_id',
default_value=frame_id,
Expand All @@ -46,6 +51,7 @@ def generate_launch_description():
Node(
package='hls_lfcd_lds_driver',
node_executable='hlds_laser_publisher',
node_namespace=namespace,
node_name='hlds_laser_publisher',
parameters=[{'port': port, 'frame_id': frame_id}],
output='screen'),
Expand Down