Using robot_pose_ekf output for Navigation stack
I am currently working on a robot similar to a turtlebot that uses the gyro from the turtlebot and encoders for tracking movement. I setup the robot_pose_ekf to take in the data and it is working correctly. I am now confused at what to do with the output of robot_pose_ekf. It is in the format geometry_msgs/PoseStamped and the navigation stack requires nav_msgs/Odometry. I am unsure if I am heading in the right direction with this but the overall goal is to combine the gyro and the encoder readings and then send it to the nav stack. Does anyone have any ideas or suggestions?
Thanks