example_simple_client.py 文件源码

python
阅读 17 收藏 0 点赞 0 评论 0

项目:unrealcv-ros 作者: jskinn 项目源码 文件源码
def create_pose(location, rotation):
    if len(location) >= 3:
        x, y, z = location[0:3]
    else:
        x = y = z = 0
    if len(rotation) >= 4:
        qw, qx, qy, qz = rotation[0:4]
    else:
        qw = 1
        qx = qy = qz = 0

    return geom_msgs.Pose(
        position=geom_msgs.Point(x=x, y=y, z=z),
        orientation=geom_msgs.Quaternion(w=qw, x=qx, y=qy, z=qz)
    )
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号