How do I generate a ChAruco board calibration?
Use cv::aruco::CharucoBoard::draw as described in the CharucoBoard Class Reference to create an image and then imwrite to write the image to a file.
cv::aruco::CharucoBoard::draw
imwrite