Skip to content

Commit

Permalink
tweak record
Browse files Browse the repository at this point in the history
  • Loading branch information
tetov committed Aug 21, 2024
1 parent 0b04a14 commit a177b61
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 33 deletions.
53 changes: 27 additions & 26 deletions launch/bringup.launch
Original file line number Diff line number Diff line change
@@ -1,32 +1,33 @@
<?xml version="1.0"?>
<launch xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://gist.githubusercontent.com/nalt/dfa2abc9d2e3ae4feb82ca5608090387/raw/roslaunch.xsd">
<launch
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://gist.githubusercontent.com/nalt/dfa2abc9d2e3ae4feb82ca5608090387/raw/roslaunch.xsd">

<!-- ARGS -->
<arg
name="no_rgb" default="false" />
<arg name="no_rgbd" default="false" />
<arg name="no_robots"
default="false" />
<arg
name="no_record" default="false" />
<!-- ARGS -->
<arg name="no_rgb" default="false" />
<arg name="no_rgbd" default="false" />
<arg name="no_robots" default="false" />
<arg name="no_record" default="false" />
<include
file="$(dirname)/rgbd.launch"
pass_all_args="true"
unless="$(arg no_rgbd)" />

<!-- INCLUDES -->
<include file="$(dirname)/rgbd.launch"
pass_all_args="true" unless="$(arg no_rgbd)" />
<include
file="$(dirname)/rgb.launch"
pass_all_args="true"
unless="$(arg no_rgb)" />

<include file="$(dirname)/rgb.launch"
pass_all_args="true" unless="$(arg no_rgb)" />
<include
file="$(dirname)/robots.launch"
pass_all_args="true"
unless="$(arg no_robots)" />

<include
file="$(dirname)/robots.launch" pass_all_args="true" unless="$(arg no_robots)" />

<!-- RECORD -->
<node
name="record" pkg="rosbag" type="record"
args="--publish --output-prefix=$(env HOME)/rosbags/$(optenv HOSTNAME no_env_hostname) --split
--duration=1h --lz4 --regex '/tf(.*)'
'(.*)(image_raw|camera_info|image_rect)' '(.*)points(.*)' '/octomap(.*)'"
unless="$(arg no_record)" />
<node
name="record"
pkg="rosbag"
type="record"
args="--publish --output-prefix=$(env HOME)/rosbags/$(optenv HOSTNAME no_env_hostname) --split --duration=1h --lz4 --regex '/tf(.*)' '(.*)/camera_info' '(.*)/(image_raw|image_rect|filtered)/compressed' '(.*)points(.*)' '(.*)/octomap_binary"
unless="$(arg no_record)" />
</launch>
6 changes: 3 additions & 3 deletions launch/extract.launch
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@

<node pkg="rosbag" type="play" name="rosbag" required="true" args="$(arg bag_file)" />

<node name="extract" pkg="image_view" type="extract_images" respawn="false" required="true"
<node pkg="image_view" type="extract_images" name="extract" required="true"
output="screen" cwd="ROS_HOME">
<remap from="image" to="/oak/rgb/image_raw" />
</node>

<node name="pc2pcd" pkg="pcl_ros" type="pointcloud_to_pcd">
<node pkg="pcl_ros" type="pointcloud_to_pcd" name="pc2pcd">
<remap from="input" to="/oak/points" />
<param name="frame_id" value="world" />
<param name="prefix" value="/home/tetov/pcds/" />
</node>

<node name="tf_echo_camera" pkg="tf" type="tf_echo" args="oak world 1" />
<node pkg="tf" type="tf_echo" name="tf_echo_camera" args="oak world 1" />

</launch>
7 changes: 3 additions & 4 deletions launch/robots.launch
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@
<arg name="robot_state_port" default="30201" doc="Port of the state interface" />
<arg name="sequence_check_mode" default="none"
doc="Define sequence ID check mode. Supported: none|all|incoming|outgoing" />
<arg name="namespace" default="/"
doc="Allows to define a namespace in order to connect to multiple robots.
Defaults to root (ie /)." />
<arg name="namespace" default="rob1"
doc="Allows to define a namespace in order to connect to multiple robots." />

<arg name="no_rws" default="false" />
<arg name="no_rrc" default="false" />
Expand Down Expand Up @@ -49,7 +48,7 @@

<node pkg="robot_state_publisher" type="robot_state_publisher"
name="rob_st_pub">
<remap from="joint_states" to="/rws/joint_states" />
<remap from="joint_states" to="rws/joint_states" />
</node>
</group>

Expand Down

0 comments on commit a177b61

Please sign in to comment.