openarm_test/src/openarm_camera/launch/launch_camera.launch.py

38 lines
1.1 KiB
Python
Raw Normal View History

import os
2026-01-25 17:06:54 +00:00
from launch import LaunchDescription
from launch.actions import ExecuteProcess, TimerAction, IncludeLaunchDescription
from launch.launch_description_sources import PythonLaunchDescriptionSource
from launch.substitutions import PathJoinSubstitution
2026-01-25 17:06:54 +00:00
from launch_ros.actions import Node
from launch_ros.substitutions import FindPackageShare
from ament_index_python.packages import get_package_share_directory
import xacro
2026-01-25 17:06:54 +00:00
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',
2026-01-25 17:06:54 +00:00
output='screen'
)
return LaunchDescription([
camera_init,
# TimerAction(
# period=4.0,
# actions=[camera_cal_init]
# ),
TimerAction(
period=8.0,
actions=[stereo_hand_depth]
),
2026-01-25 17:06:54 +00:00
])