mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-09-16 00:00:20 +08:00
ros-pkg: updated azimut3 stereo launch file
git-svn-id: http://rtabmap.googlecode.com/svn/trunk/ros-pkg@1907 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
@@ -1,18 +1,13 @@
|
||||
|
||||
<launch>
|
||||
|
||||
<!-- to record odom+image left+depth:
|
||||
rosbag record /odom_sync /camera/data_throttled_image/compressed /camera/data_throttled_camera_info /camera/data_throttled_image_depth/compressedDepth
|
||||
-->
|
||||
|
||||
<!-- "Disable" odometry from azimut3 -->
|
||||
<!-- "Disable" wheel odometry from azimut3 -->
|
||||
<group ns="base_controller">
|
||||
<param name="odom_frame_id" type="string" value="az3_odom"/>
|
||||
<param name="base_frame_id" type="string" value="az3_base_link"/>
|
||||
</group>
|
||||
<remap from="/base_controller/odom" to="/base_controller/az3_odom"/>
|
||||
|
||||
<!-- AZIMUT 3 bringup: launch motors/odometry, laser scan and openni -->
|
||||
<!-- AZIMUT 3 bringup: launch motors and TF -->
|
||||
<include file="$(find az3_bringup)/az3_standalone.launch"/>
|
||||
<include file="$(find az3_bringup)/joystick.launch"/>
|
||||
|
||||
@@ -27,6 +22,7 @@
|
||||
<param name="camera_info_url_right" value="" />
|
||||
</node>
|
||||
|
||||
<!-- TF transforms for the stereo camera -->
|
||||
<arg name="pi/2" value="1.5707963267948966" />
|
||||
<arg name="optical_rotate" value="0 0 0 -$(arg pi/2) 0 -$(arg pi/2)" />
|
||||
<node pkg="tf" type="static_transform_publisher" name="camera_base_link"
|
||||
@@ -34,16 +30,35 @@
|
||||
<node pkg="tf" type="static_transform_publisher" name="base_to_camera_base_link"
|
||||
args="0 0 0.90 0 0.40 0 base_link stereo_camera_base 100" />
|
||||
|
||||
<!-- Run the ROS package stereo_image_proc for image rectification and disparity computation -->
|
||||
<!-- Run the ROS package stereo_image_proc for image rectification-->
|
||||
<group ns="/stereo_camera" >
|
||||
<node pkg="stereo_image_proc" type="stereo_image_proc" name="stereo_image_proc"/>
|
||||
<node pkg="nodelet" type="nodelet" name="disparity2depth" args="standalone rtabmap/disparity_to_depth"/>
|
||||
<!-- HACK: the fps parameter on camera1394stereo_node doesn't work for my camera!?!?
|
||||
Throttle camera images to 10 Hz () -->
|
||||
<node pkg="nodelet" type="nodelet" name="stereo_throttle" args="standalone rtabmap/stereo_throttle">
|
||||
<remap from="left/image" to="left/image_raw"/>
|
||||
<remap from="right/image" to="right/image_raw"/>
|
||||
<remap from="left/camera_info" to="left/camera_info"/>
|
||||
<remap from="right/camera_info" to="right/camera_info"/>
|
||||
|
||||
<param name="queue_size" type="int" value="10"/>
|
||||
<param name="rate" type="double" value="10"/>
|
||||
</node>
|
||||
|
||||
<node pkg="stereo_image_proc" type="stereo_image_proc" name="stereo_image_proc">
|
||||
<remap from="left/image_raw" to="left/image_raw_throttle"/>
|
||||
<remap from="left/camera_info" to="left/camera_info_throttle"/>
|
||||
<remap from="right/image_raw" to="right/image_raw_throttle"/>
|
||||
<remap from="right/camera_info" to="right/camera_info_throttle"/>
|
||||
</node>
|
||||
</group>
|
||||
|
||||
<!-- Visual Odometry -->
|
||||
<node pkg="viso2_ros" type="stereo_odometer" name="stereo_odometer" output="screen">
|
||||
<remap from="stereo" to="/stereo_camera"/>
|
||||
<remap from="image" to="image_rect"/>
|
||||
<remap from="left/camera_info" to="left/camera_info_throttle" />
|
||||
<remap from="right/camera_info" to="right/camera_info_throttle" />
|
||||
|
||||
<param name="base_link_frame_id" value="base_footprint"/>
|
||||
<param name="odom_frame_id" value="odom"/>
|
||||
<param name="ref_frame_change_method" value="1"/>
|
||||
@@ -54,12 +69,12 @@
|
||||
<group ns="rtabmap">
|
||||
<node name="rtabmap" pkg="rtabmap" type="rtabmap" output="screen" args="--delete_db_on_start">
|
||||
<param name="frame_id" type="string" value="base_footprint"/>
|
||||
|
||||
<param name="subscribe_depth" type="bool" value="true"/>
|
||||
<param name="subscribe_stereo" type="bool" value="true"/>
|
||||
|
||||
<remap from="rgb/image" to="/stereo_camera/left/image_rect_color"/>
|
||||
<remap from="rgb/camera_info" to="/stereo_camera/left/camera_info"/>
|
||||
<remap from="depth/image" to="/stereo_camera/depth"/>
|
||||
<remap from="left/image_rect" to="/stereo_camera/left/image_rect_color"/>
|
||||
<remap from="right/image_rect" to="/stereo_camera/right/image_rect"/>
|
||||
<remap from="left/camera_info" to="/stereo_camera/left/camera_info_throttle"/>
|
||||
<remap from="right/camera_info" to="/stereo_camera/right/camera_info_throttle"/>
|
||||
|
||||
<remap from="odom" to="/stereo_odometer/odometry"/>
|
||||
|
||||
@@ -67,32 +82,37 @@
|
||||
|
||||
<!-- RTAB-Map's parameters -->
|
||||
<param name="Rtabmap/TimeThr" type="string" value="700"/>
|
||||
<param name="Rtabmap/DetectionRate" type="string" value="0.5"/>
|
||||
<param name="Rtabmap/DetectionRate" type="string" value="1"/>
|
||||
|
||||
<param name="RGBD/ToroIterations" type="string" value="0"/> <!-- Disable graph optimization for map_optimizer node below -->
|
||||
|
||||
<param name="Kp/TfIdfLikelihoodUsed" type="string" value="true"/>
|
||||
<param name="Kp/WordsPerImage" type="string" value="100"/>
|
||||
<param name="Kp/DetectorStrategy" type="string" value="0"/>
|
||||
<param name="Kp/WordsPerImage" type="string" value="200"/>
|
||||
<param name="Kp/RoiRatios" type="string" value="0.03 0.03 0.04 0.04"/>
|
||||
<param name="Kp/NNStrategy" type="string" value="1"/>
|
||||
|
||||
<param name="Bayes/FullPredictionUpdate" type="string" value="false"/>
|
||||
|
||||
<param name="SURF/HessianThreshold" type="string" value="1000"/>
|
||||
<param name="LccBow/MaxDepth" type="string" value="10"/>
|
||||
|
||||
<param name="LccBow/MaxDepth" type="string" value="3"/>
|
||||
<param name="LccBow/MinInliers" type="string" value="10"/>
|
||||
<param name="LccBow/InlierDistance" type="string" value="0.02"/>
|
||||
|
||||
<param name="LccReextract/Activated" type="string" value="true"/>
|
||||
<param name="LccReextract/FeatureType" type="string" value="4"/>
|
||||
<param name="LccReextract/MaxWords" type="string" value="400"/>
|
||||
<param name="LccReextract/NNDR" type="string" value="0.8"/>
|
||||
<param name="LccReextract/NNType" type="string" value="3"/>
|
||||
</node>
|
||||
|
||||
<node pkg="rtabmap" type="map_optimizer" name="map_optimizer"/>
|
||||
<node pkg="rtabmap" type="map_assembler" name="map_assembler">
|
||||
<remap from="mapData" to="mapData_optimized"/>
|
||||
<param name="occupancy_grid" type="bool" value="true"/>
|
||||
</node>
|
||||
|
||||
</group>
|
||||
|
||||
<node pkg="nodelet" type="nodelet" name="data_odom_sync" args="standalone rtabmap/data_odom_sync">
|
||||
<remap from="rgb/image_in" to="/stereo_camera/left/image_rect_color"/>
|
||||
<remap from="depth/image_in" to="/stereo_camera/depth"/>
|
||||
<remap from="rgb/camera_info_in" to="/stereo_camera/left/camera_info"/>
|
||||
<remap from="odom_in" to="/stereo_odometer/odometry"/>
|
||||
|
||||
<remap from="rgb/image_out" to="/camera/data_throttled_image"/>
|
||||
<remap from="depth/image_out" to="/camera/data_throttled_image_depth"/>
|
||||
<remap from="rgb/camera_info_out" to="/camera/data_throttled_camera_info"/>
|
||||
<remap from="odom_out" to="odom_sync"/>
|
||||
|
||||
<param name="queue_size" type="int" value="30"/>
|
||||
</node>
|
||||
|
||||
</launch>
|
||||
|
||||
Reference in New Issue
Block a user