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

Add options to the files for rosbag and add dependency #16

Merged
merged 3 commits into from
Apr 20, 2021
Merged
Show file tree
Hide file tree
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
@@ -1,11 +1,18 @@
<launch>
<arg name="rosbag" doc="rosbag file path" />
<arg name="use_decompress" default="true" />
<arg name="use_rviz" default="true" />
<arg name="loop" default="true" />
<arg name="gui" default="true" />
<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)" />

<include
file="$(find jsk_spot_startup)/launch/rviz.launch"
if="$(arg use_rviz)"
if="$(arg gui)"
/>

<param name="/use_sim_time" value="true" />
Expand All @@ -24,7 +31,7 @@
pkg="rosbag"
type="play"
name="$(anon rosbag)"
args="$(arg rosbag) --clock"
args="$(arg rosbag) $(arg loop_flag) --clock --start $(arg start_time) $(arg duration)"
launch-prefix="xterm -e"
/>
<node
Expand Down
1 change: 1 addition & 0 deletions jsk_spot_robot/jsk_spot_startup/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<exec_depend>spot_driver</exec_depend>
<exec_depend>respeaker_ros</exec_depend>
<exec_depend>cmd_vel_smoother</exec_depend>
<exec_depend>xterm</exec_depend>

<test_depend>rostest</test_depend>

Expand Down