<commit_before><?xml version="1.0"?>
<!--
Copyright (c) 2018, STEREOLABS.

All rights reserved.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-->
<launch>
    <arg name="camera_model"          default="0" /> <!-- 0=ZED, 1=ZEDM-->
    <arg name="svo_file"              default="" /><!-- <arg name="svo_file" default="path/to/svo/file.svo"> -->
    <arg name="zed_id"                default="0" />
    <!-- If a ZED SN is given, zed_id is ignored and the wrapper will specifically look for the ZED with the corresponding serial number -->
    <arg name="serial_number"         default="0" />     
    <arg name="verbose"               default="true" />

    <arg name="resolution"            default="2" /> <!--0=RESOLUTION_HD2K, 1=RESOLUTION_HD1080, 2=RESOLUTION_HD720, 3=RESOLUTION_VGA -->
    <arg name="frame_rate"            default="30" />
    <!-- RESOLUTION_HD2K   -> 2208*1242, available framerates: 15 fps.
         RESOLUTION_HD1080 -> 1920*1080, available framerates: 15, 30 fps.
         RESOLUTION_HD720  -> 1280*720,  available framerates: 15, 30, 60 fps.
         RESOLUTION_VGA    -> 672*376,   available framerates: 15, 30, 60, 100 fps. -->

    <!-- GPU ID-->
    <arg name="gpu_id"                default="-1" />

    <!-- Definition coordinate frames -->
    <arg name="publish_tf"                    default="true" />
    <arg name="publish_map_tf"                default="true" />
    <arg name="pose_frame"                    default="map" />
    <arg name="odometry_frame"                default="odom" />
    <arg name="base_frame"                    default="zed_camera_center" />
    <arg name="left_camera_frame"             default="zed_left_camera_frame" />
    <arg name="left_camera_optical_frame"     default="zed_left_camera_optical_frame" />
    <arg name="right_camera_frame"            default="zed_right_camera_frame" />
    <arg name="right_camera_optical_frame"    default="zed_right_camera_optical_frame" />
    <arg name="imu_frame"                     default="imu_link" /> <!-- only used with ZED M -->

    <arg name="initial_pose"                  default="[0.0,0.0,0.0, 0.0,0.0,0.0]" /> <!-- X, Y, Z, (meter) R, P, Y, (radians)-->

    <!-- Publish urdf zed -->
    <arg name="publish_urdf"                  default="true" />

    <arg name="camera_flip"                   default="false" />
    <arg name="rgb_topic"                     default="rgb/image_rect_color" />
    <arg name="rgb_info_topic"                default="rgb/camera_info" />
    <arg name="depth_topic"                   default="depth/depth_registered" />
    <arg name="depth_cam_info_topic"          default="depth/camera_info" />

    <node name="zed_wrapper_node" pkg="zed_wrapper" type="zed_wrapper_node" output="screen" required="true"><!-- launch-prefix="valgrind" -->

        <param name="camera_model"          value="$(arg camera_model)" />

        <!-- publish pose frame -->
        <param name="publish_tf"            value="$(arg publish_tf)" />
        <param name="publish_map_tf"        value="$(arg publish_map_tf)" />


        <!-- flip camera -->
        <param name="camera_flip"           value="$(arg camera_flip)" />

        <!-- Configuration frame camera -->    
        <param name="pose_frame"                    value="$(arg pose_frame)" />
        <param name="odometry_frame"                value="$(arg odometry_frame)" />
        <param name="base_frame"                    value="$(arg base_frame)" />
        <param name="left_camera_frame"             value="$(arg left_camera_frame)" />
        <param name="left_camera_optical_frame"     value="$(arg left_camera_optical_frame)" />
        <param name="right_camera_frame"            value="$(arg right_camera_frame)" />
        <param name="right_camera_optical_frame"    value="$(arg right_camera_optical_frame)" />
        <param name="imu_frame"                     value="$(arg imu_frame)" />
    
        <!-- SVO file path -->
        <param name="svo_filepath"          value="$(arg svo_file)" />

        <!-- ZED parameters -->
        <param name="zed_id"                value="$(arg zed_id)" />
        <param name="serial_number"         value="$(arg serial_number)" />

        <param name="resolution"            value="$(arg resolution)" />
        <param name="verbose"               value="$(arg verbose)" />
        <param name="mat_resize_factor"     value="1.0" />
        <param name="quality"               value="1" />
        <param name="sensing_mode"          value="0" />
        <param name="frame_rate"            value="$(arg frame_rate)" />
        <param name="odometry_db"           value="" />
        <param name="openni_depth_mode"     value="0" />
        <param name="gpu_id"                value="$(arg gpu_id)" />
        <param name="confidence"            value="100" />
        <param name="max_depth"             value="10.0" />
        <param name="gain"                  value="100" />
        <param name="exposure"              value="100" />
        <param name="auto_exposure"         value="true" />
        <param name="depth_stabilization"   value="1" />
        <param name="pose_smoothing"        value="false" />
        <param name="spatial_memory"        value="false" />
        <param name="floor_alignment"       value="true" />

        <rosparam param="initial_tracking_pose" subst_value="True">$(arg initial_pose)</rosparam>

        <!-- ROS topic names -->
        <param name="rgb_topic"                 value="$(arg rgb_topic)" />
        <param name="rgb_raw_topic"             value="rgb/image_raw_color" />
        <param name="rgb_cam_info_topic"        value="$(arg rgb_info_topic)" />
        <param name="rgb_cam_info_raw_topic"    value="rgb/camera_info_raw" />

        <param name="left_topic"                value="left/image_rect_color" />
        <param name="left_raw_topic"            value="left/image_raw_color" />
        <param name="left_cam_info_topic"       value="left/camera_info" />
        <param name="left_cam_info_raw_topic"   value="left/camera_info_raw" />

        <param name="right_topic"               value="right/image_rect_color" />
        <param name="right_raw_topic"           value="right/image_raw_color" />
        <param name="right_cam_info_topic"      value="right/camera_info" />
        <param name="right_cam_info_raw_topic"  value="right/camera_info_raw" />
