-
Notifications
You must be signed in to change notification settings - Fork 559
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
Did not receive data since 5 seconds! #1182
Comments
Not sure why rtabmap switched from rgbd_image to rgb image input between these two logs:
The camera info is not remapped correctly too. I tried rtabmap part of your launch and this is what should be expected:
You would also need to set <node name="rtabmap" pkg="rtabmap_slam" type="rtabmap" output="screen" args="--delete_db_on_start">
<param name="frame_id" type="string" value="oak"/>
<param name="subscribe_rgb" type="bool" value="true"/>
<param name="subscribe_depth" type="bool" value="false"/>
<param name="subscribe_rgbd" type="bool" value="false"/>
<param name="subscribe_scan_cloud" type="bool" value="true"/>
<remap from="scan_cloud" to="/livox/points"/>
<remap from="rgb/image" to="oak/rgb/image_raw"/>
<remap from="rgb/camera_info" to="oak/rgb/camera_info"/>
<remap from="odom" to="/Odometry"/>
<param name="subscribe_odom_info" type="bool" value="false"/>
<!-- RTAB-Map's parameters -->
<param name="Reg/Strategy" type="string" value="1"/> <!-- 0=Visual, 1=ICP, 2=Visual+ICP -->
<param name="Reg/Force3DoF" type="string" value="true"/>
<param name="RGBD/ProximityBySpace" type="string" value="true"/>
<param name="Icp/CorrespondenceRatio" type="string" value="0.2"/>
<param name="Icp/VoxelSize" type="string" value="0.05"/>
<param name="Icp/RangeMax" type="string" value="0"/>
<param name="Grid/RangeMax" type="string" value="0"/>
</node> |
To get loop closure detection working, I suggest to use depth image of the oak as it is available. To do so, you will need to use RGBDImage interface. Following this example, that would look like this: <node pkg="rtabmap_sync" type="rgbd_sync" name="rgbd_sync" output="screen">
<remap from="rgb/image" to="oak/rgb/image_raw"/>
<remap from="depth/image" to="oak/depth/image"/>
<remap from="rgb/camera_info" to="oak/rgb/camera_info"/>
</node>
<node name="rtabmap" pkg="rtabmap_slam" type="rtabmap" output="screen" args="--delete_db_on_start">
<param name="frame_id" type="string" value="oak"/>
<param name="subscribe_rgb" type="bool" value="false"/>
<param name="subscribe_depth" type="bool" value="false"/>
<param name="subscribe_rgbd" type="bool" value="true"/>
<param name="subscribe_scan_cloud" type="bool" value="true"/>
<remap from="scan_cloud" to="/livox/points"/>
<remap from="odom" to="/Odometry"/>
<param name="subscribe_odom_info" type="bool" value="false"/>
<!-- RTAB-Map's parameters -->
<param name="Reg/Strategy" type="string" value="1"/> <!-- 0=Visual, 1=ICP, 2=Visual+ICP -->
<param name="Reg/Force3DoF" type="string" value="true"/>
<param name="RGBD/ProximityBySpace" type="string" value="true"/>
<param name="Icp/CorrespondenceRatio" type="string" value="0.2"/>
<param name="Icp/VoxelSize" type="string" value="0.05"/>
<param name="Icp/RangeMax" type="string" value="0"/>
<param name="Grid/RangeMax" type="string" value="0"/>
</node> You may have to adjust the remap of the oak depth image, I just guessed the name. |
Hello, I am having trouble running rtabmap
I'm usuing oak-d-pro and livox avia and I'm trying to use 'subscribe_scan_cloud' parameter but the following error appears.
my launch files are as follows
Any help on this is greatly appreciated.
thank you :)
The text was updated successfully, but these errors were encountered: