Skip to content

pose_follower: Driving backwards even with allow_backwards=false #47

@nxdefiant

Description

@nxdefiant

Hi,

the pose_follower is driving backwards with non holonomic robots even when the parameter allow_backwards is set to false.

I think that PoseFollower::limitTwist() is missing a check for this condition, e.g. the following should help:

if (!allow_backwards_ && res.linear.x < 0) {
	res.linear.x = 0.0;
}

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