26#include <geometry_msgs/msg/pose.hpp>
34 Pose2D(
double x,
double y,
double yaw)
66 template <
typename TOrthogonal,
typename TSourceObject>
76 void setWaypoints(
const std::vector<geometry_msgs::msg::Pose> & waypoints);
78 void setWaypoints(
const std::vector<Pose2D> & waypoints);
80 std::optional<std::shared_future<
81 std::shared_ptr<rclcpp_action::ClientGoalHandle<nav2_msgs::action::NavigateToPose> > > >
83 std::optional<NavigateNextWaypointOptions> options = std::nullopt,
89 const std::vector<geometry_msgs::msg::Pose> &
getWaypoints()
const;
91 std::optional<geometry_msgs::msg::Pose>
getNamedPose(std::string name)
const;
108 void insertWaypoint(
int index, geometry_msgs::msg::Pose & newpose);
void initialize(ClNav2Z *client)
void onOrthogonalAllocation()
boost::signals2::connection cancelledNav2ZClientConnection_
void loadWayPointsFromFile2(std::string filepath)
void onGoalCancelled(const ClNav2Z::WrappedResult &)
std::optional< geometry_msgs::msg::Pose > getNamedPose(std::string name) const
const std::vector< geometry_msgs::msg::Pose > & getWaypoints() const
long getCurrentWaypointIndex() const
boost::signals2::connection abortedNav2ZClientConnection_
std::vector< std::string > waypointsNames_
void removeWaypoint(int index)
void onNavigationResult(const ClNav2Z::WrappedResult &r)
WaypointEventDispatcher waypointsEventDispatcher
boost::signals2::connection succeddedNav2ZClientConnection_
smacc2::SmaccSignal< void()> onNavigationRequestCancelled
void onGoalReached(const ClNav2Z::WrappedResult &res)
std::optional< std::shared_future< std::shared_ptr< rclcpp_action::ClientGoalHandle< nav2_msgs::action::NavigateToPose > > > > sendNextGoal(std::optional< NavigateNextWaypointOptions > options=std::nullopt, cl_nav2z::ClNav2Z::SmaccNavigateResultSignal::WeakPtr callback=cl_nav2z::ClNav2Z::SmaccNavigateResultSignal::WeakPtr())
smacc2::SmaccSignal< void()> onNavigationRequestAborted
std::vector< geometry_msgs::msg::Pose > waypoints_
void onInitialize() override
void seekName(std::string name)
void loadWayPointsFromFile(std::string filepath)
const std::vector< std::string > & getWaypointNames() const
std::optional< std::string > getCurrentWaypointName() const
void onGoalAborted(const ClNav2Z::WrappedResult &)
smacc2::SmaccSignal< void()> onNavigationRequestSucceded
void setWaypoints(const std::vector< geometry_msgs::msg::Pose > &waypoints)
void insertWaypoint(int index, geometry_msgs::msg::Pose &newpose)
std::weak_ptr< SmaccSignal< void(const WrappedResult &), optional_last_value< typename boost::function_traits< void(const WrappedResult &) >::result_type >, int, std::less< int >, function< void(const WrappedResult &) >, typename extended_signature< function_traits< void(const WrappedResult &) >::arity, void(const WrappedResult &) >::function_type, boost::signals2::mutex > > WeakPtr
GoalHandle::WrappedResult WrappedResult
std::optional< std::string > controllerName_
std::optional< std::string > goalCheckerName_
Pose2D(double x, double y, double yaw)