Closed EmreOzkose closed 4 years ago
I solve this issue with changing stamp line:
before:
stamp = rospy.rostime.Time.from_sec(float(frame_id) / prop_fps)
after:
stamp = rospy.Time.from_sec(time.time())
did you need to configure any scripts to get this working? the ros topics in the rosbag should be consistent with the configuration right
Generating rosbag file from video.
Hi ! How can a rosbag file is generated from a video? I know tango ros streamer, but I have already some videos and I am trying to convert them to rosbag files because in maplab console, we could not generate a map if we do not have rosbag files?
Additionally, I know Tango-ros-streamer, but this app requires special device which I could not reach for now. Hence, I guess that I have to create rosbag files from videos to create a map with this code:
roscore& rosrun rovioli tutorial_euroc save_folder rosbag_file_name.bag
Thanks in advance.
UPDATE: I found a script from https://stackoverflow.com/questions/31432870/how-do-i-convert-a-video-or-a-sequence-of-images-to-a-bag-file.
But I got this erro message when run
rosrun rovioli tutorial_euroc save_folder /home/MY_NAME/PycharmProjects/empyt/bagfile.bag
:with this output:
So, the script save a .bag file, but there is an invalid time issue. How can I solve this?