Skip to content

Commit

Permalink
fix warning, and fix not opening imu csv file in text mode (bagcreator)
Browse files Browse the repository at this point in the history
  • Loading branch information
goldbattle committed May 2, 2022
1 parent ee6b0e6 commit a4eb023
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aslam_offline_calibration/kalibr/python/kalibr_bagcreater
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def loadImageToRosMsg(filename):
rosimage.width = image_np.shape[1]
rosimage.step = rosimage.width #only with mono8! (step = width * byteperpixel * numChannels)
rosimage.encoding = "mono8"
rosimage.data = image_np.tostring()
rosimage.data = image_np.tobytes()

return rosimage, timestamp

Expand Down Expand Up @@ -113,7 +113,7 @@ try:
imufiles = getImuCsvFiles(parsed.folder)
for imufile in imufiles:
topic = os.path.splitext(os.path.basename(imufile))[0]
with open(imufile, 'rb') as csvfile:
with open(imufile, 'r') as csvfile:
reader = csv.reader(csvfile, delimiter=',')
headers = next(reader, None)
for row in reader:
Expand Down

0 comments on commit a4eb023

Please sign in to comment.