-
Notifications
You must be signed in to change notification settings - Fork 558
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error rtabmap: malloc.c:2401 with Realsense T265 #881
Comments
Seems related to introlab/rtabmap#872, what are the dependencies of rtabmap?
You may give a try with rtabmap binary version:
|
The rtapmap dependencies are the following :
I tried to install the binary version as you advised and now it gives an opencv error :
The error does not appear when I launch the realsense T265 camera but when I launch the camera_info with these command :
|
Hi Mathieu @matlabbe, thanks a lot for helping close issue 882 which has been solved by resolving the boost-related conflicts. Here is some follow-up of the aforementioned problem in this issue. Basically I've tried all I could think of and also what you've suggested in a few previous issues where similar problems have been reported:
But the problem remains (this time with ZED2). So it has to have something to do with ROS, right, as it works totally fine with rtabmap alone. I'm attaching here a few screen-shots and logs. Please let me know if you notice anything. In the meantime, I'll try gdb and see what it brings me. Thank you very much! -- MOBILE_BUILD=OFF
-- The imported target "vtk" references the file
-- PCL definitions don't contain "-march=native", make sure all libraries using Eigen are also compiled without that flag to avoid some segmentation faults (with gdb referring to some Eigen functions). -- Info :
|
have you solved this problem? ? I get the same... |
Yes and no :P. We actually tried with multiple devices. On my laptop, the problem is still there. On another device, where the settings and stuff are similar, launching the stereo odometry still led to errors mentioned above. BUT the RGBD odometry works just fine. For that we were using an Orbbec Astra mini s camera. We are still trying to figure out what is going on. Once I find time, I'll try debugging. |
Hi Mathieu @matlabbe, one further question: as I have ROS melodic on all my devices, should I clone from the 0.20.23-melodic tag of rtabmap? |
@cy-2022 From the cmake screenshot from #881 (comment), there is a mixed up of two OpenCV versions in loaded libraries. This could cause malloc opencv related issues. Note that if you have another opencv installed, rtabmap standalone may build with it (running fine), but rtabmap_ros would likely fail (unless it is the same OpencV version than the system binaries) because rtabmap_ros depends on cv_bridge, which imports system opencv libraries. Thus rtabmap_ros has to load local opencv and system opencv libraries at the same time, causing crashes. This is also explained here, step 1. @novadr From this post: #881 (comment), it seems that rtabmap_ros binaries are loading the locally built rtabmap libraries. To try ros binaries, uninstall the local rtabmap one ( |
Hi Mathieu @matlabbe, thank you very much for your reply and the detailed explanation. I tried resolving the OpenCV conflict, in the end even by removing OpenCV 3.3.1 (installed for the Indemind camera SDK) completely. But the error is still there. Here I'm attaching the logs and stuff saved while building. Would you please help take a look when you have time? Thanks a lot! And in the meantime, I've tried installing the rtabmap binary version as you suggested #881 (comment). It worked well, and on three of our devices on hand. So now we're finally able to try the framework out. Thank you very much for the advice. With the only device of ours on which building rtabmap from source has worked well, we wanted to try using ORB-SLAM2 (already there on the device) as the visual odometry. Hopefully it'd work out. And I also wonder, with the binary version, how one can achieve this, so is ORB-SLAM2 supported, right? How about ORB-SLAM3? Can we simply modify the launch file (I saw related comments from you in a certain issue) to use these specific visual odometries? Thanks a lot! |
Hi @matlabbe ! I just tried to install rtabmap binaries in a clean environment (Ubuntu 18.04 with ROS Melodic and Realsense, I just run the command : I got the same error as last time I tried rtabmap binaries : The Opencv assertion failed :
For the new Ubuntu, I got some problems with the installation of librealsense 2.42, so I installed the last version from source (v2.53.1) and I fixed the problem of the synchronization of the fisheyes according to your indication here : introlab/rtabmap#716 (comment) |
Hi Mathieu @matlabbe, I've tried debugging with gbd on one of our devices where the error occurred. The results are as follows, with stereo_mapping (with a ZED2 camera) and rgbd_mapping (with an Orbbec Astra mini s), respectively. These reminded me of one previous issue I saw while checking if similar problems had been reported before #664 (comment) |
Hi Mathieu @matlabbe, I just did sudo apt upgrade and deleted ~/rtabmap_ws/build and catkin_make again. The problem was still there, and gbd gave the same results. Any idea how I should proceed? Would re-install ROS help? What do you think? Thank you very much! |
I solved the malloc problem. It came from the librealsense version. I installed SDK 2.42.0 and now I don't have the malloc error. |
Confirmed I saw same error: when building against realsense2 (2.53.1). The workaround is to build rtabmap library without realsense (if you use only ros):
|
Hello,
I'm trying to run Rtabmap with the two fisheyes of an Intel Realsense T265.
I successfully installed rtabmap and rtabmap_ros on my ubuntu 18.04 with ROS Melodic and with the OpenCV 3.2 version (built in ROS) and CV bridge.
Furthermore, I installed Realsense sdk 2.42.0 and calibrate the T265's fisheyes successfully by executing the instruction mentioned here : http://official-rtab-map-forum.206.s1.nabble.com/Slam-using-Intel-RealSense-tracking-camera-T265-td6333.html#a6343
My .yaml files seems correct when I compare it with the values given by rs-enumerate-devices -c and I remove the "%YAML:1.0" as mentioned in the previous post.
I try to launch rtab with the following lines :
roscore
rosparam set /camera/tracking_module/enable_mapping false
roslaunch realsense2_camera rs_t265.launch
python camera_infpub.py _url:=/home/robot/Desktop/all_yaml_files/t265_with_rtabmap_left.yaml image:=/camera/fisheye1/image_raw camera_info:=/camera/fisheye1/camera_info_calib
python camera_infpub.py _url:=/home/robot/Desktop/all_yaml_files/t265_with_rtabmap_right.yaml image:=/camera/fisheye2/image_raw camera_info:=/camera/fisheye2/camera_info_calib
roslaunch rtabmap_ros rtabmap.launch \ args:="-d --Rtabmap/ImagesAlreadyRectified false" \ stereo:=true \ left_image_topic:=/camera/fisheye1/image_raw \ right_image_topic:=/camera/fisheye2/image_raw \ left_camera_info_topic:=/camera/fisheye1/camera_info_calib \ right_camera_info_topic:=/camera/fisheye2/camera_info_calib \ visual_odometry:=false \ odom_frame_id:=camera_odom_frame
Then I have the following issue :
Has somebody else encounter this error, please ? I don't have any idea about the origin of this issue and how to fix that..
Thank you.
The text was updated successfully, but these errors were encountered: