How do I obtain a localization trajectory in rviz?

asked 2021-09-04 15:01:25 -0500

JZred gravatar image

Hello,

I am very new to ROS. I am trying to obtain a trajectory of a path from a .bag file but I am completely lost on how to visualize this in RViz and also obtain trajectory coordinates for the next step in my project.

Here is what I have tried using the robot_localization package (I don't need to use this necessarily), all in separate terminals:

roscore
rosbag play -l mybagfile.bag
roslaunch robot_localization ekf_template.launch
rosrun rviz rviz

Nothing shows up in rviz, and I'm pretty sure I'm doing something laughably wrong. I can't seem to find a guide on how to do this online. I would appreciate guidance on where to get started or a rough outline of what I'm supposed to be doing.

Thank you in advance!

edit retag flag offensive close merge delete