#include "CvTestbed.h"
#include "MarkerDetector.h"
#include "MultiMarkerBundle.h"
#include "MultiMarkerInitializer.h"
#include "Shared.h"
#include <cv_bridge/CvBridge.h>
#include <ar_track_alvar/AlvarMarker.h>
#include <ar_track_alvar/AlvarMarkers.h>
#include <tf/transform_listener.h>
#include <sensor_msgs/PointCloud2.h>
#include <pcl/ros/conversions.h>
#include <pcl/point_types.h>
#include <pcl/registration/icp.h>
#include <pcl/registration/registration.h>
#include <geometry_msgs/PoseStamped.h>
#include <ros/ros.h>
#include <pcl/ModelCoefficients.h>
#include <pcl/sample_consensus/method_types.h>
#include <pcl/sample_consensus/model_types.h>
#include <pcl/segmentation/sac_segmentation.h>
#include <pcl_ros/point_cloud.h>
#include <pcl/filters/extract_indices.h>
#include <boost/lexical_cast.hpp>
#include <LinearMath/btMatrix3x3.h>
#include <Eigen/Core>
#include <ar_track_alvar/kinect_filtering.h>
#include <ar_track_alvar/medianFilter.h>
Go to the source code of this file.
#define GHOST_MARKER 3 |
Definition at line 73 of file FindMarkerBundles.cpp.
#define MAIN_MARKER 1 |
Definition at line 71 of file FindMarkerBundles.cpp.
#define VISIBLE_MARKER 2 |
Definition at line 72 of file FindMarkerBundles.cpp.
typedef pcl::PointCloud<ARPoint> ARCloud |
Definition at line 79 of file FindMarkerBundles.cpp.
typedef pcl::PointXYZRGB ARPoint |
Definition at line 78 of file FindMarkerBundles.cpp.
int calcAndSaveMasterCoords | ( | MultiMarkerBundle & | master | ) |
Definition at line 731 of file FindMarkerBundles.cpp.
void draw3dPoints | ( | ARCloud::Ptr | cloud, |
string | frame, | ||
int | color, | ||
int | id, | ||
double | rad | ||
) |
Definition at line 117 of file FindMarkerBundles.cpp.
Definition at line 165 of file FindMarkerBundles.cpp.
void GetMultiMarkerPoses | ( | IplImage * | image, |
ARCloud & | cloud | ||
) |
Definition at line 376 of file FindMarkerBundles.cpp.
void getPointCloudCallback | ( | const sensor_msgs::PointCloud2ConstPtr & | msg | ) |
Definition at line 594 of file FindMarkerBundles.cpp.
int InferCorners | ( | const ARCloud & | cloud, |
MultiMarkerBundle & | master, | ||
ARCloud & | bund_corners | ||
) |
Definition at line 219 of file FindMarkerBundles.cpp.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 771 of file FindMarkerBundles.cpp.
void makeMarkerMsgs | ( | int | type, |
int | id, | ||
Pose & | p, | ||
sensor_msgs::ImageConstPtr | image_msg, | ||
tf::StampedTransform & | CamToOutput, | ||
visualization_msgs::Marker * | rvizMarker, | ||
ar_track_alvar::AlvarMarker * | ar_pose_marker, | ||
int | confidence | ||
) |
Definition at line 505 of file FindMarkerBundles.cpp.
int makeMasterTransform | ( | const CvPoint3D64f & | p0, |
const CvPoint3D64f & | p1, | ||
const CvPoint3D64f & | p2, | ||
const CvPoint3D64f & | p3, | ||
btTransform & | retT | ||
) |
Definition at line 680 of file FindMarkerBundles.cpp.
int PlaneFitPoseImprovement | ( | int | id, |
const ARCloud & | corners_3D, | ||
ARCloud::Ptr | selected_points, | ||
const ARCloud & | cloud, | ||
Pose & | p | ||
) |
Definition at line 294 of file FindMarkerBundles.cpp.
Definition at line 90 of file FindMarkerBundles.cpp.
Definition at line 93 of file FindMarkerBundles.cpp.
Definition at line 87 of file FindMarkerBundles.cpp.
std::vector<int>* bundle_indices |
Definition at line 103 of file FindMarkerBundles.cpp.
Definition at line 99 of file FindMarkerBundles.cpp.
int* bundles_seen |
Definition at line 101 of file FindMarkerBundles.cpp.
Definition at line 85 of file FindMarkerBundles.cpp.
std::string cam_image_topic |
Definition at line 111 of file FindMarkerBundles.cpp.
std::string cam_info_topic |
Definition at line 112 of file FindMarkerBundles.cpp.
Definition at line 88 of file FindMarkerBundles.cpp.
IplImage* capture_ |
Definition at line 86 of file FindMarkerBundles.cpp.
Definition at line 89 of file FindMarkerBundles.cpp.
bool init = true |
Definition at line 104 of file FindMarkerBundles.cpp.
Definition at line 96 of file FindMarkerBundles.cpp.
double marker_size |
Definition at line 108 of file FindMarkerBundles.cpp.
int* master_id |
Definition at line 100 of file FindMarkerBundles.cpp.
bool* master_visible |
Definition at line 102 of file FindMarkerBundles.cpp.
double max_new_marker_error |
Definition at line 109 of file FindMarkerBundles.cpp.
double max_track_error |
Definition at line 110 of file FindMarkerBundles.cpp.
int med_filt_size |
Definition at line 106 of file FindMarkerBundles.cpp.
Definition at line 105 of file FindMarkerBundles.cpp.
MultiMarkerBundle** multi_marker_bundles = NULL |
Definition at line 97 of file FindMarkerBundles.cpp.
int n_bundles = 0 |
Definition at line 114 of file FindMarkerBundles.cpp.
std::string output_frame |
Definition at line 113 of file FindMarkerBundles.cpp.
Definition at line 92 of file FindMarkerBundles.cpp.
Definition at line 91 of file FindMarkerBundles.cpp.
Definition at line 95 of file FindMarkerBundles.cpp.
Definition at line 94 of file FindMarkerBundles.cpp.