Skip to content

Commit 843f7a0

Browse files
committed
do not use fixed path
Signed-off-by: Daisuke Sato <[email protected]>
1 parent 785d407 commit 843f7a0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cabot_base/launch/cabot3.launch.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,9 @@ def has_flag(flag_name):
135135
allow_substs=True,
136136
),
137137
]
138+
helios_config_file = PathJoinSubstitution([
139+
pkg_dir, 'config', 'helios', 'helios.yaml'
140+
])
138141

139142
odrive_can_pkg_dir = get_package_share_directory('odrive_can')
140143
odrive_model = LaunchConfiguration('odrive_model')
@@ -328,7 +331,7 @@ def has_flag(flag_name):
328331
package='rslidar_sdk',
329332
executable='rslidar_sdk_node',
330333
parameters=[
331-
{'config_path': '/home/developer/driver_ws/install/cabot_base/share/cabot_base/config/helios/helios.yaml'},
334+
{'config_path': helios_config_file},
332335
{'rslidar_points': 'pandar'},
333336
{'use_sim_time': use_sim_time}
334337
],

0 commit comments

Comments
 (0)