import os from launch import LaunchDescription from launch.actions import ExecuteProcess, TimerAction, IncludeLaunchDescription from launch.launch_description_sources import PythonLaunchDescriptionSource from launch.substitutions import PathJoinSubstitution from launch_ros.actions import Node from launch_ros.substitutions import FindPackageShare from ament_index_python.packages import get_package_share_directory import xacro def generate_launch_description(): camera_init = Node( package='openarm_camera', executable='camera_pub_node', output='screen' ) camera_cal_init = Node( package='openarm_camera', executable='camera_node', output='screen' ) stereo_hand_depth = Node( package='openarm_camera', executable='stereo_hand_depth_node', output='screen' ) return LaunchDescription([ camera_init, # TimerAction( # period=4.0, # actions=[camera_cal_init] # ), TimerAction( period=8.0, actions=[stereo_hand_depth] ), ])