|
MoveIt Pro API
Core Behaviors for MoveIt Pro
|
Gets the stamped pose of the AprilTag detection closest to the center of the camera image. More...
#include <get_center_most_apriltag.hpp>


Public Member Functions | |
| GetCenterMostAprilTag (const std::string &name, const BT::NodeConfiguration &config, const std::shared_ptr< moveit_pro::behaviors::BehaviorContext > &shared_resources, std::unique_ptr< ROSPublisherHandle > ros_publisher_interface=std::make_unique< ROSPublisherHandle >()) | |
| BT::NodeStatus | tick () override |
Public Member Functions inherited from moveit_pro::behaviors::SharedResourcesNode< BT::SyncActionNode > | |
| SharedResourcesNode (const std::string &name, const BT::NodeConfiguration &config, const std::shared_ptr< BehaviorContext > &behavior_context) | |
| Constructor for SharedResourcesNode. Called by BT::BehaviorTreeFactory when creating a new behavior tree containing this node. | |
| const std::shared_ptr< BehaviorContext > & | getBehaviorContext () const |
Static Public Member Functions | |
| static BT::PortsList | providedPorts () |
| static BT::KeyValueVector | metadata () |
Gets the stamped pose of the AprilTag detection closest to the center of the camera image.
Given an array of AprilTag detections and camera intrinsics, this Behavior projects each detection's 3D pose into pixel coordinates and returns the pose of the detection closest to the image center. If multiple detections are equidistant, the first one encountered is returned.
| Data Port Name | Port Type | Object Type |
|---|---|---|
| detections | input | moveit_studio_vision_msgs::msg::ObjectDetectionArray |
| camera_info | input | sensor_msgs::msg::CameraInfo |
| image | input | sensor_msgs::msg::Image (optional) |
| tag_size | input | double |
| visualization_topic | input | std::string |
| detection_pose | output | geometry_msgs::msg::PoseStamped |
| moveit_pro::behaviors::GetCenterMostAprilTag::GetCenterMostAprilTag | ( | const std::string & | name, |
| const BT::NodeConfiguration & | config, | ||
| const std::shared_ptr< moveit_pro::behaviors::BehaviorContext > & | shared_resources, | ||
| std::unique_ptr< ROSPublisherHandle > | ros_publisher_interface = std::make_unique<ROSPublisherHandle>() |
||
| ) |
|
static |
|
static |
|
override |