Skip to content

Commit

Permalink
fixed turning of collisions
Browse files Browse the repository at this point in the history
  • Loading branch information
klaxalk committed Feb 23, 2024
1 parent 5453189 commit 9dc51d8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/multirotor_simulator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,10 @@ void MultirotorSimulator::handleCollisions(void) {

auto drs_params = mrs_lib::get_mutexed(mutex_drs_params_, drs_params_);

if (!(drs_params.collisions_crash || drs_params.collisions_enabled)) {
return;
}

std::vector<Eigen::VectorXd> poses;

for (size_t i = 0; i < uavs_.size(); i++) {
Expand Down

0 comments on commit 9dc51d8

Please sign in to comment.