Skip to content

Commit

Permalink
[jsk_pr2_lifelog] add time related options for rosbag_play
Browse files Browse the repository at this point in the history
  • Loading branch information
mqcmd196 committed Dec 4, 2023
1 parent d7cba75 commit 3c5e471
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 3c5e471

Please sign in to comment.