ros2 / ros2/geometry2

lookupTransform at tf2::TimePointZero returns TransformStamped with wrong stamp

Open
#565 4 comments 0 reactions 1 assignee View on GitHub

@clalancette is already working on this.

Since Jan 19, 2023.

Dominant language
C++
Stars
153
Forks
256
Avg merge
3d 23h
Merged PRs (30d)
14

Description

Bug report

Required Info:

  • Operating System:
    • Ubuntu 22.04
  • Installation type:
    • bin
  • Version or commit hash:
    • last available Humble binaries
  • DDS implementation:
    • Cyclone
  • Client library (if applicable):
    • rclcpp
Steps to reproduce issue

Use

lookupTransform(
    const std::string & target_frame, const std::string & source_frame,
    const TimePoint & time)

with time set to tf2::TimePointZero

Check the returned geometry_msgs::msg::TransformStamped header.stamp

Expected behavior

It should be set to the actual time of the last available transform between target_frame and source_frame.

Actual behavior

The returned geometry_msgs::msg::TransformStamped header.stamp is 0

Additional information

Maybe it is the actual intended behavior, but then how to know the time of the returned transform ?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.