Skip to content
This repository was archived by the owner on Jan 14, 2023. It is now read-only.
This repository was archived by the owner on Jan 14, 2023. It is now read-only.

Time class does not follow getter/setter of other messages #2

Description

@chadrockey

@damonkohler @stonier

It looks like here at the Time (and Duration) classes that the method to access secs and nsecs does not follow the same pattern as for the rest of the messages:
https://github.com/rosjava/rosjava_bootstrap/blob/hydro/message_generation/src/main/java/org/ros/message/Time.java#L43

It looks like the old way, not the new "getSecs(), getNSecs(), setSecs(0)" method. So when you access it, the code looks like this:

message.getHeader().getStamp().secs

Do we want to add the methods into the Time and Duration classes?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions