File tree 1 file changed +6
-2
lines changed
rosbot_utils/rosbot_utils
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 22
22
import sys
23
23
24
24
import requests
25
- from launch_ros .substitutions import FindPackageShare
25
+ from launch .substitutions import (
26
+ PathJoinSubstitution ,
27
+ )
28
+ from launch_ros .substitutions import FindPackageShare
26
29
27
30
# Global variable to hold the subprocess reference
28
31
subproc = None
@@ -53,7 +56,8 @@ def find_firmware_file():
53
56
package_install_directory = FindPackageShare ("rosbot_utils" )
54
57
55
58
# Construct the path to the firmware directory
56
- firmware_dir = os .path .join (package_install_directory , "firmware" )
59
+ # firmware_dir = os.path.join(package_install_directory, "firmware")
60
+ firmware_dir = PathJoinSubstitution ([package_install_directory , "firmware" ])
57
61
firmware_files = glob .glob (os .path .join (firmware_dir , f"firmware-{ firmware_version } .bin" ))
58
62
59
63
if not firmware_files :
You can’t perform that action at this time.
0 commit comments