navigation_experimental icon indicating copy to clipboard operation
navigation_experimental copied to clipboard

pose_follower: Driving backwards even with allow_backwards=false

Open nxdefiant opened this issue 4 years ago • 2 comments

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;
}

nxdefiant avatar Mar 19 '20 20:03 nxdefiant