Class RotationShimController
Defined in File nav2_rotation_shim_controller.hpp
Inheritance Relationships
Base Type
public nav2_core::Controller
Class Documentation
Rotate to rough path heading controller shim plugin.
Public Functions
Constructor for nav2_rotation_shim_controller::RotationShimController.
Destrructor for nav2_rotation_shim_controller::RotationShimController.
Configure controller state machine.
- Parameters:
parent – WeakPtr to node
name – Name of plugin
tf – TF buffer
costmap_ros – Costmap2DROS object of environment
Cleanup controller state machine.
Activate controller state machine.
Deactivate controller state machine.
Compute the best command given the current pose and velocity.
- Parameters:
pose – Current robot pose
velocity – Current robot velocity
goal_checker – Ptr to the goal checker for this task in case useful in computing commands
- Returns:
Best command
nav2_core setPlan - Sets the global plan
- Parameters:
path – The global plan
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.
Protected Functions
Finds the point on the path that is roughly the sampling point distance away from the robot for use. May throw exception if a point at least that far away cannot be found.
- Returns:
pt location of the output point
Find the goal point in path May throw exception if the path is empty.
- Returns:
pt location of the output point
Uses TF to find the location of the sampled path point in base frame.
- Parameters:
pt – location of the sampled path point
- Returns:
location of the pose in base frame
Rotates the robot to the rough heading.
- Parameters:
angular_distance – Angular distance to the goal remaining
pose – Starting pose of robot
velocity – Starting velocity of robot
- Returns:
Twist command for rotation to rough heading
Checks if rotation is safe.
- Parameters:
cmd_vel – Velocity to check over
angular_distance_to_heading – Angular distance to heading requested
pose – Starting pose of robot
Checks if the goal has changed based on the given path.
- Parameters:
path – The path to compare with the current goal.
- Returns:
True if the goal has changed, false otherwise.
Callback executed when a parameter change is detected.
- Parameters:
event – ParameterEvent message
Protected Attributes