from launch import LaunchDescription from launch.actions import IncludeLaunchDescription from launch.launch_description_sources import PythonLaunchDescriptionSource from ament_index_python.packages import get_package_share_directory from launch_ros.actions import Node import os def generate_launch_description(): gen3_bringup = IncludeLaunchDescription( PythonLaunchDescriptionSource( os.path.join( get_package_share_directory('kortex_bringup'), 'launch', 'gen3.launch.py' ) ), launch_arguments={ 'robot_ip': '192.168.1.10', 'dof': '6', 'launch_rviz': 'false', 'gripper' : "" }.items() ) joint_pruner = Node( package="kortex_interface", executable = "joint_pruner", name = "joint_pruner" ) domain_bridge_config_path = os.path.join( get_package_share_directory('kortex_interface'), 'config', 'kortex_domain_bridge.yaml' ) domain_bridge = Node( package="domain_bridge", executable="domain_bridge", name = "domain_bridge", arguments = [domain_bridge_config_path] ) joint_command_forwarder = Node( package = "kortex_interface", executable = "hw_joint_command_forwarder", output = "screen" ) return LaunchDescription([ gen3_bringup, #joint_pruner, #domain_bridge, # joint_command_forwarder ])