35 #include <boost/python.hpp> 51 str_msg.reserve(serial_size);
52 for (
size_t i = 0; i < serial_size; ++i)
54 str_msg.push_back(buffer[i]);
62 std::string camera_name;
63 sensor_msgs::CameraInfo camera_info;
65 std::string cam_info =
to_python(camera_info);
66 return boost::python::make_tuple(result, camera_name, cam_info);
71 boost::python::def(
"__readCalibrationWrapper",
readCalibrationWrapper, boost::python::args(
"file_name"),
"");
bool readCalibration(const std::string &file_name, std::string &camera_name, sensor_msgs::CameraInfo &cam_info)
Read calibration parameters from a file.
std::string to_python(const M &msg)
boost::python::tuple readCalibrationWrapper(const std::string &file_name)
void serialize(Stream &stream, const T &t)
uint32_t serializationLength(const T &t)
BOOST_PYTHON_MODULE(camera_calibration_parsers_wrapper)