Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[jsk_pr2_lifelog] add time related options for rosbag_play #1894

Merged
merged 1 commit into from
Dec 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)" />
mqcmd196 marked this conversation as resolved.
Show resolved Hide resolved

<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
Loading