add_two_pt.py
Go to the documentation of this file.
1 #!/usr/bin/python
2 """
3 usage: add_two_pt.py < calibration.yaml > calibration_two_pt.yaml
4 
5 In order to take into acount *HDL-64* correction_{x,y}, related to 2012 merge:
6 https://github.com/ros-drivers/velodyne/commit/f30d68735c47312aa73d29203ddb16abc01357f4
7 
8 https://github.com/ros-drivers/velodyne/blob/master/velodyne_pointcloud/src/lib/rawdata.cc#L438
9 https://github.com/ros-drivers/velodyne/blob/master/velodyne_pointcloud/src/lib/calibration.cc#L70
10 """
11 import sys
12 import yaml
13 
14 calibration = yaml.safe_load(sys.stdin)
15 for laser in calibration['lasers']:
16  laser['two_pt_correction_available'] = True
17 
18 print(yaml.safe_dump(calibration))


velodyne_pointcloud
Author(s): Jack O'Quin, Piyush Khandelwal, Jesse Vera, Sebastian Pütz
autogenerated on Sun Jun 2 2024 02:29:13