Skip to content

Joint_state_broadcaster throws error when no states exist, even if none are "requested" #1580

@ethanholter

Description

@ethanholter

By default, joint_state_broadcaster publishes all available states when none are specified in its parameters. If there are no states at all (none present in the urdf), it throws a confusing error message [joint_state_broadcaster]: None of requested interfaces exist. Controller will not run. This message implies that there are joint states that are supposed to exist but don't, when in reality there are simply no states to publish

This behavior can be undesirable for example, when a project is in development it can often make sense to first implement open loop control to verify the hardware is working, before moving on to closed loop control.

I propose replacing this behavior with a simple warning indicating that no states exist to publish

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