@@ -122,31 +122,6 @@ class AvoidanceModule : public SceneModuleInterface
122
122
calcSignedArcLength (path.points , ego_position, left_shift.finish_pose .position );
123
123
rtc_interface_ptr_map_.at (" left" )->updateCooperateStatus (
124
124
left_shift.uuid , true , start_distance, finish_distance, clock_->now ());
125
-
126
- const auto record_start_time = !is_recording_ && is_record_necessary_ && helper_->isShifted ();
127
- const auto record_end_time = is_recording_ && !helper_->isShifted ();
128
- const auto steering_factor = [&]() {
129
- if (record_start_time) {
130
- is_recording_ = true ;
131
- RCLCPP_DEBUG (getLogger (), " start left avoidance maneuver. get time stamp." );
132
- return uint16_t (100 );
133
- }
134
-
135
- if (record_end_time) {
136
- is_recording_ = false ;
137
- is_record_necessary_ = false ;
138
- RCLCPP_DEBUG (getLogger (), " end avoidance maneuver. get time stamp." );
139
- return uint16_t (200 );
140
- }
141
-
142
- return SteeringFactor::LEFT;
143
- }();
144
-
145
- if (finish_distance > -1.0e-03 ) {
146
- steering_factor_interface_ptr_->updateSteeringFactor (
147
- {left_shift.start_pose , left_shift.finish_pose }, {start_distance, finish_distance},
148
- PlanningBehavior::AVOIDANCE, steering_factor, SteeringFactor::TURNING, " " );
149
- }
150
125
}
151
126
152
127
for (const auto & right_shift : right_shift_array_) {
@@ -156,31 +131,6 @@ class AvoidanceModule : public SceneModuleInterface
156
131
calcSignedArcLength (path.points , ego_position, right_shift.finish_pose .position );
157
132
rtc_interface_ptr_map_.at (" right" )->updateCooperateStatus (
158
133
right_shift.uuid , true , start_distance, finish_distance, clock_->now ());
159
-
160
- const auto record_start_time = !is_recording_ && is_record_necessary_ && helper_->isShifted ();
161
- const auto record_end_time = is_recording_ && !helper_->isShifted ();
162
- const auto steering_factor = [&]() {
163
- if (record_start_time) {
164
- is_recording_ = true ;
165
- RCLCPP_DEBUG (getLogger (), " start right avoidance maneuver. get time stamp." );
166
- return uint16_t (100 );
167
- }
168
-
169
- if (record_end_time) {
170
- is_recording_ = false ;
171
- is_record_necessary_ = false ;
172
- RCLCPP_DEBUG (getLogger (), " end avoidance maneuver. get time stamp." );
173
- return uint16_t (200 );
174
- }
175
-
176
- return SteeringFactor::RIGHT;
177
- }();
178
-
179
- if (finish_distance > -1.0e-03 ) {
180
- steering_factor_interface_ptr_->updateSteeringFactor (
181
- {right_shift.start_pose , right_shift.finish_pose }, {start_distance, finish_distance},
182
- PlanningBehavior::AVOIDANCE, steering_factor, SteeringFactor::TURNING, " " );
183
- }
184
134
}
185
135
}
186
136
0 commit comments