Mark variables unused

This commit is contained in:
Vladyslav Usenko 2019-07-16 14:53:43 +02:00
parent 4958f0c45a
commit ec5db8aec0
9 changed files with 18 additions and 3 deletions

View File

@ -114,8 +114,7 @@ class PosesOptimization {
} }
} }
void saveCalib(const std::string &path, void saveCalib(const std::string &path) const {
int64_t mocap_to_imu_offset_ns = 0) const {
if (calib) { if (calib) {
std::ofstream os(path + "calibration.json"); std::ofstream os(path + "calibration.json");
cereal::JSONOutputArchive archive(os); cereal::JSONOutputArchive archive(os);

View File

@ -796,7 +796,7 @@ bool CamCalib::optimizeWithParam(bool print_info,
void CamCalib::saveCalib() { void CamCalib::saveCalib() {
if (calib_opt) { if (calib_opt) {
calib_opt->saveCalib(cache_path, vio_dataset->get_mocap_to_imu_offset_ns()); calib_opt->saveCalib(cache_path);
std::cout << "Saved calibration in " << cache_path << "calibration.json" std::cout << "Saved calibration in " << cache_path << "calibration.json"
<< std::endl; << std::endl;

View File

@ -339,6 +339,8 @@ int main(int argc, char** argv) {
} }
void draw_image_overlay(pangolin::View& v, size_t view_id) { void draw_image_overlay(pangolin::View& v, size_t view_id) {
UNUSED(v);
size_t frame_id = (view_id == 0) ? show_frame1 : show_frame2; size_t frame_id = (view_id == 0) ? show_frame1 : show_frame2;
size_t cam_id = (view_id == 0) ? show_cam1 : show_cam2; size_t cam_id = (view_id == 0) ? show_cam1 : show_cam2;

View File

@ -396,6 +396,8 @@ int main(int argc, char** argv) {
} }
void draw_image_overlay(pangolin::View& v, size_t cam_id) { void draw_image_overlay(pangolin::View& v, size_t cam_id) {
UNUSED(v);
size_t frame_id = show_frame; size_t frame_id = show_frame;
basalt::TimeCamId tcid(kf_t_ns[frame_id], cam_id); basalt::TimeCamId tcid(kf_t_ns[frame_id], cam_id);

View File

@ -279,6 +279,8 @@ int main(int argc, char** argv) {
} }
void draw_image_overlay(pangolin::View& v, size_t cam_id) { void draw_image_overlay(pangolin::View& v, size_t cam_id) {
UNUSED(v);
size_t frame_id = static_cast<size_t>(show_frame); size_t frame_id = static_cast<size_t>(show_frame);
int64_t t_ns = vio_dataset->get_image_timestamps()[frame_id]; int64_t t_ns = vio_dataset->get_image_timestamps()[frame_id];

View File

@ -365,6 +365,8 @@ int main(int argc, char *argv[]) {
std::shared_ptr<pangolin::ImageView> iv(new pangolin::ImageView); std::shared_ptr<pangolin::ImageView> iv(new pangolin::ImageView);
iv->extern_draw_function = [&, idx](pangolin::View &v) { iv->extern_draw_function = [&, idx](pangolin::View &v) {
UNUSED(v);
glLineWidth(1.0); glLineWidth(1.0);
glColor3f(1.0, 0.0, 0.0); // red glColor3f(1.0, 0.0, 0.0); // red
glEnable(GL_BLEND); glEnable(GL_BLEND);
@ -389,6 +391,8 @@ int main(int argc, char *argv[]) {
iv->OnSelectionCallback = iv->OnSelectionCallback =
[&](pangolin::ImageView::OnSelectionEventData o) { [&](pangolin::ImageView::OnSelectionEventData o) {
UNUSED(o);
int64_t curr_t_ns = std::chrono::high_resolution_clock::now() int64_t curr_t_ns = std::chrono::high_resolution_clock::now()
.time_since_epoch() .time_since_epoch()
.count(); .count();

View File

@ -359,6 +359,8 @@ int main(int argc, char** argv) {
} }
void draw_image_overlay(pangolin::View& v, size_t cam_id) { void draw_image_overlay(pangolin::View& v, size_t cam_id) {
UNUSED(v);
if (show_obs) { if (show_obs) {
glLineWidth(1.0); glLineWidth(1.0);
glColor3f(1.0, 0.0, 0.0); glColor3f(1.0, 0.0, 0.0);

View File

@ -487,6 +487,8 @@ int main(int argc, char** argv) {
} }
void draw_image_overlay(pangolin::View& v, size_t cam_id) { void draw_image_overlay(pangolin::View& v, size_t cam_id) {
UNUSED(v);
// size_t frame_id = show_frame; // size_t frame_id = show_frame;
// basalt::TimeCamId tcid = // basalt::TimeCamId tcid =
// std::make_pair(vio_dataset->get_image_timestamps()[frame_id], // std::make_pair(vio_dataset->get_image_timestamps()[frame_id],

View File

@ -423,6 +423,8 @@ int main(int argc, char** argv) {
} }
void draw_image_overlay(pangolin::View& v, size_t cam_id) { void draw_image_overlay(pangolin::View& v, size_t cam_id) {
UNUSED(v);
size_t frame_id = show_frame; size_t frame_id = show_frame;
basalt::TimeCamId tcid(gt_frame_t_ns[frame_id], cam_id); basalt::TimeCamId tcid(gt_frame_t_ns[frame_id], cam_id);