Giter Club home page Giter Club logo

Comments (4)

heuristicus avatar heuristicus commented on July 17, 2024

The solution requires code changes, likely maintaining a list of the published tfs and then ignoring those which have already been published, but I've not had a chance to do this yet.

from spot_ros.

trangml-mit avatar trangml-mit commented on July 17, 2024

Is there any update on the fix to this? I'm not too sure where a list of published tfs could be kept to avoid this problem.

The constant print spam makes it pretty difficult to debug other messages.

from spot_ros.

heuristicus avatar heuristicus commented on July 17, 2024

I attempted a fix at

tf_msg = GetTFFromState(state, self.spot_wrapper, self.mode_parent_odom_tf)
to_remove = []
if len(tf_msg.transforms) > 0:
for transform in tf_msg.transforms:
for last_tf in self.last_tf_msg.transforms:
if transform == last_tf:
to_remove.append(transform)
if to_remove:
# Do it this way to preserve the original tf message received. If we store the message we have
# destroyed then if there are two duplicates in a row we will not remove the second set.
deduplicated_tf = copy.deepcopy(tf_msg)
for repeat_tf in to_remove:
deduplicated_tf.transforms.remove(repeat_tf)
publish_tf = deduplicated_tf
else:
publish_tf = tf_msg
a while back, I suppose it's still missing some of the duplicates.

from spot_ros.

trangml-mit avatar trangml-mit commented on July 17, 2024

Yeah, I realize now that it's actually having a problem due to any detected fiducials, so those may need special error handling. For now, my fix is just covering the fiducial.


Warning: TF_REPEATED_DATA ignoring data with redundant timestamp for frame fiducial_520 (parent vision) a
t time 1703005423.525936 according to authority /spot/spot_ros                                           
         at line 278 in /tmp/binarydeb/ros-noetic-tf2-0.7.7/src/buffer_core.cpp                          
Warning: TF_REPEATED_DATA ignoring data with redundant timestamp for frame filtered_fiducial_520 (parent 
vision) at time 1703005423.525936 according to authority /spot/spot_ros                                  
         at line 278 in /tmp/binarydeb/ros-noetic-tf2-0.7.7/src/buffer_core.cpp                          
Warning: TF_REPEATED_DATA ignoring data with redundant timestamp for frame dock_520 (parent vision) at ti
me 1703005423.525936 according to authority /spot/spot_ros                                               
         at line 278 in /tmp/binarydeb/ros-noetic-tf2-0.7.7/src/buffer_core.cpp                          
Warning: TF_REPEATED_DATA ignoring data with redundant timestamp for frame dock_520 (parent vision) at ti
me 1703005423.525936 according to authority /spot/spot_ros                                               
         at line 278 in /tmp/binarydeb/ros-noetic-tf2-0.7.7/src/buffer_core.cpp

from spot_ros.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.