updated API for calculating and publish joint vel commands