Skip to content

Commit

Permalink
Fix run.launch.py (#607)
Browse files Browse the repository at this point in the history
Add path to panda_config.yaml file to have parameters available for pick_place_demo

Co-authored-by: Robert Haschke <[email protected]>
  • Loading branch information
KarthiAru and rhaschke committed Aug 27, 2024
1 parent 5519162 commit cb867ae
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion demo/launch/run.launch.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import os
from ament_index_python.packages import get_package_share_directory
from launch import LaunchDescription
from launch.actions import DeclareLaunchArgument
from launch.substitutions import LaunchConfiguration
Expand All @@ -12,8 +14,10 @@ def generate_launch_description():
.to_moveit_configs()
)

package = "moveit_task_constructor_demo"
package_shared_path = get_package_share_directory(package)
node = Node(
package="moveit_task_constructor_demo",
package=package,
executable=LaunchConfiguration("exe"),
output="screen",
parameters=[
Expand All @@ -22,6 +26,7 @@ def generate_launch_description():
moveit_config.robot_description_kinematics,
moveit_config.joint_limits,
moveit_config.planning_pipelines,
os.path.join(package_shared_path, "config", "panda_config.yaml"),
],
)

Expand Down

0 comments on commit cb867ae

Please sign in to comment.