zang09 / ORB_SLAM3_ROS2

ROS2 wrapping package for orbslam3 library
183 stars 65 forks source link

Error on Running with ROS2 momo #7

Open CuriosityWang opened 1 year ago

CuriosityWang commented 1 year ago

when I run with momo,it seems like that it initialized successfully,but i got this error

New Map created with 91 points
one frame has been sent
Fail to track local map!
terminate called after throwing an instance of 'cv::Exception'
  what():  OpenCV(4.5.4) ./modules/imgproc/src/color.simd_helpers.hpp:92: error: (-2:Unspecified error) in function 'cv::impl::{anonymous}::CvtHelper<VScn, VDcn, VDepth, sizePolicy>::CvtHelper(cv::InputArray, cv::OutputArray, int) [with VScn = cv::impl::{anonymous}::Set<1>; VDcn = cv::impl::{anonymous}::Set<3, 4>; VDepth = cv::impl::{anonymous}::Set<0, 2, 5>; cv::impl::{anonymous}::SizePolicy sizePolicy = cv::impl::<unnamed>::NONE; cv::InputArray = const cv::_InputArray&; cv::OutputArray = const cv::_OutputArray&]'
> Invalid number of channels in input image:
>     'VScn::contains(scn)'
> where
>     'scn' is 2

Aborted (core dumped)
weiwei-dotcom commented 11 months ago

I have the same question. Have you done with this ?