Class Controller
Defined in File controller.hpp
Class Documentation
controller interface that acts as a virtual base class for all controller plugins
Public Types
Public Functions
Virtual destructor.
- Parameters:
parent – pointer to user’s node
costmap_ros – A pointer to the costmap
Method to cleanup resources.
Method to active planner and any threads involved in execution.
Method to deactive planner and any threads involved in execution.
local setPlan - Sets the global plan
- Parameters:
path – The global plan
Controller computeVelocityCommands - calculates the best command given the current pose and velocity.
It is presumed that the global plan is already set.
This is mostly a wrapper for the protected computeVelocityCommands function which has additional debugging info.
- Parameters:
pose – Current robot pose
velocity – Current robot velocity
goal_checker – Pointer to the current goal checker the task is utilizing
- Returns:
The best command for the robot to drive
Limits the maximum linear speed of the robot.
- Parameters:
speed_limit – expressed in absolute value (in m/s) or in percentage from maximum robot speed.
percentage – Setting speed limit in percentage if true or in absolute values in false case.
Reset the state of the controller if necessary after task is exited.