use yaml file to config robot arm

This commit is contained in:
LiuzhengSJ
2026-06-23 16:10:03 +01:00
parent 2bf7b4885e
commit 2d8ef78b8b
4 changed files with 531 additions and 5 deletions

View File

@ -0,0 +1,25 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
from launch import LaunchDescription
from launch_ros.actions import Node
from ament_index_python.packages import get_package_share_directory
def generate_launch_description():
package_share_dir = get_package_share_directory('harvest_arm_rm')
config_file = os.path.join(package_share_dir, 'config', 'config.yaml')
return LaunchDescription([
Node(
package="harvest_arm_rm",
executable="realman_run",
name="harvest_arm_rm",
output="screen",
parameters=[config_file],
)
])