修复不同摄像头的物品识别问题

This commit is contained in:
litian.zhuang
2021-12-13 18:10:27 +08:00
parent 7692abeb49
commit 75f9a9aca0
2 changed files with 5 additions and 2 deletions

View File

@@ -13,7 +13,8 @@
<node pkg= "tensorflow_object_detector" name="detect_ros" type="detect_ros.py" output="screen">
<remap from="image" to="/camera/color/image_raw" if="$(eval arg('camera_type_tel')=='d435')"/>
<remap from="image" to="/camera/rgb/image_raw" unless="$(eval arg('camera_type_tel')=='d435')"/>
<remap from="image" to="/camera/rgb/image_raw" if="$(eval arg('camera_type_tel')=='astrapro')"/>
<remap from="image" to="/camera/rgb/image_raw" if="$(eval arg('camera_type_tel')=='astra')"/>
</node>