Nav2 Navigation Stack - kilted
kilted
ROS 2 Navigation Stack
|
Public Member Functions | |
PhotoAtWaypoint () | |
Construct a new Photo At Waypoint object. | |
~PhotoAtWaypoint () | |
Destroy the Photo At Waypoint object. | |
void | initialize (const rclcpp_lifecycle::LifecycleNode::WeakPtr &parent, const std::string &plugin_name) |
declares and loads parameters used More... | |
bool | processAtWaypoint (const geometry_msgs::msg::PoseStamped &curr_pose, const int &curr_waypoint_index) |
Override this to define the body of your task that you would like to execute once the robot arrived to waypoint. More... | |
void | imageCallback (const sensor_msgs::msg::Image::SharedPtr msg) |
![]() | |
WaypointTaskExecutor () | |
Construct a new Simple Task Execution At Waypoint Base object. | |
virtual | ~WaypointTaskExecutor () |
Destroy the Simple Task Execution At Waypoint Base object. | |
Static Public Member Functions | |
static void | deepCopyMsg2Mat (const sensor_msgs::msg::Image::SharedPtr &msg, cv::Mat &mat) |
given a shared pointer to sensor::msg::Image type, make a deep copy to inputted cv Mat More... | |
Definition at line 36 of file photo_at_waypoint.hpp.
|
static |
given a shared pointer to sensor::msg::Image type, make a deep copy to inputted cv Mat
msg | |
mat |
Definition at line 144 of file photo_at_waypoint.cpp.
Referenced by processAtWaypoint().
void nav2_waypoint_follower::PhotoAtWaypoint::imageCallback | ( | const sensor_msgs::msg::Image::SharedPtr | msg | ) |
msg |
Definition at line 138 of file photo_at_waypoint.cpp.
Referenced by initialize().
|
virtual |
declares and loads parameters used
parent | parent node that plugin will be created within |
plugin_name | should be provided in nav2_params.yaml==> waypoint_follower |
Implements nav2_core::WaypointTaskExecutor.
Definition at line 34 of file photo_at_waypoint.cpp.
References imageCallback().
|
virtual |
Override this to define the body of your task that you would like to execute once the robot arrived to waypoint.
curr_pose | current pose of the robot |
curr_waypoint_index | current waypoint, that robot just arrived |
Implements nav2_core::WaypointTaskExecutor.
Definition at line 101 of file photo_at_waypoint.cpp.
References deepCopyMsg2Mat().