AttributeError: module 'rosbag' has no attribute 'Bag'
I apologize if this is a seemingly very simple question, but I am stumped. I am trying to do the tutorials for rosbag: http://wiki.ros.org/rosbag/Code%20API using the Python example for read, and I get...
View ArticleROSNODE Subscriber for custom datatype Python
I have a rostopic names `/scanpoints` of type `datatypes/scan_point_2018`. This is the custom datatype. The `scan_point_2018` is defined in some path `/path/..../scan_point_2018.hpp`. I need to write...
View ArticleHow to decode binary data from a rosbag ?
When i try to echo the topics of a bag file, i get a message : ` data: !!binary | ChQJpiM5J7b11UESB2dhdGV3YXkYSRI7GAEt0YmNPjUAAAAARQAAAABNAAAAAF0AAAAAqAEAsAEA...
View ArticleHow to remove a TF from a ROS bag?
I have a bag that contains a large TF tree where one TF (base_link->virtual_cam) was calculated based on several TFs and parameters. I would like to replay this bag without this generated TF in...
View ArticleIndigo: failing to build rosbag, missing header
Hello everyone, I am trying to build and cross compile ROS Indigo for a custom board that features an ARM processor running a custom Linux distribution. Besides a few identical warnings I will deal...
View Articlerosbag reindex / fix result in empty bag file.
Hi to all, I'm facing with a problem in recovering one bag file marked as `*.active`. I have tried to execute the sequence reindex / fix, none of them fails, but the resulting `.bag` file is empty. Can...
View Articleexclude some topics from rosbag play
I have a bag file with a bunch of topics inside of it, is it possible to *exclude* some topics from being played back? For example, the bag file might have: topics: /camera/depth/image 150 msgs :...
View ArticleCreating a bag file out of a mp4 video
I have a .mp4 format video and want to create a bag file out of it to use for ORB_SLAM2. I know that need to publish my video to a topic. Once my video is being published need to record the video...
View ArticleCan't get an image from a rosbag file in rviz
Hello. I have two mashines. One has a started roscore and iai_kinect2 package. I recorded a rosbag file with one topic (/kinect2/qhd/image_color/compressed) on another PC. But when I tried to look at...
View ArticleNode hangs when bagging image_raw
I have a fairly straightforward ROS node that contains two subscribers. The callbacks for these subscribers do some pretty large matrix math, but here's the catch: The node runs totally fine when I am...
View ArticleGet rosbag record status
Hi! I am looking for a way to find out about the current status of "rosbag record". More specifically, I want to know the filename of the currently recorded file and the filename of the last completed...
View Articlerosbag to npz or h5 conversion
This is more a general question since I am wondering that there are no standard tools out there (found actually many approaches via google, but nothing serious). **The application is as follows**: - I...
View Articlerosbag tools for bag operation
I recently started to work exhaustively with rosbag. Also started with extracting videos out of it and also start writing my own tools for timestamp manipulation (which was a nice exercise btw). But...
View ArticlePlaying big files with rosbag
Hi everybody, I am running Ubuntu 12.10, with ROS Groovy. My computer has a i7 processor with 6GB of RAM. I am recording in rosbag data from two kinects (and two skeletons). Of course, I din't recorded...
View Articlerosbag API - Problems writing .bag files in a different thread
I will try to explain briefly. I am programming a tool to cut .bag files, for example, according to an initial and ending time. Everything is handled by a GUI. In this interface, there is a...
View ArticleHow can I record a single message in a rosbag to reserve to reload for future...
I have a node that creates a motion plan of the type moveit_msgs::RobotTrajectory. I want to hold this motion plan for future use (i.e., load it later to "execute" it). However, I only want to save...
View ArticleRead parameter in launch file
Hi, I am new to ros and I am two launch files. The first launch file launches a script in cpp which sets a global parameter. The second launch file (optional run) needs to read this parameter in its...
View ArticleCan I play a ros bag one message at a time?
I would like to play one message when I press enter and to be able to advance like this through my bag. Any built in method or hack to do this?
View ArticleRecording tf_static from rosbag api.
I am recording data about my robot's motion and trying to play it back offline. When I call `rosbag record [topics]` from the terminal with the topics of interest specified, all data is collected and...
View ArticleSetting use_sim_time without launching separate roscore
To get Rviz to play my rosbags correctly after the first loop (using arguments `loop`, `pause`, and `clock`), I have to start a separate roscore and do `rosparam set use_sim_time true`. Setting this...
View Article