Skip to content

save_total_state parameter: ParameterAlreadyDeclaredException using subscribe.launch.py #249

@pglira

Description

@pglira

When running

ros2 launch ov_msckf subscribe.launch.py config:=euroc_mav

from the tutorial https://docs.openvins.com/gs-tutorial.html I get the following error:

[run_subscribe_msckf-1] terminate called after throwing an instance of 'rclcpp::exceptions::ParameterAlreadyDeclaredException'
[run_subscribe_msckf-1]   what():  parameter 'save_total_state' has already been declared
[ERROR] [run_subscribe_msckf-1]: process has died [pid 11507, exit code -6, cmd '/ros_ws/install/ov_msckf/lib/ov_msckf/run_subscribe_msckf --ros-args -r __ns:=/ --params-file /tmp/launch_params_qa5bw91m --params-file /tmp/launch_params_0mltn1c9 --params-file /tmp/launch_params_0q29k68h --params-file /tmp/launch_params_t72tj74y --params-file /tmp/launch_params_effor9qu'].

Commenting out this line

{"save_total_state": LaunchConfiguration("save_total_state")},

"solves" the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions