Odom: don't update previousStamp on IMU updates, updated euroc_datasets.launch with okvis example

This commit is contained in:
matlabbe
2019-03-20 22:12:30 -04:00
parent 8d84cfd1bf
commit ec02608e01
4 changed files with 17 additions and 15 deletions
+4 -5
View File
@@ -5,15 +5,14 @@
Hand-held 3D lidar mapping example using only a Velodyne PUCK (no camera).
Prerequisities: rtabmap should be built with libpointmatcher
Example:
$ roslaunch velodyne_pointcloud VLP16_points.launch rpm:=600
$ roslaunch rtabmap_ros test_velodyne.launch
$ rosrun rviz rviz -f map
$ Show TF and /rtabmap/cloud_map topics
-->
<arg name="rtabmapviz" default="true"/>
<arg name="use_imu" default="false"/> <!-- Assuming IMU fixed to lidar and the top of the lidar always points to the ceiling -->
<arg name="imu_topic" default="/data/imu"/>
<arg name="use_imu" default="false"/> <!-- Assuming IMU fixed to lidar with /velodyne -> /imu_link TF -->
<arg name="imu_topic" default="/imu/data"/>
<arg name="scan_20_hz" default="false"/> <!-- If we launch the velodyne with "rpm:=1200" argument -->
<arg name="use_sim_time" default="false"/>
<param if="$(arg use_sim_time)" name="use_sim_time" value="true"/>
@@ -27,7 +26,7 @@
<!-- IMU orientation estimation and publish tf accordingly to os1_sensor frame -->
<node if="$(arg use_imu)" pkg="rtabmap_ros" type="imu_to_tf" name="imu_to_tf">
<remap from="imu/data" to="/imu/data"/>
<remap from="imu/data" to="$(arg imu_topic)"/>
<param name="fixed_frame_id" value="$(arg frame_id)_stabilized"/>
<param name="base_frame_id" value="$(arg frame_id)"/>
</node>
@@ -40,7 +39,7 @@
<param if="$(arg scan_20_hz)" name="expected_update_rate" type="double" value="25"/>
<param unless="$(arg scan_20_hz)" name="expected_update_rate" type="double" value="15"/>
<remap if="$(arg use_imu)" from="imu" to="/imu/data"/>
<remap if="$(arg use_imu)" from="imu" to="$(arg imu_topic)"/>
<param if="$(arg use_imu)" name="guess_frame_id" type="string" value="$(arg frame_id)_stabilized"/>
<param if="$(arg use_imu)" name="wait_imu_to_init" type="bool" value="true"/>