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

is it possible to find current position using .bag file?

asked 2020-12-02 04:49:25 -0500

Mohammed zuhair gravatar image
I'm trying to identify the my current position by  processing this and don't have any idea about below input files. current requirement is to extract the below details from .bag files and store each of them in separate .csv file 

• ROS recordings of sensor data from the ATL 
• Specification of the Odometer (wheel encoder) 
• Specification of the CORRail
• Specification of the Doppler-RADAR 
• Specification of the IMU
• Specification of the GNSS Raw data

I have to read .bag files from python and extract above details. I'm new to ROS and lack the idea to approach the problem. any help will be appreciated. Thanks

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2020-12-02 10:29:19 -0500

updated 2020-12-02 16:54:09 -0500

You can use commandline tools as described here to get information about your bag. You can also play your bag file on the terminal and get information about available topics which will help you understand the available messages and their types. You can get the current position by rosbag echo <gnss_topic_name>. Please make sure you have roscore running somewhere on your system.

A quick google search recommends this repo which can convert bag files to csv's using a gui. There is also a python script in the same repo.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2020-12-02 04:49:25 -0500

Seen: 207 times

Last updated: Dec 02 '20