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

How to save the poses which on the global_path topic into a txt file?

asked 2015-05-06 21:01:59 -0600

jxl gravatar image

updated 2015-05-06 21:02:30 -0600

hello everyone ,

I want to save the path from start pose to goal published by the global path planner like Dijkstar in the navfn package , so i am ready to write a node which subscribes that topic.In the callback , i want to save those poses into a txt file,which Matlab can read in , so i can plot them in the Matlab and also analyse the path length and the smoothness .

my question is simple :

in the callback ,how can i save that messages into a txt file or something else,sorry ,i don't know how to write the body of the callback.

Thank you in advance.

edit retag flag offensive close merge delete

Comments

Can't ROSMATLAB read bagfiles?

BennyRe gravatar image BennyRe  ( 2015-05-07 04:19:42 -0600 )edit

Unfortunately, just now, I knew matlab can actually support the ROS.,that's amazing!!But when I see the MathWorks site ,there are many things of ROSMATLAB i have to learn ,it will take a long time .so does you know how to do this job on the ROSUbuntu ??

jxl gravatar image jxl  ( 2015-05-07 08:45:29 -0600 )edit

Hi, I don't know the answer..

RB gravatar image RB  ( 2015-05-07 11:13:16 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-08-24 10:15:14 -0600

jxl gravatar image

My final solution is :first save that global path topic into a txt file using command ,then make a C project to process that file to extract the useful information ,then plot that data on matlab.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2015-05-06 21:01:59 -0600

Seen: 575 times

Last updated: Aug 24 '15