Skip to content

Commit 7176938

Browse files
follow old transition
Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
1 parent 6608650 commit 7176938

File tree

2 files changed

+37
-38
lines changed

2 files changed

+37
-38
lines changed

launch/tier4_planning_launch/launch/scenario_planning/lane_driving/behavior_planning/behavior_planning.launch.xml

+36-37
Original file line numberDiff line numberDiff line change
@@ -180,44 +180,43 @@
180180
/>
181181
<let name="behavior_velocity_planner_launch_modules" value="$(eval &quot;'$(var behavior_velocity_planner_launch_modules)' + '$(var launch_module_list_end)'&quot;)"/>
182182

183-
<node_container pkg="rclcpp_components" exec="$(var container_type)" name="behavior_planning_container" namespace="" args="" output="screen">
184-
<composable_node pkg="behavior_path_planner" plugin="behavior_path_planner::BehaviorPathPlannerNode" name="behavior_path_planner" namespace="">
185-
<!-- topic remap -->
186-
<remap from="~/input/route" to="$(var input_route_topic_name)"/>
187-
<remap from="~/input/vector_map" to="$(var input_vector_map_topic_name)"/>
188-
<remap from="~/input/perception" to="/perception/object_recognition/objects"/>
189-
<remap from="~/input/occupancy_grid_map" to="/perception/occupancy_grid_map/map"/>
190-
<remap from="~/input/costmap" to="/planning/scenario_planning/parking/costmap_generator/occupancy_grid"/>
191-
<remap from="~/input/traffic_signals" to="$(var input_traffic_light_topic_name)"/>
192-
<remap from="~/input/odometry" to="/localization/kinematic_state"/>
193-
<remap from="~/input/accel" to="/localization/acceleration"/>
194-
<remap from="~/input/scenario" to="/planning/scenario_planning/scenario"/>
195-
<remap from="~/output/path" to="path_with_lane_id"/>
196-
<remap from="~/output/turn_indicators_cmd" to="/planning/turn_indicators_cmd"/>
197-
<remap from="~/output/hazard_lights_cmd" to="/planning/behavior_path_planner/hazard_lights_cmd"/>
198-
<remap from="~/output/modified_goal" to="/planning/scenario_planning/modified_goal"/>
199-
<remap from="~/output/stop_reasons" to="/planning/scenario_planning/status/stop_reasons"/>
200-
<!-- params -->
201-
<param from="$(var common_param_path)"/>
202-
<param from="$(var vehicle_param_file)"/>
203-
<param from="$(var nearest_search_param_path)"/>
204-
<param name="launch_modules" value="$(var behavior_path_planner_launch_modules)"/>
205-
<param name="enable_all_modules_auto_mode" value="$(var enable_all_modules_auto_mode)"/>
206-
<param name="is_simulation" value="$(var is_simulation)"/>
207-
<param from="$(var behavior_path_planner_side_shift_module_param_path)"/>
208-
<param from="$(var behavior_path_planner_avoidance_module_param_path)"/>
209-
<param from="$(var behavior_path_planner_avoidance_by_lc_module_param_path)"/>
210-
<param from="$(var behavior_path_planner_dynamic_avoidance_module_param_path)"/>
211-
<param from="$(var behavior_path_planner_lane_change_module_param_path)"/>
212-
<param from="$(var behavior_path_planner_goal_planner_module_param_path)"/>
213-
<param from="$(var behavior_path_planner_start_planner_module_param_path)"/>
214-
<param from="$(var behavior_path_planner_drivable_area_expansion_param_path)"/>
215-
<param from="$(var behavior_path_planner_scene_module_manager_param_path)"/>
216-
<param from="$(var behavior_path_planner_common_param_path)"/>
217-
<!-- composable node config -->
218-
<extra_arg name="use_intra_process_comms" value="false"/>
219-
</composable_node>
183+
<node pkg="behavior_path_planner" exec="behavior_path_planner_node" name="behavior_path_planner" namespace="" launch-prefix="xterm -l -lf /home/zulfaqar/develop/aw.txt -e gdb -ex run --args">
184+
<!-- topic remap -->
185+
<remap from="~/input/route" to="$(var input_route_topic_name)"/>
186+
<remap from="~/input/vector_map" to="$(var input_vector_map_topic_name)"/>
187+
<remap from="~/input/perception" to="/perception/object_recognition/objects"/>
188+
<remap from="~/input/occupancy_grid_map" to="/perception/occupancy_grid_map/map"/>
189+
<remap from="~/input/costmap" to="/planning/scenario_planning/parking/costmap_generator/occupancy_grid"/>
190+
<remap from="~/input/traffic_signals" to="$(var input_traffic_light_topic_name)"/>
191+
<remap from="~/input/odometry" to="/localization/kinematic_state"/>
192+
<remap from="~/input/accel" to="/localization/acceleration"/>
193+
<remap from="~/input/scenario" to="/planning/scenario_planning/scenario"/>
194+
<remap from="~/output/path" to="path_with_lane_id"/>
195+
<remap from="~/output/turn_indicators_cmd" to="/planning/turn_indicators_cmd"/>
196+
<remap from="~/output/hazard_lights_cmd" to="/planning/behavior_path_planner/hazard_lights_cmd"/>
197+
<remap from="~/output/modified_goal" to="/planning/scenario_planning/modified_goal"/>
198+
<remap from="~/output/stop_reasons" to="/planning/scenario_planning/status/stop_reasons"/>
199+
<!-- params -->
200+
<param from="$(var common_param_path)"/>
201+
<param from="$(var vehicle_param_file)"/>
202+
<param from="$(var nearest_search_param_path)"/>
203+
<param name="launch_modules" value="$(var behavior_path_planner_launch_modules)"/>
204+
<param name="enable_all_modules_auto_mode" value="$(var enable_all_modules_auto_mode)"/>
205+
<param name="is_simulation" value="$(var is_simulation)"/>
206+
<param from="$(var behavior_path_planner_side_shift_module_param_path)"/>
207+
<param from="$(var behavior_path_planner_avoidance_module_param_path)"/>
208+
<param from="$(var behavior_path_planner_avoidance_by_lc_module_param_path)"/>
209+
<param from="$(var behavior_path_planner_dynamic_avoidance_module_param_path)"/>
210+
<param from="$(var behavior_path_planner_lane_change_module_param_path)"/>
211+
<param from="$(var behavior_path_planner_goal_planner_module_param_path)"/>
212+
<param from="$(var behavior_path_planner_start_planner_module_param_path)"/>
213+
<param from="$(var behavior_path_planner_drivable_area_expansion_param_path)"/>
214+
<param from="$(var behavior_path_planner_scene_module_manager_param_path)"/>
215+
<param from="$(var behavior_path_planner_common_param_path)"/>
216+
<!-- composable node config -->
217+
</node>
220218

219+
<node_container pkg="rclcpp_components" exec="$(var container_type)" name="behavior_planning_container" namespace="" args="" output="screen">
221220
<composable_node pkg="behavior_velocity_planner" plugin="behavior_velocity_planner::BehaviorVelocityPlannerNode" name="behavior_velocity_planner" namespace="">
222221
<!-- topic remap -->
223222
<remap from="~/input/path_with_lane_id" to="path_with_lane_id"/>

planning/behavior_path_lane_change_module/src/interface.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ ModuleStatus LaneChangeInterface::updateState()
146146
if (!module_type_->isAbleToReturnCurrentLane()) {
147147
log_warn_throttled("Lane change path is unsafe but cannot return. Continue lane change.");
148148
change_state_if_stop_required();
149-
return within_turn_direction_lane ? ModuleStatus::FAILURE : ModuleStatus::RUNNING;
149+
return within_turn_direction_lane ? ModuleStatus::SUCCESS : ModuleStatus::RUNNING;
150150
}
151151

152152
const auto threshold = module_type_->getLaneChangeParam().backward_length_buffer_for_end_of_lane;

0 commit comments

Comments
 (0)