-
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
Disable Relocalization/Loop Closure for T265 #779
Comments
I think it is better to directly use the twist from the odom/sample topic (that's what I am doing). |
That makes sense, thanks @BriceRenaudeau ! |
Upvote here; we want to use this sensor as a "pure" odometer inside a much larger SLAM system, but loop closures make that impossible. |
It sounds like a valid use case and we'll take it into consideration in inner discussions. @radfordi |
Thanks for the feedback @manomitbal and @macmason. We have a few different layers we can disable. I'll see about exposing them. |
Hello, There is now a RS2_OPTION_ENABLE_RELOCALIZATION flag in the 'rs2_options' enum. Omitting this flag should accomplish what you're looking for. You'll also find a control_sensor_options() method in librealsense/examples/sensor-control/rs-sensor-control.cpp that demonstrates how to change sensor options. This should be sufficient for your needs. Is there anything else I can assist you with this matter? Thanks |
After looking at this topic, this issue from RTabMap, and this question from the realsense-ros issue tracker, is there any plan to publish relocalization events to output? I'd prefer to use the T265's strengths and not rely on an app like rtabmap to perform relocalization - OTOH, T265 loop closure conflicts with rtabmap's, and there's no way to properly optimize the map with both localization processes running. If not, is there a best practice to detect relocalization events from looking at the other output streams? |
@nacorti, we have added a few options IntelRealSense/librealsense#4321 to disable different parts of the internal mapping on the T265. I would suggest leaving mapping enabled, but disabling relocalization and jumping. This may avoid the conflict with RTabMap while still giving good results. We are curious to hear which combinations work well for you. With respect to relocalization events, we have just enabled them, IntelRealSense/librealsense#4936. Please let us know your thoughts on the API. |
All the options add in IntelRealSense/librealsense#4321 are added automatically in realsense2_camera. As for the relocalization events, we still need to integrate those. Any thoughts about the ROS API for that. Is there a convention or a better way then publishing another topic? |
how can we disable RS2_OPTION_ENABLE_RELOCALIZATION flag? |
You could use rqt_reconfigure to turn "enable_relocalization" off or you could add the following lines to your launch file:
|
Thanks doronhi. cimbar, manomitbal...will you be needing further assistance with this issue? Thanks |
It solves my problem on ros side, thanks. Additionally, it would be better to explain how rs2_option flags can be disabled from librealsense |
If you look at the change_sensor_options() method in Intel RealSense SDK 2.0\samples\sensor-control\api_how_to.h you will find an example. You should be able to simple set RS2_OPTION_ENABLE_RELOCALIZATION to 0 to accomplish what you want. |
Is there a way to disable Relocalization/Loop closure on the T265 using a param or code change until the Relocalization API is considered stable? I am planning to use odometry output as a differential instead, Would that be possible?
The text was updated successfully, but these errors were encountered: