Skip to content

Commit

Permalink
Use update_pose_2d
Browse files Browse the repository at this point in the history
  • Loading branch information
ymd-stella committed Oct 31, 2021
1 parent e0c4ee1 commit db3e17e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/openvslam_ros.cc
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ void system::init_pose_callback(
* initialpose_affine * base_link_to_camera_affine)
.matrix();

if (!SLAM_.update_pose(cam_pose_cv)) {
const Eigen::Vector3d normal_vector = (Eigen::Vector3d() << 0., 1., 0.).finished();
if (!SLAM_.update_pose_2d(cam_pose_cv, normal_vector)) {
ROS_ERROR("Can not set initial pose");
}
}
Expand Down

0 comments on commit db3e17e

Please sign in to comment.