123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126 |
- EXAMPLE_COPTS = [
-
- "-Wno-sign-compare",
-
- "-Wno-format-nonliteral",
- ]
- EXAMPLE_DEPS = [
- "//:ceres",
- "@com_gitlab_libeigen_eigen//:eigen",
- "@com_github_gflags_gflags//:gflags",
- ]
- cc_binary(
- name = "bundle_adjuster",
- srcs = [
- "bal_problem.cc",
- "bal_problem.h",
- "bundle_adjuster.cc",
- "snavely_reprojection_error.h",
- ],
- copts = EXAMPLE_COPTS,
- deps = EXAMPLE_DEPS,
- )
- cc_binary(
- name = "denoising",
- srcs = [
- "denoising.cc",
- "fields_of_experts.cc",
- "fields_of_experts.h",
- "pgm_image.h",
- ],
- copts = EXAMPLE_COPTS,
- deps = EXAMPLE_DEPS,
- )
- cc_binary(
- name = "robot_pose_mle",
- srcs = [
- "robot_pose_mle.cc",
- ],
- copts = EXAMPLE_COPTS,
- deps = EXAMPLE_DEPS,
- )
- cc_binary(
- name = "pose_graph_2d",
- srcs = [
- "slam/common/read_g2o.h",
- "slam/pose_graph_2d/angle_manifold.h",
- "slam/pose_graph_2d/normalize_angle.h",
- "slam/pose_graph_2d/pose_graph_2d.cc",
- "slam/pose_graph_2d/pose_graph_2d_error_term.h",
- "slam/pose_graph_2d/types.h",
- ],
- copts = EXAMPLE_COPTS,
- includes = ["slam"],
- deps = EXAMPLE_DEPS,
- )
- cc_binary(
- name = "pose_graph_3d",
- srcs = [
- "slam/common/read_g2o.h",
- "slam/pose_graph_3d/pose_graph_3d.cc",
- "slam/pose_graph_3d/pose_graph_3d_error_term.h",
- "slam/pose_graph_3d/types.h",
- ],
- copts = EXAMPLE_COPTS,
- includes = ["slam"],
- deps = EXAMPLE_DEPS,
- )
- [cc_binary(
- name = example,
- srcs = [example + ".cc"],
- copts = EXAMPLE_COPTS,
- deps = EXAMPLE_DEPS,
- ) for example in [
- "circle_fit",
- "curve_fitting",
- "ellipse_approximation",
- "helloworld",
- "helloworld_analytic_diff",
- "helloworld_numeric_diff",
- "libmv_bundle_adjuster",
- "libmv_homography",
- "more_garbow_hillstrom",
- "nist",
- "powell",
- "robust_curve_fitting",
- "rosenbrock",
- "sampled_function/sampled_function",
- "simple_bundle_adjuster",
- ]]
|