Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add consistency check for visualization flags in KimeraVioRos & Remove redundant argument #217

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions launch/kimera_vio_ros.launch
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,6 @@ file and include this one to launch KimeraVIO on the dataset of your choice -->
<arg name="include_pipeline_flags" default="false"/>
<arg name="pipeline_flag_args" value="--flagfile=$(arg flags_folder)/Pipeline.flags"
if="$(arg include_pipeline_flags)"/>
<arg name="pipeline_flag_args" value=""
unless="$(arg include_pipeline_flags)"/>

<arg name="glog_dir" default=""/>
<arg name="glog_to_dir" default="false"/>
Expand Down
7 changes: 6 additions & 1 deletion src/KimeraVioRos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ KimeraVioRos::KimeraVioRos()
"restart_kimera_vio", &KimeraVioRos::restartKimeraVio, this);

CHECK(nh_private_.getParam("use_rviz", use_rviz_));
// Check that visualization flags are consistent
CHECK_EQ(use_rviz_, FLAGS_visualize)
<< "visualize flags must match: use_rviz_ and FLAGS_visualize should "
"be the same";

nh_private_.getParam("use_lcd_registration_server",
use_lcd_registration_server_);
Expand Down Expand Up @@ -304,7 +308,8 @@ void KimeraVioRos::connectVIO() {
std::placeholders::_1));

if (vio_params_->frontend_type_ == VIO::FrontendType::kStereoImu) {
auto stereo_pipeline = dynamic_cast<StereoImuPipeline*>(vio_pipeline_.get());
auto stereo_pipeline =
dynamic_cast<StereoImuPipeline*>(vio_pipeline_.get());
CHECK(stereo_pipeline);

data_provider_->registerRightFrameCallback(
Expand Down