Skip to content

Wrong type for builtin_interfaces.msg.Time #1370

@ichatenet

Description

@ichatenet

Description

  • Library Version: 1.8.0
  • ROS Version: humble
  • Platform / OS: Ubuntu 22.04.5 LTS

Steps To Reproduce

node.getClock().now().toMsg()

Expected Behavior
The method toMsg is typed to return numbers.

The interface used for the method return type.

export interface Time {
        sec: number;
        nanosec: number;
}

Actual Behavior
The method returns BigInts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions