def dict_to_msg(pose_dict): pose_msg = Pose() pose_msg.position = pose_dict['position'] pose_msg.orientation = pose_dict['orientation'] return pose_msg