@@ -32,6 +32,9 @@ def generate_launch_description():
3232
3333 waypoint_share = get_package_share_directory ('waypoint_manager' )
3434 waypoint_launch_file = os .path .join (waypoint_share , 'launch' , 'waypoint_manager.launch.py' )
35+
36+ yolo_ros_bt_share = get_package_share_directory ('yolo_ros_bt' )
37+ yolo_ros_launch_file = os .path .join (yolo_ros_bt_share , 'launch' , 'yolo.ros.launch.py' )
3538
3639 default_params = PathJoinSubstitution ([
3740 FindPackageShare ('athena_planner' ), 'config' , 'nav2_params.yaml'
@@ -56,6 +59,11 @@ def generate_launch_description():
5659 publish_zed_odom = PythonExpression (
5760 ["'true' if '" , use_localizer , "' == 'false' else 'false'" ]
5861 )
62+
63+ cmd_vel_out_topic = PythonExpression ([
64+ "'/front_ackermann_controller/reference' if '" , sim ,
65+ "' == 'true' else '/rear_ackermann_controller/reference'"
66+ ])
5967
6068 twist_stamper_node = Node (
6169 package = 'twist_stamper' ,
@@ -64,7 +72,7 @@ def generate_launch_description():
6472 parameters = [{'use_sim_time' : sim }],
6573 remappings = [
6674 ('cmd_vel_in' , '/cmd_vel_nav' ),
67- ('cmd_vel_out' , '/rear_ackermann_controller/reference' ),
75+ ('cmd_vel_out' , cmd_vel_out_topic ),
6876 ],
6977 )
7078
@@ -108,6 +116,12 @@ def generate_launch_description():
108116 PythonLaunchDescriptionSource (gps_goal_launch_file ),
109117 launch_arguments = {'use_sim_time' : sim }.items (),
110118 )
119+
120+ yolo_ros_launch = IncludeLaunchDescription (
121+ PythonLaunchDescriptionSource (yolo_ros_launch_file ),
122+ launch_arguments = {'use_sim_time' : sim }.items (),
123+ condition = IfCondition (sim ),
124+ )
111125
112126 point_cloud_filterer_sim = Node (
113127 package = 'point_cloud_filterer' ,
@@ -180,6 +194,7 @@ def generate_launch_description():
180194 sensors_launch ,
181195 aruco_launch ,
182196 waypoint_launch ,
197+ yolo_ros_launch ,
183198 point_cloud_filterer_sim ,
184199 point_cloud_relay ,
185200 gps_goal_launch ,
0 commit comments