isl-org / MiDaS

Code for robust monocular depth estimation described in "Ranftl et. al., Towards Robust Monocular Depth Estimation: Mixing Datasets for Zero-shot Cross-dataset Transfer, TPAMI 2022"
MIT License
4.27k stars 599 forks source link

Facing issue with Ros package #205

Open EhrazImam opened 1 year ago

EhrazImam commented 1 year ago

Hi @thias15 @ranftlr i followed the step and i am able to run till midas node only as soon as i am running ./run_talker_listener_test.sh i am getting an error i a have tried it with different videos also tried to run it on my camera setup but i am am getting same error with all

[midas_cpp-1] restarting process process[midas_cpp-1]: started with pid [5892] terminate called after throwing an instance of 'cv::Exception' what(): OpenCV(4.5.4) /tmp/build_opencv/opencv/modules/core/src/matrix.cpp:250: error: (-215:Assertion failed) s >= 0 in function 'setSize'

[midas_cpp-1] process has died [pid 5892, exit code -6, cmd /home/enord/catkin_ws/src/midas_cpp/midas_cpp __name:=midas_cpp __log:=/home/enord/.ros/log/b09b673a-c7fb-11ed-a5ca-ec2e98ca6411/midas_cpp-1.log]. log file: /home/enord/.ros/log/b09b673a-c7fb-11ed-a5ca-ec2e98ca6411/midas_cpp-1*.log

invarrow commented 1 year ago

were you able to run it through camera?

EhrazImam commented 1 year ago

@invarrow NO, Did you?

invarrow commented 1 year ago

yea

EhrazImam commented 1 year ago

@invarrow great how can you help me with the same, I haven't tried after that so if you can help me then it will be great.

EhrazImam commented 1 year ago

@invarrow it will be great if you can help me with this problem as i am unable to solve it yet. Thankyou.

FrancoPalau commented 1 year ago

Hi, @EhrazImam did you find a solution? I am facing the same problem. I'm testing with two different images types from rosbag files and neither worked. Thanks

EhrazImam commented 10 months ago

No not yet, i tried to convert python file to ros package which works for me.