def list_to_pose(poselist, frame_id="<STR_LIT>", stamp=rospy.Time(<NUM_LIT:0>)):
p = PoseStamped()<EOL>p.header.frame_id = frame_id<EOL>p.header.stamp = stamp<EOL>p.pose.position.x = poselist[<NUM_LIT:0>][<NUM_LIT:0>]<EOL>p.pose.position.y = poselist[<NUM_LIT:0>][<NUM_LIT:1>]<EOL>p.pose.position.z = poselist[<NUM_LIT:0>][<NUM_LIT:2>]<EOL>p.pose.orientation.x = poselist[<NUM_LIT:1>][<NUM_LIT:0>]<EOL>p.pose.orientation.y = poselist[<NUM_LIT:1>][<NUM_LIT:1>]<EOL>p.pose.orientation.z = poselist[<NUM_LIT:1>][<NUM_LIT:2>]<EOL>p.pose.orientation.w = poselist[<NUM_LIT:1>][<NUM_LIT:3>]<EOL>return p<EOL>
Convert a pose in the form of a list in PoseStamped
:param poselist: a pose on the form [[x, y, z], [x, y, z, w]]
:param frame_id: the frame_id on the outputed pose (facultative, empty otherwise)
:param stamp: the stamp of the outputed pose (facultative, 0 otherwise)
:return: the converted geometry_msgs/PoseStampted object