Open vlon opened 6 years ago
I also tried to build from source,but when I run "make" at the rtabmap step,I got the follow error:
In file included from /usr/local/include/g2o/core/block_solver.h:199:0,
from /home/josh/rtabmap/corelib/src/OptimizerG2O.cpp:42:
/usr/local/include/g2o/core/block_solver.hpp:40:1: note: candidate: g2o::BlockSolver
I thought the new version g2o may incompatible with rtabmap,so downloaded the 2016 version,and I can get the "make" through,But it come out the first error.
For g2o, the latest version is indeed incompatible: https://github.com/introlab/rtabmap_ros/issues/199
For your error: "Invalid device number 1, there are 0 devices connected.", it means that openni cannot detect a camera. What is your camera? If no data is published, rtabmap will complain "Did not receive data since 5 seconds!".
cheers, Mathieu
@matlabbe thanks for your reply,I have fixed the problem.
I am new learner to ros and rtabmap,and I did as the http://wiki.ros.org/rtabmap_ros/Tutorials/MappingAndNavigationOnTurtlebot told.However,I get the follow error: [ INFO] [1507863746.475911419]: No matching device found.... waiting for devices. Reason: std::__cxx11::string openni2_wrapper::OpenNI2Driver::resolveDeviceURI(const string&) @ /tmp/binarydeb/ros-kinetic-openni2-camera-0.2.8/src/openni2_driver.cpp @ 642 : Invalid device number 1, there are 0 devices connected. [ WARN] [1507863746.502727737]: /rtabmap/rtabmap: Did not receive data since 5 seconds! Make sure the input topics are published ("$ rostopic hz my_topic") and the timestamps in their header are set. If topics are coming from different computers, make sure the clocks of the computers are synchronized ("ntpdate"). If topics are not published at the same rate, you could increase "queue_size" parameter (current=10). /rtabmap/rtabmap subscribed to (approx sync): /camera/rgb/image_rect_color, /camera/depth_registered/image_raw, /camera/rgb/camera_info, /scan
How can I fix this? Thank you !