Last active
March 6, 2018 19:18
-
-
Save linknum23/7350a48b1f0d1d25e2589d758b04cde3 to your computer and use it in GitHub Desktop.
Launching 1KHz bagfile playback
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<launch> | |
<arg name="play_bag" default="true"/> | |
<arg name="uut" default="my_node"/> | |
<param name="use_sim_time" value="true"/> | |
<arg name="bag_file" value="$(env HOME)/.ros/my_bag.bag"/> | |
<node pkg="my_pkg" type="$(param uut)" name="$(param uut)_node" output="screen"/> | |
<!-- NOTE: standard rosbag published clock rate of 100Hz, was too slow for my ros timer callbacks --> | |
<!-- Produce a clock, using the bagfile, at 1KHz to make timer callbacks up to a KHz work! --> | |
<node pkg="rosbag" type="play" name="player" args="$(arg bag_file) --clock --hz=1000" output="screen" if="$(arg play_bag)"/> | |
</launch> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment