Skip to content

joy_node uses a lot of CPU when no joystick is connected #246

@tonynajjar

Description

@tonynajjar

We have joy_node always running but the joystick is only connected in need to teleop the robot. I noticed that when it is not connected and the node is launched, it uses a lot of CPU. I tracked down the high CPU consumption to this line.

Why do we we need to call SDL_Quit in this loop? Is there a better way to avoid the high CPU consumption?

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