Hi i recognized that imu data has not been utilized in rtabmap.launch.py
so i did some corrections in that file and the result got such an improvement in speed of odometry calculation and stability
the result is like following launch file that involves imu_filter_madgwick package:
import os
from ament_index_python.packages import get_package_share_directory
from launch import LaunchDescription
from launch.actions import DeclareLaunchArgument, IncludeLaunchDescription, OpaqueFunction
from launch.conditions import IfCondition
from launch.launch_description_sources import PythonLaunchDescriptionSource
from launch.substitutions import LaunchConfiguration
from launch_ros.actions import LoadComposableNodes, Node
from launch_ros.descriptions import ComposableNode
def launch_setup(context, *args, **kwargs):
name = LaunchConfiguration('name').perform(context)
depthai_prefix = get_package_share_directory("depthai_ros_driver")
Hi i recognized that imu data has not been utilized in rtabmap.launch.py so i did some corrections in that file and the result got such an improvement in speed of odometry calculation and stability the result is like following launch file that involves imu_filter_madgwick package:
import os
from ament_index_python.packages import get_package_share_directory from launch import LaunchDescription from launch.actions import DeclareLaunchArgument, IncludeLaunchDescription, OpaqueFunction from launch.conditions import IfCondition from launch.launch_description_sources import PythonLaunchDescriptionSource from launch.substitutions import LaunchConfiguration from launch_ros.actions import LoadComposableNodes, Node from launch_ros.descriptions import ComposableNode
def launch_setup(context, *args, **kwargs): name = LaunchConfiguration('name').perform(context) depthai_prefix = get_package_share_directory("depthai_ros_driver")
def generate_launch_description(): depthai_prefix = get_package_share_directory("depthai_ros_driver") declared_arguments = [ DeclareLaunchArgument("name", default_value="oak"), DeclareLaunchArgument("params_file", default_value=os.path.join(depthai_prefix, 'config', 'rgbd.yaml')), DeclareLaunchArgument("rectify_rgb", default_value="True"), ]