Skip to content

Commit

Permalink
[jsk_robot_startup] Throttle object_detection logger and human_pose l…
Browse files Browse the repository at this point in the history
…ogger
  • Loading branch information
tkmtnt7000 committed Jul 5, 2023
1 parent 3626d86 commit 94d5903
Showing 1 changed file with 76 additions and 45 deletions.
121 changes: 76 additions & 45 deletions jsk_robot_common/jsk_robot_startup/lifelog/common_logger.launch
Original file line number Diff line number Diff line change
Expand Up @@ -351,54 +351,85 @@

<!-- object detection logger -->
<group if="$(arg save_object_detection)">
<node if="$(arg save_edgetpu_object_detector)"
name="object_detection_logger"
pkg="jsk_robot_startup" type="mongo_record.py"
machine="$(arg machine)"
respawn="$(arg respawn)">
<rosparam subst_value="true">
database: $(arg database)
topics:
- /edgetpu_object_detector/output/class
- /edgetpu_object_detector/output/rects
</rosparam>
<rosparam subst_value="true" if="$(eval arg('collection') != '')">
collection: $(arg collection)
</rosparam>
</node>
<node unless="$(arg save_edgetpu_object_detector)"
name="object_detection_logger"
pkg="jsk_robot_startup" type="object_detection_logger.py"
machine="$(arg machine)"
respawn="$(arg respawn)">
<rosparam subst_value="true">
database: $(arg database)
map_frame: $(arg map_frame_id)
robot_frame: $(arg base_frame_id)
</rosparam>
<rosparam subst_value="true" if="$(eval arg('collection') != '')">
collection: $(arg collection)
</rosparam>
</node>
<group if="$(arg save_edgetpu_object_detector)">
<node name="edgetpu_object_detector_throttle"
pkg="nodelet" type="nodelet"
args="load jsk_topic_tools/SynchronizedThrottle $(arg manager)"
machine="$(arg machine)"
respawn="$(arg respawn)">
<rosparam subst_value="true">
approximate_sync: True
update_rate: 1.0
topics:
- /edgetpu_object_detector/output/class
- /edgetpu_object_detector/output/rects
</rosparam>
</node>
<node if="$(arg save_edgetpu_object_detector)"
name="object_detection_logger"
pkg="jsk_robot_startup" type="mongo_record.py"
machine="$(arg machine)"
respawn="$(arg respawn)">
<rosparam subst_value="true">
database: $(arg database)
topics:
- /edgetpu_object_detector/output/class/throttled
- /edgetpu_object_detector/output/rects/throttled
</rosparam>
<rosparam subst_value="true" if="$(eval arg('collection') != '')">
collection: $(arg collection)
</rosparam>
</node>
</group>
<group unless="$(arg save_edgetpu_object_detector)">
<node name="objqect_detection_logger"
pkg="jsk_robot_startup" type="object_detection_logger.py"
machine="$(arg machine)"
respawn="$(arg respawn)">
<rosparam subst_value="true">
database: $(arg database)
map_frame: $(arg map_frame_id)
robot_frame: $(arg base_frame_id)
</rosparam>
<rosparam subst_value="true" if="$(eval arg('collection') != '')">
collection: $(arg collection)
</rosparam>
</node>
</group>
</group>

<!-- human pose logger -->
<node if="$(arg save_human_pose)"
name="human_pose_logger"
pkg="jsk_robot_startup" type="mongo_record.py"
machine="$(arg machine)"
respawn="$(arg respawn)">
<rosparam subst_value="true">
database: $(arg database)
topics:
- /edgetpu_human_pose_estimator/output/class
- /edgetpu_human_pose_estimator/output/poses
- /edgetpu_human_pose_estimator/output/rects
</rosparam>
<rosparam subst_value="true" if="$(eval arg('collection') != '')">
collection: $(arg collection)
</rosparam>
</node>
<group if="$(arg save_human_pose)">
<node name="edgetpu_human_pose_throttle"
pkg="nodelet" type="nodelet"
args="load jsk_topic_tools/SynchronizedThrottle $(arg manager)"
machine="$(arg machine)"
respawn="$(arg respawn)">
<rosparam subst_value="true">
approximate_sync: True
update_rate: 1.0
topics:
- /edgetpu_human_pose_estimator/output/class
- /edgetpu_human_pose_estimator/output/poses
- /edgetpu_human_pose_estimator/output/rects
</rosparam>
</node>
<node name="human_pose_logger"
pkg="jsk_robot_startup" type="mongo_record.py"
machine="$(arg machine)"
respawn="$(arg respawn)">
<rosparam subst_value="true">
database: $(arg database)
topics:
- /edgetpu_human_pose_estimator/output/class/throttled
- /edgetpu_human_pose_estimator/output/poses/throttled
- /edgetpu_human_pose_estimator/output/rects/throttled
</rosparam>
<rosparam subst_value="true" if="$(eval arg('collection') != '')">
collection: $(arg collection)
</rosparam>
</node>
</group>

<!-- action logger -->
<node if="$(arg save_action)"
Expand Down

0 comments on commit 94d5903

Please sign in to comment.