38 #ifndef _CAMERA_INFO_MANAGER_H_ 39 #define _CAMERA_INFO_MANAGER_H_ 42 #include <boost/thread/mutex.hpp> 43 #include <sensor_msgs/CameraInfo.h> 44 #include <sensor_msgs/SetCameraInfo.h> 179 const std::string &cname=
"camera",
180 const std::string &url=
"");
185 std::string
resolveURL(
const std::string &url,
186 const std::string &cname);
188 bool setCameraInfo(
const sensor_msgs::CameraInfo &camera_info);
208 const std::string &cname);
210 const std::string &cname);
211 url_type_t
parseURL(
const std::string &url);
213 const std::string &url,
214 const std::string &cname);
216 const std::string &filename,
217 const std::string &cname);
219 sensor_msgs::SetCameraInfo::Response &rsp);
243 #endif // _CAMERA_INFO_MANAGER_H_
bool saveCalibration(const sensor_msgs::CameraInfo &new_info, const std::string &url, const std::string &cname)
sensor_msgs::CameraInfo getCameraInfo(void)
bool loaded_cam_info_
cam_info_ load attempted
std::string url_
URL for calibration data.
std::string getPackageFileName(const std::string &url)
bool loadCameraInfo(const std::string &url)
std::string resolveURL(const std::string &url, const std::string &cname)
ros::ServiceServer info_service_
set_camera_info service
sensor_msgs::CameraInfo cam_info_
current CameraInfo
bool loadCalibrationFile(const std::string &filename, const std::string &cname)
url_type_t parseURL(const std::string &url)
bool validateURL(const std::string &url)
boost::mutex mutex_
mutual exclusion lock for private data
CameraInfoManager(ros::NodeHandle nh, const std::string &cname="camera", const std::string &url="")
ros::NodeHandle nh_
node handle for service
bool setCameraInfo(const sensor_msgs::CameraInfo &camera_info)
CameraInfo Manager class.
bool loadCalibration(const std::string &url, const std::string &cname)
bool setCameraInfoService(sensor_msgs::SetCameraInfo::Request &req, sensor_msgs::SetCameraInfo::Response &rsp)
bool saveCalibrationFile(const sensor_msgs::CameraInfo &new_info, const std::string &filename, const std::string &cname)
std::string camera_name_
camera name
bool setCameraName(const std::string &cname)