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

Revision history [back]

I had the very same problem that no odometry/filtered was published.

It was, indeed, caused by leading slashes in the input Odometry message. This is how I generate it:

msg = Odometry()
msg.header.stamp = rospy.Time.now()
msg.header.frame_id = "odom"
msg.child_frame_id = "base_link"
msg.pose.pose.position = Point(*pos)
msg.pose.pose.orientation = Quaternion(*ori)
msg.twist.twist.linear.x = vx
msg.twist.twist.angular.z = va
pub.publish(msg)

Note the two strings without leading slash.

Moreover, you seem to be missing the frame_id completely. There you should define the parent frame.