Class VelocitySmoother
Defined in File velocity_smoother.hpp
Inheritance Relationships
Base Type
public nav2_util::LifecycleNode
Class Documentation
This class that smooths cmd_vel velocities for robot bases.
Public Functions
A constructor for nav2_velocity_smoother::VelocitySmoother.
- Parameters:
options – Additional options to control creation of the node.
Destructor for nav2_velocity_smoother::VelocitySmoother.
Find the scale factor, eta, which scales axis into acceleration range.
- Parameters:
v_curr – current velocity
v_cmd – commanded velocity
accel – maximum acceleration
decel – maximum deceleration
- Returns:
Scale factor, eta
Apply acceleration and scale factor constraints.
- Parameters:
v_curr – current velocity
v_cmd – commanded velocity
accel – maximum acceleration
decel – maximum deceleration
eta – Scale factor
- Returns:
Velocity command
Protected Functions
Configures parameters and member variables.
- Parameters:
state – LifeCycle Node’s state
- Returns:
Success or Failure
Activates member variables.
- Parameters:
state – LifeCycle Node’s state
- Returns:
Success or Failure
Deactivates member variables.
- Parameters:
state – LifeCycle Node’s state
- Returns:
Success or Failure
Calls clean up states and resets member variables.
- Parameters:
state – LifeCycle Node’s state
- Returns:
Success or Failure
Called when in Shutdown state.
- Parameters:
state – LifeCycle Node’s state
- Returns:
Success or Failure
Callback for incoming velocity commands.
- Parameters:
msg – Twist message
Main worker timer function.
Dynamic reconfigure callback.
- Parameters:
parameters – Parameter list to change
Protected Attributes