Skip to content

Dynamic reconfigure, gain min and max values #105

Closed as not planned
Closed as not planned
@roboticlemon

Description

@roboticlemon

Since we are using normal dynamic reconfigure the min and max values for each parameter are hard coded in the cfg file like so:
gen.add( "p" , double_t, 1, "Proportional gain.", 10.0, -100000, 100000).
With the 2nd last variable representing the minimum value and the last value representing the maximum value.

Since the default values are -100 000 to 100 000, controllers that otherwise need gain values orders of magnitude less can't be tuned using the dynamic reconfigure gui. Is there an elegant way we can pass the min and max values for each gain through the constructor (optionally) and then have them updated on the dynamic reconfigure server for visibility on clients? I can't seem to find a way for clients to modify these values themselves.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions