problem with playing and displaying a bag file in rviz

asked 2017-01-20 17:03:18 -0500

A.M Dynamics gravatar image

updated 2017-01-20 17:03:45 -0500

I have a bag file containing the path my robot traversed using a laser sensor. This is the information of the bag file:

> labcoro@Samsung:~/catkin_ws_youbot$ rosbag info  planner_path1.bag 
  path:        planner_path1.bag
  version:     2.0
  duration:    0.0s
  start:       Dec 15 2016 12:06:09.53 (1481821569.53)
  end:         Dec 15 2016 12:06:09.53 (1481821569.53)
  size:        48.4 KB
  messages:    2
  compression: none [1/1 chunks]
  types:       nav_msgs/Path [6227e2b7e9cce15051f669a5e197bbf7]
  topics:      move_base_node/NavfnROS/plan   2 msgs    : nav_msgs/Path

I need to display the save data again in rviz but I do not know what the Fixed Frame of the bag is? I run these command sequentially:

  rosparam set use_sim_time true
  rosbag play --clock planner_path1.bag
  rosrun rviz rviz

another problem is that the bag dose not play and it gives this message:

[ INFO] [1484952163.366887588]: Opening planner_path1.bag

Waiting 0.2 seconds after advertising topics... done.

Hit space to toggle paused, or 's' to step.

Any suggestion?

Thanks.

edit retag flag offensive close merge delete