Skip to content

Parameters and gmock #130

Closed
Closed
@christophfroehlich

Description

@christophfroehlich

I added not_empty<> to ros-controls/ros2_controllers#703, but got error messages that the command_interface parameter cannot be empty:
https://github.com/ros-controls/ros2_controllers/actions/runs/5555108925/jobs/10145808720?pr=703

In the readme of this repo, it is suggested to use size_gt, but that gives the same result

```yaml
joint_trajectory_controller:
command_interfaces: {
type: string_array,
description: "Names of command interfaces to claim",
validation: {
size_gt<>: [0],
unique<>: null,
subset_of<>: [["position", "velocity", "acceleration", "effort",]],
}
}
```

How does this library work together with gmock, and why does the parameter-test fail but the test itself is fine without not_empty<>?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions