$\newcommand\HOD{\text{HOD}}$

Almost all the large cardinal properties are relatively consistent with $V=\HOD$. This is generally proved by forcing, since there are numerous easy and natural ways to force $V=\HOD$. 

One easy way to force $V=\HOD$ is to force so as to code every set in the pattern of GCH on the cardinals. Basically, one undertakes a forcing iteration that at each cardinal stage decides generically whether to force the GCH at that cardinal or not; in other words, one uses the lottery sum of two posets, one of which forces the GCH there and the other of which forces a failure of GCH there. In the extension, a simple density argument shows that every set is coded into the GCH pattern, and so we get $V=\HOD$. (The general idea of this kind of coding is due originally to McAloon, although he used a different method. Many authors describe the coding with bookkeeping functions, but this is not actually needed, since the generic coding means that it is dense that any new set is coded.) The assertion that every set is coded into the GCH pattern is named as the continuum coding axiom (CCA) in the dissertation of Jonas Reitz, who proved that this implies the [ground axiom (GA)](http://en.wikipedia.org/wiki/Ground_axiom). You can find further uses of the CCA in [Set-theoretic geology](http://arxiv.org/abs/1107.4776), which also contains full details of this kind of forcing and variations.

Now, the point is that most of the usual large cardinal axioms are preserved by the $V=\HOD$ forcing, by the usual lifting arguments as for GCH. Thus, all the main large cardinals are relatively consistent with $V=\HOD$. 

There are many other coding methods besides coding into the GCH pattern. Andrew Brooke-Taylor, for example, undertook coding in the $\Diamond^*_\kappa$ pattern, which allows one to force $V=\HOD+\text{GCH}$ while preserving all the usual large cardinal notions. His paper [Large Cardinals and Definable Well-Orderings of the Universe](http://arxiv.org/abs/0711.2591) exactly fits the theme of this question.