Skip to content

Commit

Permalink
Is it really necessary to define the buff_size? Close #393
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelriemoliveira committed Apr 14, 2022
1 parent 045e2f3 commit f1a2b92
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions atom_calibration/scripts/dataset_playback
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ def keyPressedCallback(key, selection, dataset, args):
idx_collection = int(selection['collection_key'])
idx_max_collection = len(dataset['collections'].keys()) - 1

output_file = '/'.join(args['json_file'].split('/')
[:-1]) + '/dataset_corrected.json'
output_file = '/'.join(args['json_file'].split('/')[:-1]) + '/dataset_corrected.json'

# Convert from type to string to keep uniform.
key = str(key)
Expand Down Expand Up @@ -166,16 +165,16 @@ def main():
selectedPointsCallback, selection=selection, dataset=dataset), queue_size=1, buff_size=52428800)

rospy.Subscriber("/rviz_selected_border_points", PointCloud2,
partial(selectedPointsBorderCallback, selection=selection, dataset=dataset), queue_size=1,
buff_size=52428800) # TODO #393 Is it really necessary to define the buff_size?
partial(selectedPointsBorderCallback, selection=selection, dataset=dataset),
queue_size=1) # TODO #393 Is it really necessary to define the buff_size?

rospy.Subscriber("/rviz_selected_remove_points", PointCloud2,
partial(selectedPointsRemoveCallback, selection=selection, dataset=dataset), queue_size=1,
buff_size=52428800)
partial(selectedPointsRemoveCallback, selection=selection, dataset=dataset),
queue_size=1)

rospy.Subscriber("/rviz_selected_clear_all_points", PointCloud2,
partial(selectedPointsClearAllCallback, selection=selection, dataset=dataset), queue_size=1,
buff_size=52428800)
partial(selectedPointsClearAllCallback, selection=selection, dataset=dataset),
queue_size=1)

# ---------------------------------------
# --- Depth modality subscribers
Expand Down

0 comments on commit f1a2b92

Please sign in to comment.