ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

[robot_localization] Failed to meet update rate!

asked 2022-01-01 13:11:31 -0500

CounterOfKills gravatar image

I am trying to get a robot to localize, but getting a 'Failed to meet update rate!' error. Running Noetic on kernel 5.4.0-1047-raspi.

Anyone know how to fix this? Thanks.


Error message in terminal:

[ WARN] [1641061436.663625132]: Failed to meet update rate! Took 0.31075859500000002633

Error message in log file:

1641055730.821605004 WARN /ekf_odom_node [/tmp/binarydeb/ros-noetic-robot-localization-2.7.3/src/ros_filter.cpp:1867(RosFilter<T>::periodicUpdate)] [topics: /rosout, /diagnostics, /tf, /odom/ekf/enc_imu] Failed to meet update rate! Took 0.23348387100000000949

Main launch file:

<launch>

    <node pkg="sensors" name="dummyOdom" type="dummyOdom.py" output="screen"/>

    <include file="$(find sensor_imu)/launch/sensor_imu.launch" />
    <include file="$(find ydlidar_ros_driver)/launch/scan.launch" />
    <include file="$(find navstack_pub)/launch/odom_ekf.launch" />
    <!-- <include file="$(find navstack_pub)/launch/amcl.launch" /> -->
    <include file="$(find husky_navigation)/launch/amcl.launch" />
    <include file="$(find husky_navigation)/launch/move_base.launch" />

    <arg name="map_file" value="$(find navstack_pub)/maps/map.yaml" />
    <node pkg="map_server" type="map_server" name="map_server" args="$(arg map_file)" />


    <!-- Transformation Configuration ... Setting Up the Relationships Between Coordinate Frames -->
    <node pkg="tf" type="static_transform_publisher" name="base_link_to_laser"              args="0 0 0 0 0 0 base_link laser_frame 30" />
    <node pkg="tf" type="static_transform_publisher" name="imu_broadcaster"                 args="0 0 0 0 0 0 base_link imu 30" />
    <node pkg="tf" type="static_transform_publisher" name="imu_broadcaster2"                args="0 0 0 0 0 0 imu imu_module_frame 30" />
    <node pkg="tf" type="static_transform_publisher" name="base_link_broadcaster"   args="0 0 0 0 0 0 base_footprint base_link 30" />
    <!-- odom to base_footprint transform will be provided by the robot_pose_ekf node -->
    <!-- map to odom will be provided by the AMCL -->
    <!-- <node pkg="tf" type="static_transform_publisher" name="map_to_odom"                        args="0 0 0 0 0 0 map odom 30" /> -->

    <node pkg="tf" type="static_transform_publisher" name="world_to_map"                    args="0 0 0 0 0 0 /world /map 30"/>
    <!-- <node pkg="tf" type="static_transform_publisher" name="odom_to_base_link"          args="0 0 0 0 0 0 /odom /base_footprint 30"/> -->

    <!-- <node pkg="tf" type="static_transform_publisher" name="base_foorprint_to_link"     args="0.2245 0.0 0.2 0.0 0.0 0.0 /base_footprint /base_link 40" /> -->


    <node pkg="rviz" name="rviz" type="rviz" args="-d $(find navstack_pub)/launch/lidar.rviz" />
</launch>

odom_ekf.launch:

<!-- Odom node (Encoders + IMU) -->
<launch>
<node pkg="robot_localization" type="ekf_localization_node" name="ekf_odom_node" output="screen" >
    <param name="frequency" value="30"/>
    <param name="sensor_timeout" value="0.1"/>
    <param name="two_d_mode" value="true"/>
    <remap from="odometry/filtered" to="odom/ekf/enc_imu"/>
    <param name="map_frame" value="map"/>
    <param name="odom_frame" value="odom"/>
    <param name="base_link_frame" value="base_footprint"/>
    <param name="world_frame" value="odom"/>
    <param name="transform_time_offset" value="0.0"/>

    <param name="odom0" value="/odom_dummy"/>
    <param name="odom0_differential" value="false" />
    <param name="odom0_relative" value="false" />
    <param name="odom0_queue_size" value="10" />
    <rosparam param="odom0_config">[
        <!-- false, false, false,
        false, false, false,
        true,  true,  false,
        false, false, true,
        false, false, false] -->

        false ...
(more)
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2022-01-14 03:02:37 -0500

Tom Moore gravatar image

If I had to guess, your issue is almost certainly this:

<param name="debug" value="true" />

Turning on debug mode spits a ton of text data out to disk, with matrices everywhere. Is there a reason you have it enabled?

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2022-01-01 13:11:31 -0500

Seen: 1,504 times

Last updated: Jan 14 '22