ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
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
.
2 | No.2 Revision |
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