Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

geometry2/tf2 warning TF_REPEATED_DATA #1555

Closed
stribor14 opened this issue Nov 10, 2020 · 0 comments · Fixed by #1556
Closed

geometry2/tf2 warning TF_REPEATED_DATA #1555

stribor14 opened this issue Nov 10, 2020 · 0 comments · Fixed by #1556

Comments

@stribor14
Copy link
Contributor

Git commit hash: 2712067e0563229248ac60c3e7be9b55c462bdce (and all previous)

This issue is linked with the following issue: ros/geometry2#467

A change in geometry2 package was introduced where there is a warning when multiple transforms between the same frames are published with the same timestamp.

This happens in simulation, but I did not test it on the robot yet, but from looking at the source code, I think the problem is specifically with the simulation at the following lines:

const ::cartographer::common::Time now = std::max(
FromRos(ros::Time::now()), extrapolator.GetLastExtrapolatedTime());
stamped_transform.header.stamp =
node_options_.use_pose_extrapolator
? ToRos(now)
: ToRos(trajectory_data.local_slam_data->time);

My guess: if using the pose_extrapolator, simulated time can(?) trigger the timer event multiple times if trajectory_publish_period_sec is sufficiently small which results in repeated TF publishing (because in the first iteration extrapolator advances which results in stamped_transform.header.stamp being the same in the next iteration)

The resulting repeated transform is ignored by the tf2 buffers (new standard behavior in ROS noetic), so the only consequence is a lot of generated warnings (which makes the roslog unreadable)

stribor14 pushed a commit to romb-technologies/cartographer_ros that referenced this issue Nov 10, 2020
stribor14 pushed a commit to romb-technologies/cartographer_ros that referenced this issue Nov 10, 2020
stribor14 pushed a commit to romb-technologies/cartographer_ros that referenced this issue Nov 11, 2020
MichaelGrupp pushed a commit that referenced this issue Nov 13, 2020
WLwind pushed a commit to WLwind/cartographer_ros that referenced this issue Jan 5, 2021
doisyg pushed a commit to wyca-robotics/cartographer_ros that referenced this issue Nov 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant