| 132 | } |
| 133 | |
| 134 | void pose_callback(const nav_msgs::Odometry::ConstPtr &pose_msg) |
| 135 | { |
| 136 | //ROS_INFO("pose_callback!"); |
| 137 | if(!LOOP_CLOSURE) |
| 138 | return; |
| 139 | m_buf.lock(); |
| 140 | pose_buf.push(pose_msg); |
| 141 | m_buf.unlock(); |
| 142 | /* |
| 143 | printf("pose t: %f, %f, %f q: %f, %f, %f %f \n", pose_msg->pose.pose.position.x, |
| 144 | pose_msg->pose.pose.position.y, |
| 145 | pose_msg->pose.pose.position.z, |
| 146 | pose_msg->pose.pose.orientation.w, |
| 147 | pose_msg->pose.pose.orientation.x, |
| 148 | pose_msg->pose.pose.orientation.y, |
| 149 | pose_msg->pose.pose.orientation.z); |
| 150 | */ |
| 151 | } |
| 152 | |
| 153 | void imu_forward_callback(const nav_msgs::Odometry::ConstPtr &forward_msg) |
| 154 | { |
nothing calls this directly
no outgoing calls
no test coverage detected