Skip to content

Commit

Permalink
Merge pull request #1667 from BOB4Drone/ros2
Browse files Browse the repository at this point in the history
fix bof
  • Loading branch information
vooon committed Dec 3, 2021
2 parents 90552cc + 4c94dd0 commit 7d357ff
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mavros_extras/src/plugins/trajectory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,11 @@ class TrajectoryPlugin : public plugin::Plugin
};

tr_desired.header = uas->synchronized_header("local_origin", trajectory.time_usec);


if (trajectory.valid_points > tr_desired.point_valid.size()) {
return ;
}

for (int i = 0; i < trajectory.valid_points; ++i) {
tr_desired.point_valid[i] = true;
}
Expand Down

0 comments on commit 7d357ff

Please sign in to comment.