Skip to content

Commit

Permalink
Fix object detector launch not using compressed
Browse files Browse the repository at this point in the history
  • Loading branch information
andyblarblar committed Apr 2, 2024
1 parent 7718051 commit 60c42d4
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions phoenix_gazebo/launch/include/obj_detector/obj_detector.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
from launch.conditions import IfCondition, UnlessCondition
from launch import LaunchDescription
from launch.actions import DeclareLaunchArgument
from launch.actions import IncludeLaunchDescription
from launch.actions import IncludeLaunchDescription, LogInfo
from launch.launch_description_sources import PythonLaunchDescriptionSource
from launch.substitutions import LaunchConfiguration
from launch.substitutions import LaunchConfiguration, PythonExpression
from launch_ros.actions import Node


Expand All @@ -23,6 +23,13 @@ def generate_launch_description():
debug = LaunchConfiguration('debug')
trans = LaunchConfiguration('transport')

remappings = [('/camera/mid/rgb/camera_info', camera_info_topic),
('/camera/mid/depth', depth_topic),
('/object_poses', detection_topic),
('/camera/mid/rgb', rgb_topic),
('/camera/mid/rgb/compressed', [rgb_topic, '/compressed']),
]

det = Node(
package='obj_detector',
executable='obj_detector',
Expand All @@ -34,12 +41,7 @@ def generate_launch_description():
'debug': debug,
'transport_type': trans
}],
remappings=[
('/camera/mid/rgb', rgb_topic),
('/camera/mid/rgb/camera_info', camera_info_topic),
('/camera/mid/depth', depth_topic),
('/object_poses', detection_topic),
]
remappings=remappings
)

return LaunchDescription([
Expand Down

0 comments on commit 60c42d4

Please sign in to comment.