Class Wait

Inheritance Relationships

Base Type

Class Documentation

class Wait : public nav2_behaviors::TimedBehavior<WaitAction>

An action server behavior for waiting a fixed duration.

Public Types

using WaitActionGoal = WaitAction::Goal

Public Functions

Wait()

A constructor for nav2_behaviors::Wait.

~Wait()
ResultStatus onRun(const std::shared_ptr<const WaitActionGoal> command) override

Initialization to run behavior.

Parameters:

command – Goal to execute

Returns:

Status of behavior

virtual ResultStatus onCycleUpdate() override

Loop function to run behavior.

Returns:

Status of behavior

inline virtual CostmapInfoType getResourceInfo() override

Method to determine the required costmap info.

Returns:

costmap resources needed

Protected Attributes

rclcpp::Time wait_end_
WaitAction::Feedback::SharedPtr feedback_