+++ /dev/null
-<?xml version="1.0"?>
-
-<!--
-v4l2-ctl -d /dev/video3 \-\-list-formats-ext
-ioctl: VIDIOC_ENUM_FMT
- Index : 0
- Type : Video Capture
- Pixel Format: 'YUYV'
- Name : YUYV 4:2:2
- Size: Discrete 424x240
- Interval: Discrete 0.017s (60.000 fps)
- Interval: Discrete 0.033s (30.000 fps)
- Interval: Discrete 0.067s (15.000 fps)
- Interval: Discrete 0.167s (6.000 fps)
- Size: Discrete 640x480
- Interval: Discrete 0.033s (30.000 fps)
- Interval: Discrete 0.067s (15.000 fps)
- Interval: Discrete 0.167s (6.000 fps)
- Size: Discrete 1280x720
- Interval: Discrete 0.167s (6.000 fps)
--->
-
-<launch>
- <arg name="align_depth" default="true"/>
-
- <include file="$(find realsense2_camera)/launch/rs_camera.launch">
- <arg name="depth_fps" default="15"/>
- <arg name="infra_fps" default="15"/>
- <arg name="color_fps" default="15"/>
- <arg name="enable_fisheye" default="false"/>
- <arg name="enable_infra2" default="false"/>
- <arg name="enable_gyro" default="false"/>
- <arg name="enable_accel" default="false"/>
- <arg name="publish_tf" default="true"/>
- <arg name="publish_odom_tf" default="false"/>
- <arg name="enable_pointcloud" default="false"/>
- <arg name="align_depth" value="$(arg align_depth)"/>
- <!--
- <arg name="filters" default="pointcloud"/>
- -->
- </include>
-
- <node pkg="web_video_server" type="web_video_server" name="web_video_server" output="screen"/>
-</launch>
--- /dev/null
+#!/usr/bin/env python
+# -*- coding: iso-8859-15 -*-
+
+import os
+from ament_index_python.packages import get_package_share_directory
+from launch import LaunchDescription
+from launch.launch_description_sources import PythonLaunchDescriptionSource
+from launch.actions import DeclareLaunchArgument, IncludeLaunchDescription
+from launch.substitutions import LaunchConfiguration
+
+#v4l2-ctl -d /dev/video3 \-\-list-formats-ext
+#ioctl: VIDIOC_ENUM_FMT
+# Index : 0
+# Type : Video Capture
+# Pixel Format: 'YUYV'
+# Name : YUYV 4:2:2
+# Size: Discrete 424x240
+# Interval: Discrete 0.017s (60.000 fps)
+# Interval: Discrete 0.033s (30.000 fps)
+# Interval: Discrete 0.067s (15.000 fps)
+# Interval: Discrete 0.167s (6.000 fps)
+# Size: Discrete 640x480
+# Interval: Discrete 0.033s (30.000 fps)
+# Interval: Discrete 0.067s (15.000 fps)
+# Interval: Discrete 0.167s (6.000 fps)
+# Size: Discrete 1280x720
+# Interval: Discrete 0.167s (6.000 fps)
+
+# RGB profiles:
+# 1280x720x6
+# 424x240x15
+# 424x240x30
+# 424x240x6
+# 424x240x60
+# 640x480x15
+# 640x480x30
+# 640x480x6
+
+def generate_launch_description():
+ align_depth = LaunchConfiguration('align_depth', default=True)
+
+ return LaunchDescription([
+ DeclareLaunchArgument('align_depth.enable', default_value=align_depth),
+ IncludeLaunchDescription(
+ PythonLaunchDescriptionSource([os.path.join(get_package_share_directory('realsense2_camera'), 'launch'),'/rs_launch.py']),
+ launch_arguments={
+ 'config_file': os.path.join(get_package_share_directory('a4wd3_open_manipulator'), 'config', 'realsense.yaml'),
+ 'align_depth.enable': align_depth,
+ }.items(),
+ ),
+ ])