2026-02-02 10:48:46 +00:00
|
|
|
import os
|
2026-01-25 17:06:54 +00:00
|
|
|
from launch import LaunchDescription
|
2026-02-02 10:48:46 +00:00
|
|
|
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
|
2026-02-02 10:48:46 +00:00
|
|
|
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():
|
2026-02-02 10:48:46 +00:00
|
|
|
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([
|
2026-02-02 10:48:46 +00:00
|
|
|
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
|
|
|
])
|