Skip to content

Commit

Permalink
supply rate to mcap player and fix field name of clock msg
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasw committed Aug 27, 2024
1 parent 179cbba commit d51f54a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions one2z/scripts/ros1_play_mcap.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def main():
count = 0
while not rospy.is_shutdown():
rate = rospy.get_param("~rate", 1.0)
play_mcap(sys.argv[1], msg_classes)
play_mcap(sys.argv[1], msg_classes, rate)
rospy.loginfo(f"looping {count}")
count += 1
time.sleep(1.0)
Expand Down Expand Up @@ -186,7 +186,7 @@ def __init__(self):

# TODO(lucasw) keep advancing /clock for a few seconds before looping
for i in range(100):
last_clock_msg.time += rospy.Duration(0.05)
last_clock_msg.clock += rospy.Duration(0.05)
clock_pub.publish(last_clock_msg)
time.sleep(0.01)

Expand Down

0 comments on commit d51f54a

Please sign in to comment.