MCPcopy Create free account
hub / github.com/PeterFWS/Structure-PLP-SLAM / feed_stereo_frame

Method feed_stereo_frame

src/PLPSLAM/system.cc:372–387  ·  view source on GitHub ↗

(default) stereo

Source from the content-addressed store, hash-verified

370
371 // (default) stereo
372 Mat44_t system::feed_stereo_frame(const cv::Mat &left_img, const cv::Mat &right_img, const double timestamp, const cv::Mat &mask)
373 {
374 assert(camera_->setup_type_ == camera::setup_type_t::Stereo);
375
376 check_reset_request();
377
378 const Mat44_t cam_pose_cw = tracker_->track_stereo_image(left_img, right_img, timestamp, mask);
379
380 frame_publisher_->update(tracker_);
381 if (tracker_->tracking_state_ == tracker_state_t::Tracking)
382 {
383 map_publisher_->set_current_cam_pose(cam_pose_cw);
384 }
385
386 return cam_pose_cw;
387 }
388
389 // FW: stereo + planar segmentation
390 Mat44_t system::feed_stereo_frame(const cv::Mat &left_img, const cv::Mat &right_img, const cv::Mat &seg_mask_img, const double timestamp, const cv::Mat &mask)

Callers 6

stereo_trackingFunction · 0.80
stereo_trackingFunction · 0.80
stereo_trackingFunction · 0.80
stereo_trackingFunction · 0.80
stereo_trackingFunction · 0.80
stereo_trackingFunction · 0.80

Calls 3

track_stereo_imageMethod · 0.80
set_current_cam_poseMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected