Skip to content

Commit cb867ae

Browse files
KarthiArurhaschke
andcommitted
Fix run.launch.py (#607)
Add path to panda_config.yaml file to have parameters available for pick_place_demo Co-authored-by: Robert Haschke <[email protected]>
1 parent 5519162 commit cb867ae

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

demo/launch/run.launch.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import os
2+
from ament_index_python.packages import get_package_share_directory
13
from launch import LaunchDescription
24
from launch.actions import DeclareLaunchArgument
35
from launch.substitutions import LaunchConfiguration
@@ -12,8 +14,10 @@ def generate_launch_description():
1214
.to_moveit_configs()
1315
)
1416

17+
package = "moveit_task_constructor_demo"
18+
package_shared_path = get_package_share_directory(package)
1519
node = Node(
16-
package="moveit_task_constructor_demo",
20+
package=package,
1721
executable=LaunchConfiguration("exe"),
1822
output="screen",
1923
parameters=[
@@ -22,6 +26,7 @@ def generate_launch_description():
2226
moveit_config.robot_description_kinematics,
2327
moveit_config.joint_limits,
2428
moveit_config.planning_pipelines,
29+
os.path.join(package_shared_path, "config", "panda_config.yaml"),
2530
],
2631
)
2732

0 commit comments

Comments
 (0)