-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Problem getting D435i adapted with Kimera-Semantics #1713
Comments
Hi @mohammad-h-b If you are following the official Kimera-VIO-ROS instructions for D435i in the link below, they are currently out of date. The RealSense ROS wrapper now requires that the IMU topics are enabled in its roslaunch instruction using enable_gyro:=true enable_accel:=true as they are disabled by default from wrapper version 2.2.15 onward (July 2020). https://github.com/MIT-SPARK/Kimera-VIO-ROS/blob/master/docs/hardware_setup.md Adapting the Kimera-VIO-ROS launch instruction, it would now be: roslaunch realsense2_camera rs_camera.launch enable_gyro:=true enable_accel:=true unite_imu_method:=linear_interpolation It is also worth mentioning that if you have updated the librealsense version since the last time that you built the RealSense ROS wrapper then the wrapper should be rebuilt. It is recommended to use wrapper version 2.2.22 with librealsense version 2.42.0. |
Hi @MartyG-RealSense Thanks for your answer. I'll definitely use the adapted launch file for Kimera-VIO-ROS. Regarding the wrapper, could you please let me know how I can get wrapper version 2.2.22 with librealsense version 2.42.0 working? When I run
|
There is not a problem with using librealsense 2.41.0 and wrapper 2.2.21 together. If you wish to try 2.42.0 though: as this SDK version is new at the time of writing this, I would recommend installing wrapper 2.2.22 by building it from source code with Method 2 (i.e build librealsense first and then build 2.2.22 secondly with Method 2). https://github.com/IntelRealSense/realsense-ros#method-2-the-realsense-distribution If you installed librealsense and the ROS wrapper together with packages using Method 1 then the installation packages may still be using 2.41.0 due to the current newness of SDK 2.42.0. Building the wrapper from source with Method 2 means that you can use a new RealSense ROS wrapper version as soon as it is released. |
Thank you so much @MartyG-RealSense ! Could you please let me know about that? Output:
|
Given that Kimera makes use of infrared, the lack of data may be related to the same issue as the IMU topics. The infra topics are also disabled by default from wrapper 2.2.15 onwards. So to ensure that the infrared topics are enabled, please add the instructions below to the roslaunch instruction too: enable_infra1:=true enable_infra2:=true |
Thank @MartyG-RealSense I've added the intsctructions but still get zero values. Also when I run
Please note that for the |
This is a rare error that has only seemed to occur with librealsense 2.41.0. It was apparently fixed in 2.42.0. |
I see. So is there any fix for the zero values I'm getting? |
In the Testing section of the Kimera instructions, are you launching each instruction in its own separate ROS terminal as specified by the first line of this section, please? https://github.com/MIT-SPARK/Kimera-VIO-ROS/blob/master/docs/hardware_setup.md#testing |
The above images indicate that librealsense 2.42.0 has been installed but the ROS wrapper has not been rebuilt afterwards. After a change of librealsense version, the ROS wrapper has to be built again. It is also worth bearing in mind that the more common approach to using SLAM with RealSense D435i is to do so with Intel's own D435i SLAM guide. https://github.com/IntelRealSense/realsense-ros/wiki/SLAM-with-D435i |
That's right. I did a whole |
If you get a version conflict when building in the catkin workspace, I would suggest deleting the catkin workspace and creating a new workspace to build the wrapper in to see whether that makes a difference. |
Thanks @MartyG-RealSense I deleted the catkin workspace and built the wrapper in the new one. Now the warning is gone; however, I'm still getting zero values even with |
I wonder whether the continued zero-values are related to calibration of the D435i IMU, and whether the IMU needs to first have a calibration written to the camera hardware using Intel's Python-based IMU calibration tool before using it with Kimera. https://dev.intelrealsense.com/docs/imu-calibration-tool-for-intel-realsense-depth-camera Also, it may be that the sub-categories of calibration in point 3 of the Kimera instructions need to be performed in addition to the D435i details that Kimera already has, if you have not already carried out these sub-tasks. https://github.com/MIT-SPARK/Kimera-VIO-ROS/blob/master/docs/hardware_setup.md |
Thanks for the tip! I'll look into using Intel's Python-based IMU calibration tool. Regarding the sub-categories of calibration in point 3 of the Kimera instructions, it's mentioned that they are not needed to be done if you want to use the default calibration and launch files. I am using the exact same camera they've used (D435i), so I'm not sure if I need to carry them out. |
Hi @mohammad-h-b Do you require further assistance with this case, please? Thanks! |
Hi @MartyG-RealSense Still I couldn't get it running on my system :( |
A member of the Kimera forums suggested testing with a bag file instead of live data to see whether there is a problem with Kimera instead of the camera: |
I just tested kimera with the given rosbag file and it works fine. So I guess the problem is with my D435i, although |
On the Kimera-VIO-ROS, another D435i user used the details in the link below in their roslaunch file, a modification of kimera_vio_ros_realsense_IR.launch. They set online mode to True in the launch file to use live D435i camera data with |
Thanks @MartyG-RealSense I already set that parameter to true, no success. Anyway, how can I run the Kimera-Semantics in Gazebo? There I could put a sample camera and see how it works. |
I researched your question. I could not find an example of gazebo use with Kimera, though somebody else had asked about it. |
Hi @mohammad-h-b Do you require further assistance with this case, please? Thanks! |
Case closed due to no further comments received. |
Hi,
I wonder if you let me know whether my issues (MIT-SPARK/Kimera-VIO-ROS#128) and (MIT-SPARK/Kimera-VIO-ROS#129) are due to the my librealsense version (2.2.21)? I tried to upgradre it but don't know how to do so. I have SDK v2.42.
Output:
Please give also the following information:
Operating system and version (e.g. Ubuntu 16.04 or Windows 10): Ubuntu 18.04
Did you change the source code? (yes / no): no
The text was updated successfully, but these errors were encountered: