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 PyObject * cam_info_py = PyBytes_FromStringAndSize(cam_info.c_str(), cam_info.size());
67 return boost::python::make_tuple(
70 boost::python::object(boost::python::handle<>(cam_info_py)));
75 boost::python::def(
"__readCalibrationWrapper",
readCalibrationWrapper, boost::python::args(
"file_name"),
"");