def pose_to_list(pose):
if isinstance(pose, PoseStamped):
plist = [[pose.pose.position.x,
pose.pose.position.y,
pose.pose.position.z],
[pose.pose.orientation.x,
pose.pose.orientation.y,
pose.pose.orientation.z,
pose.pose.orientation.w]]
return plist
raise TypeError("ROSBridge.pose_to_list only accepts Path, got {}".format(type(pose)))
评论列表
文章目录