Move tools/bazel.rc to prepare for bazel 0.17 (#1375)

* Move tools/bazel.rc to prepare for bazel 0.17

Bazel 0.17 will no longer import the legacy "tools/bazel.rc" config
file. This change ensures compatibility with the new versions.

For users on bazel 0.16 and earlier who have a ~/.bazelrc, this change
will cause bazel to ignore their ~/.bazelrc and load this one instead.
Hopefully this won't break anyone. (famous last words)
master
Rodrigo Queiro 2018-08-09 17:08:38 +02:00 committed by Alexander Belyaev
parent 4d6120d2cb
commit 8d0457d1d8
3 changed files with 4 additions and 2 deletions

View File

@ -256,7 +256,8 @@ void OptimizationProblem2D::Solve(
}
// Add cost functions for landmarks.
AddLandmarkCostFunctions(landmark_nodes, freeze_landmarks, node_data_,
&C_nodes, &C_landmarks, &problem, options_.huber_scale());
&C_nodes, &C_landmarks, &problem,
options_.huber_scale());
// Add penalties for violating odometry or changes between consecutive nodes
// if odometry is not available.
for (auto node_it = node_data_.begin(); node_it != node_data_.end();) {

View File

@ -352,7 +352,8 @@ void OptimizationProblem3D::Solve(
}
// Add cost functions for landmarks.
AddLandmarkCostFunctions(landmark_nodes, freeze_landmarks, node_data_,
&C_nodes, &C_landmarks, &problem, options_.huber_scale());
&C_nodes, &C_landmarks, &problem,
options_.huber_scale());
// Add constraints based on IMU observations of angular velocities and
// linear acceleration.
if (!options_.fix_z_in_3d()) {