Class FollowingServer
Defined in File following_server.hpp
Inheritance Relationships
Base Type
public nav2_util::LifecycleNode
Class Documentation
An action server which implements a dynamic following behavior.
Public Types
Public Functions
A constructor for opennav_following::FollowingServer.
- Parameters:
options – Additional options to control creation of the node.
A destructor for opennav_following::FollowingServer.
Publish feedback from a following action.
- Parameters:
state – Current state - should be one of those defined in message.
Use control law and perception to approach the object.
- Parameters:
object_pose – Initial object pose, will be refined by perception.
target_frame – The frame to be tracked instead of the pose.
- Returns:
True if successfully approached, False if cancelled. For any internal error, will throw.
Rotate the robot to find the object again.
- Parameters:
object_pose – The last known object pose.
target_frame – The frame to be tracked instead of the pose.
- Returns:
True if successful.
Gets a preempted goal if immediately requested.
- Parameters:
Goal – goal to check or replace if required with preemption
action_server – Action server to check for preemptions on
- Returns:
SUCCESS or FAILURE
Checks and logs warning if action canceled.
- Parameters:
action_server – Action server to check for cancellation on
name – Name of action to put in warning message
- Returns:
True if action has been cancelled
Checks and logs warning if action preempted.
- Parameters:
action_server – Action server to check for preemption on
name – Name of action to put in warning message
- Returns:
True if action has been preempted
Configure member variables.
- Parameters:
state – Reference to LifeCycle node state
- Returns:
SUCCESS or FAILURE
Activate member variables.
- Parameters:
state – Reference to LifeCycle node state
- Returns:
SUCCESS or FAILURE
Deactivate member variables.
- Parameters:
state – Reference to LifeCycle node state
- Returns:
SUCCESS or FAILURE
Reset member variables.
- Parameters:
state – Reference to LifeCycle node state
- Returns:
SUCCESS or FAILURE
Called when in shutdown state.
- Parameters:
state – Reference to LifeCycle node state
- Returns:
SUCCESS or FAILURE
Publish zero velocity at terminal condition.
Protected Functions
Main action callback method to complete following request.
Method to obtain the refined dynamic pose.
- Parameters:
pose – The initial estimate of the dynamic pose which will be updated with the refined pose.
- Returns:
true if successful, false otherwise
Get the pose of a specific frame in the fixed frame.
- Parameters:
pose – The output pose.
frame_id – The frame to get the pose for.
- Returns:
true if successful, false otherwise
Get the tracking pose based on the current tracking mode.
- Parameters:
pose – The output pose.
frame_id – The frame to get the pose for.
- Returns:
true if successful, false otherwise.
Get the pose at a distance in front of the input pose.
- Parameters:
pose – Input pose
distance – Distance to move (in meters)
- Returns:
Pose distance meters in front of the input pose
Check if the goal has been reached.
- Parameters:
goal_pose – The goal pose to check
- Returns:
true If the goal has been reached
Callback executed when a parameter change is detected.
- Parameters:
event – ParameterEvent message
Protected Attributes