Active and semi-active damping of systems include a first link supported by a base, a second link, a damper coupling the first link to the second link, the damper having a variable damping coefficient, and a processor. The processor is configured to predict an acceleration or a vibration of the second link expected to result from a commanded movement of the second link and adjust the variable damping coefficient of the damper based on the predicted acceleration or the predicted vibration to reduce vibration in the second link.