IVALab Python Libraries
Collection of code for computer vision and robotics with specific API.
Variables
scripts.vid_compress_bag Namespace Reference

Variables

 args = parser.parse_args()
 
 bag_load = rosbag.Bag(args.load_file_path)
 
 bridge = CvBridge()
 
 default
 
 depth = None
 
 help
 
 int
 
 load_file_path
 
 load_path_default
 
 nargs
 
 None
 
 parser = argparse.ArgumentParser(description='The d435 camera rosbag recorder.')
 
 rgb = None
 
 save_file_path
 
 str
 
 t
 
 type
 
 vid_writer
 
 vidname = os.path.basename(args.save_file_path)
 

Detailed Description

    @ brief:     Reduce the rosbag file size. 

    @ author:   Yiye Chen
    @ date:     02/17/2022

Variable Documentation

◆ args

args = parser.parse_args()

◆ bag_load

bag_load = rosbag.Bag(args.load_file_path)

◆ bridge

bridge = CvBridge()

◆ default

default

◆ depth

depth = None

◆ help

help

◆ int

int

◆ load_file_path

load_file_path

◆ load_path_default

load_path_default
Initial value:
1 = os.path.join(
2  os.path.dirname(os.path.abspath(__file__)),
3  "d435_record.bag"
4 )

◆ nargs

nargs

◆ None

None

◆ parser

parser = argparse.ArgumentParser(description='The d435 camera rosbag recorder.')

◆ rgb

rgb = None

◆ save_file_path

save_file_path

◆ str

str

◆ t

t

◆ type

type

◆ vid_writer

vid_writer
Initial value:
1 = vidWriter_ROS(
2  save_file_path=args.save_file_path,
3  rgb_topic="color",
4  depth_topic="depth",
5  depth_format=np.float32,
6  frame_rate=args.frame_rate
7 )

◆ vidname

vidname = os.path.basename(args.save_file_path)