Skip to content

Working with bag files

Jose Sanchez edited this page Jun 8, 2015 · 3 revisions

Working with bag files

The following instructions describe how to use the slip detector node with bag files.

  1. Launch the component:
    roslaunch slip_detection slip_detector.launch
  2. Play a recorded bag file (sample bag files can be found here), for instance: rosbag play -l slip_down.bag
  3. Verify that tactile data is being published:
    rostopic echo /dsa_controller/tactile_data
  4. Subscribe to the result(s) of the component:
    rostopic echo /slip_detection/slip_detector/slip
    rostopic echo /slip_detection/slip_detector/event_out
  5. Start the components:
    rostopic pub /slip_detection/sdh_tactile_adapter/event_in std_msgs/String "e_start"
    rostopic pub /slip_detection/intensity_extractor/event_in std_msgs/String "e_start"
    rostopic pub /slip_detection/tactile_flow_extractor/event_in std_msgs/String "e_start"
    rostopic pub /slip_detection/slip_detector/event_in std_msgs/String "e_start"

To stop the component

rostopic pub /slip_detection/slip_detector/event_in std_msgs/String "e_stop"

Clone this wiki locally