mirror of
https://github.com/orbbec/OrbbecSDK_ROS2.git
synced 2026-10-04 12:07:46 +08:00
Update save_rgbir tool
This commit is contained in:
@@ -8,6 +8,8 @@ from launch.actions import DeclareLaunchArgument
|
||||
from launch.conditions import UnlessCondition, IfCondition
|
||||
from launch.substitutions import LaunchConfiguration
|
||||
from launch.substitutions import TextSubstitution
|
||||
from launch_ros.actions import Node, LoadComposableNodes
|
||||
from launch_ros.descriptions import ComposableNode
|
||||
|
||||
def generate_launch_description():
|
||||
# Include launch files
|
||||
@@ -38,6 +40,18 @@ def generate_launch_description():
|
||||
condition=UnlessCondition(attach_to_shared_component_container_arg)
|
||||
)
|
||||
|
||||
save_rgbir = LoadComposableNodes(
|
||||
target_container=component_container_name_arg,
|
||||
composable_node_descriptions=[
|
||||
ComposableNode(
|
||||
namespace="save_rgbir",
|
||||
name="save_rgbir",
|
||||
package="orbbec_camera",
|
||||
plugin="orbbec_camera::tools::MultiCameraSubscriber",
|
||||
)
|
||||
],
|
||||
)
|
||||
|
||||
attach_to_shared_component_container_arg = TextSubstitution(text='true')
|
||||
|
||||
front_camera = IncludeLaunchDescription(
|
||||
@@ -124,6 +138,10 @@ def generate_launch_description():
|
||||
period=8.0,
|
||||
actions=[front_camera],
|
||||
)
|
||||
delayed_save_rgbir = TimerAction(
|
||||
period=16.0,
|
||||
actions=[save_rgbir],
|
||||
)
|
||||
ld = LaunchDescription(
|
||||
[
|
||||
use_intra_process_comms_declare,
|
||||
@@ -134,6 +152,7 @@ def generate_launch_description():
|
||||
delayed_right_camera,
|
||||
delayed_rear_camera,
|
||||
delayed_front_camera,
|
||||
delayed_save_rgbir,
|
||||
]
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user