You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,13 +89,19 @@ This is the names that would be given to the cameras for filenames and rostopics
89
89
Secs to wait in the deinit/init sequence
90
90
91
91
### Camera info message details
92
+
*~image_width (int)
93
+
*~image_height (int)
92
94
*~distortion_model (string)
93
95
Distortion model for the camera calibration. Typical is 'plumb_bob'
94
96
*~distortion_coeffs (array of arrays)
95
97
Distortion coefficients of all the cameras in the array. Must match the number of cam_ids provided.
96
98
*~intrinsic_coeff (array of arrays)
97
99
Intrinsic coefficients of all the cameras in the array. Must match the number of cam_ids provided.
98
-
Specified as [fx 0 cx 0 fy cy 0 0 1]
100
+
Specified as [fx 0 cx 0 fy cy 0 0 1]
101
+
*~projection_coeffs (array of arrays)
102
+
Projection coefficients of all the cameras in the array. Must match the number of cam_ids provided.
103
+
*~rectification_coeffs (array of arrays)
104
+
Rectification coefficients of all the cameras in the array. Must match the number of cam_ids provided.
99
105
100
106
## Multicamera Master-Slave Setup
101
107
When using multiple cameras, we have found that the only way to keep images between different cameras synched is by using a master-slave setup using the GPIO connector. So this is the only way we support multicamera operation with this code. A general guide for multi camera setup is available at https://www.ptgrey.com/tan/11052, however note that we use a slightly different setup with our package.
if (nh_pvt_.getParam("rectification_coeffs", rect_list)) {
406
+
ROS_INFO(" Camera Rectification Paramters:");
407
+
ROS_ASSERT_MSG(rect_list.size() == num_ids,"If rectification_coeffs are provided, they should be the same number as cam_ids and should correspond in order!");
408
+
for (int i=0; i<rect_list.size(); i++){
409
+
std::vector<double> rect;
410
+
String rect_str="";
411
+
for (int j=0; j<rect_list[i].size(); j++){
412
+
ROS_ASSERT_MSG(rect_list[i][j].getType()== XmlRpc::XmlRpcValue::TypeDouble,"Make sure all numbers are entered as doubles eg. 0.0 or 1.1");
if (nh_pvt_.getParam("projection_coeffs", proj_list)) {
424
+
ROS_INFO(" Camera Projection Paramters:");
425
+
ROS_ASSERT_MSG(proj_list.size() == num_ids,"If projection_coeffs are provided, they should be the same number as cam_ids and should correspond in order!");
426
+
for (int i=0; i<proj_list.size(); i++){
427
+
std::vector<double> proj;
428
+
String proj_str="";
429
+
for (int j=0; j<proj_list[i].size(); j++){
430
+
ROS_ASSERT_MSG(proj_list[i][j].getType()== XmlRpc::XmlRpcValue::TypeDouble,"Make sure all numbers are entered as doubles eg. 0.0 or 1.1");
0 commit comments