Retrieves the names of all waypoints whose name starts with a given prefix, sorted lexicographically. More...
Declaration
class moveit_pro::behaviors::GetWaypointNames { ... }
#include <get_waypoint_names.hpp>
Base class
Private Member Typedefs Index
Public Constructors Index
| GetWaypointNames (const std::string &name, const BT::NodeConfiguration &config, const std::shared_ptr< BehaviorContext > &shared_resources) |
|
|
|
Public Member Functions Index
Private Member Functions Index
| tl::expected< std::vector< BT::Any >, std::string > | getWaypointNames (std::string_view prefix, GetWaypoints::Response::SharedPtr response) const |
|
|
|
Private Member Attributes Index
Public Static Functions Index
Description
Retrieves the names of all waypoints whose name starts with a given prefix, sorted lexicographically.
Sends a service request to the Agent WaypointManager and filters the returned waypoint names by prefix. An empty prefix matches every waypoint. Fails when no waypoint matches, so a misspelled prefix cannot silently produce an empty list.
| Data Port Name | Port Type | Object Type |
|---|
| prefix | Input | std::string |
| waypoint_names | Output | std::vector<BT::Any> |
Definition at line 38 of file get_waypoint_names.hpp.
Private Member Typedefs
GetWaypoints
| using moveit_pro::behaviors::GetWaypointNames::GetWaypoints = moveit_studio_agent_msgs::srv::GetWaypoints |
|
GetWaypointsClient
| using moveit_pro::behaviors::GetWaypointNames::GetWaypointsClient = rclcpp::Client<GetWaypoints> |
|
Public Constructors
GetWaypointNames()
| moveit_pro::behaviors::GetWaypointNames::GetWaypointNames (const std::string & name, const BT::NodeConfiguration & config, const std::shared_ptr< BehaviorContext > & shared_resources) |
|
Public Member Functions
onHalted()
| void moveit_pro::behaviors::GetWaypointNames::onHalted () |
|
onRunning()
| BT::NodeStatus moveit_pro::behaviors::GetWaypointNames::onRunning () |
|
onStart()
| BT::NodeStatus moveit_pro::behaviors::GetWaypointNames::onStart () |
|
Private Member Functions
getWaypointNames()
| tl::expected< std::vector< BT::Any >, std::string > moveit_pro::behaviors::GetWaypointNames::getWaypointNames (std::string_view prefix, GetWaypoints::Response::SharedPtr response) |
|
Private Member Attributes
end_time_
| std::chrono::steady_clock::time_point moveit_pro::behaviors::GetWaypointNames::end_time_ |
|
get_waypoints_client_
| GetWaypointsClient::SharedPtr moveit_pro::behaviors::GetWaypointNames::get_waypoints_client_ |
|
prefix_
| std::string moveit_pro::behaviors::GetWaypointNames::prefix_ |
|
request_future_
| std::optional<GetWaypointsClient::FutureAndRequestId> moveit_pro::behaviors::GetWaypointNames::request_future_ |
|
Public Static Functions
metadata()
| BT::KeyValueVector moveit_pro::behaviors::GetWaypointNames::metadata () |
|
static
|
providedPorts()
| BT::PortsList moveit_pro::behaviors::GetWaypointNames::providedPorts () |
|
static
|
The documentation for this class was generated from the following files:
Generated via doxygen2docusaurus 2.2.2 by Doxygen 1.9.8.