ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

How to plot pose given by ROBOT_POSE_EKF

asked 2012-09-22 23:39:23 -0500

sai gravatar image

UBUNTU 12.04 and Fuerte.

I am currently using robot_pose_ekf package to find the pose of the robot equipped with IMU and odometry data.

The graph which is shown in this page is cool.

I want to plot in the same way but I am not able to figure out how the graph was plotted.

I tried using rxplot but I was able to plot positions X and Y of one topic in one plot but not both the topics(with EKF and without EKF) in the same plot...I dont want to have time axis too.

Thanks, Sai

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2012-09-23 13:30:09 -0500

dejanpan gravatar image

I do not have the exact example handy but you could start from here using Matlab: You will have to adopt the tutorial in that you will log the "robot_pose_ekf/odom_combined" and "base_odometry/odom" topics. From both datasets you will only be interested in the pose.position.[x|y] values and can then plot them using plot(data.pose.position.x, data.pose.position.y) command. If you merge both datasets you can obviously also create 2 plots. D.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2012-09-22 23:39:23 -0500

Seen: 652 times

Last updated: Sep 23 '12