Skip to content

Commit

Permalink
Merge pull request uzh-rpg#99 from lukeopteran/master
Browse files Browse the repository at this point in the history
Fixed Eigen assertion error, on Ubuntu 20.04 ROS Noetic, also working on Melodic
  • Loading branch information
yun-long authored Mar 31, 2021
2 parents 5161d56 + 808155a commit 3d56cdc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/source/tutorials_general/racing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ int main(int argc, char *argv[]) {
std::size_t num_waypoints = way_points.size();
Eigen::VectorXd segment_times(num_waypoints);
segment_times << 10.0, 10.0, 10.0, 10.0;
Eigen::VectorXd minimization_weights(num_waypoints);
minimization_weights << 1.0, 1.0, 1.0, 1.0;
Eigen::VectorXd minimization_weights(5);
minimization_weights << 0.0, 1.0, 1.0, 1.0, 1.0;

polynomial_trajectories::PolynomialTrajectorySettings trajectory_settings =
polynomial_trajectories::PolynomialTrajectorySettings(
Expand Down
4 changes: 2 additions & 2 deletions docs/source/tutorials_general/racing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ Generate trajectory
std::size_t num_waypoints = way_points.size();
Eigen::VectorXd segment_times(num_waypoints);
segment_times << 10.0, 10.0, 10.0, 10.0;
Eigen::VectorXd minimization_weights(num_waypoints);
minimization_weights << 1.0, 1.0, 1.0, 1.0;
Eigen::VectorXd minimization_weights(5);
minimization_weights << 0.0, 1.0, 1.0, 1.0, 1.0;

polynomial_trajectories::PolynomialTrajectorySettings trajectory_settings =
polynomial_trajectories::PolynomialTrajectorySettings(
Expand Down
4 changes: 2 additions & 2 deletions flightros/src/racing/racing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ int main(int argc, char *argv[]) {
std::size_t num_waypoints = way_points.size();
Eigen::VectorXd segment_times(num_waypoints);
segment_times << 10.0, 10.0, 10.0, 10.0;
Eigen::VectorXd minimization_weights(num_waypoints);
minimization_weights << 1.0, 1.0, 1.0, 1.0;
Eigen::VectorXd minimization_weights(5);
minimization_weights << 0.0, 1.0, 1.0, 1.0, 1.0;

polynomial_trajectories::PolynomialTrajectorySettings trajectory_settings =
polynomial_trajectories::PolynomialTrajectorySettings(
Expand Down

0 comments on commit 3d56cdc

Please sign in to comment.