-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Warning: TF_REPEATED_DATA ignoring data with redundant timestamp for frame odom_comb #1125
Comments
I don't actually see how it would be possible for AMCL to publish two transforms with the same timestamp unless it receives two laser scans with the same timestamp - as far as I can see, the only place we publish transforms is inside laserReceived() - and we use the timestamp of the laser message received. To me that indicates either an issue with the Gazebo laser plugin, or some issue in ROS that is causing the same message to be delivered to AMCL twice. |
I can confirm that the warning log messages can be reduced when the |
When using gazebo without the
|
Thanks @reinzor this looks promising. However, I still see the TF warnings being published afer I have added the
I am not sure if I use the lockstep parameter correctly in the launch file. |
The
The
You could use the |
I am having the same problem. I tried setting
Any other ideas? |
This is not an answer to the question, but if you just want to avoid/hide the warnings and analyze the code output on terminal, then you can use the below command at the end of the original command:
Reference: #467 |
I solved this problem from source . The source code of amcl . To reduce the number of TF_REPEATED_DATA warnings the laser scan publish rate needs to be reduced, because amcl depends on rate of incoming laser messages. I did this in the .cpp node and it totally worked fine for me . If anyone has this issue , you can follow this procedure. |
@Daviesss sounds like we want to configure this as parameter instead of setting it hardcoded in the c++-file. Maybe update your code a bit and create a pull-request for AMCL? |
I don't mind sending a pull request , will do that before the week ends. Warm regards, Davies. |
Hi, when working with
amcl
for example the mir-robot Gazebo demo (existing map) a lot of the following warnings are logged:I guess this is related to ros/geometry2#467. To reduce the number of
TF_REPEATED_DATA
warnings the laser scan publish rate needs to be reduced, becauseamcl
depends on rate of incoming laser messages.According to the discussion here this seems to be a bug in
amcl
:Can you provide some more hints on how to fix this warning? I assume the problem is in
laserReceived()
?The text was updated successfully, but these errors were encountered: