Skip to content

[velocity_smoother] Setting max_accel to negative flips sign of output #3520

@Aposhian

Description

@Aposhian

Bug report

Required Info:

Steps to reproduce issue

Set

velocity_smoother:
  ros__parameters:
    min_velocity: [0.0, 0.0, -1.0]
    max_accel: [-1.0, 0.0, 0.0]

Expected behavior

Error to be thrown?

Actual behavior

Positive commanded velocity results in negative smoothed velocity, ignoring velocity limits
image

Additional information

I think there are two action items here:

  • apply max and min limits last
  • throw if signs on accel, decel don't make sense, on both configure, and dynamic parameters callback

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions