/* Add the sample specified in req to the color table */ bool addColor( obj_rec::addColor::Request &req, obj_rec::addColor::Response &res ) { res.ok = colorTable.addSample(req.id, cvScalar(req.bb, req.gg, req.rr)); return true; }