Skip to content

Wrong timestamps when running with noetic #12

@bedaberner

Description

@bedaberner

Environment
Please complete the following information.
ROS distribution: noetic
Operating system: 20.04
Python version: 3.8

natnet_ros version
Try the latest commit in the dev branch in case your issue is already fixed.
natnet_ros branch: dev

Describe the bug
When running the driver with ros noetic under python 3.8, the timestamps are not in the expected time reference.

As is described in the python_natnet package, the time source used for the timestamps is timeit.default_timer.
The source for timeit.default_timer seems to change between python2.7 (where it is time since last epoch) and python 3.8 (where it seems to be since boot time of the system).
This means, that in noetic which uses python 3.8, the timestamps don't match and are not usable for tf transforms etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions