Skip to content

Support for custom timestamp #97

Open
@LastStarDust

Description

@LastStarDust

Hello!
Thank you for developing such a useful package. It has become an irreplaceable piece of our system.

In our system, the timestamp is expressed as a single uint64 number with nanosecond precision. Even if converting from nanosec to sec + nanosec is perfectly feasible, it would be cleaner if we could just use the timestamp as is.

Hence my question: would it be possible to use a custom definition of std_msgs/msg/Header Message for time synchronization with TimeSynchronizer or ApproximateTimeSynchronizer?

Concretely, I would like to use a header whose timestamp is a single uint64 stamp with nanosecond precision, instead of two int32 and uint32 stamps with second and nanosecond precision respectively, as in the default ROS2 definition.

If this feature is not implemented yet, I would like to contribute with a pull request. Just let me know if there is any request or suggestion on your side.

Regards
Giorgio

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions