shadow-robot / argos3d_p100_ros_pkg

ROS package for Bluetechnix Argos P100 ToF camera.
0 stars 0 forks source link

Re-enable LoadCalibrationData? #9

Closed YiShadow closed 10 years ago

YiShadow commented 10 years ago

The following code are commented out. Consequently, the calibration file 11220935.dat is NOT loaded.

res = pmdSourceCommand( hnd, result, 128, "LoadCalibrationData 11220935.dat");
        if (res != PMD_OK)
    {
          pmdGetLastError (0, err, 128);
          ROS_ERROR_STREAM("Could not execute source command: " << err);
          pmdClose (hnd);
          return 0;
    }
YiShadow commented 10 years ago

That code is not necessary (confirmed by Toni). Just copy the calibration file to ~/.ros/, then roslaunch!

$ roslaunch argos3d_p100 argos3d_p100_node.launch
...
process[argos3d_p100_node-1]: started with pid [15999]
[ INFO] [1400583403.893296479]: Starting argos3d_p100 ros...
[ INFO] [1400583403.942620647]: Got param: camera_base_link
[ INFO] [1400583405.562552421]: Calibration file loaded.