move_origin.py
Go to the documentation of this file.
00001 #!/usr/bin/python
00002 
00003 """
00004 Move origin of fiducial co-ordinate system
00005 """
00006 
00007 import numpy, sys
00008 from fiducial_slam import FiducialSlam
00009 
00010 if __name__ == "__main__":
00011     if len(sys.argv) != 4:
00012         print "Usage: %s x y z" % sys.argv[0]
00013         sys.exit(1)
00014     offset = numpy.array([float(sys.argv[1]), float(sys.argv[2]), float(sys.argv[3])])
00015     node = FiducialSlam()
00016     fids = node.fiducials.keys()
00017     for fid in fids:
00018         f = node.fiducials[fid]
00019         f.position += offset
00020     node.close()


fiducial_slam
Author(s): Jim Vaughan
autogenerated on Thu Jun 6 2019 18:08:14