updated ros api to set value