Definition at line 169 of file vs_action.cpp.
VisualServoAction::VisualServoAction | ( | ros::NodeHandle & | n, |
std::string | which_arm | ||
) | [inline] |
Definition at line 172 of file vs_action.cpp.
VisualServoAction::~VisualServoAction | ( | ) | [inline] |
Definition at line 231 of file vs_action.cpp.
cv::Mat VisualServoAction::colorSegment | ( | cv::Mat | color_frame, |
int | hue, | ||
int | threshold | ||
) | [inline] |
Definition at line 540 of file vs_action.cpp.
cv::Mat VisualServoAction::colorSegment | ( | cv::Mat | color_frame, |
int | _hue_n, | ||
int | _hue_p, | ||
int | _sat_n, | ||
int | _sat_p, | ||
int | _value_n, | ||
int | _value_p | ||
) | [inline] |
Very Basic Color Segmentation done in HSV space Takes in Hue value and threshold as input to compute the distance in color space
color_frame | color input from image |
Definition at line 560 of file vs_action.cpp.
std::vector<cv::Moments> VisualServoAction::findMoments | ( | cv::Mat | in, |
cv::Mat & | color_frame, | ||
unsigned int | max_num = 3 |
||
) | [inline] |
in | single channel image input |
color_frame | need the original image for debugging and imshow |
Definition at line 511 of file vs_action.cpp.
visual_servo::VisualServoPose VisualServoAction::formPoseService | ( | float | px, |
float | py, | ||
float | pz | ||
) | [inline] |
Definition at line 607 of file vs_action.cpp.
float VisualServoAction::getError | ( | PoseStamped | a, |
PoseStamped | b | ||
) | [inline] |
Definition at line 413 of file vs_action.cpp.
std::vector<cv::Point> VisualServoAction::getMomentCoordinates | ( | std::vector< cv::Moments > | ms | ) | [inline] |
Take three biggest moments of specific color and returns the three biggest blobs or moments. This method assumes that the features are in QR code like configuration
ms | All moments of color segmented |
Definition at line 434 of file vs_action.cpp.
void VisualServoAction::goalCB | ( | ) | [inline] |
Definition at line 235 of file vs_action.cpp.
bool VisualServoAction::isExpired | ( | ) | [inline] |
Definition at line 319 of file vs_action.cpp.
void VisualServoAction::printMatrix | ( | cv::Mat_< double > | in | ) | [inline] |
Definition at line 615 of file vs_action.cpp.
bool VisualServoAction::sendZeroVelocity | ( | ) | [inline] |
Definition at line 596 of file vs_action.cpp.
void VisualServoAction::sensorCallback | ( | const sensor_msgs::ImageConstPtr & | img_msg, |
const sensor_msgs::ImageConstPtr & | depth_msg, | ||
const sensor_msgs::PointCloud2ConstPtr & | cloud_msg | ||
) | [inline] |
Called when Kinect information is avaiable. Refresh rate of about 30Hz
Definition at line 248 of file vs_action.cpp.
void VisualServoAction::setTimer | ( | float | time | ) | [inline] |
Definition at line 314 of file vs_action.cpp.
bool VisualServoAction::updateGripperFeatures | ( | ) | [inline] |
Definition at line 332 of file vs_action.cpp.
std::string VisualServoAction::action_name_ [protected] |
Definition at line 628 of file vs_action.cpp.
actionlib::SimpleActionServer<visual_servo::VisualServoAction> VisualServoAction::as_ [protected] |
Definition at line 627 of file vs_action.cpp.
sensor_msgs::CameraInfo VisualServoAction::cam_info_ [protected] |
Definition at line 644 of file vs_action.cpp.
std::string VisualServoAction::cam_info_topic_ [protected] |
Definition at line 660 of file vs_action.cpp.
bool VisualServoAction::camera_initialized_ [protected] |
Definition at line 658 of file vs_action.cpp.
message_filters::Subscriber<sensor_msgs::PointCloud2> VisualServoAction::cloud_sub_ [protected] |
Definition at line 641 of file vs_action.cpp.
Definition at line 652 of file vs_action.cpp.
cv::Mat VisualServoAction::cur_color_frame_ [protected] |
Definition at line 648 of file vs_action.cpp.
cv::Mat VisualServoAction::cur_depth_frame_ [protected] |
Definition at line 650 of file vs_action.cpp.
std::vector<VSXYZ> VisualServoAction::cur_goal_ [protected] |
Definition at line 684 of file vs_action.cpp.
cv::Mat VisualServoAction::cur_orig_color_frame_ [protected] |
Definition at line 649 of file vs_action.cpp.
XYZPointCloud VisualServoAction::cur_point_cloud_ [protected] |
Definition at line 653 of file vs_action.cpp.
cv::Mat VisualServoAction::cur_workspace_mask_ [protected] |
Definition at line 651 of file vs_action.cpp.
int VisualServoAction::default_sat_bot_value_ [protected] |
Definition at line 667 of file vs_action.cpp.
int VisualServoAction::default_sat_top_value_ [protected] |
Definition at line 668 of file vs_action.cpp.
int VisualServoAction::default_val_value_ [protected] |
Definition at line 669 of file vs_action.cpp.
message_filters::Subscriber<sensor_msgs::Image> VisualServoAction::depth_sub_ [protected] |
Definition at line 640 of file vs_action.cpp.
bool VisualServoAction::desire_points_initialized_ [protected] |
Definition at line 659 of file vs_action.cpp.
VSXYZ VisualServoAction::desired_ [protected] |
Definition at line 689 of file vs_action.cpp.
cv::Mat VisualServoAction::desired_jacobian_ [protected] |
Definition at line 683 of file vs_action.cpp.
int VisualServoAction::display_wait_ms_ [protected] |
Definition at line 654 of file vs_action.cpp.
visual_servo::VisualServoFeedback VisualServoAction::feedback_ [protected] |
Definition at line 635 of file vs_action.cpp.
std::vector<VSXYZ> VisualServoAction::goal_ [protected] |
Definition at line 685 of file vs_action.cpp.
PoseStamped VisualServoAction::goal_p_ [protected] |
Definition at line 686 of file vs_action.cpp.
bool VisualServoAction::gripper_pose_estimated_ [protected] |
Definition at line 693 of file vs_action.cpp.
GripperTape VisualServoAction::gripper_tape_ [protected] |
Definition at line 694 of file vs_action.cpp.
int VisualServoAction::gripper_tape_hue_threshold_ [protected] |
Definition at line 666 of file vs_action.cpp.
int VisualServoAction::gripper_tape_hue_value_ [protected] |
Definition at line 665 of file vs_action.cpp.
message_filters::Subscriber<sensor_msgs::Image> VisualServoAction::image_sub_ [protected] |
Definition at line 639 of file vs_action.cpp.
bool VisualServoAction::is_gripper_initialized_ [protected] |
Definition at line 692 of file vs_action.cpp.
Definition at line 643 of file vs_action.cpp.
int VisualServoAction::jacobian_type_ [protected] |
Definition at line 673 of file vs_action.cpp.
cv::Mat VisualServoAction::K [protected] |
Definition at line 690 of file vs_action.cpp.
double VisualServoAction::max_exec_time_ [protected] |
Definition at line 633 of file vs_action.cpp.
double VisualServoAction::min_contour_size_ [protected] |
Definition at line 670 of file vs_action.cpp.
ros::NodeHandle VisualServoAction::n_ [protected] |
Definition at line 626 of file vs_action.cpp.
ros::NodeHandle VisualServoAction::n_private_ [protected] |
Definition at line 638 of file vs_action.cpp.
int VisualServoAction::num_downsamples_ [protected] |
Definition at line 655 of file vs_action.cpp.
std::string VisualServoAction::optical_frame_ [protected] |
Definition at line 657 of file vs_action.cpp.
double VisualServoAction::place_z_velocity_ [protected] |
Definition at line 676 of file vs_action.cpp.
double VisualServoAction::pose_servo_z_offset_ [protected] |
Definition at line 675 of file vs_action.cpp.
visual_servo::VisualServoResult VisualServoAction::result_ [protected] |
Definition at line 636 of file vs_action.cpp.
Definition at line 642 of file vs_action.cpp.
double VisualServoAction::tape1_offset_x_ [protected] |
Definition at line 677 of file vs_action.cpp.
double VisualServoAction::tape1_offset_y_ [protected] |
Definition at line 678 of file vs_action.cpp.
double VisualServoAction::tape1_offset_z_ [protected] |
Definition at line 679 of file vs_action.cpp.
std::vector<VSXYZ> VisualServoAction::tape_features_ [protected] |
Definition at line 687 of file vs_action.cpp.
PoseStamped VisualServoAction::tape_features_p_ [protected] |
Definition at line 688 of file vs_action.cpp.
int VisualServoAction::target_hue_threshold_ [protected] |
Definition at line 664 of file vs_action.cpp.
int VisualServoAction::target_hue_value_ [protected] |
Definition at line 663 of file vs_action.cpp.
shared_ptr<tf::TransformListener> VisualServoAction::tf_ [protected] |
Definition at line 645 of file vs_action.cpp.
ros::Time VisualServoAction::timer_ [protected] |
Definition at line 632 of file vs_action.cpp.
ros::ServiceClient VisualServoAction::v_client_ [protected] |
Definition at line 680 of file vs_action.cpp.
std::vector<pcl::PointXYZ> VisualServoAction::v_fk_diff_ [protected] |
Definition at line 691 of file vs_action.cpp.
shared_ptr<VisualServo> VisualServoAction::vs_ [protected] |
Definition at line 629 of file vs_action.cpp.
double VisualServoAction::vs_err_term_threshold_ [protected] |
Definition at line 674 of file vs_action.cpp.
std::string VisualServoAction::which_arm_ [protected] |
Definition at line 631 of file vs_action.cpp.
std::string VisualServoAction::workspace_frame_ [protected] |
Definition at line 656 of file vs_action.cpp.