Robotics StackExchange | Archived questions

slam_toolbox offline slam

Hi, with reference to https://github.com/ros-drivers/ros2_ouster_drivers/issues/106 I am unable to visualize the pointcloud in rviz if my fixed frame is not base_link or its children.... I went on to attempt recording a bag and tried launching offline slam but I get this chunk of messages in terminal:

[sync_slam_toolbox_node-1] [INFO] [1656682550.264695902] [slam_toolbox]: Message Filter dropping message: frame 'os1_lidar' at time 5867.116 for reason 'the timestamp on the message is earlier than all the data in the transform cache'

Here is the bag: https://drive.google.com/file/d/1vKoF0TjncDiM0ZHV_pAk7KVvP6xUBSQi/view?usp=sharing

odom->baselink->everything else looks good... odom is being published by robotlocalization

My TF Tree:

image description

EDIT 1:

I was able to figure out that the timestamps on the lidar vs the other topics were way off: image description

I've set timestampmode: TIMEFROMPTP1588

Am i not supposed to set to this?

Asked by MrOCW on 2022-07-01 08:42:58 UTC

Comments

Answers

The most immediate thing I see is that your node on the left is using simulation time (59XX) while the bottom node on the right is using wall time (165xxxxxxx) so your error makes sense that its having issues since they're not referencing the same time source.

I think you need to use sim time in those nodes as well.

Asked by stevemacenski on 2022-07-01 13:41:29 UTC

Comments