3

I have a bag file that contains couple of topics needed for localization, odometry data, kinect data and /tf. What I want is watching robot's movement path in rviz after initializing robot position (even I don't know how to initial it). Any help?

All topics:

/scan
/tf
/clock
/map
/odom
Ian
  • 11,013
  • 2
  • 23
  • 65
Maysam
  • 345
  • 3
  • 11
  • I don't understand the question – perhaps you could add some context and explain a bit more – James Waldby - jwpat7 Nov 21 '13 at 16:26
  • Well, I have recorded data inside a bag file using a wheeled root, right? I've generated map of the environment using that bag file. Now, I want to use these data to see the path of robot inside rviz. – Maysam Nov 22 '13 at 07:07
  • you might have a better chance of getting an answer for this question if you ask it on the the ROS q/a site: http://answers.ros.org/questions/ – Robz Dec 01 '13 at 00:17
  • 1
    @Robz I did, people there are way too lazy! – Maysam Dec 01 '13 at 12:04
  • Not 100% sure where's the problem: what do you mean by "after initializing robot position"? Do you mean that you want to run some localisation algorithm on those data? Or did you record the result of the localisation algorithm and simply want to display it? – Ugo Dec 02 '13 at 11:18
  • @Ugo I want to run a localization algorithm on it – Maysam Dec 03 '13 at 07:31
  • update question with topics you have in your bagfile – nayab Feb 27 '14 at 11:49
  • Why you don't use Matlab? If the visualization is only the problem. – CroCo Jun 02 '14 at 01:31

2 Answers2

0

For localisation you need map of the environment. For the data you have, you should use SLAM algorithm which give path and map of your environment. Try using gmapping in ROS.

nayab
  • 384
  • 1
  • 8
0

Before you run rviz, you need to set use_sim_time to true:

rosparam set use_sim_time true

Now start up rviz, then run rosbag using --clock:

rosbag play bagfile_name.bag --clock

For setting up rviz with the navigation stack, you will want to follow this tutiorial.

Pikey
  • 84
  • 5