9 circlePose3 generates a set of poses in a circle. This function 10 returns those poses inside a gtsam.Values object, with sequential 11 keys starting from 0. An optional character may be provided, which 12 will be stored in the msb of each key (i.e. gtsam.Symbol). 14 We use aerospace/navlab convention, X forward, Y right, Z down 15 First pose will be at (R,0,0) 18 z-->xZ--> Y (z pointing towards viewer, Z pointing away from viewer) 19 Vehicle at p0 is looking towards y axis (X-axis points towards world y) 24 dtheta = 2 * pi / numPoses
26 np.array([[0., 1., 0.], [1., 0., 0.], [0., 0., -1.]], order=
'F'))
27 for i
in range(numPoses):
29 gti =
gtsam.Point3(radius * math.cos(theta), radius * math.sin(theta), 0)
33 values.insert(key, gTi)
34 theta = theta + dtheta
def circlePose3(numPoses=8, radius=1.0, symbolChar='\0')
static Rot3 Yaw(double t)
Positive yaw is to right (as in aircraft heading). See ypr.
Key symbol(unsigned char c, std::uint64_t j)