Skip to content

Latest commit

 

History

History
66 lines (40 loc) · 3.29 KB

File metadata and controls

66 lines (40 loc) · 3.29 KB

Automatic calibration for red ball demo 🔴

The automatic calibration for red ball demo includes two (independent) steps:

  1. color calibration;
  2. reaching/grasping offsets calibration.

🔴 🔵 Color calibration

The calibColor module calibrates the color of the image provided as input by maintaining the white balance. In the red ball demo, calibColor is used as input to pf3dTracker. An example of output is the following:

icalibColor.mp4

Offsets calibration

🆕 The devised procedure

The devised procedure estimates the offsets required by demoRedBall merging the information from vision and from the cartesian controllers: the offset is estimated as difference between the end-effector provided by the controller (green) and the ball center provided by the visual tracker (yellow), discounted by its radius.

More specifically, the devised steps are the following:

  1. run demoRedBal application and its dependencies, without launching demoRedBall module (which is used for reaching and grasping);
  2. run the icub skin;
  3. run calibOffsets and connect;
  4. open a terminal and type:
     yarp rpc calibOffsets/rpc 
     lookAndCalibrate part
    
    where part is the arm you want to calibrate. This will move the desired arm/hand in a predefined position and the gaze to look towards the end-effector. Now you can push the ball into the middle of the palm of the hand (to trigger calibration) (blue arrow in image). Only when the offsets between end-effector (green) and tracking centroid (yellow) will be computed, the service will provide an acknowledgment:

Screenshot from 2021-04-20 14-00-07

Note: the reaching and the grasping offsets contain a ball radius and a ball diameter respectively to avoid the hand touching the ball while reaching.

  1. in the same terminal type:

     writeToFile part
    

    This will create a file called calibOffsetsResults.txt in the calibOffsets context.

  2. run the script copyParamsRedBall.sh calibOffsetsResults.txt to write the offsets into demoRedBall configuration file.

Now we can run demoRedBall with the newly adapted conf file and do all required connections.

Deployment

If you want to run the automatic deployment, you can refer to the instructions in the Applications section of Robot Bazaar.

🎯 Result

The following video shows the entire pipeline working on the robot.

RB_calibration_low.mp4