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

how to extract a topic data from a text file using matlab?

asked 2014-05-25 23:52:26 -0600

RSA_kustar gravatar image

I did the following

rostopic echo /topic_name > filename.txt

Then I got a text file the contains the data of the topic...

I want to save the data using matlab code in arrays

for example I have the following text file:

 secs: 4113
  nsecs: 565000000
  frame_id: ''
pose: 
  position: 
   x: 5.0
   y: 5.0
    z: 5.0
  orientation: 
    x: 0.0
    y: 0.0
    z: 0.0

    w: 0.0
 --- 
 header: 
  seq: 2544
  stamp: 
secs: 4113
nsecs: 590000000
  frame_id: ''
pose: 
  position: 
   x: 5.0
y: 5.0
  z: 5.0
 orientation: 
x: 0.0
   y: 0.0
   z: 0.0
    w: 0.0
---

I want to save the pose position.x = [ 5 2 ..... ] same as for y and z.. I want to save the data in arrays using matlab ?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-05-26 06:58:21 -0600

this will help : http://www.cs.utah.edu/~germain/PPS/T... For this i dont think ROS is required !

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-05-25 23:52:26 -0600

Seen: 483 times

Last updated: May 26 '14