Skip to content

Incorrect time-stamp in slam /odom topic #19

@mmoore13

Description

@mmoore13

Running roslaunch realsense_ros_slam demo_slam.launch and rostopic echo /odom displays messages with the following header format:

---
header: 
  seq: 813
  stamp: 
    secs: 186413771
    nsecs:         0
  frame_id: odom

The time-stamp here is not as expected.

Changing
https://github.com/IntelRealSense/realsense_samples_ros/blob/9e98473e8bbd2826ff704c40311a8d149afa7a19/realsense_ros_slam/src/slam_nodelet.cpp#L399
to

odom.header.stamp = ros::Time(feTimeStamp / 1000);

seems to resolve the issue, yielding:

---
header: 
  seq: 102
  stamp: 
    secs: 1503427819
    nsecs: 480166912
  frame_id: odom

Line 380 looks like it should also be changed in the same way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions