detection.py 文件源码

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

项目:CON-SAI 作者: SSL-Roots 项目源码 文件源码
def msgToPose(self, detection_pose):
        pose = Pose()

        pose.position.x = detection_pose.x / 1000
        pose.position.y = detection_pose.y / 1000

        if hasattr(detection_pose, 'orientation'):
            quat_tuple = quaternion_from_euler(0.0, 0.0, detection_pose.orientation)
            pose.orientation = Quaternion(*quat_tuple)

        return pose
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号