Skip to content

Time stamp on simulated lidar #31

@olofmat

Description

@olofmat

In src/svea_core/src/svea/simulators/sim_lidar.py rospy.Time.now() is only called once in initialization. For me this lead to issues with tf transforms with the /scan topic (as all messages had the same, and wrong, timestamp).

I added self._scan_msg.header.stamp = rospy.Time.now() to the publish_scan function which made it work for me. Not sure if that is a good fix or not.

@kaarmu and @frankjjiang is that a good fix or will that affect other parts of the script?

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