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

Teddy_NTU's profile - activity

2021-10-12 22:35:36 -0500 received badge  Famous Question (source)
2021-10-12 22:35:36 -0500 received badge  Notable Question (source)
2019-05-20 01:11:07 -0500 marked best answer Read a msg inside a bagfile

In the rosbag/Code API, we could see the msg by:

 import rosbag
 bag = rosbag.Bag('test.bag')
 for topic, msg, t in bag.read_messages(topics=['chatter', 'numbers']):
     print msg
 bag.close()

When I try this, I see several msg entries. How could I select only one of entries to display?

image description

Like, for example. How could I get the data vector only?

2019-05-20 01:08:40 -0500 received badge  Famous Question (source)
2019-03-07 05:13:37 -0500 commented answer PointCloud2 access data

Thanks a lot, your code really helps me out.

2019-03-07 05:11:45 -0500 received badge  Supporter (source)
2019-02-24 10:57:46 -0500 received badge  Popular Question (source)
2019-01-24 13:16:03 -0500 received badge  Notable Question (source)
2019-01-24 12:56:52 -0500 asked a question SteadyTimer related types not found

SteadyTimer related types not found I was trying to install the ROS wrapper for Astra camera on a raspberry pi 3, howeve

2018-11-19 02:54:50 -0500 received badge  Famous Question (source)
2018-11-19 02:54:50 -0500 received badge  Notable Question (source)
2018-11-19 02:54:50 -0500 received badge  Popular Question (source)
2018-09-03 05:59:11 -0500 received badge  Famous Question (source)
2018-08-27 12:39:27 -0500 received badge  Famous Question (source)
2018-08-27 12:39:27 -0500 received badge  Notable Question (source)
2018-04-11 12:01:02 -0500 received badge  Popular Question (source)
2018-04-03 04:09:37 -0500 received badge  Popular Question (source)
2018-04-02 23:21:19 -0500 asked a question Read a msg inside a bagfile

Read a msg inside a bagfile In the rosbag/Code API, we could see the msg by: import rosbag bag = rosbag.Bag('test.bag

2018-03-22 11:01:15 -0500 marked best answer How to extract images from a bagfile properly

Currently I have a bag file which recorded a camera view topic. Now I want to extract the image date with its corresponding time stamp. I am able to get the png form of the image data using the official way provided by ROS wiki, but some frames are missing even if I change the sec_per_frame parameter to be lower than 0.03. I am wondering what is the proper way to extract the image data.

To get the Bag Time, I simply rosplay the bag file and copy the information comes out from the terminal manually. It is okay for short-time recording, but definitely not a possible way for a long-time one. Is there a way I can save the bag time stamp into a text file directly? Is it possible to get the extracted images along with its corresponding time stamp?

Regards.

2018-03-20 02:46:36 -0500 received badge  Popular Question (source)
2018-03-20 02:04:38 -0500 asked a question How to extract images from a bagfile properly

How to extract images from a bagfile properly Currently I have a bag file which recorded a camera view topic. Now I want

2018-02-21 00:19:55 -0500 marked best answer Display the gps topic in a bag file

Hello ROS Community

As is shown in the title, I have recorded some gps data using ublox device in a bag file, which can be seen by rostopic echo. However, I am wondering how can I be able to dispaly the gps data (probably on google map or somewhere else).

Regards.

2018-02-13 20:09:20 -0500 received badge  Notable Question (source)
2018-02-12 00:12:59 -0500 received badge  Enthusiast
2018-02-09 12:37:34 -0500 received badge  Popular Question (source)
2018-02-09 02:16:48 -0500 received badge  Student (source)
2018-02-09 01:33:15 -0500 asked a question Display the gps topic in a bag file

Display the gps topic in a bag file Hello ROS Community As is shown in the title, I have recorded some gps data using u

2018-02-05 03:14:59 -0500 asked a question pointgrey_camera_driver crashes when topics are subscribed

pointgrey_camera_driver crashes when topics are subscribed Hi ROS Community, I have a pointgrey usb camera, and I try t

2018-01-31 03:30:22 -0500 marked best answer Extract audio data from a bagfile into mp3 or wav format

Hello ROS Community,

I am a beginner to ROS. I used the audio_capture package provided by ROS Wiki to capture the audio data from a usb-microphone and use rosbag record to record the audio topic into a bagfile. Using the audio_play package provided, I was able to hear the audio when I rosbag play the bagfile. Now I want to extract the audio data of the bagfile to a external mp3 or wav file, but I don't know how to.

I know that the audio_capture package does contain a capture_to_file.launch file to capture real-time audio into mp3 file, but I only want the historical audio data recorded by the bagfile.

Regards.

2018-01-31 03:30:22 -0500 received badge  Scholar (source)
2018-01-31 02:48:08 -0500 commented answer Extract audio data from a bagfile into mp3 or wav format

That works!!! Thanks!!!

2018-01-31 01:29:57 -0500 asked a question Extract audio data from a bagfile into mp3 or wav format

Extract audio data from a bagfile into mp3 or wav format Hello ROS Community, I am a beginner to ROS. I used the audio_