Skip to content

Commit 735babb

Browse files
Merge pull request #2 from microROS/feature/WindowsFix
Feature/windows fix
2 parents 27203c2 + 9b615a4 commit 735babb

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

uROS_Agent/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ normalize_path(_DEFAULT_FASTRTPS_PROFILES_PATH "${_DEFAULT_FASTRTPS_PROFILES_PAT
6767

6868

6969
# Get colcon call dir
70-
get_filename_component(_COLCON_CALL_DIR "${CMAKE_INSTALL_PREFIX}" DIRECTORY)
70+
get_filename_component(_COLCON_CALL_DIR "${PROJECT_BINARY_DIR}" DIRECTORY)
7171
get_filename_component(_COLCON_CALL_DIR "${_COLCON_CALL_DIR}" DIRECTORY)
7272

7373

uROS_Agent/uros_agent/__init__.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def GetPackage(Dir):
4343
break
4444

4545

46-
return found_package_path
46+
return found_package_path.replace("\\", "/")
4747

4848

4949
def GetPackageList(Dir):
@@ -58,7 +58,7 @@ def GetPackageList(Dir):
5858
package_list.append(l)
5959
elif package_path != "COLCON_IGNORE":
6060
package_list.append(package_path)
61-
61+
6262
return package_list
6363

6464

@@ -70,7 +70,7 @@ def GetInterfacePackages(packages_list):
7070
if element.text == "rosidl_interface_packages":
7171
package_interface_list.append(package)
7272
return package_interface_list
73-
73+
7474

7575
def GetPackageName(package_path):
7676
xml_root = xml.etree.ElementTree.parse(package_path).getroot()
@@ -88,8 +88,8 @@ def GetInterfacePackageMsgs(package_path):
8888
for file in files:
8989
if file.endswith(".msg"):
9090
full_path = os.path.join(root, file)
91-
msg_list.append(full_path)
92-
91+
msg_list.append(full_path.replace("\\", "/"))
92+
9393
return msg_list
9494

9595
def GetInterfacePackageSrvs(package_path):
@@ -99,8 +99,8 @@ def GetInterfacePackageSrvs(package_path):
9999
for file in files:
100100
if file.endswith(".srv"):
101101
full_path = os.path.join(root, file)
102-
msg_list.append(full_path)
103-
102+
msg_list.append(full_path.replace("\\", "/"))
103+
104104
return msg_list
105105

106106

@@ -113,7 +113,7 @@ def ReadDefaultXMLs(Path):
113113
fd = open(full_path)
114114
print ("%s" % fd.read())
115115
fd.close()
116-
116+
117117

118118

119119
def generate_XML(args):

0 commit comments

Comments
 (0)