Skip to content

Commit

Permalink
Merge pull request #1894 from mqcmd196/PR/pr2-rosbag-play-option
Browse files Browse the repository at this point in the history
[jsk_pr2_lifelog] add time related options for rosbag_play
  • Loading branch information
k-okada authored Dec 11, 2023
2 parents 39aa4a3 + 3c5e471 commit 7317e91
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
<arg name="gui" default="false" />
<arg name="loop_flag" value="--loop" if="$(arg loop)" />
<arg name="loop_flag" value="" unless="$(arg loop)" />
<arg name="start_time" default="0" />
<arg name="duration_time" default="0" />
<arg name="duration" default="--duration $(arg duration_time)" if="$(eval duration_time != 0)" />
<arg name="duration" default="" if="$(eval duration_time == 0)" />

<arg name="RGB_CAMERA_INFO" value="/kinect_head/rgb/throttled/camera_info" />
<arg name="RGB_IMAGE" value="/kinect_head/rgb/throttled/image_rect_color" />
Expand Down Expand Up @@ -78,7 +82,7 @@

<!-- rosbag player -->
<node pkg="rosbag" type="play" name="rosbag_play"
args="$(arg rosbag) $(arg loop_flag) --clock" output="screen" />
args="$(arg rosbag) $(arg loop_flag) --clock --start $(arg start_time) $(arg duration)" output="screen" />

<node pkg="rviz" type="rviz" name="$(anon rviz)" if="$(arg gui)"
args="-d $(find jsk_pr2_startup)/config/jsk_startup.rviz" />
Expand Down

0 comments on commit 7317e91

Please sign in to comment.