boschresearch / fmi_adapter

Integrating functional mock-up units (FMUs) in ROS nodes
Apache License 2.0
46 stars 14 forks source link

fmi_adapter node crashes with new parameter API in Galactic #7

Closed ralph-lange closed 3 years ago

ralph-lange commented 3 years ago

When running the fmi_adapter node, it crashes immediately during lifecycle transition CONFIGURE with the following error message:

[fmi_adapter_node] [ERROR] [..] []: Caught exception in callback for transition 10
[fmi_adapter_node] [ERROR] [..] []: Original error: parameter 'x' has invalid
     type: cannot declare a statically typed parameter with an uninitialized value

The reason is the recent change in the rclcpp parameter API, cf. https://github.com/ros2/rclcpp/blob/galactic/rclcpp/doc/notes_on_statically_typed_parameters.md.

A fix is on the the way ...

ralph-lange commented 3 years ago

Fixed by https://github.com/boschresearch/fmi_adapter/commit/deb04e457e5a9e5f9e980c0c3063a4f2ce643436.