Filter out messages from a ros bag
Hi, I'd like to filter out some "bad messages" from my rosbags. I'm using the C++ rosbag API. Should I open the bagfile in read mode and republish the good messages and record them in another bag using...
View ArticleRosbag record dropping and corrupting data
Hello, I'm trying to store selected topics being published from various sensors sources (velodyne, monocular camera, IMUs) in a large bag file. I'm able to record the bagfile without seeing any errors....
View Articleadd metadata to rosbag
Hello everybody, I am trying to add ros parameters to a bag file just after the record is done. I am writing a python script to do that and I have followed this link :...
View Articlecan't save point cloud in bag file complitly
Hy, i am trying to save the point cloud with size(480,640) in bag file by their coordinate values and then read them in another node so that machine determines which part of the point cloud has been...
View ArticleIterating through bagfile messages yields nullpointer
Hi, I wrote the following class that iterates through the messages of a bagfile: BagReader.h: class BagReader { public: BagReader(std::string const &filename); ~BagReader(); void...
View ArticleExtract robot position from rosbag
I recorded tf-messages (while driving the robot) into a bagfile and wrote a ros node that should extract the positions (base_link-frame) from that bag file. My idea was to use a tf::Transformer and...
View ArticleCreate Map from Rosbag
Hi I am having problem with creating map(.pgm and .yaml) files. First i tried to create a map using the existing bag file following...
View ArticleProblem with creating map with Robotino and without laser scan
I am using robotino and have no Laser Scanner. I am not having any topic publishing named /base_scan. But I want to user slam_gmapping to scan and create map from the bag file. i used the code below:...
View Articlerosbag play cannot return back?
Hello, I use `rosbag play -s 10 -u 10 a.bag` to publish the recorded messages. But I find that when I use the command before, I cannot use `rosbag play -s 1 -u 1 a.bag` to get the right result, which...
View ArticleConvert a Video to a Rosbag
Hi, I have recorded a Video with 60 FPS on a Smartphone. I now want to use this in ROS. Therefore I like to convert that into a Rosbag. (If you have a other idea I'm open to it) But I didn't find any...
View Articlerawlog_mrpt_to_bagfile
Hi all, I need 2d laser data of horizontal terrain, but I am unable in getting that, so I am using data from (mrpt.org), rawlog format but can any please tell me how to convert the rawlog file in to...
View Articleamcl does not publish transforms to "future"
I am using rosbag to playback a bag file with messages from `/tf`, `/scan`, and `/initialpose`. I am trying to use `amcl` to localize the robot within that bag. I have set `use_sim_time` to be true....
View Articletf::TransformListener gets wrong tf
Hello, TL;DR tf::TransformListener gets a different transform than shown in RVIZ I am having quite a strange problem. I am using a rosbag file to playback recorded data and I am adding new transforms...
View ArticleRosbag and simulated time
Hello all, I am trying to run a bag file if simulated time but I am not succeeding on it. Here is what happens: After I run the bag file with the command rosbag play --clock -l laser_scanner3.bag I am...
View ArticleHow to Detect Subscriber Drops a Message
I made a subscriber which reads LIDAR data from rosbag-play. I use C++(roscpp). But when I do rosbag-play with normal speed, subscriber's callback function cannot catch up with LIDAR stream speed, then...
View ArticlePlay ordered multiple bags from a launch file
Hi, I have a question that might be a bit silly, but i do not really find a answer that satisfy me. I have recorded a sequence of 15 minutes splitted in 1 minute rosbag. I want to reproduce them 1 by...
View ArticleRosbag in Roslaunch, save rosbag to specific directory
Hey I wanted to use robsbag record in a roslaunch file like: How do I specify that I want to save the bag with a timestamp and to a specific location? I am running on an embedded hardware and have...
View Articlehow to use rosbag to test costmap/navigation
I modified a costmap in navigation, and I want to use recorded data to test it. So, I use rosbag record -a -x "(/primesense(.*))?(/move_base(.*))?" -O test.bag to record all data except pointcloud and...
View ArticleStore ROS messages in file ?
Hello I am working on Some project, I have to store ROS messages in some File using C++ API's. I knew ROS BAG files which is excellent for storing ROS messages But i want to knew Is their any other...
View Articlerosbag randomly missing topics on record
Hi all. We've got a very weird case. Our configuration: - main_computer: running roscore - slave_A_computer (ROS_MASTER_URI=main_computer) - slave_B_computer (ROS_MASTER_URI=main_computer) -...
View Article