Read base tag transform
This commit is contained in:
parent
55cecdcd9a
commit
e765d5a974
15
scripts/calibrate_roi.py
Normal file
15
scripts/calibrate_roi.py
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
import numpy as np
|
||||||
|
import rospy
|
||||||
|
|
||||||
|
from robot_helpers.ros import tf
|
||||||
|
|
||||||
|
|
||||||
|
def main():
|
||||||
|
rospy.init_node("calibrate_roi")
|
||||||
|
tf.init()
|
||||||
|
T_base_roi = tf.lookup("panda_link0", "tag_0")
|
||||||
|
np.savetxt("cfg/T_base_tag.txt", T_base_roi.as_matrix())
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
Loading…
x
Reference in New Issue
Block a user