Skip to content
Snippets Groups Projects
Commit 41f54cca authored by Mederic Fourmy's avatar Mederic Fourmy
Browse files

[skip-ci] Clean useless functions

parent ec9005cb
No related branches found
No related tags found
1 merge request!4Devel
Pipeline #13393 skipped
#!/usr/bin/env python3 #!/usr/bin/env python3
import sys
import copy
from pure_eval import CannotEval
import yaml import yaml
import numpy as np
import rospy import rospy
from sensor_msgs.msg import CameraInfo from sensor_msgs.msg import CameraInfo, Image
from sensor_msgs.msg import Image
def kvec2mat(fx, fy, cx, cy):
return np.array([
fx, 0, cx,
0, fy, cy,
0, 0, 0
]).reshape((3,3))
def kmat2vec(K):
# fx, fy, cx, cy
return [K[0,0], K[1,1], K[0,2], K[1,2]]
class CameraInfoPublisher: class CameraInfoPublisher:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment