| 112 | } |
| 113 | |
| 114 | void point_callback(const sensor_msgs::PointCloudConstPtr &point_msg) |
| 115 | { |
| 116 | //ROS_INFO("point_callback!"); |
| 117 | if(!LOOP_CLOSURE) |
| 118 | return; |
| 119 | m_buf.lock(); |
| 120 | point_buf.push(point_msg); |
| 121 | m_buf.unlock(); |
| 122 | /* |
| 123 | for (unsigned int i = 0; i < point_msg->points.size(); i++) |
| 124 | { |
| 125 | printf("%d, 3D point: %f, %f, %f 2D point %f, %f \n",i , point_msg->points[i].x, |
| 126 | point_msg->points[i].y, |
| 127 | point_msg->points[i].z, |
| 128 | point_msg->channels[i].values[0], |
| 129 | point_msg->channels[i].values[1]); |
| 130 | } |
| 131 | */ |
| 132 | } |
| 133 | |
| 134 | void pose_callback(const nav_msgs::Odometry::ConstPtr &pose_msg) |
| 135 | { |
nothing calls this directly
no outgoing calls
no test coverage detected