Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. Dismiss Notice

rviz2 dropping odometry message for reason unknown

Discussion in 'Robotics' started by Nitsan448, Jan 18, 2022.

  1. Nitsan448


    Aug 22, 2019
    Hello. I am trying to publish odometry, and I can see it being published using 'ros2 topic echo odom'. However for some reason when trying to see it in rviz2 it always drops the message.

    [INFO] [1642496643.373470893] [rviz]: Message Filter dropping message: frame 'odom' at time 1642496642.798 for reason 'Unknown'

    This is the part of my code that sets the odometry message.
    Code (CSharp):
    1.     private void SetOdometryHeader()
    2.     {
    3.         _odometryMsg.header = _odometryHeader;
    4.         _odometryMsg.header.frame_id = "odom";
    5.     }
    6.     private void PublishOdometry()
    7.     {
    8.         _movementController.UpdateOdometryMsg(_odometryMsg);
    9.         SetHeaderTime(_odometryHeader);
    10.         _rosConn.Publish("odom", _odometryMsg);
    11.     }
    Did anyone run into a similar problem or know what could be the issue?