Skip to content

Commit

Permalink
Merge pull request #245 from jessebloecker/master
Browse files Browse the repository at this point in the history
print output to screen and add launch arg for ROS2
  • Loading branch information
goldbattle authored May 2, 2022
2 parents 34a133b + 111c076 commit bf0ada9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ov_msckf/launch/subscribe.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,13 @@
default_value="2",
description="how many cameras we have 1 = mono, 2 = stereo, >2 = binocular (all mono tracking)",
),
DeclareLaunchArgument(
name="save_total_state",
default_value="false",
description="record the total state with calibration and features to a txt file",
)
]


def launch_setup(context):
config_path = LaunchConfiguration("config_path").perform(context)
if not config_path:
Expand Down Expand Up @@ -75,10 +79,12 @@ def launch_setup(context):
executable="run_subscribe_msckf",
condition=IfCondition(LaunchConfiguration("ov_enable")),
namespace=LaunchConfiguration("namespace"),
output='screen',
parameters=[
{"verbosity": LaunchConfiguration("verbosity")},
{"use_stereo": LaunchConfiguration("use_stereo")},
{"max_cameras": LaunchConfiguration("max_cameras")},
{"save_total_state": LaunchConfiguration("save_total_state")},
{"config_path": config_path},
],
)
Expand Down

0 comments on commit bf0ada9

Please sign in to comment.