By means of three-dimensional direct numerical simulations, we investigate the influence of the regular roughness of heated and cooled plates on the mean heat transport in a cylindrical Rayleigh–Bénard convection cell of aspect ratio one. The roughness is introduced by a set of isothermal obstacles, which are attached to the plates and have a form of concentric rings of the same width. The considered Prandtl number $Pr$ equals 1, the Rayleigh number $Ra$ varies from $10^{6}$ to $10^{8}$, the number of rings on each plate is 1, 2, 4, 8 or 10, the height of the rings is varied from 1.5 % to 49 % of the cylinder height and the gap between the rings is varied from 1.5 % to 18.8 % of the cell diameter. Totally, 135 different cases are analysed. Direct numerical simulations show that with small $Ra$ and wide roughness rings, a small reduction of the mean heat transport (the Nusselt number $Nu$) is possible, but, in most cases, the presence of the heated and cooled obstacles generally leads to an increase of $Nu$, compared to the case of classical Rayleigh–Bénard convection with smooth plates. When the rings are very tall and the gaps between them are sufficiently wide, the effective mean heat flux can be several times larger than in the smooth case. For a fixed geometry of the obstacles, the scaling exponent in the $Nu$ versus $Ra$ scaling first increases with growing $Ra$ up to approximately 0.5, but then smoothly decreases back towards the exponent in the no-obstacle case.