ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
The simple answer here is that the TimeSynchronizer expects messages to have the same timestamp, so you should publish both messages using the exact same timestamp in the header.
The better answer here is that, unless you really need these encoder values separately later, it's probably better to publish both of them in the same message. If you describe how you're capturing encoder data and what you're doing with this encoder data we might be able to give you better advice.