gaoxiang12 / ORBSLAM2_with_pointcloud_map

830 stars 346 forks source link

finished all build,but when I try to run it with kinect,something wrong #15

Open lily0101 opened 6 years ago

lily0101 commented 6 years ago

I use this to run : roslaunch kinect_orbslam2.launch kinect_orbslam2.launch

the problem is below: [ INFO] [1503458066.057670478]: Initializing nodelet with 4 worker threads. [ORB_SLAM2-1] process has died [pid 22621, exit code -11, cmd /home/robotleo/Ubuntu_exbot/ORBSLAM2_with_pointcloud_map-master/ORB_SLAM2_modified/Examples/ROS/ORB_SLAM2/RGBD /home/robotleo/Ubuntu_exbot/ORBSLAM2_with_pointcloud_map-master/ORB_SLAM2_modified/Vocabulary/ORBvoc.txt /home/robotleo/Ubuntu_exbot/ORBSLAM2_with_pointcloud_map-master/ORB_SLAM2_modified/Examples/RGB-D/TUM1.yaml __name:=ORB_SLAM2 __log:=/home/robotleo/.ros/log/e729ee82-87ad-11e7-a668-48d224c6eaeb/ORB_SLAM2-1.log]. log file: /home/robotleo/.ros/log/e729ee82-87ad-11e7-a668-48d224c6eaeb/ORB_SLAM2-1*.log

I try to solve it ,but did not work. please tell me how to solve it.

ghost commented 6 years ago

Actually , I success to run ORBSLAM2_with_pointcloud_map with Kinect v2 , but I didn't use launch

there are how I work: terminel1 $ roscore terminel2 ~/catkin_ws$ roslaunch kinect2_bridge kinect2_bridge.launch depth_method:=cpu reg_method:=cpu terminel3 ~/ORBSLAM2_with_pointcloud_map-master/ORB_SLAM2_modified$ rosrun ORB_SLAM2 RGBD Vocabulary/ORBvoc.txt Examples/RGB-D/TUM1.yaml

Note that! before u do that ,please add the pcl library in Examples/ROS/ORB_SLAM2/CMakeLists.txt