Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Browsing all 475 articles
Browse latest View live
↧

How do I write a C++ code to record variable location of robot in rosbag file?

I have written a code to record in rosbag file. But if the rosbag file starts, then the robot does not move because of sequential way of code. Here is that part of code : i=system("rosbag record -a");...

View Article


Access specific message in rosbag file

I can get all the messages in my `rosbag` file through this loop: BOOST_FOREACH(rosbag::MessageInstance const m, view) { //... } My `rosbag` file is a record of images from the Kinect. And I'm trying...

View Article


How to send rosbag file to server?

I am working on Gazebo 2.2.2 with two robots in an Gazebo environment. One of them is server while another is client. I need to send the rosbag file recorded by client to server so that server can do...

View Article

Writing a rosbag in MATLAB

Hi Everyone, I'm trying read a rosbag it into MATLAB, create a new topic based on the messages in the bag then write all of the messages out (including those from the old bag file) to a new bag file....

View Article

Message Serialization for Rosbags

Hi Everyone, My ultimate goal, is to read read a rosbag it into MATLAB, create a new topic based on the messages in the bag then write all of the messages out (including those from the old bag file) to...

View Article


Issue extracting images from bagfile

I recorded a bagfile which contains rgb and depth images: path: kinectrgbdepthnew.bag version: 2.0 duration: 6.7s start: Jun 23 2016 14:55:41.10 (1466686541.10) end: Jun 23 2016 14:55:47.85...

View Article

extracting depth image from .bag file

I want to extract depth image from .bag file just like [the tutorial](http://answers.ros.org/question/9652/extracting-images-from-rosbag/). But when I run `$ roslaunch export.launch` , the error...

View Article

Extract a topic from bag file and save it to another bag file

Hi to all, I have a *.bag file which contains different topics and I would like to extract only a specific topic and record it in a new bag file. Is it possible? I've read about a solution which...

View Article


save file in different directory - launch file

That's my launch file. I want to change the directory where the `rosbag` file is saved, with `cwd` I have only choice between node and home `cwd="ROS_HOME|node"` I have to record a very big file with...

View Article


Problem with bag file

hii, I wrote a bagfile . when i do rosbag info i do get the topic list but the duration is zero sec.The start and end time are same. Here is the info listed path: record.bag version: 2.0 **duration:...

View Article

How to deal with deleted message types in bag migration?

I have a bag with a topic that is no longer used, which uses a type which is no longer used. `rosbag check` will interpret this as a moved message type, and prompt me to enter the new location of the...

View Article

Problems with rosbag file containing the Russian letter.

Hello, when you try to open rosbag file containing Russian letters I receive an error: File "/opt/ros/jade/lib/python2.7/dist-packages/genpy/dynamic.py", line 168, in generate_dynamic...

View Article

jade - rosbag play with remap

Hi, I would like to play a bag file with rosbag and remap the topics (e.g.: /myTopic:=/playback/myTopic). I tried with **launch file**: `` and from **command line** also ( rosbag play mybag.bag...

View Article


Using change_camera_info.py to change camera info distortion params in rosbag

Howdy folks I have logged some RGB and Depth images from a ZED camera in a rosbag, along with the camera info messages. I didn't save the point clouds as this was making the bagfiles too big. Instead,...

View Article

Writing a ROS command-line utility in C++ - what is the difference compared...

Howdy folks So far I have written ROS nodes in C++ and invoked them in launch files. Now I want to write a ROS command-line utility for off-line processing rosbag files in C++ (using the rosbag C++...

View Article


Rewriting a message into a new rosbag

I have a rosbag that publishes the paths of a robot only once. I am writing a plugin to visualize it, so I want to rewrite the message again and again into my new rosbag. Below is the code, I am not...

View Article

Discrepancy in topic displayed Hz

Hi, I've run in a strange situation. I've recorded in a rosbag a topic with should be publish at 100 Hz. When playing back the bag with command-line instruction rosbag play, the topic is shown to be...

View Article


change the string message of one of my topics to a float in rosbag

Hi, I will like to change the string message of one of my topics to a float in rosbag so i could be able to plot it in rqt_plot since rqt_plot doesnt support string

View Article

rosbag 'UnicodeDecodeError'

I have some rosbags. Most of them seem to be okay according to 'rosbag check '. But a few of them cause the check to be aborted in the middle of the bag with the error below. What is the best way to...

View Article

Access next element in topics from rosbag C++ API

Hi, I have bagfiles with a bunch of different topics (that are synchronized). I would like to access the next element from each of those topics to perform some operations on them. And this would go on...

View Article
Browsing all 475 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>