<commit_msg>Disabled Floor Alignment by default (#304)<commit_after><?xml version="1.0"?>
<!--
Copyright (c) 2018, STEREOLABS.

All rights reserved.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-->
<launch>
    <arg name="camera_model"          default="0" /> <!-- 0=ZED, 1=ZEDM-->
    <arg name="svo_file"              default="" /><!-- <arg name="svo_file" default="path/to/svo/file.svo"> -->
    <arg name="zed_id"                default="0" />
    <!-- If a ZED SN is given, zed_id is ignored and the wrapper will specifically look for the ZED with the corresponding serial number -->
    <arg name="serial_number"         default="0" />     
    <arg name="verbose"               default="true" />

    <arg name="resolution"            default="2" /> <!--0=RESOLUTION_HD2K, 1=RESOLUTION_HD1080, 2=RESOLUTION_HD720, 3=RESOLUTION_VGA -->
    <arg name="frame_rate"            default="30" />
    <!-- RESOLUTION_HD2K   -> 2208*1242, available framerates: 15 fps.
         RESOLUTION_HD1080 -> 1920*1080, available framerates: 15, 30 fps.
         RESOLUTION_HD720  -> 1280*720,  available framerates: 15, 30, 60 fps.
         RESOLUTION_VGA    -> 672*376,   available framerates: 15, 30, 60, 100 fps. -->

    <!-- GPU ID-->
    <arg name="gpu_id"                default="-1" />

    <!-- Definition coordinate frames -->
    <arg name="publish_tf"                    default="true" />
    <arg name="publish_map_tf"                default="true" />
    <arg name="pose_frame"                    default="map" />
    <arg name="odometry_frame"                default="odom" />
    <arg name="base_frame"                    default="zed_camera_center" />
    <arg name="left_camera_frame"             default="zed_left_camera_frame" />
    <arg name="left_camera_optical_frame"     default="zed_left_camera_optical_frame" />
    <arg name="right_camera_frame"            default="zed_right_camera_frame" />
    <arg name="right_camera_optical_frame"    default="zed_right_camera_optical_frame" />
    <arg name="imu_frame"                     default="imu_link" /> <!-- only used with ZED M -->

    <arg name="initial_pose"                  default="[0.0,0.0,0.0, 0.0,0.0,0.0]" /> <!-- X, Y, Z, (meter) R, P, Y, (radians)-->

    <!-- Publish urdf zed -->
    <arg name="publish_urdf"                  default="true" />

    <arg name="camera_flip"                   default="false" />
    <arg name="rgb_topic"                     default="rgb/image_rect_color" />
    <arg name="rgb_info_topic"                default="rgb/camera_info" />
    <arg name="depth_topic"                   default="depth/depth_registered" />
    <arg name="depth_cam_info_topic"          default="depth/camera_info" />

    <node name="zed_wrapper_node" pkg="zed_wrapper" type="zed_wrapper_node" output="screen" required="true"><!-- launch-prefix="valgrind" -->

        <param name="camera_model"          value="$(arg camera_model)" />

        <!-- publish pose frame -->
        <param name="publish_tf"            value="$(arg publish_tf)" />
        <param name="publish_map_tf"        value="$(arg publish_map_tf)" />


        <!-- flip camera -->
        <param name="camera_flip"           value="$(arg camera_flip)" />

        <!-- Configuration frame camera -->    
        <param name="pose_frame"                    value="$(arg pose_frame)" />
        <param name="odometry_frame"                value="$(arg odometry_frame)" />
        <param name="base_frame"                    value="$(arg base_frame)" />
        <param name="left_camera_frame"             value="$(arg left_camera_frame)" />
        <param name="left_camera_optical_frame"     value="$(arg left_camera_optical_frame)" />
        <param name="right_camera_frame"            value="$(arg right_camera_frame)" />
        <param name="right_camera_optical_frame"    value="$(arg right_camera_optical_frame)" />
        <param name="imu_frame"                     value="$(arg imu_frame)" />
    
        <!-- SVO file path -->
        <param name="svo_filepath"          value="$(arg svo_file)" />

        <!-- ZED parameters -->
        <param name="zed_id"                value="$(arg zed_id)" />
        <param name="serial_number"         value="$(arg serial_number)" />

        <param name="resolution"            value="$(arg resolution)" />
        <param name="verbose"               value="$(arg verbose)" />
        <param name="mat_resize_factor"     value="1.0" />
        <param name="quality"               value="1" />
        <param name="sensing_mode"          value="0" />
        <param name="frame_rate"            value="$(arg frame_rate)" />
        <param name="odometry_db"           value="" />
        <param name="openni_depth_mode"     value="0" />
        <param name="gpu_id"                value="$(arg gpu_id)" />
        <param name="confidence"            value="100" />
        <param name="max_depth"             value="10.0" />
        <param name="gain"                  value="100" />
        <param name="exposure"              value="100" />
        <param name="auto_exposure"         value="true" />
        <param name="depth_stabilization"   value="1" />
        <param name="pose_smoothing"        value="false" />
        <param name="spatial_memory"        value="false" />
        <param name="floor_alignment"       value="false" />

        <rosparam param="initial_tracking_pose" subst_value="True">$(arg initial_pose)</rosparam>

        <!-- ROS topic names -->
        <param name="rgb_topic"                 value="$(arg rgb_topic)" />
        <param name="rgb_raw_topic"             value="rgb/image_raw_color" />
        <param name="rgb_cam_info_topic"        value="$(arg rgb_info_topic)" />
        <param name="rgb_cam_info_raw_topic"    value="rgb/camera_info_raw" />

        <param name="left_topic"                value="left/image_rect_color" />
        <param name="left_raw_topic"            value="left/image_raw_color" />
        <param name="left_cam_info_topic"       value="left/camera_info" />
        <param name="left_cam_info_raw_topic"   value="left/camera_info_raw" />

        <param name="right_topic"               value="right/image_rect_color" />
        <param name="right_raw_topic"           value="right/image_raw_color" />
        <param name="right_cam_info_topic"      value="right/camera_info" />
        <param name="right_cam_info_raw_topic"  value="right/camera_info_raw" />

{'fraction_non_alphanumeric': 0.1392591553248211, 'fraction_numerical': 0.01634628876104953, 'mean_word_length': 2.292147806004619, 'pattern_counts': {'":': 0, '<': 191, '<?xml version=': 2, '>': 199, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2632232', 'n_tokens_mistral': 4476, 'n_tokens_neox': 4035, 'n_words': 941}