示例#1
0
def yawToQuat(angle):
    quatList = quaternion_from_euler(0.0,0.0,angle)
    quat = QuaternionMsg()
    quat.x = quatList[0]
    quat.y = quatList[1]
    quat.z = quatList[2]
    quat.w = quatList[3]
    return quat
示例#2
0
 def createQuat(x,y,z):
     quatList = quaternion_from_euler(x,y,z)
     quat = QuaternionMsg()
     quat.x = quatList[0]
     quat.y = quatList[1]
     quat.z = quatList[2]
     quat.w = quatList[3]
     return quat
示例#3
0
def createQuat(x, y, z):
    quatList = quaternion_from_euler(x, y, z)
    quat = QuaternionMsg()
    quat.x = quatList[0]
    quat.y = quatList[1]
    quat.z = quatList[2]
    quat.w = quatList[3]
    return quat
示例#4
0
def yawToQuat(angle):
    quatList = quaternion_from_euler(0.0, 0.0, angle)
    quat = QuaternionMsg()
    quat.x = quatList[0]
    quat.y = quatList[1]
    quat.z = quatList[2]
    quat.w = quatList[3]
    return quat