simulate_state.py 文件源码

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

项目:AS_6Dof_Arm 作者: yao62995 项目源码 文件源码
def callback_camera(self, data):
        # format: rgb8; jpeg compressed bgr8
        np_img = np.fromstring(data.data, dtype=np.uint8)
        img = cv2.imdecode(np_img, cv2.CV_LOAD_IMAGE_COLOR)
        img = cv2.cvtColor(cv2.resize(img, (self.width, self.height)), cv2.COLOR_BGR2GRAY)
        self.image = np.reshape(img, newshape=(self.width, self.height, 1)) / 256.0
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号