We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8b0a1f commit 7afb753Copy full SHA for 7afb753
CMakeLists.txt
@@ -164,7 +164,7 @@ install(
164
install(
165
DIRECTORY scripts
166
USE_SOURCE_PERMISSIONS
167
- DESTINATION share/${PROJECT_NAME}
+ DESTINATION lib/${PROJECT_NAME}
168
)
169
170
ament_export_include_directories(
scripts/get_public_params.py
@@ -1,6 +1,6 @@
1
#!/usr/bin/python3
2
3
-import rospkg
+from ament_index_python.packages import get_package_share_directory
4
import os
5
6
class ParamsGetter:
@@ -9,9 +9,7 @@ def __init__(self):
9
10
package_name = "mrs_uav_controllers"
11
12
- rospack = rospkg.RosPack()
13
-
14
- package_path = rospack.get_path(package_name)
+ package_path = get_package_share_directory(package_name)
15
16
file_paths = []
17
0 commit comments