mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-03 16:27:46 +08:00
ros-pkg: added stereo_throttle plugin
git-svn-id: http://rtabmap.googlecode.com/svn/trunk/ros-pkg@1895 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
<param name="camera_info_url_left" value="" />
|
||||
<param name="camera_info_url_right" value="" />
|
||||
</node>
|
||||
|
||||
|
||||
<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"
|
||||
@@ -17,7 +17,22 @@
|
||||
|
||||
<!-- Run the ROS package stereo_image_proc -->
|
||||
<group ns="/stereo_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>
|
||||
|
||||
@@ -28,14 +43,16 @@
|
||||
<param name="base_link_frame_id" value="base_link"/>
|
||||
<param name="odom_frame_id" value="/odom"/>
|
||||
<param name="ref_frame_change_method" value="1"/>
|
||||
<remap from="left/camera_info" to="left/camera_info_throttle" />
|
||||
<remap from="right/camera_info" to="right/camera_info_throttle" />
|
||||
</node>
|
||||
|
||||
<!--
|
||||
<node pkg="fovis_ros" type="fovis_stereo_odometer" name="stereo_odometer" >
|
||||
<remap from="/stereo/left/image" to="/stereo_camera/left/image_rect" />
|
||||
<remap from="/stereo/right/image" to="/stereo_camera/right/image_rect" />
|
||||
<remap from="/stereo/left/camera_info" to="/stereo_camera/left/camera_info" />
|
||||
<remap from="/stereo/right/camera_info" to="/stereo_camera/right/camera_info" />
|
||||
<remap from="/stereo/left/camera_info" to="/stereo_camera/left/camera_info_throttle" />
|
||||
<remap from="/stereo/right/camera_info" to="/stereo_camera/right/camera_info_throttle" />
|
||||
<remap from="odometry" to="stereo_odometer/odometry" />
|
||||
</node>
|
||||
-->
|
||||
@@ -43,8 +60,8 @@
|
||||
<node pkg="rtabmap" type="stereo_odometry" name="stereo_odometer" output="screen">
|
||||
<remap from="left/image_rect" to="/stereo_camera/left/image_rect"/>
|
||||
<remap from="right/image_rect" to="/stereo_camera/right/image_rect"/>
|
||||
<remap from="left/camera_info" to="/stereo_camera/left/camera_info"/>
|
||||
<remap from="right/camera_info" to="/stereo_camera/right/camera_info"/>
|
||||
<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"/>
|
||||
|
||||
<param name="frame_id" type="string" value="base_link"/>
|
||||
@@ -66,8 +83,8 @@
|
||||
|
||||
<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"/>
|
||||
<remap from="right/camera_info" to="/stereo_camera/right/camera_info"/>
|
||||
<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"/>
|
||||
|
||||
@@ -100,7 +117,7 @@
|
||||
<param name="queue_size" type="int" value="30"/>
|
||||
|
||||
<remap from="rgb/image" to="/stereo_camera/left/image_rect_color"/>
|
||||
<remap from="rgb/camera_info" to="/stereo_camera/left/camera_info"/>
|
||||
<remap from="rgb/camera_info" to="/stereo_camera/left/camera_info_throttle"/>
|
||||
<remap from="depth/image" to="/odom_depth"/>
|
||||
|
||||
<remap from="odom" to="/stereo_odometer/odometry"/>
|
||||
@@ -111,27 +128,5 @@
|
||||
<!-- RVIZ -->
|
||||
|
||||
<node pkg="rviz" type="rviz" name="rviz" args="-d $(find rtabmap)/launch/config/rgbd.rviz"/>
|
||||
<node pkg="nodelet" type="nodelet" name="standalone_nodelet" args="manager" output="screen"/>
|
||||
<node pkg="nodelet" type="nodelet" name="data_odom_sync" args="load rtabmap/data_odom_sync standalone_nodelet">
|
||||
<remap from="rgb/image_in" to="/stereo_camera/left/image_rect_color"/>
|
||||
<remap from="depth/image_in" to="/odom_depth"/>
|
||||
<remap from="rgb/camera_info_in" to="/stereo_camera/left/camera_info"/>
|
||||
<remap from="odom_in" to="/stereo_odometer/odom"/>
|
||||
|
||||
<remap from="rgb/image_out" to="data_odom_sync/image"/>
|
||||
<remap from="depth/image_out" to="data_odom_sync/depth"/>
|
||||
<remap from="rgb/camera_info_out" to="data_odom_sync/camera_info"/>
|
||||
<remap from="odom_out" to="odom_sync"/>
|
||||
|
||||
<param name="queue_size" type="int" value="30"/>
|
||||
</node>
|
||||
<node pkg="nodelet" type="nodelet" name="points_xyzrgb" args="load rtabmap/point_cloud_xyzrgb standalone_nodelet">
|
||||
<remap from="rgb/image" to="data_odom_sync/image"/>
|
||||
<remap from="depth/image" to="data_odom_sync/depth"/>
|
||||
<remap from="rgb/camera_info" to="data_odom_sync/camera_info"/>
|
||||
<remap from="cloud" to="voxel_cloud" />
|
||||
|
||||
<param name="queue_size" type="int" value="10"/>
|
||||
</node>
|
||||
|
||||
</launch>
|
||||
Reference in New Issue
Block a user