Skip to content

Exception thrown from ros_filter.cpp during launch in ROS2 galactic #674

@kribe48

Description

@kribe48

Bug report

Exceptions are thrown when running code in ROS2 galactic. I believe the reason is due to the change in the declaration of parameters, which in galactic all are given a specific type. Parameters that are not set with default values can therefore not be used to check if parameter values have been provided.

One example is on line 822-823 in ros_filter.cpp:
this->declare_parameterstd::string("tf_prefix");
if(this->get_parameter("tf_prefix", tf_prefix_path)) { ....

  • Operating System:
    Ubuntu 20.04
  • Installation type:
    Source
  • Version or commit hash:
    galactic

Steps to reproduce issue

Build the code and launch e.g. dual_ekf_navsat_example.launch.py

Expected behavior

No exceptions thrown

Actual behavior

Exception: what(): expected [string] got [not set]

Additional information

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions