Robotics StackExchange | Archived questions

Read bag files in visual studio

I am wondering if there is any existing c++ api I can use to read a bag file without using any ROS package. I am writing a navigation algorithm for my robot and currently the algorithm does not use ROS at all. However, all my test data are in ros bag format. I would like to read the data from the bag file and debug my standalone program in Visual Studio.

Asked by AutoCar on 2018-12-03 00:14:45 UTC

Comments

Anyone knows?

Asked by AutoCar on 2018-12-07 16:05:16 UTC

Answers

hi
you can use this command to convert bag file to text data and then use this in visual studio:

rostopic echo -b file.bag -p /topic > data.txt

Asked by Hamid Didari on 2018-12-07 23:30:25 UTC

Comments

but text file is very large and reading is very slow

Asked by AutoCar on 2018-12-20 19:20:21 UTC