test_point2d.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 import tuw_geometry as tuw
3 import cv2
4 
5 if __name__ == '__main__':
6 
7  pnt0 = tuw.Point2D()
8  pnt1 = tuw.Point2D(3,2)
9  pnt2 = tuw.Point2D(3,2,4)
10  pose = tuw.Pose2D(3,2,4)
11  pnt2.set(1,2,1)
12 
13  print (pnt1)
14  print (pnt1)
15  print pnt1.inside(0,0,4,4)
16  print pnt1.inside(0,0,2,2)
17  print (pnt2)
18  print (pose)
19 
20  p = pose.position()
21  print (p)
22  print p[0]
23  print p.x
24  print pose.theta
25  print pose.str("%lfm, %lfm, %lfrad")


tuw_geometry
Author(s): Markus Bader
autogenerated on Mon Jun 10 2019 15:33:09