tf broadcaster synchronization
supposed that i have two broadcasters that declare my robot's frame transformation (odom->base_link, base_link->base_laser), which are written in two different python files, (cuz it's convenient for me to manage the stack since the robot has many modules ); and i find the "odometry" tag just turn red and blue(error and OK) from time to time when i view the gmapping process in rviz. If i write them in the same python file, the problem is solved. I think it's a synchronization problem that the tf should be broadcasted in a same time. However, i just want to know, is there any solutions to that if I really want to write them in different python files?
I guess that this happens because both transformations use ros::time as source for the broadcasts timestamp - dunno what to do there, maybe you can simply check the last time stamp of one file in the other.