An action server behavior for waiting a fixed duration.
More...
#include <nav2_behaviors/include/nav2_behaviors/plugins/wait.hpp>
|
|
| Wait () |
| | A constructor for nav2_behaviors::Wait.
|
| |
| ResultStatus | onRun (const std::shared_ptr< const WaitActionGoal > command) override |
| | Initialization to run behavior. More...
|
| |
| ResultStatus | onCycleUpdate () override |
| | Loop function to run behavior. More...
|
| |
| CostmapInfoType | getResourceInfo () override |
| | Method to determine the required costmap info. More...
|
| |
|
| TimedBehavior () |
| | A TimedBehavior constructor.
|
| |
|
virtual ResultStatus | onRun (const std::shared_ptr< const typename ActionT::Goal > command)=0 |
| |
|
virtual void | onConfigure () |
| |
|
virtual void | onCleanup () |
| |
|
virtual void | onActionCompletion (std::shared_ptr< typename ActionT::Result >) |
| |
| void | configure (const nav2::LifecycleNode::WeakPtr &parent, const std::string &name, std::shared_ptr< tf2_ros::Buffer > tf, std::shared_ptr< nav2_costmap_2d::CostmapTopicCollisionChecker > local_collision_checker, std::shared_ptr< nav2_costmap_2d::CostmapTopicCollisionChecker > global_collision_checker) override |
| |
|
void | cleanup () override |
| | Method to cleanup resources used on shutdown.
|
| |
|
void | activate () override |
| | Method to active Behavior and any threads involved in execution.
|
| |
|
void | deactivate () override |
| | Method to deactivate Behavior and any threads involved in execution.
|
| |
|
virtual | ~Behavior () |
| | Virtual destructor.
|
| |
|
|
rclcpp::Time | wait_end_ |
| |
|
WaitAction::Feedback::SharedPtr | feedback_ |
| |
|
nav2::LifecycleNode::WeakPtr | node_ |
| |
|
std::string | behavior_name_ |
| |
|
std::unique_ptr< nav2_util::TwistPublisher > | vel_pub_ |
| |
|
ActionServer::SharedPtr | action_server_ |
| |
|
std::shared_ptr< nav2_costmap_2d::CostmapTopicCollisionChecker > | local_collision_checker_ |
| |
|
std::shared_ptr< nav2_costmap_2d::CostmapTopicCollisionChecker > | global_collision_checker_ |
| |
|
std::shared_ptr< tf2_ros::Buffer > | tf_ |
| |
|
double | cycle_frequency_ |
| |
|
double | enabled_ |
| |
|
std::string | local_frame_ |
| |
|
std::string | global_frame_ |
| |
|
std::string | robot_base_frame_ |
| |
|
double | transform_tolerance_ |
| |
|
rclcpp::Duration | elapsed_time_ |
| |
|
rclcpp::Clock::SharedPtr | clock_ |
| |
|
rclcpp::Logger | logger_ |
| |
|
|
void | execute () |
| |
|
void | stopRobot () |
| |
An action server behavior for waiting a fixed duration.
Definition at line 33 of file wait.hpp.
◆ getResourceInfo()
| CostmapInfoType nav2_behaviors::Wait::getResourceInfo |
( |
| ) |
|
|
inlineoverridevirtual |
Method to determine the required costmap info.
- Returns
- costmap resources needed
Implements nav2_core::Behavior.
Definition at line 63 of file wait.hpp.
◆ onCycleUpdate()
◆ onRun()
| ResultStatus nav2_behaviors::Wait::onRun |
( |
const std::shared_ptr< const WaitActionGoal > |
command | ) |
|
|
override |
Initialization to run behavior.
- Parameters
-
- Returns
- Status of behavior
Definition at line 31 of file wait.cpp.
The documentation for this class was generated from the following files:
- nav2_behaviors/include/nav2_behaviors/plugins/wait.hpp
- nav2_behaviors/plugins/wait.cpp