Merge API branch into main #12

Merged
SemvdH merged 334 commits from api into main 2023-06-13 19:54:43 +00:00
Showing only changes of commit 5b7f239f8f - Show all commits

View File

@@ -275,7 +275,6 @@ public:
: (MIN_DISTANCE - std::min(this->lidar_sensor_values[LIDAR_SENSOR_RL], this->lidar_sensor_values[LIDAR_SENSOR_RR]));
collision_prevention_weights[MOVE_DIRECTION_RIGHT] = this->move_direction_allowed[MOVE_DIRECTION_RIGHT] ? 0
: -(MIN_DISTANCE - std::min(this->lidar_sensor_values[LIDAR_SENSOR_RR], this->lidar_sensor_values[LIDAR_SENSOR_FR]));
RCLCPP_INFO(this->get_logger(), "Collision prevention weights: %f, %f, %f, %f", collision_prevention_weights[MOVE_DIRECTION_FRONT], collision_prevention_weights[MOVE_DIRECTION_LEFT], collision_prevention_weights[MOVE_DIRECTION_BACK], collision_prevention_weights[MOVE_DIRECTION_RIGHT]);
apply_collision_weights();
}