ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered 2012-06-01 06:22:46 -0500

joq gravatar image

The API documentation specifies nh to be a ros::NodeHandle for the camera's streaming name space. You seem to have passed a node handle for the driver node, instead.

The second (cname) parameter has a different purpose. It attempts to identify which physical device the associated calibration describes. For that, a UUID or make, model and serial number are recommended.

Try something like this:

camera_info_manager::CameraInfoManager cinfo(ros::NodeHandle("camera"));

That will advertise /camera/set_camera_info.

The API documentation specifies nh to be a ros::NodeHandle for the camera's streaming name space. You seem to have passed a node handle for the driver node, instead.

The second (cname) parameter has a different purpose. It attempts to identify which physical device the associated calibration describes. For that, a UUID or make, model and serial number are recommended.

Try something like this:

camera_info_manager::CameraInfoManager cinfo(ros::NodeHandle("camera"));
cinfo(ros::NodeHandle("webcam"));

That will advertise /camera/set_camera_info/webcam/set_camera_info.