PickNikRobotics / generate_parameter_library

Declarative ROS 2 Parameters
BSD 3-Clause "New" or "Revised" License
230 stars 43 forks source link

Changing parameter declaration #189

Closed edwardribbit closed 4 months ago

edwardribbit commented 5 months ago

When I change a parameter declaration file, colcon clean, and rebuild the package, it seems like the changes have no effect.

'x' has invalid type: Wrong parameter type, parameter {x} is of type {double}, setting it to {integer} is not allowed.

I change the parameter type from double to int in the declaration file, clean, build, and rerun but this error still appears. I even delete the build and install folder.

How can I clean my environment to update the parameter declaration?

edwardribbit commented 5 months ago

Update:

I'm seeing something bizarre

The scenario: The parameter is declared as integer The definition is a double It complains about setting it as double when it expects an integer I change it to an integer It complains about setting it to an integer when it expects a double

How is this possible?

pac48 commented 5 months ago

@edwardribbit Can you post your parameters.yaml file used by generate_parameter_library to generate the code? Or at least post the section you think is causing the issue.